Welcome to WebmasterWorld Guest from 54.87.18.165

Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense ads not appearing in pages.

     
1:32 am on Jul 7, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:951
votes: 12


Hi so we are currently redesigning our pages especially for mobile/desktop.

We noticed a few days ago adsense ads stopped displaying, and so I opened a support ticket with Adsense support. They replied back that the div containers enclosing the adsense code were small hence ads were not displaying.

I have a few questions:

1. In mobile view most of my adsense code is responsive code. What size do we specify div containers then?

2. In desktop view do we actually have to hard code the adsense code dimensions in the div tags?

Please assist. Thanks so much!
3:02 am on July 7, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 891


1. I don't size (mobile) divs that contain responsive ads. They do a good job sizing themselves.

2. I do size the divs for desktop but use percentages.

YMMV
5:08 am on July 7, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:9247
votes: 780


Look at your layouts very seriously ... responsive means exactly that. If you are defining divs in PIXELS you aren't doing it right. :)

Not saying you are, just remarking things can get funny real quick...
6:17 am on July 7, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:951
votes: 12


So if I use only responsive ad code for my mobile/desktop then I guess my entire site has to be responsive too.

Secondly if I use fixed size adsense ad code for my desktop and responsive for my mobile.. is this a good practice?
6:53 am on July 7, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 891


So if I use only responsive ad code for my mobile/desktop then I guess my entire site has to be responsive too.
Your entire site *should* be responsive.

Control the type of ads (desktop or mobile) with CSS tagged Divs.
1:06 pm on July 7, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 1, 2016
posts:2413
votes: 641


Secondly if I use fixed size adsense ad code for my desktop and responsive for my mobile.. is this a good practice?

No this is not good practice, it defeats the purpose of responsive. You should have one block of ad-code and it should fit itself seamlessly onto the screen whatever the size. If you're going to hide/show different block of ad code based on screen size then you should simply use fixed sized block.
9:12 am on July 8, 2018 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Nov 13, 2016
posts: 596
votes: 90


I don't size (mobile) divs that contain responsive ads. They do a good job sizing themselves

I would recommend setting a "max-height" .

I have a responsive adsense banner on top of the page. On mobile, Adsense was display ads which were 50 or 100 pixels height, which was the expected result. But some days ago, I noticed that, randomly Adsense was showing 300x250 ads instead and even a 300x600 ! on mobile ! It might be giving better result, but it's totally denature the page and user's experience, ... without counting that it looks like against Adsense 's own rules, and again more against Google search guidelines. So when using responsive units, be careful to set a "max-height".
11:15 am on July 8, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:951
votes: 12


Max height css right? I also seen this prob responsive ads start showing 300x250 ads in mobile view on top where only I’d prefer 100 px in height ad
9:06 am on July 9, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:951
votes: 12


So we narrowed the problem to this adsense error message showing up in Chrome developer tools / Console / Errors:

======
Uncaught G {message: "adsbygoogle.push() error: No slot size for availableWidth=0", name: "TagError", stack: "TagError: adsbygoogle.push() error: No slot size
======

Can anyone please advise me a fix for this issue? I did some google searching and found some possible suggestions but some ask for mods to the adsense code. I've already opened a ticket with support.

Thanks!
5:20 pm on July 9, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 1, 2016
posts:2413
votes: 641



======
Uncaught G {message: "adsbygoogle.push() error: No slot size for availableWidth=0", name: "TagError", stack: "TagError: adsbygoogle.push() error: No slot size
======

I ran into this error a few weeks ago, in my case it occurred when I tried to re-load an ad with js onto the page. After adding content to the page I re-fire the AdSense script for the page but since an ad-unit already existed it threw the error. I fixed it by moving to DFP.

So this issue is not specific to the AdSense code but to the implementation/interaction of the code with your page/code.
11:17 pm on July 9, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:951
votes: 12


This website has a possible solution to this error message:

[davidsekar.com...]
1:16 am on July 10, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 1, 2016
posts:2413
votes: 641


Yes that seems very possible, as I mentioned it really has more to do with your implementation, so if this fits what you have done it should solve the issue for you.

I would recommend you read this:
[support.google.com...]
3:06 am on July 10, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:951
votes: 12


So I checked the site about NickMNS and found:

==
The parent container has no width set. If you place your responsive ad code within a parent container that doesn’t have an explicit width set, for example, within a floating element, then our ad code won’t be able to calculate the required size for the responsive ad unit. In this case, you’ll need to modify your code and use CSS media queries to set the size of the parent container. Find out how to modify your responsive ad unit.
===

It seems we'd have to modify our responsive adsense code:

[support.google.com...]
5:56 am on July 10, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member lame_wolf is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 30, 2006
posts: 3306
votes: 15


I have a similar problem, but it happens with either responsive adverts and fixed sized.

They are old pages, and have had adverts on there for years. Now, if I upload one of those pages again, the adverts disappear. It can be ages before they reappear - and sometime disappear again.
6:15 am on July 10, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 891


Lame_Wolf - your missing ads *could* be related to: [webmasterworld.com...]
7:41 am on July 10, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member lame_wolf is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 30, 2006
posts: 3306
votes: 15


Hi Keyplyr - Yes, I do know about that, thank you, and at first I thought it would be that. I even went through about 30 odd pages, then revisited them a week later. Some were still there, others not.

I normally use Firefox, but I checked today some of the pages (not the same ones as above) and they don't appear in IE or Chrome that often. It's really getting me down as the income helps me keep my head above water.

Yesterday - 2 clicks from 1500 visitors.
8:14 am on July 10, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 891


So what I did, and talked about in that linked discussion, is to use Desktop Chrome and visit the pages missing the ads. Reload a couple times.

This seems to attract Mediapartners-Google bot that updates the page into the cache used by Adsense as being safe for the advertisers (Brand Safety) so the ads return.

It's not a perfect solution and some pages may loose the ads again in a couple weeks.
9:19 am on July 10, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member lame_wolf is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 30, 2006
posts: 3306
votes: 15


Hi again,

Here's a bit more info....

I have my wife's account advert at the top of the page, and my account advert at the bottom of the page.

I renamed the page to 20.html and uploaded it.
Waited over 30 minutes

Adverts seem to be there in FF.
Chrome : No adverts top or bottom. (Just shows my alternative adverts)
IE: Same: No adverts, just alternative.

I made another copy of the same page (10.html). This time using fixed sized adverts but just used the wife's account.
Adverts seem to be there in FF.
Chrome: Adverts appear - but have disappeared - then reappeared later on
IE : No adverts, just alternative advert showing.

I even tried an hour later. Sometimes it will show an advert, but press F5 and the bottom advert reverts to the alternative advert.
9:28 am on July 10, 2018 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Nov 13, 2016
posts:596
votes: 90


@Lame_Wolf, it's also possible that Adsense has no ads for "you". Even if you use different web browsers, Adsense might guess from your IP and time between requests that this is still "you". So it can serve an ad, for the first few visits, then nothing, if there is nothing more to serve to "you".

What happens if you clear your browser history and cookie. And begin with Chrome? If you are not in the EU, with Chrome, visit first a famous site, so that Adsense can "track" you and your interest, then visit your site and see if you see ads.
9:48 am on July 10, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member lame_wolf is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 30, 2006
posts: 3306
votes: 15


Hi Dimitri,

There's always been plenty of ads for the site. I used to earn £25-£45 a day. Now it's pennies. It's not like the old days where you had a page about dogs and you'd get adverts for dogs (just an example, my site isn't about dogs)

I am in the EU, and my earnings were bad enough, but I changed to https, and it's no better.

Is there a way of contacting Google nowadays? I did use the Feedback a few days ago, but I've heard nothing back from them.

I just don't know what to do. If I cannot fix it, I may as well sell the site or close it down.
No point paying $60 a month in hosting fees and make £10 a month (if lucky)
9:55 am on July 10, 2018 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Nov 13, 2016
posts:596
votes: 90


No point paying $60 a month in hosting fees and make £10 a month (if lucky)

I am in the same situation. Some years ago, I was almost at 3 figures per day !

I think there is a lot of elements which is leading to a drastic decrease of earnings ( ad blockers, ad blindness, advertisers preferring social networks, or authoritative sites, mobile, etc...) , but it seems that every few months, something more is added, brand safety, GDPR, and later the ePrivacy Regulation, with possible blocking of cookies by web browsers, etc etc...
10:07 am on July 10, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member lame_wolf is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 30, 2006
posts: 3306
votes: 15


It's really doing my head in. It's an old site, and not written for mobiles. It was bad enough getting crap adverts, but no adverts is worse.

When you think you've fixed it, you find that the adverts disappear on F5 or don't always show up on other browsers.

I've also seen text adverts with a white background. They use "open" instead of the arrow. My site has a black background, so these white background adverts are annoying and look out of place.