SetClientCustomerId() публичный Метод

Sets the client customer ID for this user.
public SetClientCustomerId ( string $clientCustomerId )
$clientCustomerId string the client customer ID for this user
Пример #1
0
<?php

/**
 *
 * PHP version 5
 *
 * Created by PhpStorm.
 * User: Георгий
 * Date: 30.10.13
 * Time: 22:44
 */
require_once 'vendor/autoload.php';
$user = new AdWordsUser();
$user->SetClientCustomerId(0);
$campaignService = $user->GetService('CampaignService', 'v201605');
$selector = new Selector();
$selector->fields = ['Id', 'Name', 'Status', 'ServingStatus', 'StartDate', 'EndDate', 'Amount', 'BudgetId', 'TargetGoogleSearch', 'TargetSearchNetwork', 'TargetContentNetwork', 'TargetPartnerSearchNetwork'];
$result = $campaignService->get($selector);
var_dump($result);
Пример #2
0
 private function createUser()
 {
     $user = new \AdWordsUser(null, $this->config->getDeveloperToken(), $this->config->getUserAgent(), null, null, $this->config->getOauth2Info());
     $user->SetClientCustomerId($this->config->getClientCustomerId());
     LoggerStreamWrapper::setLogger($this->logger);
     $handler = LoggerStreamWrapper::register();
     \Logger::LogToStream(\Logger::$SOAP_XML_LOG, $handler);
     \Logger::LogToStream(\Logger::$REQUEST_INFO_LOG, $handler);
     \Logger::LogToStream(\ReportUtils::$LOG_NAME, $handler);
     // Log every SOAP XML request and response.
     $user->LogAll();
     return $user;
 }