Keywords Won't Add--"This operation is not allowed for the given context."

2,678 views
Skip to first unread message

Mariam Higginbotham

unread,
Aug 24, 2022, 1:41:29 PM8/24/22
to Google Ads API and AdWords API Forum
Hi!

I'm trying to add keywords to my campaign, but it's giving the error "This operation is not allowed for the given context." I'm not sure what other information is needed, so I've included a screenshot.

Thanks in advance!


error.PNG

Google Ads API Forum Advisor

unread,
Aug 24, 2022, 1:53:19 PM8/24/22
to mariam.hi...@acupuncturist.edu, adwor...@googlegroups.com
Hi Mariam,

Thank you for reaching out to Google Ads API support. Thank you for the picture, there is a heading 'Policy details' that gives me a hunch that if you tried the same thing in the Ads UI you will get the same results. If I am correct in my assumptions I suggest you reach out to our product support team for further assistance. The Ads API can only be a conduit to the Ads Product as expressed in the Ads UI, what doesn't work in the UI won't work in the API.

If there is a difference between what the APi and UI does, could you send us a 'DEBUG' log level request and response log of raw API communications of the error, combined with an uncropped, full screen screenshot of the UI showing the difference?

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Java.NETPHPPythonRuby and Perl Ads API Client Libraries.

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

You may send the requested information via "Reply to author" or via googleadsa...@google.com with a link to this forum post added to the new thread.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dnFEo:ref
Reply all
Reply to author
Forward
0 new messages