Module Rmobio::Ads::AdSense
In: ads/ad_sense.rb

Methods

Public Instance methods

this returns an ad from Google‘s mobile AdSense, given a supplied set of keywords

  • keywords - keywords to use for search
  • ad Client - your Google adsense ID

$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’];

[Validate]