/**
  * The constructor for the Yandex.Direct API SOAP client factory.
  * @param AdsUser $user the user which the client will use for credentials
  * @param string $version the version to generate clients for
  * @param string $server the server to generate clients for
  * @param bool $validateOnly if the clients should be created in validateOnly mode
  * @param bool $partialFailure if the service should be created in partialFailure mode
  */
 public function __construct(AdsUser $user, $version, $server, $validateOnly, $partialFailure)
 {
     $headerOverrides = array();
     if (isset($validateOnly) || isset($partialFailure)) {
         $headerOverrides['validateOnly'] = $validateOnly;
         $headerOverrides['partialFailure'] = $partialFailure;
     }
     parent::__construct($user, $version, $server, 'ydirect', $headerOverrides);
 }
 /**
  * The constructor for the AdWords API SOAP client factory.
  * @param AdsUser $user the user which the client will use for credentials
  * @param string $version the version to generate clients for
  * @param string $server the server to generate clients for
  * @param bool $validateOnly if the clients should be created in validateOnly
  *     mode
  * @param bool $partialFailure if the service should be created in
  *     partialFailure mode
  */
 public function __construct(AdsUser $user, $version, $server, $validateOnly, $partialFailure)
 {
     if ($version >= 'v201109' && $user->GetHeaderValue('clientEmail') != null) {
         throw new Exception('The header "clientEmail" is not compatible with ' . 'versions v201109 and later. Use clientCustomerId instead.');
     }
     $headerOverrides = array();
     if (isset($validateOnly) || isset($partialFailure)) {
         $headerOverrides['validateOnly'] = $validateOnly;
         $headerOverrides['partialFailure'] = $partialFailure;
     }
     parent::__construct($user, $version, $server, 'adwords', $headerOverrides);
 }
 /**
  * The constructor for Google's DoubleClick for Publishers API SOAP client
  * factory.
  * @param AdsUser $user the user which the client will use for credentials
  * @param string $version the version to generate clients for
  * @param string $server the server to generate clients for
  */
 public function __construct(AdsUser $user, $version, $server)
 {
     parent::__construct($user, $version, $server, 'publisher');
 }