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