Welcome to WebmasterWorld Guest from 54.226.189.112

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

adsense on localhost?

will google hunt me down?

     

koen

11:50 am on Dec 19, 2005 (gmt 0)

10+ Year Member



I've read the program policies etc but they're not very specific about this matter. Anyone knows whether this could cause problems? It's for layout testing purposes.

rj87uk

12:07 pm on Dec 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could you not place an image for testing? this would be a safer option.

Jean

12:16 pm on Dec 19, 2005 (gmt 0)

10+ Year Member




google_adtest='on';

This was a reply from AdSense support when I enquired about using AdSense whilst testing sites so it's a safe procedure.

[edited by: Jean at 12:19 pm (utc) on Dec. 19, 2005]

[edited by: martinibuster at 5:32 am (utc) on Dec. 21, 2005]
[edit reason] Removed email excerpt per tos. [/edit]

jetteroheller

12:16 pm on Dec 19, 2005 (gmt 0)

WebmasterWorld Senior Member jetteroheller is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



For layout testing with a graphic:

I use in my CMS a special work mode to show red <DIV> where the ads are.

It's just a mouse click to test in this moed

r3nz0

12:26 pm on Dec 19, 2005 (gmt 0)

10+ Year Member



just remove your publisher code :)

but that test option is cool! thnx

jetteroheller

12:44 pm on Dec 19, 2005 (gmt 0)

WebmasterWorld Senior Member jetteroheller is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



just remove your publisher code :)

To dangerouse.

Experiments like this tends to be by mistake in the internet. Imagine all Your site without Your publisher code.

instinct

8:06 pm on Dec 20, 2005 (gmt 0)

10+ Year Member



<?php

if ($_SERVER['SERVER_NAME'] == 'yourlivedomain.com') {

echo $adsense_js;

} else {

echo $adsense_placeholder;

}

?>

ashii

5:28 am on Dec 21, 2005 (gmt 0)

10+ Year Member



google_adtest='on';

Is it official?No word about it on help pages at google adsense?

martinibuster

5:36 am on Dec 21, 2005 (gmt 0)

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I have gifs representing the sizes I use that I drop in to see what it looks like. I create more in photoshop if it's using special colors.

Jean

8:16 am on Dec 21, 2005 (gmt 0)

10+ Year Member



Is it official?

Well, it was a reply from AdSense support. Unfortunately, I can't quote you their email but my question was about having AdSense on a site that was under construction but already accessible to quite a number of people. I wanted the ads to show but didn't want them to be counted.
AdSense support told me to add

google_adtest='on';
within the AdSense javascript code.

So unless this is on a case by case basis it should be OK to use it and simpler than inserting gifs.

gregdi

5:26 pm on Dec 21, 2005 (gmt 0)

10+ Year Member



<?php

if ($_SERVER['SERVER_NAME'] == 'yourlivedomain.com') {

echo $adsense_js;

} else {

echo $adsense_placeholder;

}

?>

I think for those who have php access on their test server this is the best solution. If you put it in a php includes file you can use it on any page that you would normally use that size of adsense ad.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month