[Resolved] Using wp_head hook for Google Auto Ads

Home Forums Support [Resolved] Using wp_head hook for Google Auto Ads

Home Forums Support Using wp_head hook for Google Auto Ads

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #880927
    Earl

    This code snippet, supplied by Google, doesn’t seem to do anything when inserted as a wp_head hook.

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({
              google_ad_client: "ca-pub-0000000000000000",
              enable_page_level_ads: true
         });
    </script>

    Am I missing something? I’m a relative noob to both WordPress and GeneratePress.

    Thanks.

    #881046
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Where does Google ask you to add the script? In the <head> section? If so, wp_head is the correct place for it.

    Let me know 🙂

    #884735
    Earl

    OK. The script is in the correct spot. I think the issue is that Google has not yet completed the automated site inspection that is done before ads will be served. In other words, “not your problem” as far as I can tell now.

    #884825
    Tom
    Lead Developer
    Lead Developer

    It can sometimes take a little bit. You should be able to contact them to confirm everything is set up correctly.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.