server side of adsense
Posted
by
dole
on Stack Overflow
See other posts from Stack Overflow
or by dole
Published on 2011-01-02T11:33:30Z
Indexed on
2011/01/02
11:53 UTC
Read the original article
Hit count: 180
Hi there
Google ask you to add a javascript code to your page and it will generate the links. The script has some id which are sent to the server, but I don't know how.
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567890123456";
/* snipet_name */
google_ad_slot = "123456789";
google_ad_width = 728;
google_ad_height = 90;
//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
I'm curious to know how the client and slot ids are send to the server. Javascript is client side and I wish to know how those parameters are sent to the server in order to query a db and to return the links.
A link, sample, explanation related to PHP will work great for me. TY
© Stack Overflow or respective owner