[nycphp-talk] AdSense scripts?
Keith J Richardson
Keith.Richardson at thompsonhealth.com
Wed Dec 17 13:23:11 EST 2003
I did notice that google caches some of the colors/layouts - i changed it from vertical to horizontal on one site, and the box showed up horizontal, but the ads went vertical, so i had a bunch of white space. i hope it doesnt keep the colors the same for each page, and when someone gets it changed to their pref, the rest of them have to deal with pink and purple :P
-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]On Behalf Of jon baer
Sent: Wednesday, December 17, 2003 12:53 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] AdSense scripts?
this seems like a good idea ... but unfortunatley (i think?) the ads are
pretty random / dynamic so it might be hard, maybe i could take a 100
impressions and then rotate the db? thanks for the suggestion.
- jon
----- Original Message -----
From: "Keith J Richardson" <Keith.Richardson at thompsonhealth.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Wednesday, December 17, 2003 8:05 AM
Subject: RE: [nycphp-talk] AdSense scripts?
I use google's adsense - and just use the generated code.
If it were me, id store the values in a text file, or a mysql database. Then
i would have a php file that i would include, say google.php - that would
read the data in from the database, and then have a function, say
print_adcode() that would print out the javascript adcode.
I think that should be all that you would need - but I havent played with it
much myself other than getting the initial colors :)
But for client, I would have to say the same thing, just suck the users data
out of the mysql database, stick it in a session, and work it that way. Have
default data, so that if the client doesnt want the colors to change, then
the designer has it their way :P
-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]On Behalf Of jon baer
Sent: Tuesday, December 16, 2003 5:57 PM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] AdSense scripts?
im stucking between the client wanting adsense integrated (no problem) vs.
the designer wanting it to look their way (problem), after figuring out
google's adsense through their javascript includes ive noticed i can suck
in, fopen, the content and preg_replace some data without a problem ...
is there a script/class already out there for modifying the layout? (its
also stated in google that modification is not really allowed, but its
really the same code passing through php) ...
anyone else have experience w/ it?
- jon
pgp key: http://www.jonbaer.net/jonbaer.asc
fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list