Keyword search volume

183 views
Skip to first unread message

李谷歌

unread,
Jun 25, 2021, 3:42:26 AM6/25/21
to AdWords API and Google Ads API Forum
Hello,
    I am using google adwords api to get the search volume of a keyword in some specific countries, but I don’t know how to start with PHP
                                                                                                                                                thank you

Google Ads API Forum Advisor

unread,
Jun 28, 2021, 2:16:57 PM6/28/21
to ligoog...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. I would recommend using to the Add Keyword Plan code sample for PHP. In the sample, setting specific geo targets for a keyword plan is shown. For more information on the planning service, please see this guide.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IydlG:ref

李谷歌

unread,
Jun 28, 2021, 10:01:37 PM6/28/21
to AdWords API and Google Ads API Forum

Hello,

        Thank you very much for your reply. I would like to know whether it is possible to return the search volume of keywords grouped by region (country). I need to know the search volume of keywords in a specific country. Can you tell me what to do?

thank you

Google Ads API Forum Advisor

unread,
Jun 30, 2021, 12:59:19 PM6/30/21
to ligoog...@gmail.com, adwor...@googlegroups.com
Hello,

This is demonstrated in the code sample. Specifically, the section:

        // Optional: Set additional criteria for filtering estimates.
        // See http://code.google.com/apis/adwords/docs/appendix/countrycodes.html
        // for a detailed list of country codes.
        // Set targeting criteria. Only locations and languages are supported.
        $unitedStates = new Location();
        $unitedStates->setId(2840);

        // See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html
        // for a detailed list of language codes.
        $english = new Language();
        $english->setId(1000);

        $campaignEstimateRequest->setCriteria([$unitedStates, $english]);

As the language criterion is also optional, this can be removed if it is not needed.

李谷歌

unread,
Jun 30, 2021, 9:52:42 PM6/30/21
to AdWords API and Google Ads API Forum
I want to get the search volume data of multiple countries at once, but there seems to be no relevant description in Api. I pass in multiple locations in LocationSearchParams and only get one result. Can I get the grouped search volume of multiple locations?

Google Ads API Forum Advisor

unread,
Jul 6, 2021, 12:38:20 PM7/6/21
to ligoog...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. The keyword plan is generated using the locations associated with the keyword plan campaign. The array of geotargets does not output a plan for each element in the list. You could create multiple keyword plans using multiple locations, however.

李谷歌

unread,
Oct 21, 2021, 6:56:27 AM10/21/21
to AdWords API and Google Ads API Forum
Hello, Thank you for your reply. I found in the documentation that the mutate() method seems to be able to perform batch processing. I hope that targetingIdeaService.mutate() can be used to obtain data in batches, but I did not find any relevant examples and instructions for the mutate() method. Can you tell me? thanks

Google Ads API Forum Advisor

unread,
Oct 21, 2021, 11:11:51 PM10/21/21
to ligoog...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for your follow up.

The mutate() feature of the API, specifically the bulk mutate, is for performing batches of either a create, update, or remove operation. It is not one meant for retrieving bulk data such as for getting keyword search volumes. 

For retrieving data, it should usually be the get and/or the search and searchStream methods.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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