• Resolved Eric Armstrong

    (@aeric325)


    The plugin looks great. Well thought-out, with lots of helpful advice about what to do next built into the interface. Well done.

    BUT… After creating a Widget using the JS code I got from AdSense, the widget does not display on my site.

    One possible reason is the mysterious requirement for an “ad position”. If I don’t select a position in the post to display an ad, the validation-step fails. (But the whole idea of creating a widget is to have the ad appear in the sidebar!)

    So the first question is: Is it really necessary to select an ad position for the widget to work? Or is it the case that if it was set up properly, it would still work, even though it “fails” validation.

    The second possibility is whether the AdSense code I got from Google is right:
    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: “ca-pub-6668188143818544”,
    enable_page_level_ads: true
    });
    </script>

    (I got that code when I first signed up. But after I got approved, I’m seeing a while ‘nother interface for creating ads that I do not yet understand.)

    Here’s a sample page:
    http://treelight.com/saq/who-really-wrote-shakespeare

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    > Is it really necessary to select an ad position for the widget to work? Or is it the case that if it was set up properly, it would still work, even though it “fails” validation.

    No, its not necessary for any widget ads. You are right, the validation process is confusing in case one only wants to add a widget ad and no content ads. I will improve this.

    You are trying to add a page level ad to the widget. A pagel level ad is something special. This will not work! Follow this to learn how to add pagel level ads: https://wpquads.com/docs/integrate-page-level-ads-wordpress/

    If you want to add a widget ad you need to create one first. Read this:
    https://wpquads.com/docs/settings/

    Thread Starter Eric Armstrong

    (@aeric325)

    Many thanks!! Need to change the title: “Widget works, My Brain Didn’t!”
    (At least as regards the Widget.)

    I do want to allow page-level ads — but I don’t want to preselect an automatic location. I’ll want to add them selectively, on pages where they might make sense — like short pages that recommend a product where I don’t have any kind of affiliate relationship.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget Doesn’t Work’ is closed to new replies.