TARGETED_MONTHLY_SEARCHES queries

44 views
Skip to first unread message

Leonardo Botta

unread,
Oct 22, 2019, 6:59:44 PM10/22/19
to AdWords API and Google Ads API Forum
Hi, I have been looking for a complete example or TARGETED_MONTHLY_SEARCHES  query and I could not find it.
I need to get the number of google searches of some keywords on each month of the last year, depending on the geographic location, is that possible using the AttributeType.TARGETED_MONTHLY_SEARCHES?
There there is no example of a TARGETED_MONTHLY_SEARCHES query.
I will appreciate if someone can help me with this.
I already have a google ads account, clientId, clientCustomerId, developer token and refresh token

Thanks!!!

Google Ads API Forum Advisor Prod

unread,
Oct 23, 2019, 1:19:56 AM10/23/19
to adwor...@googlegroups.com

Hi Leonardo,

Thank you for posting your concern.

I understand that you are looking for a complete example of TargetingIdeaService with MonthlySearchVolumeAttribute and retrieving the data depending on geographic location. Unfortunately, we don't have the exact samples which you are looking for.

However, you may try to modify the example code by following the steps below:

1. Add TARGETED_MONTHLY_SEARCHES attributes into your TargetingIdeaSelector to get List of MonthlySearchVolume values for the past 12 months. You can refer to the sample code snippet below as to how :

selector.setRequestedAttributeTypes(new AttributeType[] {
  AttributeType.KEYWORD_TEXT,
  AttributeType.SEARCH_VOLUME,
  AttributeType.AVERAGE_CPC,
  AttributeType.COMPETITION,
  AttributeType.CATEGORY_PRODUCTS_AND_SERVICES,
  AttributeType.TARGETED_MONTHLY_SEARCHES})

2. Add LocationSearchParameter into your searchParameters to specify the desired locations (e.g countries) being targeted in the results.

If you encounter any issues while you are implementing the above, please let us know.

Regards,
Hiroyuki
Google Ads API Team



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