How to test Google Adsense Ads

google_adsenseWe 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”;

  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.


Related posts:

  1. Google to stop Adsense Refferals
  2. How to add Adsense to Blogger
  3. Google Adsense Payment Tracking
  4. Google Buzz – Google attempts social networking again
  5. Internet Speed Test – Know how much bandwidth you get



The Author
Alfred is a Pilot & Tech blogger from Bangalore, India. He has worked with DSL providers like AOL, SBC, Verizon & Covad as a tech specialist. Currently he is pursuing a career in aviation.
View other post by Alfred

Discover and Share Take a moment to share this post on social networking sites !

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader. If you don't have a feed reader, you can always have these articles delivered to your email inbox every day. Click here to sign up.

Trackbacks & Pingbacks


Comments

Alfred,

I think that this is a great find due to the fact that I am new to blogging and have not decided on the final layout of my site. It will allow me to test as much as I would like without being “scolded” by Google.

Keep up the good work.

Juscelino M. Acevedo’s last blog post..(My) Top 5 Hip-Hop Sites

Glad that I was able to help you out.
Its been a learning process for me with the new site. Got to learn so much about CSS just because I had to get the job done.

If you find yourself in a similar situation I recommend you check out smallpotato wordpress design guide. Sorry forgot the url, just search.

Again thanks for the comment.

Hey that is fantastic.

I’ve always left the ads in when doing development. Although I’ve never got into trouble with google, it has made a mess of my statistics.

I’ve never seen this before, it’ll make life a lot easier!

Thanks!!

Haven’t tried this trick yet, but is it authorized by Google?

This is Google’s reply to the question. Try it your self, you arent changing the script its only comments and will work only if google allows it.

Leave a comment

(required)

(required)



Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>