Error with message "The operation is not allowed for the given context."

2,532 views
Skip to first unread message

Xavier Garzon

unread,
Jan 25, 2022, 5:51:55 PM1/25/22
to Google Ads API and AdWords API Forum
I'm following this example https://github.com/googleads/google-ads-python/blob/main/examples/basic_operations/add_campaigns.py but I got this:

Request with ID "usrpa1MdSaYkJfZkkvpAjA" failed with status "INVALID_ARGUMENT" and includes the following errors:
        Error with message "The operation is not allowed for the given context.".
                On field: operations



Jacob Peebles

unread,
Jan 25, 2022, 10:27:23 PM1/25/22
to Google Ads API and AdWords API Forum
Hello all. I work with Xavier and and helping with this issue. Any guidance the community can provide would be appreciated. This is a blocker for us so we’d like to get past it in short order.

Thanks,

Jake

Google Ads API Forum Advisor

unread,
Jan 26, 2022, 2:29:55 AM1/26/22
to xavier...@getitllc.com, adwor...@googlegroups.com
Hi Jacob,

For us to assist you further, could you kindly provide the complete request and response logs with request ID and request header generated on your end for us to further check the error. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsapi-support@google.com.

Regards,

Google Logo
Teejay Wennie Pimentel
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VPXuh:ref

Jacob Peebles

unread,
Jan 26, 2022, 6:10:00 AM1/26/22
to Google Ads API and AdWords API Forum
Teejay, great yes we'll do that if we have no luck early today resolving it, thank you!

- Jake

On Wednesday, January 26, 2022 at 2:29:55 AM UTC-5 adsapi wrote:
Hi Jacob,

For us to assist you further, could you kindly provide the complete request and response logs with request ID and request header generated on your end for us to further check the error. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,

Jacob Peebles

unread,
Jan 26, 2022, 9:43:55 AM1/26/22
to Google Ads API and AdWords API Forum
Silly question and off topic, when you 'reply to author'....how do you then see the message you sent, where is the 'sent' folder in google groups?

- Jake

Google Ads API Forum Advisor

unread,
Jan 26, 2022, 1:42:16 PM1/26/22
to ja...@getitllc.com, adwor...@googlegroups.com
Hi Jacob,

The replies sent by "reply to author" are not exposed on forum, but get to Google Ads API support. We respond to those replies, sometimes privately and sometimes publicly.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


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