Adsense – Changing ads

Posted in: Newsmag
Post count: 21

I noticed a weird thing yesterday with ad system.

Initially I had a small horizontal banner for “Below the article” ad.

I tried to change it to a square banner yesterday. I changed the code. But still the site is showing only the old banner.

If i delete the code, however the ad is removed. If i update the code, its not working.

I tried it with few other spots and the same result. Not sure if its just mine or anyone else facing the same issue. Can someone help?

Post count: 9544

I’m not having that issue; however note that when you change ads, it can take Google a little while to “reauthorize” the serving on your site; hence the “blank space.” So, sometimes it’s five minutes, sometimes an hour.

Post count: 21

Thanks Chris.

Actually its not even showing blank space. It’s simply showing the old code ad. Let me give it another 24hours and see if it works.

Post count: 9544

be sure to clear any/all site caching you may be using …

Post count: 21

I tried clearing my browser cache. Same results.

I am getting to wonder if it has something to do with recent update. I am seeing a link within wordpress dashboard on top that says “delete cache”. are you referring to that?

Post count: 6600

Hi,


@tagdivfan
That comes fro the cache plugin/system you use so that would be the one.
I haven’t found any issues with this using the latest theme version so if you’are not using it I suggest you update the theme then check again and look into your browser’s console fro error and notifications related to this.
Please let me know if you still have issues with this and also provide your site’s URL pointing me to the banner you refer too.

Thanks

Post count: 9544

@tagdivfan

yes! you need to delete that cache whenever you do major changes to your site .. since “caching” basically makes snapshots of your pages to load them faster, and so it means the old pages are still being served until you reset that, so that the NEW pages get cached.

See the help docs for your web hosting on how to use the caching function.

I helped a client with his site hosted at GoDaddy and I had to clear that damn cache twice for any major updates like changing some widgets, or the CSS, or ad modules, etc. No way to turn it off either!

Post count: 21

Thanks Chris, Lucian.

If i update the banner code, its not working. (Say a square to a vertical banner)

If i delete the code completely, the change is seen instantly on the homepage and the ad is removed ( without clearing cache or anything)

So that kinda makes me feel this is not a cache issue…

Let me ask my server config. to check also.

Lucian – is there a email ID I can email you the developing site address link?

Post count: 21

I also deactivated “WP Super Cache” that I noticed in my plugins.

Post count: 9544

The ads work perfectly on our sites. So, this means it’s either a plugin conflict, or a caching issue. All the theme is doing is inserted the AdSense code into the template in the right place, so as long as you put the right code into the box, and the page is updated and visible online, then the new code will pull the new ad format.

I betcha it’s caching! 😉

Post count: 21

oh okay. I have no clue how to solve this caching thing now. Should I install any special plugin for it?

Post count: 9544

Basically turn your caching OFF, or make sure you clear cache before making change, then after making change to site, clear cache again (this refers to caching on your server/domain).

Double check your settings in the ad manager to make sure sizes and things like “show on desktop” are switched on.

If you’re switching from responsive code to a fixed size, make sure you’re putting the fixed side code in right box for the right ad type (e.g., sidebar); which it looks like you have been doing.

You might even try just putting the code into a text widget on sidebar to see if the ad loads properly.

So, then look at your page and see if you’re getting any errors (press F12 in Chrome to see rendering errors); view page source to see if the code is in fact on the page.

It is possible it’s NOT any of the above, however 99% of the time when you update something and then it’s not on the page, it’s from caching.

Caching is awesome for speed, but not for doing updates 🙂

Post count: 21

“You might even try just putting the code into a text widget on sidebar to see if the ad loads properly.”

I tried that and it works perfect.

So I guess i have to ditch the adsystem that comes with the theme and put custom text widget for my ads.

Thanks for your patience and guidence.

Post count: 9544

Well it “should” work for the ad widget area unless it’s a non-responsive ad, and in that case you might need to use the ‘Simple ad code’ box … since this is a responsive theme, the ad system is designed to run responsive ads.

I believe the ‘Simple ad code’ boxes are intended to use custom ad sizes and code, so you might try that. (I have not done that, but will soon be trying it with our adRotator in house ad widget… )

Not saying it isn’t a bug…. maybe paste the ad code you’re trying to use here without your ID cod in there (I usually put xxxxx when I paste my own ad codes here for support help from TagDiv folk…).

Post count: 21

Find below my ad code.

My previous ad was a 300 x 250.
The below new ad is 300 x 600

<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– side ad skyscraper –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:300px;height:600px”
data-ad-client=”ca-pub-1234567876″
data-ad-slot=”123456789″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Post count: 21

CHRIS!
You are right. This is something to do with responsive.

Under ADVANCE USAGE, there is an option to give the AD SIZE. IF I make it 300 x 600 – the ad loads perfect.

If i make it auto – then some other size ad is getting loaded.

Post count: 9544

Groovy bitchin’ cool ! ….. as we say here in California 😉

Viewing 17 posts - 1 through 17 (of 17 total)
The forum ‘Newsmag’ is closed to new topics and replies.