Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-05 16:55:03

gell
New Member
Registered: 2005-03-15
Posts: 2

conditional display of google ads

hi,

I want to display Google ads, but only to visitors who came to the site via Google. Any ideas how to check for the Referer within Txp?

thanks.

Offline

#2 2006-08-05 18:07:49

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: conditional display of google ads

Actually, I think that that is against the google TOS for adsense.

You should read up on it.

Last edited by Walker (2006-08-05 18:08:03)

Offline

#3 2006-08-05 18:38:00

gell
New Member
Registered: 2005-03-15
Posts: 2

Re: conditional display of google ads

gosh, thanks for the pointer, I didn’t consider this at all and will take a look.

Offline

#4 2006-08-05 18:58:49

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: conditional display of google ads

Err, I don’t see anything in the TOS that would forbid that. I did that on a site myself for a while. Not that you should take my word for it, better check them yourself.

To display that, you’d need a small plugin or a snippet of php that checks the referrer.

Offline

#5 2006-08-05 19:14:58

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: conditional display of google ads

Yeah, I read through the Terms & Conditions and there’s a grey area here. You might want to contact them about it. The wording of it is failry vague and I’m not sure if this would be something that goes around their quote:

Implementation and Operation of Ads, Search Results, and Referrals. You agree to comply with the specifications provided by Google from time to time to enable proper delivery, display, tracking, and reporting of Ads, Links, Search Results, Referral Buttons, and Google Brand Features (as defined in Section 12 below) in connection with Your Site(s), including without limitation by not modifying the JavaScript or other programming provided to You by Google in any way, unless expressly authorized in writing by Google (including by electronic mail).

Offline

#6 2006-08-05 19:15:42

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: conditional display of google ads

There was some other bit about pasting code in that is not altered or affected by anything on the page but when I went back to find it, I couldn’t.

Offline

#7 2006-08-05 23:39:34

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: conditional display of google ads

You could do this without modifying their code by wrapping it in PHP and checking the contents of the HTTP_REFERER variable.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

Board footer

Powered by FluxBB