Hello!
I'm trying to get the total number of keywords. Using Google Adwords API (migration to Google Ads API is in progress)
The goal is to see in advance if we're close to hitting the entity limit or not
This query gives me 4+ million keywords, though UI (with filters: all but removed & match type: broad, match and exact) show around 2.1 million.
When I remove 'BROAD' from the API query, it gives 2.3 million
Is it correct that BROAD keywords returned in API aren't counted in UI, since BROAD match is no longer used?
$selector = self::GetSelector([
'fields' => ['Id'],
'predicates' => [
['CriteriaType', 'IN', ['KEYWORD']],
['ApprovalStatus', 'IN', ['APPROVED']],
['AdGroupStatus', 'IN', ['ENABLED', 'PAUSED']],
['Status', 'IN', ['ENABLED']],
['CampaignStatus', 'IN', ['ENABLED', 'PAUSED']],
['KeywordMatchType', 'IN', [ 'EXACT', 'PHRASE', 'BROAD']],
]]);
$totalNumEntries =
->getAdWordsUser()
->GetService('AdGroupCriterionService')
->get($selector)
->getTotalNumEntries();
Appreciate your response!
Best regards,
Alex