NameSilo

AdSense pub id change for web page

Spaceship Spaceship
Watch

Dean

VIP Member
Impact
91
I just bought a website and it has adsense on it. Anyway, I obviously want my ads to be shown so can I just change the publisher id in the adcode? The adcode is I think old adsense code as it looks differently to newly generated code.
Code:
<script type="text/javascript"><!--

google_ad_client = "pub-xxxxxxxxxxxxxx";

google_ad_width = 160;

google_ad_height = 600;

google_ad_format = "160x600_as";

google_ad_type = "text_image";

google_ad_channel = "";

google_color_border = "1d1d1d";

google_color_bg = "1d1d1d";

google_color_link = "FFFFFF";

google_color_text = "000000";

google_color_url = "008000";

//-->

</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

Newly generated code seems to screw up the whole template so i was hoping I can just change my publisher id in the current code. Anyway when I done it the ads show up but when i get the info for the frame it has a URL which starts with pagead2.googlesyndication.com/pagead/ads?client=ca-pub-xxxxxxxxxxxxxx
The pub id in the URL is the old publishers id, so even though I edited the code it still, for some reason, is sending the old publisher id as part of the URL. Anyone got any ideas as to why this is happening? Is this going to my adsense account or the old owner's adsense account?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
If you changed pub-xxxxxxxxxxxxxx to your own but it still shows the old one, it could be your local cache is storing the old one - try clearing any cache on your browser and check it again. It could also be that the code is being pulled from somewhere else and you have not changed it - thus it still shows the old code.
 
0
•••
Actually I think it was just something with adsense taking a while to update things as it is showing mine in the URL now also but wasnt before even after clearing cache. So I guess its working now. Thanks anyway
 
0
•••
Pres Ctrl-F5 on your browser
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer

We're social

Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back