Forum Moderators: martinibuster

Message Too Old, No Replies

Different ads when framed by another site

         

icedowl

11:55 pm on Jul 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was just poking around in my site's statistic pages. Out of curiosity I clicked on a "referer" search that caught my eye. It brought up a page of my site with an upper frame from the site where the search was performed. The adsense ads that were shown were totally unrelated to my site in general or to that page of my site. I couldn't see where they were related in any way to the site where the search was performed either (there was a link to return to the search results).

The frame had the words "remove frame" and when I clicked on them, the frame disappeared and my page reloaded with the ads that were properly related to my page's content.

I viewed the source on both adsense blocks and both adsense blocks contained my publisher number.

I just thought that this was quite curious.

Jenstar

12:50 am on Jul 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are getting many of these referrals, include the frames code in your AdSense script (check the box when generating the script in your AdSense account). This should give you targeted ads when the top frame is loaded with your site underneath it.

[google.com...]

icedowl

4:41 pm on Jul 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've decided to use code to ensure that my pages are not framed by another site. For me, this is a better solution as I strongly dislike other sites framing my pages. Their frames are so universally ugly.

I'm putting the following between my 'head' tags:

<script>
<!--
if (top.location!= location) top.location.href = location.href;
//-->
</script>

europeforvisitors

4:44 pm on Jul 4, 2004 (gmt 0)



A few months ago, AdSense Support was warning against the use of "framebreaker" code because it could affect the display of AdSense ads. Is that still true? Has anyone here done exhaustive testing to find a reliable script?

icedowl

5:32 pm on Jul 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I found this discussion from late last year:

[webmasterworld.com...]

With only an hour of testing at this point in time, the code I'm adding appears to work. The pages that I've put it on so far are showing properly targeted adsense ads.

Time will tell the true story, and if it degrades then I'll seek another solution.

Jenstar

5:52 pm on Jul 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, some frame breaker scripts affect the iframe that the AdSense ads appear in. If you find your script causes the AdSense ads to repeatedly load, try another script ;)

oldskool79

1:07 am on Jul 5, 2004 (gmt 0)

10+ Year Member



This is probably because Google is scanning the frame page (i.e., the page that is shown in your browser's address bar) and returning ads based on that.

Since most frameset pages contain no content, the site probably used content from the home page of that site.