homepage Welcome to WebmasterWorld Guest from 54.227.34.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

    
adsense on localhost?
will google hunt me down?
koen

5+ Year Member



 
Msg#: 11119 posted 11:50 am on Dec 19, 2005 (gmt 0)

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 11119 posted 12:07 pm on Dec 19, 2005 (gmt 0)

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

Jean

5+ Year Member



 
Msg#: 11119 posted 12:16 pm on Dec 19, 2005 (gmt 0)


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

WebmasterWorld Senior Member jetteroheller us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 11119 posted 12:16 pm on Dec 19, 2005 (gmt 0)

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

10+ Year Member



 
Msg#: 11119 posted 12:26 pm on Dec 19, 2005 (gmt 0)

just remove your publisher code :)

but that test option is cool! thnx

jetteroheller

WebmasterWorld Senior Member jetteroheller us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 11119 posted 12:44 pm on Dec 19, 2005 (gmt 0)

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

10+ Year Member



 
Msg#: 11119 posted 8:06 pm on Dec 20, 2005 (gmt 0)

<?php

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

echo $adsense_js;

} else {

echo $adsense_placeholder;

}

?>

ashii

5+ Year Member



 
Msg#: 11119 posted 5:28 am on Dec 21, 2005 (gmt 0)

google_adtest='on';

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

martinibuster

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



 
Msg#: 11119 posted 5:36 am on Dec 21, 2005 (gmt 0)

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

5+ Year Member



 
Msg#: 11119 posted 8:16 am on Dec 21, 2005 (gmt 0)

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

10+ Year Member



 
Msg#: 11119 posted 5:26 pm on Dec 21, 2005 (gmt 0)

<?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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved