Adsense functionality

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Adsense functionality

Post by m2babaey »

Hi
You know you place a piece of code into your pages and that code shows ads.
I can imagine an algorithem enabling us to manage clicks. ( when visitors click on the ad, i know how to do whatever that is required)
But how about the display? we give them a code ( Java or PHP. let's work with php at this time) and that code should display an ad.
Let's assume the code knows the keywords for that page. then the code should connect to the adcenter ( that is on another server) database and search for related ads. How can that code do this?
If I understand this part, I think the rest should be easier
thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

All the clicks have some tracking reference unique to your membership. They do count page impressions through the little image it displays too I think.

They never give you PHP or Java, it's always just JavaScript.
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

generally you give a client side script , not a server side, thats what I know.
For example, most known adsense give javascript code so that your server can read.
Post Reply