|
Posted by Jeffrey on 10/13/06 17:15
If all you want to do is record clicks, you can do it with just plain
php.
AdSense adds all sorts of complexity in an effort to make it harder to
mess with the ads while maintaining flexibility. For instance,
consider the following code that you might see in another (pretty
basic) ad program:
<a href="myadserver.com/record_click.php?id=23423423"><img
src="myadserver.com/record_impression.php?id=23423423" width="728"
height="90"></a>
That's fine, but you can't change it to simple text ads easily. So
maybe you have users insert an iframe, but then someone decides that
they'd rather have an ad space that's 300x150, which makes your ads
look crappy. And then 3 years later something way cooler than iframes
comes along, but you're reliant on the user to change the code on all
of their pages. By using javascript to add the ad code dynamically,
they solve those problems and probably a lot of others. They also
maintain more or less complete flexibility.
-Jeff
kelvoon@hotmail.com wrote:
> I am currently doing a pay per click system (like google Adsense).
> I am wondering how is the pay per click process.
> Does anyone have the idea?
> Can it be done using php and javascript only?
[Back to original message]
|