How to Make A Rotating Google Adsense AD

Google AdSense is a program run by Google that allows publishers in the Google Network of content sites to serve automatic text, image, video, or interactive media advertisements that are targeted to site content and audience. These advertisements are administered, sorted, and maintained by Google, and they can generate revenue on either a per-click or per-impression basis.

The above part was for people who don’t know about Google adsense, and the below part is for people who are using Adsense.

Today i will show you that how can you rotate random sizes of Adsense ads in your website, for example you can add 2 different types of Adsense ads which will keep rotation when user visits your website, sometime they will see 200×200 size AD and sometime they will see 250×300 size AD

How to Generate Ads for Rotating

Open your AdSense dashboard and under My Ads, click “Create new ad unit.” Set Ad Size as 200×200 (if you need one of your Ads as 200×200) and click the “Save and Get Code” button to generate the JavaScript code for your  AdSense ad. The default code is something like this:

 

Now Generate another Adsense Ad code for Rotating with the above Ad, and save both the generated Adsense code in a text file, now copy the below code:

 

 

 

And Replace “Your-PUB-ID-Here” with yours and both the “Ad-slot-code” with your ad slot code which you had generated, and also replace the height/width of the above codes.

 

You Don’t need any plugin to rotate your ads, just use the simple codes given.

One Response to “How to Make A Rotating Google Adsense AD”
  1. Jewel