Using Google Ads to display Amazon ads

OK, I don’t know if anyone would have noticed this, but occasionally, in the Google ad sections above and on the sidebar, instead of seeing a typical Google Ad, you might have spotted an ad instead.

It doesn’t happen often, but it does happen.

I did this because I was kinda tired of seeing the Public Service Ads displayed whenever Google can’t find any keywords worth selling on my blog – which, sadly enough, is most of the time.

This really isn’t a big deal, but after reading this post, I figured I might as well share the method. It’s pretty simple, of course, and anyone would be able to figure it out if they just thought about it….

And before anyone asks, let me point out that Google’s Adsense policy does allow this.

Alternate Ads

If you have elected to receive contextually-targeted ads, you can make sure that your advertising space is always being used effectively, either by targeted Google ads, or by your own choice of content by specifying an image or ad server of your choice. However, you may not specify Google ads as your alternate ads.

So, first up, you need an Associate membership. It’s free, so go and sign up.

Once you’ve signed up, login and click on ‘Build Links’. Then click on ‘Recommended Product Links’. Select the desired Product Category, keywords or subcategory, then select the ad size to correspond to your Google ad size.

You will then be provided with HTML code to be embedded in a page. Copy and paste that code in a text editor, and wrap the code with basic HTML tags like the html, head and body tags.

Now, you’ve gotta upload this file to a server where it can be easily accessed using your browser. I’ve hosted the file that I use for the above ad here. You can see the source code to see what I meant by wrapping the Amazon code with regular HTML, if you didn’t understand I was saying..

Then, login to your blog CMS, and view the HTML template of the page where you have your Google ad code.
Add this line: google_alternate_ad_url = "[full URL of the page containing the HTML code]"; just after this line: google_ad_client = "pub-xxxxxxxxxxxx"; .

And that’s it. You might never see Amazon ads displayed in place of Google ads if you have a high-traffic website with tonnes of mareketable keywords, but if you’re like me, and you’re tired of PSAs, give this a go and you might catch a glimpse of an Amazon ad or two in the future.


3 thoughts on “Using Google Ads to display Amazon ads”

  1. I just clicked on one of your amazon ads. What is to stopyou from clicking on your own ads? Or you and a friend mutually clicking each other’s ads?

Comments are closed.