获取所有Adwords广告系列似乎存在问题。当我目前尝试检索所有广告系列时,我无法获得视频广告系列。我通过文档的理解是它不应该做这么多工作。另一个SO用户遇到了类似的问题Whats happens with GET Video Adwords Campaigns
这是Google Adwords错误,弃用错误,还是我最终搞砸了?
require_once('Google/Api/Ads/AdWords/Lib/AdWordsUser.php');
$oauth2Info = array('client_id' => $client_id, 'client_secret' => $client_secret, 'access_token' => $access_token);
$user = new AdWordsUser();
$user->SetDeveloperToken($developer_token);
$user->SetOAuth2Info($oauth2Info);
$customerService = $user->GetService('CustomerService', 'v201509');
$customer = $customerService->get();
$user->SetClientCustomerId($customer->customerId);
$campaignService = $user->GetService('CampaignService', 'v201509');
$selector = new Selector();
$selector->fields = array('Id', 'Name');
$selector->ordering[] = new OrderBy('Name', 'ASCENDING');
$selector->paging = new Paging(0, 500);
$page = $campaignService->get($selector);
页面值仅包含非视频广告系列。我正在升级API,所以也许它无法获取API版本v201509的视频?
答案 0 :(得分:0)
Google Adwords API目前不支持视频广告系列。
答案 1 :(得分:0)
借助视频效果报告,您可以收集一些数据:https://developers.google.com/adwords/api/docs/appendix/reports/video-performance-report。
这是您通过API获取TrueView(视频Adwords)的唯一数据。