function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
     $this->keys = array("name:required" => "string:3,255", "address_1" => "string:255", "address_2" => "string:255", "address_3" => "string:255", "city" => "string:255", "state_region_name" => "string", "postal_code" => "string:255", "country_name" => "string", "email" => "string:255", "phone" => "string:255", "fax" => "string:255", "url" => "string:255", "notes" => "string:4096", "billing_term" => "string:4096", "meta_data" => "string:4096", "parent_advertiser_id" => "integer", "internal_id" => "string:255");
     if (!class_exists("FreeWheel_Agency", FALSE)) {
         $this->keys['agency_id'] = "integer";
     }
 }
 protected function call($xml, $type, $summary = FALSE)
 {
     $xml = parent::call($xml, $type);
     if ($this->method == "DELETE") {
         return $xml;
     }
     if ($xml !== FALSE) {
         foreach ($xml as $num => $arr) {
             if ($summary === FALSE) {
                 //Multiples
                 $subs = array("schedule", "delivery", "budget");
                 if (is_array($xml[$num])) {
                     foreach ($xml[$num] as $k => $v) {
                         if (in_array($k, $subs)) {
                             foreach ($xml[$num][$k] as $kk => $vv) {
                                 $xml[$num][$kk] = $this->cdata_remove((string) $vv);
                             }
                             unset($xml[$num][$k]);
                         }
                     }
                 }
             } else {
                 //Summary
                 $subs = array("forecast", "schedule", "delivery");
                 if (in_array($num, $subs)) {
                     if (is_array($xml[$num])) {
                         foreach ($xml[$num] as $k => $v) {
                             $xml[$k] = $this->cdata_remove((string) $v);
                         }
                         unset($xml[$num]);
                     }
                 }
                 $xml['ad_units'] = (array) $xml['ad_units'];
             }
         }
         return $xml;
     }
     return false;
 }
 function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
     $this->keys = array("partner_network_id:required" => "integer");
 }
 function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
 }
 function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
     $this->keys = array("name" => "string:3,255", "description" => "string:4096", "metadata" => "string:4096", "partner_category_type:required" => "enum:CONTENT_OWNER,DISTRIBUTOR");
 }
 function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
     $this->keys = array("name" => "string:255", "partner_network_id" => "integer", "address_1" => "string:255", "address_2" => "string:255", "address_3" => "string:255", "city" => "string:255", "state_region_name" => "string", "postal_code" => "string:255", "country_name" => "string", "email" => "string:255", "phone" => "string:255", "fax" => "string:255", "url" => "string:255", "notes" => "string:4096", "billing_term" => "string:4096", "meta_data" => "string:4096");
 }
 function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
     $this->keys = array("name:required" => "string:3,255", "advertiser_id" => "integer", "description" => "string:4096", "campaign_type" => "enum:TEMPLATE,PROPOSAL,CAMPAIGN", "internal_id" => "string:255");
 }
 function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
     $this->keys = array("name:required" => "string:255", "description" => "string:4096", "client_po" => "string:255", "internal_id" => "string:255", "campaign_id:required" => "integer");
 }
 function __construct($api_key = NULL)
 {
     parent::__construct($api_key);
     $this->keys = array("price_model:required" => "enum:CPM", "price" => "decimal:16,2", "ad_unit_id:required" => "integer", "placement_id" => "integer");
 }