Forum Moderators: martinibuster

Message Too Old, No Replies

phpAdsNew and Adsense - is it legit?

         

Play_Bach

12:56 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Anybody know if using a randomizer script like phpAdsNew to toggle back and forth between Adsense and YPN ads is legit? It was my understanding that the code had to be visible on the page that the ads were displayed - not remotely fed in.

mrSEman

1:05 am on Nov 23, 2005 (gmt 0)

10+ Year Member



I don't know but I would add: What happens when Googlebot comes knocking and finds YPN ads? (and vise versa) or does this script handle that?

alika

1:14 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As long as Adsense and YPN are not shown simultaneously on the page, using phpadsnew is ok. The key is not to modify the code, which is against the TOS of both. The challenging part is when you are serving multiple ads on the page and when one serves Yahoo and the other Adsense.

Play_Bach

1:16 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



using phpadsnew is ok.

Can you please clarify the approval source? Thanks.

The concern/question I have is that neither the Adsense or YPN code shows on the page the visitor is looking at - isn't that against both companies TOS?

Play_Bach

3:20 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[From the Adsense TOS]

Code Modification

Any AdSense ad code, search box code, or referral code must be pasted directly into Web pages without modification. AdSense participants are not allowed to alter any portion of the ad code or change the layout, behavior, targeting, or delivery of ads for any reason.

The phrase "must be pasted directly into Web pages" is what I'm talking about. Doesn't that mean you ought to be able to see the Adsense code using view source on the page that's showing the ads?

mrSEman

3:29 am on Nov 23, 2005 (gmt 0)

10+ Year Member



It doesn't matter if your ads are coming from php, asp, or straight html files, for the ad to show it will be in the page's code that is sent to the browser. What I guess they don't want you to do is include it in a seperate javascript file. I have many sites written in ASp and the ad code is in a function, in a seperate file, that is called when I load a page with certain criteria. I could write code that alternates between showing adsense ads and a picture of bugs bunny and it wouldn't be against TOS. What does matter is when I send the code to the web page it must be intact as was generated by google.

Play_Bach

3:38 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So just to clarify...
If I were to view source of a page from your site for example, would I be able to see the Adsense code or not? Thanks.

mrSEman

3:46 am on Nov 23, 2005 (gmt 0)

10+ Year Member



Yes you would se the Adsense code as it was generated by Google.

alika

3:58 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I checked with Google a year or so ago if phpadsnew is allowed, and they said yes. Same with Yahoo when we started with them. The best recourse for you is to go to the source and ask them. I know of a number of folks who use phpadsnew to serve their Adsense ads, including some mods of this forum. To be safe though, get it straight from the horse's mouth.

Play_Bach

3:58 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes you would se the Adsense code as it was generated by Google.

OK, well that sounds fine. However, the site I'm aware of using phpAdsNew to toggle between Adsense and YPN, there is no way to see the code.

ZenArcher

11:07 am on Nov 23, 2005 (gmt 0)

10+ Year Member



OK, well that sounds fine. However, the site I'm aware of using phpAdsNew to toggle between Adsense and YPN, there is no way to see the code.

If that is the case, then they are generating the code incorrectly. It should appear as though it were simply pasted onto the page. phpAdsNew has settings that allow for HTML ads (use), and for modifying the ad to track clicks (don't use).

Ad server programs, server-side includes, and php includes, used correctly, can all place the javascript ad code on the page within the TOS. Be aware that if multiple ad blocks are used, then the program needs to serve only AdSense or YPN blocks to that page and not intermix them.

macavity

12:12 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



If that is the case, then they are generating the code incorrectly. It should appear as though it were simply pasted onto the page. phpAdsNew has settings that allow for HTML ads (use), and for modifying the ad to track clicks (don't use).

Hmmm, I'm not sure that's true with PAN. I have it set up that way and I still get PAN code in the page source, rather than the original AdSense code. I've just had a quick look at the code at jensense too, seems to be the same.

I'm no expert though, perhaps I'm missing something?

Mac

esllou

12:30 pm on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yeah, in PAN, you see the PAN code, you don't see the AS code.

alika

1:04 pm on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Imagine if you are using Adsense --> Yahoo --> Burst ---> Tribal --Advertising.com ---> Fastclick on one same code (leaderboard) interchanging them all. If you see all their codes, can you imagine how long your Javascript will look like? That's why you only see the PAN code, and the Adsense codes remain intact inside.

Geez ... send an email to Adsense if you can't believe the folks who respond here. We've been using PAN for so long now and I have not been banned or anything. G says it was ok. Get it straight from the horse's mouth!

mrSEman

1:48 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



Ok, I'll take your word for it. If G says it's ok then it's ok and buddy can check that out easily by firing an email to support.

If you see all their codes, can you imagine how long your Javascript will look like?

I just figured that with 'PHP' in the name of the product, the code swap would be done server side. It's what I do. I also figured that a product of this nature would do well to comply with AS TOS.

ZenArcher

4:42 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



If that is the case, then they are generating the code incorrectly. It should appear as though it were simply pasted onto the page. phpAdsNew has settings that allow for HTML ads (use), and for modifying the ad to track clicks (don't use).

Correction: I've checked, and it's the "Text Ad" setting in phpAdsNew that passes along the code unaltered (not "HTML Ad"). You also need to serve up the ad in "local mode" invocation. "Local mode" means the processing occurs on the back end php side (rather than "javascript invocation" which generates phpAdsNew javascript code).

Sorry for the mixup.

Play_Bach

6:19 pm on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hmmm - very interesting. So apparently phpAdsNew is OK - all that's necessary is that the ads show - not the code? I wonder why Google doesn't say so in their TOS?

macavity

6:37 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



I'm sure you're right but that doesn't work for me (I'm getting the php code instead of HTML and no ads). Perhaps this is due to the way the CMS I use works and is nothing to do with PAN, but at the moment remote Javascript invocation of an HTML ad is the only way I can get ads to show...

Mac

ZenArcher

10:31 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



I'm sure you're right but that doesn't work for me (I'm getting the php code instead of HTML and no ads). Perhaps this is due to the way the CMS I use works and is nothing to do with PAN, but at the moment remote Javascript invocation of an HTML ad is the only way I can get ads to show...

It's tricky. If your CMS is template based, then you should be able to place the code in a variable with the "Store the banner inside a variable so it can be used in a template" option.

I haven't used this option, but perhaps the phpAdsNew docs give an example. Also, try googling "[your cms] and phpadsnew"; I'm sure that someone's already solved this problem.

sailorjwd

2:00 pm on Nov 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Installing PHPadsnew...

I can't even use CHMOD command to enable writing to the config file.

Is anything easy?

ZenArcher

2:46 pm on Nov 24, 2005 (gmt 0)

10+ Year Member



I can't even use CHMOD command to enable writing to the config file.

It may be called "CHMOD", but most people use simple ftp clients, not *nix. To enable writing access in a file with an ftp client, select the file, then use the 'set permissions' command in your ftp client. You should see a dialog box with a matrix of choices:

user : [x]read [x]write [x]execute 
group: [x]read [x]write [x]execute
world: [x]read [x]write [x]execute

and a textbox to enter a number. Check/tick all the choices (or enter "777"), click save or accept or OK. The file is now writable. Reset the access to "644" after you've completed the install.