Thursday, May 14, 2009

How to test Google Adsense Ads

We have been designing a new sister site and in the process had to test Adsense ads to fit the layout of the new theme. According to Google, we are not allowed to display Adsense on pages that are under construction. So how are we to test how the ad unit will look ? Finally we found a solution…

How to test / preview Google Adsense Ads

  1. Get the Adsense code for the ad you wish to test ( You should know how to do this ).

  2. Add the following code after the second line of the adsense code

  3. google_adtest = “on”;
    <!--
    google_ad_client = "pub-5235289995869683";
    //blogpostmiddle
    google_ad_slot = "1352390560";
    google_ad_width = 468;
    google_ad_height = 60;
    // -->

  4. You new code should look like this

  5. test_adsense
  6. The ads will be displayed as a test and will not be counted towards the normal page displays or eCPM.


Hope this helps some of you. Feel free to leave your comments below.

Source

No comments: