Module | Rmobio::Ads::AdSense |
In: |
ads/ad_sense.rb
|
this returns an ad from Google‘s mobile AdSense, given a supplied set of keywords
$GLOBALS[‘google’][‘ad_type’]=’text’; $GLOBALS[‘google’][‘channel’]=’8618723264’; $GLOBALS[‘google’][‘client’]=’pub-0061196910475770’; $GLOBALS[‘google’][‘format’]=’mobile_single’; $GLOBALS[‘google’][‘https’]=$_SERVER[‘HTTPS’]; $GLOBALS[‘google’][‘host’]=$_SERVER[‘HTTP_HOST’]; $GLOBALS[‘google’][‘ip’]=$_SERVER[‘REMOTE_ADDR’]; $GLOBALS[‘google’][‘markup’]=’xhtml’; $GLOBALS[‘google’][‘oe’]=’utf8’; $GLOBALS[‘google’][‘output’]=’xhtml’; $GLOBALS[‘google’][‘ref’]=$_SERVER[‘HTTP_REFERER’]; $GLOBALS[‘google’][‘url’]=$_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’]; $GLOBALS[‘google’][‘useragent’]=$_SERVER[‘HTTP_USER_AGENT’];