Google Ads Campaigns inaccessible via API Calls

62 views
Skip to first unread message

Erik Gray

unread,
Oct 8, 2020, 1:20:32 PM10/8/20
to AdWords API and Google Ads API Forum
Our API key is not allowing us to access new Campaigns from Accounts that our Account has access to. We are simply receiving a subset of the Campaigns that exist under the Account ID we are requesting for. Would like to understand why or if we are calling with a filter we should not be. 

Our Account ID: 688-509-5816

Example 1: 
Account we are working with Google Ads ID: 508-781-5391
Campaign ID we are unable to access: 11228279179
There is October Data for this Campaign

Example 2: 
Account we are working with Google Ads ID: 206-397-9588
Campaign ID we are unable to access: 11246543414
There is October Data for this Campaign

Our API call:

public function testGetCampaigns() {
$adwordsConfigData = config('adwords');
$customerId = '5087815391';
$configuration = new Configuration($adwordsConfigData);
$oAuth2Credential = (new OAuth2TokenBuilder())
->from($configuration)
->build();
$session = (new AdWordsSessionBuilder())
->from($configuration)
->withOAuth2Credential($oAuth2Credential)
->withClientCustomerId($customerId)
->build();
$service = (new AdWordsServices())
->get($session, \Google\AdsApi\AdWords\v201809\cm\CampaignService::class);
$selector = new Selector();
$selector->setFields(['Id', 'Name', 'Status']);
$selector->setPredicates([
new Predicate('CampaignStatus', PredicateOperator::IN, ['ENABLED', 'PAUSED', 'REMOVED'])
]);
$page = $service->get($selector);
$entries = $page->getEntries();
$this->assertGreaterThan(0, $page->getTotalNumEntries());
}


Erik

Google Ads API Forum Advisor Prod

unread,
Oct 8, 2020, 11:00:12 PM10/8/20
to eg...@lumenad.com, adwor...@googlegroups.com
Hi Erik,

Thanks for posting your concern.

Upon checking the provided accounts, I can see that the campaign type of the provided campaign IDs is 'Video'. With this, could you confirm if the type of campaign that you are expecting to get via the API is 'Video', but not returned? If yes, then I am afraid that this is not possible because video campaign is not supported in the API but supported only in reports as discuss on this document.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q267psE:ref

Erik Gray

unread,
Oct 13, 2020, 4:04:31 PM10/13/20
to AdWords API and Google Ads API Forum
Hey Ernie, 

Thank you for verifying, we did find that we were not able to call Video ads via that endpoint so we started using the Video Performance report instead.  Thank you!

Erik

Google Ads API Forum Advisor Prod

unread,
Oct 13, 2020, 11:32:50 PM10/13/20
to eg...@lumenad.com, adwor...@googlegroups.com
Hi Erik,

Thanks for sharing the workaround that you've performed. Feel free to post your concerns to this forum so that our team can provide support.
Reply all
Reply to author
Forward
0 new messages