A single Adsense Code For Entire Site

See the Adsense ad in upper left of my page (in signature blow) - this is a new site replacing a 10 year old site (same domain only a different hosting company and built using WordPress). Old site had roughly 100 pages, this new version has roughly 9,875 different pages / url’s. If you quickly navigate around, that same ad block always appears…should I be aware of anything in my AdSense settings to make that block of code flexible to each page / post / category that visitors open?

What exactly do you mean by flexible?

Currently you have a specific width set for the ad. If you remove the width then Google will select whatever width ad will fit the container. You need to make sure that the container has a width defined if you do that (such as a % of the width of its container.)

The other thing is that if the viewport width becomes too narrow to fit both the ad and the content next to it you need to have the CSS arranged so that one automatically drops below the other.

Note that you can move the CSS out of the Google code into your stylesheet and move the JavaScript portion to the bottom of the page without affecting the ad as long as you give the <ins> tag an id so that the code knows where in the page the ad is supposed to be.

One other issue is that the Google Ads still generate inline JavaScript so if you add a security header to your page you can’t disable inline JavaScript even if you move all the visible JavaScript into an external file and expect the ad to appear.

Stephen: By flexible, I mean to imply how the ads correlate to the content of each page…for instance, [B]go here[/B], then [URL=“http://www.danscartoons.com/medical-cartoons/”][B]click here[/B]. Also [URL=“http://www.danscartoons.com/oil-cartoons/”][B]click here[/B].
So will the same code genrate ads about plumbers on the page? Then the next one genrate medical related ads? And finally the last page generate petrol related ads?

The same code will display whatever ads Google decide are most appropriate for the page. They base this on two things - most importantly the interests of the person viewing the page - and secondly the content of the page itself. The second of these is mainly used where Google doesn’t have much info about your visitor’s interests. They display the ads that they hope will be ones that the visitor will be most likely to click on.

So if the person has been looking to buy a new tv at some point in the last few weeks using Google search to find the stores then the ads are more likely to be for stores selling tvs than about anything relating to the web page itself. Another person who has managed to keep their browsing habits secret from Google (assuming that anyone actually succeeds in doing that) would see ads that relate to the individual page content.

When I visited the three links the first page showed a gambling ad (no idea why as I never gamble and have never searched for or visited any site remotely related to that topic) and the other two displayed web hosting ads (which I see a lot as I am often on forums like this one answering web related questions).

thank you for updating me as to what specific types of ad content are displayed on each of those pages…I appreciate that. Additionally, this was the basis for my question, since that ad code is actually inside of one of those WordPress widgets you can place along side your page(s) and since a single code appears throughout the thousands of pages of the site, I wondered how that code actually conforms (or performs) to the actual different visitors who land on the respective pages (based on each visitors search terms / keywords) and interests etc. Of course, each page/post has different text and various images and galleries but that widget is somehow displaying different ad types…so it’s good to know. It isn’t your typical 336X280 since the widget won’t allow that size…I had to put in the next smallest. I guess I could also put in a banner across to the right on other pages then. Much appreciated for your time!