Hello,
I am using this Plugin in two of my websites.
I think, ads are not showing properly!
While debugging, I noticed that both sites’ console giving similar Error/Warning!
Can you pls suggest what to do?
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=400728888456454&correlator=1368603672202795&output=json_html&callback=googletag.impl.pubads.callbackProxy1&impl=fifs&json_a=1&eid=21062749%2C21062069%2C21062577%2C21062831&vrg=297&guci=2.2.0.0.2.2.0.0&plat=1%3A1081352%2C2%3A1081352&sc=1&sfv=1-0-31&iu_parts=6452988%2CCareers.ie-728×90%2CCareersIE-300×250&enc_prev_ius=%2F0%2F1%2C%2F0%2F1%2C%2F0%2F2%2C%2F0%2F1%2C%2F0%2F2&prev_iu_szs=0x0%2C800x0%2C310x0%2C1140x0%2C200x0&cust_params=UrlHost%3Dwww.careers.ie%26UrlPath%3D%252F%26UrlQuery%3D&cookie_enabled=1&bc=13&abxe=1&lmt=1548828845&dt=1548828845288&dlt=1548828843074&idt=2138&frm=20&biw=1349&bih=654&oid=3&adxs=0%2C0%2C0%2C0%2C0&adys=0%2C0%2C0%2C0%2C0&adks=1888048638%2C3446069678%2C1538447766%2C4048768166%2C4090689855&ucis=1%7C2%7C3%7C4%7C5&ifi=1&u_tz=330&u_his=2&u_h=768&u_w=1366&u_ah=728&u_aw=1366&u_cd=24&u_sd=1&flash=0&url=https%3A%2F%2Fwww.careers.ie%2F&dssz=29&icsg=4397957332991&std=22&vis=2&scr_x=0&scr_y=0&psz=0x0%7C800x0%7C310x0%7C1140x0%7C200x0&msz=0x25%7C800x25%7C259x22%7C674x25%7C200x19&ga_vid=1081566705.1548828845&ga_sid=1548828845&ga_hid=583227135&fws=128%2C128%2C128%2C128%2C128. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
]]>Loading failed for the <script> with source “https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=400728888456454&correlator=1368603672202795&output=json_html&callback=googletag.impl.pubads.callbackProxy1&impl=fifs&json_a=1&eid=21062749%2C21062069%2C21062577%2C21062831&vrg=297&guci=2.2.0.0.2.2.0.0&plat=1%3A1081352%2C2%3A1081352&sc=1&sfv=1-0-31&iu_parts=6452988%2CCareers.ie-728×90%2CCareersIE-300×250&enc_prev_ius=%2F0%2F1%2C%2F0%2F1%2C%2F0%2F2%2C%2F0%2F1%2C%2F0%2F2&prev_iu_szs=0x0%2C800x0%2C310x0%2C1140x0%2C200x0&cust_params=UrlHost%3Dwww.careers.ie%26UrlPath%3D%252F%26UrlQuery%3D&cookie_enabled=1&bc=13&abxe=1&lmt=1548828845&dt=1548828845288&dlt=1548828843074&idt=2138&frm=20&biw=1349&bih=654&oid=3&adxs=0%2C0%2C0%2C0%2C0&adys=0%2C0%2C0%2C0%2C0&adks=1888048638%2C3446069678%2C1538447766%2C4048768166%2C4090689855&ucis=1%7C2%7C3%7C4%7C5&ifi=1&u_tz=330&u_his=2&u_h=768&u_w=1366&u_ah=728&u_aw=1366&u_cd=24&u_sd=1&flash=0&url=https%3A%2F%2Fwww.careers.ie%2F&dssz=29&icsg=4397957332991&std=22&vis=2&scr_x=0&scr_y=0&psz=0x0%7C800x0%7C310x0%7C1140x0%7C200x0&msz=0x25%7C800x25%7C259x22%7C674x25%7C200x19&ga_vid=1081566705.1548828845&ga_sid=1548828845&ga_hid=583227135&fws=128%2C128%2C128%2C128%2C128”.
If you’re interested in support for this plugin, the best methods are:
– send INN Labs an email at [email protected]
– open a GitHub issue at https://github.com/INN/doubleclick-for-wp/issues/new
We are using a custom creative for mobile ads but it doesn’t work with friendly iframes. Previously I would use enableSyncRendering instead of Async rendering and this would remove the iframes and allow the creative to work correctly.
Is this something I can enable in your plugin?
]]>I just wanted to know Is this Plugins help to run DFP Video ad?
]]>On Activation:
Strict standards: Accessing static property DoubleClick::$enqueued as non static in ../wp-content/plugins/doubleclick-for-wp/dfw-init.php on line 96
On adding a widget:
Notice: Undefined index: size in ../wp-content/plugins/doubleclick-for-wp/dfw-widget.php on line 107
Notice: Undefined index: lazyLoad in ../wp-content/plugins/doubleclick-for-wp/dfw-widget.php on line 120
On frontend after setting up widget:
Warning: Invalid argument supplied for foreach() in ../wp-content/plugins/doubleclick-for-wp/dfw-widget.php on line 38
Hi,
I installed the plugin tempted by the “targeting support.
I noticed that it seems to have problems with sub-categories. For example this page is for the category “Office suites” that is nested under “Software”; if in DFP I set the Key-values Category->office-suites the banner I want to display does NOT show (it shows AdSense as all my units have it as backup), but it does if I set Category->software.
How can I solve?
Thanks in advance and compliments for the plugins (as for the rest it works perfectly).
]]>I just installed the plugin for the first time and get the following error message:
Warning: Illegal offset type in /nas/content/staging/nooganews/wp-content/plugins/doubleclick-for-wp/dfw-init.php on line 122
Any idea how I can resolve this?
]]>Hi there,
I was wondering how we would be able to place an ad through a page template?
]]>Great idea for a plugin!
Unfortunately there’s a bug with the targeting but I managed to find a solution. Currently the script executes in the footer and tries to obtain the categories using get_the_category() and tags using get_the_tags() but because the footer is outside The Loop, these just return a subset of all categories and tags.
The fix is simple, for categories (around line 230) and tags (around line 247) in dfw-init simply access the wp_query and insert the ID as a parameter. The code should look something like:
global $wp_query;
$current_page_id = $wp_query->get_queried_object_id();
$cats = get_the_category($current_page_id); // Existing line with param added
...
global $wp_query;
$current_page_id = $wp_query->get_queried_object_id();
$tags = get_the_tags($current_page_id); // Existing line with param added
I hope you keep working on this plugin because it’s a great idea and otherwise DFP is a headache to implement in WordPress without creating a Custom Theme or Child Theme.
]]>