Forum Moderators: martinibuster
I run a news satire site, which is crawled daily by a satire site aggregator. When one of their clients sees a headline of mine that they like, and click on it, the site displays my content within a frame. It's mine, I still control everything inside it. But Google never serves real ads there, only my lame alternate. I suspect it is because the location.href isn't the one I signed up with, it's the one from the aggregator.
Is there anything I can do about this? I checked a few of the other sites crawled by the aggregator and the same thing happens to them. While I've never seen in print that I shouldn't attempt to break out of their frames, nobody else does it. Not even The Onion.
I definitely don't want to make the aggregator folks mad at me, they send me 5-10% of all the traffic I get!
So, where do I go from here? Anybody else got a thought on it?
Thanks for your help!
Dave Oatley
How do I optimize my site for the most relevant ads?
Our ability to target ads to your site depends on the content and structure of your site. Here are some basic guidelines for optimizing your site:Place ads on pages that predominately contain text -- only text is used to determine a page's context.
If you have a robots.txt file, you'll need to remove it or add the following two lines to your robots.txt to allow our content bot to crawl your site:User-agent: Mediapartners-Google*
Disallow:If your site contains frames, be sure to run the ads in the frame with your page content.
Place ads on pages that don't require a login.
Place ads on content pages that don't change frequently.
By following these tips, we can better serve the most relevant AdWords ads on all of your content pages. If we are unable to crawl or understand the content on your site, we may serve public service ads or your specified Alternate Ads, for which you will not accrue any AdSense earnings.
One other thing to keep in mind, as well. If the site framing your site is displaying AdSense ads, having them on your site as well would cause them to be double serving and violating their own AdSense agreement.
Perhaps drop the tech team an email at AdSense. They might be able to offer additional suggestions for you. Explain why you prefer not to use a frame breaker from this referrer, or else they just might say to use on as their response ;)
If the site framing your site is displaying AdSense ads, having them on your site as well would cause them to be double serving and violating their own AdSense agreement.
Others have had their site framed with the referring site using AdSense, without any consequences. You have no control over someone framing your site. The referrer (the one who is framing the content) could perhaps run into problems, depending on how AdSense interprets running AdSense only on sites you have legal authority to do so - they could see it as no problem, or they could have an issue.
It's exactly like the original code, except there's an extra line:
google_page_url = document.location;
Thanks for the tip daugava!
oatleyd, do check with the AdSense team before you to this, so they have record of the fact you have permission to alter the AdSense code. Without permission, you could be in violation of their terms which says no changes to the code are allowed. Always better to be safe than sorry :)
onload="if (self!= top) top.location = self.location"
We weren't sure if it would interfere with Adsense. Well, finally got Adsense up the other day and completely forgot I had that snippet in there.
It works, doesn't interfere at all. So if you do need one just stick it in the opening body tag and you're all set.
I won't take to busting out of the frame yet, I really want to keep my referrer happy. But I will certainly keep that code in my pocket for future use.
Thanks again, everybody!
-Dave