Bad Request error while creating campaigns

19 views
Skip to first unread message

GMC Test

unread,
Aug 17, 2023, 1:13:49 AM8/17/23
to Google Ads API and AdWords API Forum
Hi there, 
I tried to create campaign using API and got an error "The operation is not allowed for the given context." in the field "enableLocal" where I've passed the value as false. When I do not send the parameter enableLocal it works. Why does this error occur? 

Google Ads API Forum Advisor

unread,
Aug 17, 2023, 4:27:34 AM8/17/23
to gmcte...@gmail.com, adwor...@googlegroups.com
Hello,

Welcome to Google Ads API Support team. Thank you for reaching out to us.

For us to be able to further investigate on your issue, kindly provide the complete request and response logs with request id and request header generated on your end.

Note that these logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check here (https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging) and click your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

Links to the highlighted words above:


You may send the requested details privately via “Reply To Author” option. If that option is not available to you, send it directly to googleadsa...@google.com instead, and let us know here once it is provided.
 

This message is in relation to case "ref:_00D1U1174p._5004Q2ntH3z:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages