Hi Muhammad,
Thank you for reaching out.
In setting the LocationSearchParameter, the required field of the Location
object is the id, therefore, you need to set this, and not the country code. To
get the location criterion ID that you can use, you can refer to the geo
targets guide on which you can open the geo targets table. For example, for
Germany, the criterion ID is 2276, Austria is 2040 and Switzerland is 2756.
# Location setting (optional).
selector['searchParameters'].append({
'xsi_type': 'LocationSearchParameter',
'locations': [{'id': '2276'}, {'id': '2040'}, {'id': '2756'}]
})
If you would like to retrieve keyword stats, you may specify the requestType as
STATS and you can request the stats for keywords that the user already has.
Please let me know if you have further clarifications.
Regards,
Hiroyuki
Google Ads API Team
ref:_00D1U1174p._5001UKMnJb:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/VqVmk000000000000000000000000000000000000000000000PZ5BXL00qPEkaH4ZQni0h7RlD0NT5A%40sfdc.net.