OPERATION_NOT_PERMITTED_FOR_CONTEXT for MutateAdGroupAds

72 views
Skip to first unread message

穆金龙

unread,
Jul 27, 2023, 2:05:29 AM7/27/23
to Google Ads API and AdWords API Forum
e.Message
"Status(StatusCode=\"InvalidArgument\", Detail=\"Request contains an invalid argument.\", DebugException=\"Grpc.Core.Internal.CoreErrorDetailException: {\"created\":\"@1690436367.730000000\",\"description\":\"Error received from peer ipv4:142.251.43.10:443\",\"file\":\"..\\..\\..\\src\\core\\lib\\surface\\call.cc\",\"file_line\":953,\"grpc_message\":\"Request contains an invalid argument.\",\"grpc_status\":3}\")"
e.Failure
{{ "errors": [ { "errorCode": { "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not allowed for the given context.", "trigger": { "stringValue": "OWNED_AND_OPERATED" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } } ], "requestId": "ttSWFGCaxHUAOpyoEX_hBw" }}
    Errors: {[ { "errorCode": { "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not allowed for the given context.", "trigger": { "stringValue": "OWNED_AND_OPERATED" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } } ]}
    RequestId: "ttSWFGCaxHUAOpyoEX_hBw"
e.RequestId
"ttSWFGCaxHUAOpyoEX_hBw"

Google Ads API Forum Advisor

unread,
Jul 27, 2023, 4:22:12 AM7/27/23
to mjl9...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API forum. I hope that you are doing well today.

Moving forward to your concern, I can see in the error message that you encountered a ContextError which is OPERATION_NOT_PERMITTED_FOR_CONTEXT. This will appear if the given context is not allowed in the operation. For us to further check why you get this error, could you please provide us with the complete request and response logs with request ID and request header generated on your end. If you haven't enabled the logging yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link here https://developers.google.com/google-ads/api/docs/client-libs?hl=en.

You can provide it via Reply privately to the author option. If this option is not available, then send it instead using this email address googleadsa...@google.com.

Reference links:  
This message is in relation to case "ref:_00D1U1174p._5004Q2mwIJT:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages