Site logo

Archived topic

Adsense Ads are not displayed in the website

28 replies · Started by Abdul on June 9, 2020

Viewing posts 1–15 of 29

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

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;
}

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 ?

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

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

Thanks

Glad to hear you found the solution.

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.

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 ?

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.

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

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

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.

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.

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.

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.

This archived topic is closed to new replies.