Try console.log(dfp_ads); in the Javascript console. That’ll provide all of the information about ads loading on the page.
Im getting this error message on my theme after adding the code you recommended
dfp_ads is not defined
Any ideas?
Did you type it into the javascript console? It’s a javascript command, it’s not going to work in your theme.
Yes, that was what I meant sorry.
Add the script and nothing shows on the console after refreshing the theme / page.
Deleted all cached too just in case.
This is what you’re doing?
Screenshot.png
Do you have a website I can check? If the plugin is installed, a “dfp_ads_object” or simply “dfp_ads” is outputted using wp_localize_script and should be retrievable in the JS console.
So just opening up the JS console on your website (the example above uses Google Chrome) and typing “console.log(dfp_ads_object);” should output everything that is contained and parsed by the javascript to send to DoubleClick.
I did this already with Chrome and keep getting the error.
You coluld check this page where the Plugin is installed:
http://www.elimpulso.com
I get the following errores:
Uncaught ReferenceError: dfp_ads is not defined(…)
Uncaught ReferenceError: dfp_ads_object is not defined
Do I need to turn anything ON on the plugin??
Its working.
The code you are using on the screenshot its:
dfp_ad_object
You mentioned on previos posts to use dfp_ads_object
The error was there.