Derek Joseph Olson
Derek Joseph Olson

Reputation: 798

Why Can't I Get Google Adwords Video Campaigns?

There seems to be an issue for getting all Adwords campaigns. When I currently try to retrieve all campaigns, I don't get the video campaigns. My understanding through the documentation was that it shouldn't be this much work. Another SO user had the similar problem Whats happens with GET Video Adwords Campaigns

Is this a Google Adwords error, deprecation error, or something that I messed up on my end?

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);

The page value only contains non-video campaigns. I'm in the process of upgrading API, so maybe it can't get videos for API version v201509?

Upvotes: 0

Views: 420

Answers (2)

Olivier
Olivier

Reputation: 442

You can collect some data thanks to the video performance report : https://developers.google.com/adwords/api/docs/appendix/reports/video-performance-report.

This is the only data you can get on TrueView (video Adwords) through the API.

Upvotes: 0

Derek Joseph Olson
Derek Joseph Olson

Reputation: 798

Google Adwords API does not currently support video campaigns.

Upvotes: 1

Related Questions