[Resolved] Adsense Ads are not displayed in the website

Home Forums Support Adsense Ads are not displayed in the website

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #1320470
    Abdul

    Hi,

    I have enabled Auto Ads in Adsense. But I don’t see any Ads in the website using desktop. In Mobile I see some small banners here and there. Should I add the Adsense code manually to the theme so that it gets displayed in the home page and posts?

    I also need to add an Ad block in the right sidebar. I did insert an Ad Inserter block in the sidebar but I don’t see any Ads.

    Also how to change the background color of the the featured posts element ?

    Thanks

    #1320913
    David
    Staff
    Customer Support

    Hi there,

    you can add your ad scripts manually to the theme.
    The best way is to use the Widget Areas or the GP Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    To remove the orange widget background – go to Customizer > Additional CSS and delete this:

    .sidebar .widget:first-child {
        background-color: #e86000;
        color: #fff;
    }
    #1321164
    Abdul

    Hi,

    I have added an Element and inserted my Ad script in the wp_head. Will wait for sometime to see if the ads are getting displayed or not.

    To remove the orange widget background – go to Customizer > Additional CSS and delete this:

    .sidebar .widget:first-child {
    background-color: #e86000;
    color: #fff;
    }

    I did the above and it removed the posts too and I have an empty element right now. I just want to remove that background color and still have the Featured post. How to do that ?

    #1321213
    Abdul

    that featured post element is there and the posts are there too, but the font is in White right now due to which it looks empty. can you please let me know how to change the font color to Black ?

    Thanks

    #1321218
    Abdul

    Got it myself. Updated the color to Black and now the posts are visible in the element.

    Thanks

    #1321627
    David
    Staff
    Customer Support

    Glad to hear you found the solution.

    #1321770
    Abdul

    The Adsense Ads are still not displayed in the website. I thought it would take some time and waited till now but still it is not working. I don’t see any ads in my website. can you please help me to fix it.

    #1321832
    David
    Staff
    Customer Support

    I am seeing this error in the developers tools console:

    TagError: adsbygoogle.push() error: Only one 'enable_page_level_ads' allowed per page.

    Have you added the code more then once ?

    #1321841
    Abdul

    No, I had first enabled Auto Ads which was not working properly. so I manually added the code by adding it in the element (only once)
    can you please help me to fix it.

    #1321862
    David
    Staff
    Customer Support

    I can see two codes being added to the site.
    Do you have any plugins related to adverts ? If so can you disable them

    #1321878
    Abdul

    Yes. I had the Ad Inserter which I have disabled and deleted it now.

    #1321908
    David
    Staff
    Customer Support

    The site is still showing an error that 2 x scripts are being loaded.
    Are you adding scripts using your Google Tag Manager ? Or any other method ?

    If not then delete the Hook Element and let us know.

    #1321916
    Abdul

    No I am not adding through anything else. I have now deleted the element. Right now the only thing enabled is through Google Auto ads.

    #1321947
    David
    Staff
    Customer Support

    I thought you had already disabled auto ads ?
    Can you remove that entirely so i can then check that NO ad scripts are running.

    Then we can look at the options.

    #1321956
    Abdul

    Disabled Auto Ads.
    Deleted the Element which had the code.
    Deleted the Ad Inserter plug-in

    As far as I know, I don’t have anything else that could add any Ads to my site now.
    can you please check now and guide me to enable the ads in the right way. Thanks a lot for your help.

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