Sorry, I've mixed errors
Using CustomerID is cause of issue:
Failure:
Message: Status(StatusCode="PermissionDenied", Detail="The caller does not 
have permission", 
DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1637623447.830000000","description":"Error received from peer 
ipv4:142.250.203.138:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"The
 
caller does not have permission","grpc_status":7}")
Failure: { "errors": [ { "errorCode": { "authorizationError": 
"USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
access customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid"; 
} ], "requestId": "9W3MpagerCsjGYlk_ixT_Q" }
Request ID: 9W3MpagerCsjGYlk_ixT_Q

Using MCC ID:
Failure:
Message: Status(StatusCode="InvalidArgument", Detail="Request contains an 
invalid argument.", 
DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1637623064.472000000","description":"Error received from peer 
ipv4:142.250.186.202:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}")
Failure: { "errors": [ { "errorCode": { "contextError": 
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
allowed for the given context.", "location": { "fieldPathElements": [ { 
"fieldName": "operations", "index": 0 } ] } } ], "requestId": 
"4FXbvyotDzdHYave7pmPwg" }
Request ID: 4FXbvyotDzdHYave7pmPwg
On Tuesday, November 23, 2021 at 1:24:21 AM UTC+2 Sergey Gusak wrote:

> Hello,
> Trying to request campaignBudgetMutate (Google Ads structure is MCC > 
> Customer)
> If use in configs CustomerID seeing this:
> Failure:
> Message: Status(StatusCode="InvalidArgument", Detail="Request contains an 
> invalid argument.", 
> DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
> {"created":"@1637623064.472000000","description":"Error received from peer 
> ipv4:142.250.186.202:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"Request
>  
> contains an invalid argument.","grpc_status":3}")
> Failure: { "errors": [ { "errorCode": { "contextError": 
> "OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not 
> allowed for the given context.", "location": { "fieldPathElements": [ { 
> "fieldName": "operations", "index": 0 } ] } } ], "requestId": 
> "4FXbvyotDzdHYave7pmPwg" }
> Request ID: 4FXbvyotDzdHYave7pmPwg
>
> If use in configs MCC ID seeing this:
> Failure:
> Message: Status(StatusCode="PermissionDenied", Detail="The caller does not 
> have permission", 
> DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
> {"created":"@1637623447.830000000","description":"Error received from peer 
> ipv4:142.250.203.138:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1070,"grpc_message":"The
>  
> caller does not have permission","grpc_status":7}")
> Failure: { "errors": [ { "errorCode": { "authorizationError": 
> "USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
> access customer. Note: If you're accessing a client customer, the manager's 
> customer id must be set in the 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid";
>  
> } ], "requestId": "9W3MpagerCsjGYlk_ixT_Q" }
> Request ID: 9W3MpagerCsjGYlk_ixT_Q
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a87a234b-97a2-4cf8-992b-97eb675ac36an%40googlegroups.com.
  • Re... Aditya Naukri
    • ... Google Ads API Forum Advisor
    • ... Aditya Naukri
      • ... Google Ads API Forum Advisor
    • ... Sergey Gusak
      • ... Sergey Gusak
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
          • ... Sergey Gusak

Reply via email to