'http://www.adroll.com/home', 'www-signup' => 'http://www.adroll.com/tag/wordpress?r=ZPERWFQF25BGNG5EDWYBUV', ); class OX_Adnet_Adroll extends OX_Adnet { /** * The short name for any ad of this type, used when generating a unique name for the ad, or creating class files */ var $shortName = 'Adroll'; /** * The URL for the home page of the ad network site */ var $url = 'http://www.adroll.com'; /** * The name of the network. Used when displaying ads by network. */ var $networkName = 'AdRoll'; function OX_Adnet_Adroll() { $this->OX_Adnet(); } function get_default_properties() { $properties = array( 'slot' => '', ); return $properties + parent::get_default_properties(); } function import_detect_network($code){ return ( preg_match('/src="http:\/\/(\w*).adroll.com\/(\w*)\//', $code, $matches) !==0 ); } function import_settings($code) { // Import parent settings first! parent::import_settings($code); if (preg_match("/http:\/\/(\w*).adroll.com\/(\w*)\/(\w*)\/(\w*)/", $code, $matches)!=0) { $this->set('account-id', $matches[3]); $this->set('slot', $matches[4]); $code = str_replace("http://{$matches[1]}.adroll.com/{$matches[2]}/{$matches[3]}/{$matches[4]}", "http://{$matches[1]}.adroll.com/{$matches[2]}/{{account-id}}/{{slot}}", $code); } $this->set('code', $code); } function _form_settings_help() { ?>

Configuration is available through Adroll's site. Specific links to configure this ad unit are below:

*/ ?>