homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

How to Show non-public ads
You can use includes files

 1:54 pm on Jul 16, 2003 (gmt 0)

I have had problem with one major entry page for my site, which was showing public ads after a few days of targeted ads. My Impressions, CTR, CPM were all down because of it.

I tried several tests and found that this works best.

1. Save adsense code in a file (i.e. google.asp)
2. include it as a server side

It will start over the targeting process for your pages.
If you already have includes file for your ads, change the name to another one (i.e. google2.asp)

It works great for me.

Any other good ideas?



 4:39 pm on Jul 16, 2003 (gmt 0)


I guess it was not the answer.

I just found that I lost the major Entry page from Google SERP...

So google has no idea what this page is about...

Even Media Bot seems to have a problem with this page.

It is very accessible without any login to this page.

Any thoughts?


 4:14 am on Jul 17, 2003 (gmt 0)

The fact that your page is out of Google should not affect whether you show targeted ads or the PSA ads.

I would be concerned about this:

1. Save adsense code in a file (i.e. google.asp)

Right on the Adsense FAQ it states:
4. Can I alter the AdSense ad code?
No. Please paste the AdSense ad code into your web pages without making any modifications.

So I would remove your google.asp code, and paste the AdSense code into your page. They might have replaced all your ads with the PSA ads for this reason.


 5:02 am on Jul 17, 2003 (gmt 0)

Jenstar thats not editing the code


 5:43 am on Jul 17, 2003 (gmt 0)

If it is done as an include, the actual Google AdSense code would be on a separate page/file from the true page the ads would be served on. I think this would affect how AdSense would know which ads to display for various pages, which is probably resulting in the PSA ads. Using an include isn't exactly the same as "paste the AdSense ad code into your web pages without making any modifications", because you aren't pasting the AdSense code itself into the pages the ads would be served on.

On my own site, AdSense is displaying a variety of ads, based upon the content specific to each page, not the overall theme of the site as a whole.

Of course, I could be underestimating Google's abilities ;)


 6:02 am on Jul 17, 2003 (gmt 0)

Include files shouldn't pose any problem for AdSense, just as they don't for the Googlebot. Google's crawlers see the same thing that a user sees: the assembled page that's delivered by the server.

(FWIW, I use include files in my margins (including the right margin that contains my AdSense skyscraper), and Google is serving targeted ads.)

Frames would cause a problem, though. Or so I'd assume.


 6:25 am on Jul 17, 2003 (gmt 0)

I would guess the great majority of publishers are using the code in an include, especially those who already have sections of each page where ads are displayed as may be the case with people with large professional sites. Like the others say, an include is read (by robots and readers) only after the whole page is put together server side. It makes it MUCH easier to place and delete code from various ad servers, affiliate programs as you get to know the revenue flow for each.

It is not modifying the code or against google's TOS as far as i understand it.

Denis at eVR

 11:04 am on Jul 17, 2003 (gmt 0)

No, it's not modifying the code, but doesn't it go against the requirement to 'paste the AdSense ad code into your web pages'?


 11:16 am on Jul 17, 2003 (gmt 0)

No because at the end of the day server side includes are all put together server side. The client machine, whether it is your pc or googles spiders only see the compelete final page.

So as long as the include file contains the unmodified adsense code then it will be "pasted into your page"

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved