location problem

23 views
Skip to first unread message

YangYang Wang

unread,
Jul 23, 2024, 10:36:03 AM7/23/24
to Google Ads API and AdWords API Forum
Hello. I have a question about geolocation that I need your help to solve. I went through this link https://developers.google.cn/google-ads/api/docs/targeting/location-targeting?hl=en I can target my campaign normally. But recently I have encountered such a problem. In the column in my campaign that shows country-specific delivery data. There are three states added and excluded and none. When I remove and exclude and no options. Can request and complete the execution of the operation. But when I exclude a country whose status is added. Will return an error."message": "Request contains an invalid argument.","code": 3,"status": "INVALID_ARGUMENT".But I found that I could delete the countries I had added. After the delete operation. Its state becomes nothing. That would also solve the problem. But in this case, I need to distinguish. Which countries belong to the added state. Your email told me earlier.'SELECT campaign_criterion.criterion_id, campaign.id, campaign_criterion.negative FROM campaign_criterion WHERE campaign_criterion.negative = TRUE'. You can retrieve the excluded countries by campaign_criteria.negative = TRUE. That leaves the added and stateless countries. How to distinguish? This is probably the problem I need to solve more now. I hope to reply as soon as I receive the email. Thanks!

Google Ads API Forum Advisor

unread,
Jul 23, 2024, 3:23:10 PM7/23/24
to yangyan...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

As per provided information, I understand that you are encountering the 'invalid_argument' error while making a request through the Google ads API. To troubleshoot your issue, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vE3VG:ref" (ADR-00259210)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 


Reply all
Reply to author
Forward
0 new messages