public function __construct($debug_level = 0)
 {
     if (self::$_debug_level < 0) {
         self::$_debug_level = $debug_level;
         self::$_ch = curl_init();
         curl_setopt(self::$_ch, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt(self::$_ch, CURLOPT_FOLLOWLOCATION, 1);
         curl_setopt(self::$_ch, CURLOPT_USERAGENT, 'MediaMath PHP Library 1.0');
         if ($method == 'login') {
             $username = $args['name'];
         } else {
             $username = self::$_auth['name'];
         }
         curl_setopt(self::$_ch, CURLOPT_COOKIEFILE, self::$_cookie_folder . "mediamath_cookie-" . mt_rand() . ".file");
         curl_setopt(self::$_ch, CURLOPT_AUTOREFERER, 1);
         if (self::$_debug_level >= 2) {
             curl_setopt(self::$_ch, CURLOPT_VERBOSE, 1);
         }
         $this->AdServers = new MediaMathAPI_AdServers();
         $this->Advertisers = new MediaMathAPI_Advertisers();
         $this->Agencies = new MediaMathAPI_Agencies();
         $this->Campaigns = new MediaMathAPI_Campaigns();
         $this->Campaign_Watermarks = new MediaMathAPI_Campaign_Watermarks();
         $this->Concepts = new MediaMathAPI_Concepts();
         $this->Creatives = new MediaMathAPI_Creatives();
         $this->Organizations = new MediaMathAPI_Organizations();
         $this->Pixels = new MediaMathAPI_Pixels();
         $this->Reports = new MediaMathAPI_Reports();
         $this->Segments = new MediaMathAPI_Segments();
         $this->Strategies = new MediaMathAPI_Strategies();
         $this->Strategies->Concepts = new MediaMathAPI_Strategy_Concepts();
         $this->Strategies->DayParts = new MediaMathAPI_Strategy_DayParts();
         $this->Strategies->SupplySources = new MediaMathAPI_Strategy_SupplySources();
         $this->TargetDimensions = new MediaMathAPI_TargetDimensions();
         $this->Verticals = new MediaMathAPI_Verticals();
     }
 }