'AdRoll', 'shortname' => 'adroll', 'www' => 'http://www.adroll.com/', 'www-create' => 'http://www.adroll.com/home', 'www-signup' => 'http://www.adroll.com/tag/wordpress?r=ZPERWFQF25BGNG5EDWYBUV', ); /* INITIALISATION All functions in here called at startup (after other plugins have loaded, in case we need to wait for the widget-plugin). */ class Ad_AdRoll extends Ad_Generic { function Ad_AdRoll(){ $this->Ad_Generic(); } function render_ad(){ /* */ //http://re.adroll.com/a/ //http://c.adroll.com/r/ $code =''; $code .= ''; $code .= ''; $code .= ''; $code .= ''; return $code; } function save_settings_network() { $this->p['slot']=strip_tags(stripslashes($_POST['adsensem-slot'])); $this->p['code']=stripslashes($_POST['adsensem-code']); } function import_detect_network($code){ return ( preg_match('/src="http:\/\/(\w*).adroll.com\/(\w*)\//', $code, $matches) !==0); } function import_settings($code){ /* */ if(preg_match("/http:\/\/(\w*).adroll.com\/(\w*)\/(\w*)\/(\w*)/", $code, $matches)!=0){ //ACCOUNT ID / SLOT ID $_POST['adsensem-account-id'] = $matches[3]; $_POST['adsensem-slot'] = $matches[4]; } $this->save_settings(); } function _form_settings_help(){ ?>
Configuration is available through Adroll's site. Specific links to configure this ad unit are below: