Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author chriswgerber

    (@chriswgerber)

    Try console.log(dfp_ads); in the Javascript console. That’ll provide all of the information about ads loading on the page.

    Thread Starter solokco

    (@solokco)

    Im getting this error message on my theme after adding the code you recommended

    dfp_ads is not defined

    Any ideas?

    Plugin Author chriswgerber

    (@chriswgerber)

    Did you type it into the javascript console? It’s a javascript command, it’s not going to work in your theme.

    Thread Starter solokco

    (@solokco)

    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.

    Plugin Author chriswgerber

    (@chriswgerber)

    This is what you’re doing?

    Screenshot.png

    Thread Starter solokco

    (@solokco)

    Yes

    Thread Starter solokco

    (@solokco)

    Anything new on this?!

    Plugin Author chriswgerber

    (@chriswgerber)

    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.

    Thread Starter solokco

    (@solokco)

    I did this already with Chrome and keep getting the error.

    You coluld check this page where the Plugin is installed:
    https://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??

    Plugin Author chriswgerber

    (@chriswgerber)

    Nope. Worked for me.

    Image>

    Thread Starter solokco

    (@solokco)

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Key Values not working’ is closed to new replies.