How to block the binding of Google adsense to files on my server?

Today I noticed that several Google ads in the Advent block on one of my pages tried to display a file named " /pagead/badge/checkout_999999.gif" on my server . I figured it out a bit and found out that the companies behind these advertisements use Google Checkout, and " checkout_999999.gif" is a tiny go-kart icon with a hint that says: "This site accepts Google Checkout."

My problem is that " /pagead/badge/checkout_999999.gif" does not exist on my server. What are you doing to deal with this on your website? eg:

  • Save the logo ( alt text) on your server in the place that it expects from Google?
  • Use mod_rewrite rule to redirect a request? Why?
  • Find the adsense option to disable ads using Google Checkout? (I watched, but could not see it?)
  • Ignore the problem and do something important.

Back-story - please ignore, if not very boring: Page 2 of the search page on our site suddenly stopped working, and I did not know why. It turned out that this is due to Google adsense. We use PHP session variables to store search criteria on different pages that worked fine, but then randomly stopped working. Random errors are the worst! I tried to figure out what else was random on the page, and decided that Google ads were the only other random thing. Of course, sometimes a specific ad seemed to clear session variables and interrupt the search. In fact, it happened that the ad was requesting an image from our server ("checkout_999999.gif"), which was not there, and Apache was behind the scenes redirected to the main page of the site, which, unfortunately, clears the session variables necessary for the search - therefore, an unobvious breakdown. I am a little worried that Google ads may request random files with of my server? I would prefer if they could only use an absolute URL if they want to include a logo or other medium.

+3
source share
3 answers

After playing with Apache mod_rewritefor a while, I found a rule that seems to fix my problem with Google Adsense:

RewriteRule ^\/pagead\/badge\/checkout\_999999\.gif$ http://pagead2.googlesyndication.com/pagead/badge/checkout_999999.gif [R=301,L]

The problem is that I'm not sure how to stop such an event in the future if Google decides to link to another file?

+1
source

Google AdSense. - .

+3

Since Google does not care about the problem (previous messages were sent in June, and we are in October ... and the error was reported directly to Google), I decided to place the image on my server, which will suggest the user clicks on the ad!

Clicks increase!

Since this is my server, I can do what I want, and this is not my problem if Google requests files on my server. They cost me money using my bandwidth and connecting to my server, now I paid for it!

You have to do the same ...

+1
source

Source: https://habr.com/ru/post/1710007/


All Articles