Question on correct retrieving the total number of keywords (that will match the Google Ads UI number)

29 views
Skip to first unread message

Web Web

unread,
Jan 4, 2022, 1:52:38 PM1/4/22
to AdWords API and Google Ads API Forum
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


Google Ads API Forum Advisor

unread,
Jan 4, 2022, 9:26:35 PM1/4/22
to ruwe...@gmail.com, adwor...@googlegroups.com
Hi Alex,

Thank you for raising this concern to our team.

To investigate the issue, could you provide the complete SOAP request and response logs generated on your end? Also, please provide the screenshot of the whole UI where you are comparing the API results and where we can see the filters that you've used there.

Please provide the requested details via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

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


ref:_00D1U1174p._5004Q2TnrnO:ref
Reply all
Reply to author
Forward
0 new messages