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