OX_Ad($aAd); } /** * This function is called statically from the ad engine. Use this function to put any hooks in the ad engine that you want to use. */ function register_plugin(&$engine) { $engine->addAction('ad_network', get_class($this)); } function get_network_property_defaults() { $properties = array( 'account-id' => '', 'slot' => '', ); return $properties + parent::get_network_property_defaults(); } function get_ad_formats() { return array('all' => array('728x90', '468x60', '234x60', '120x600', '160x600', '120x240', '336x280', '300x250', '250x250', '200x200', '180x150', '125x125')); } 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) { $this->set_property('account-id', $matches[3]); $this->set_property('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); } parent::import_settings($code); } function _form_settings_help() { ?>
Configuration is available through Adroll's site. Specific links to configure this ad unit are below: