The caller does not have permission error.

48 views
Skip to first unread message

bruce teng

unread,
Nov 10, 2022, 3:47:58 AM11/10/22
to Google Ads API and AdWords API Forum
Hi, we encountered a problem recently when uploading youtube video and calling  Google Ads API method: /google.ads.googleads.v11.services.AssetService/MutateAssets.
The youtube video is normal and accessible.
How can I fix this problem? Thanks!
The full trace is: 
2022-11-09 17:04:36,785 [1109-170353-8a90][INFO] [260] google.ads.googleads.client: Request ------- Method: /google.ads.googleads.v11.services.AssetService/MutateAssets Host: googleads.googleapis.com Headers: { "developer-token": "REDACTED", "login-customer-id": "xxx", "x-goog-api-client": "gl-python/3.8.0 grpc/1.39.0 gax/2.8.2 gccl/17.0.0", "x-goog-request-params": "customer_id=xxxx" } Request: customer_id: "xxxx" operations { create { youtube_video_asset { youtube_video_id: "xxx" youtube_video_title: "xxxx" } } } Response ------- Headers: { "google.ads.googleads.v11.errors.googleadsfailure-bin": "\n;\n\u0002H\u0006\u0012#Authorization of the client failed.\"\u0010\u0012\u000e\n\noperations\u0018\u0000\u0012\u0016OpB-VcmCFqXbRjNzy3wQCw", "grpc-status-details-bin": "\b\u0007\u0012#The caller does not have permission\u001a\u0001\nDtype.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure\u0012U\n;\n\u0002H\u0006\u0012#Authorization of the client failed.\"\u0010\u0012\u000e\n\noperations\u0018\u0000\u0012\u0016OpB-VcmCFqXbRjNzy3wQCw", "request-id": "OpB-VcmCFqXbRjNzy3wQCw" } Fault: errors { error_code { authorization_error: AUTHORIZATION_ERROR } message: "Authorization of the client failed." location { field_path_elements { field_name: "operations" index: 0 } } } request_id: "OpB-VcmCFqXbRjNzy3wQCw"

Google Ads API Forum Advisor

unread,
Nov 10, 2022, 6:41:34 AM11/10/22
to bruce...@webeye.com, adwor...@googlegroups.com
Hi Bruce,

Thank you for reaching out to the Google Ads API support team.

It seems that you've encountered the USER_PERMISSION_DENIED  error. The authorized customer does not have access to the operating customer. The common cause of this is when authenticating as a user with access to a manager account but not specifying login-customer-id in the request. 

However, to better check this in our end, could you please provide the complete request and response logs, with the request-id? If you haven't 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.

You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2g2Iqq:ref
Reply all
Reply to author
Forward
Message has been deleted
0 new messages