• Resolved legendarymage

    (@legendarymage)


    Hi,

    So everything used to work fine. My ad code hasn’t changed its location, it’s present on the page as you can see from the source.

    I have done the setting up process 2-3 times to try and ‘refresh’ things but nothing really helps, hence this thread.

    The weird thing is that the plugin reports AdSense is connected, and I’ve enabled it to automatically place ads on the site (I turned on auto-ads on the AdSense platform itself as well).

    Here’s a screenshot:

    https://ibb.co/8XNpf5v

    Here’s the second screenshot:

    https://ibb.co/Hnjsvzh

    The same thing appears at the bottom of the ‘Dashboard’ page.

    Any ideas?

    Thanks,
    Alex

    p.s. The source code is a mess due to multiple layers of front-end optimization, but you can find the code at a few places if you search and type ‘ca-pub’.

    • This topic was modified 5 years, 2 months ago by legendarymage.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 37 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    @legendarymage Ads are appearing fine from when I check your site. I did however notice you have the Auto ads code script on your site twice, which may be why you have been encountering issues.

    If you want to remove either the ad code snippet via Site Kits Auto ads module or your other Auto ads implementation we can check again.

    Thread Starter legendarymage

    (@legendarymage)

    So I compared the two codes and I see that in the one I manually put, page level ads are also included, while the second one doesn’t seem to have that. I would like to keep that capability of course.

    So you suggest to just remove site kit’s auto ads placement since I already have that manually added from before? I was under the impression that they would work together out of the box and the plugin would simply detect that such a setting was already applied.

    Plugin Support James Osborne

    (@jamesosborne)

    @legendarymage You are correct, the plugin should detect existing ad code. I can see the following on your site twice:
    enable_page_level_ads: true

    It’s up to you whether you want to keep your existing Auto ads code or allow Site Kit to place the Auto ads code.

    I’m happy to check your site once you’ve remove one of the Auto ads codes implementations.

    Thread Starter legendarymage

    (@legendarymage)

    Does the auto ads code placed by the plugin include page level ads? There seems to be a difference between the scripts where one is explicitly included (manual) and the other is not. Can you please confirm this?

    In the meantime I have tried disabling the placement from the plugin and reset everything but it’s still the same issue. So it seems I might not have a choice if I want to have this capability available.

    Edit: Nevermind, I see you said ‘twice’, I’ll check again – might have missed it, sorry.

    • This reply was modified 5 years, 2 months ago by legendarymage.
    Thread Starter legendarymage

    (@legendarymage)

    Yeah, my bad. I just found the 2nd instance, when I searched for the whole string it only found one, when I just tried ‘page_level’ I could find the 2nd. Sorry again, I’ll give it another go now without the manual one.

    Thread Starter legendarymage

    (@legendarymage)

    Can you please check the code now? I removed the manual entry from the header file and just left the plugin to manage it.

    Plugin Support James Osborne

    (@jamesosborne)

    @legendarymage Looks good to me now, I also no longer see the related console errors, nice job.

    Thread Starter legendarymage

    (@legendarymage)

    Thanks. I still see the error though. Any ideas what might cause it? I tested in another browser as well just to make sure it’s not a cache issue, but still the same (Opera & Chrome). I’m sure it all works – but I’d like to see the data from the module as well.

    Thread Starter legendarymage

    (@legendarymage)

    Settings page: https://ibb.co/GVXDtS6

    AdSense page: https://ibb.co/XXtZyF2

    Dashboard page: https://ibb.co/YNtHRqg

    Cleared my browser cache, site cache, tried 2nd browser, reset the plugin and started from scratch etc. Any particular sequence I should do to make it work?

    It’s weird because it used to work shortly ago, and that was WITH the double codes (still had it in ‘header’) but ever since I migrated to SiteGround a few days ago, this issue wouldn’t go away.

    Plugin Support James Osborne

    (@jamesosborne)

    @legendarymage I can see the following twice on your site:
    //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js

    Have you manually inserted one of those? If so remove and we can check once more after disconnecting the AdSense module and connecting again.

    Thread Starter legendarymage

    (@legendarymage)

    I have a manual placement in one place on my site, but this didn’t seem to be a problem before as I mentioned (including the ‘third’ instance of manually placed auto-ads). Do I really need to get rid of the manual unit to get this to work again?

    Plugin Support James Osborne

    (@jamesosborne)

    @legendarymage You shouldn’t need to get rid of the single ad unit code. If you remove the additional placement below and try reconnecting the AdSense module we can check once more:
    //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js

    If that fails to resolve your issue can you share your Site Health information?

    Thread Starter legendarymage

    (@legendarymage)

    I only have that one, if I remove that one there won’t be any left. I removed the manual unit, right now there’s only the plugin’s code and it’s still the same.

    Which information are you most interested in? I’m not 100% comfortable sharing everything that’s there publicly. Thanks.

    Thread Starter legendarymage

    (@legendarymage)

    I think I might have figured out finally what the problem could be. This current account that I’m using to connect is added as an administrator to my original ‘personal’ gmail account (where AdSense was originally created) and is therefore not the first one.

    Do you think this could be the problem? I’m going to try and log into my first account later today (have some 2F issue at the moment) and when I try to connect AdSense this time I’m going to instead select that one. I’m almost entirely sure that ‘could’ be it. If it is, I’m sorry for wasting your time!

    Plugin Support James Osborne

    (@jamesosborne)

    @legendarymage Thanks for your patience, nice troubleshooting, that could well be the issue. Can you try and reset Site Kit before connecting once more using your main account, the once associated with your AdSense account? Or alternatively ensure that the account you have used to setup Site Kit has full admin access from within AdSense.

    Also I am still seeing double header scripts on your site. While that most likely is not the cause of your issue removing one of those would be better than having duplicate script calls.

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘AdSense not Showing – Used to Work’ is closed to new replies.