本文整理汇总了PHP中AdWordsUser::SetClientCustomerId方法的典型用法代码示例。如果您正苦于以下问题:PHP AdWordsUser::SetClientCustomerId方法的具体用法?PHP AdWordsUser::SetClientCustomerId怎么用?PHP AdWordsUser::SetClientCustomerId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdWordsUser
的用法示例。
在下文中一共展示了AdWordsUser::SetClientCustomerId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AdWordsUser
<?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: createUser
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;
}