Google Ads api---uploadClickConversions authorizationError Issue

38 views
Skip to first unread message

郑晓威

unread,
Mar 16, 2022, 7:21:56 AM3/16/22
to Google Ads API and AdWords API Forum
Hi There,

After completing the project creation on the Google Cloud platform, the Credentials (our Client ID and Client secret) were successfully created.  

After obtaining the token using the "https://www.googleapis.com/oauth2/v3/token" interface, I try to call the Method: "customers.uploadClickConversions" interface under the REST Interface in the api. But getting the following error

"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"
}
]

If I give you the request parameters privately, can anyone on the Google API team tell me why?
I did the same guide, but it doesn't work.

Regards,
wangcheng.

Google Ads API Forum Advisor

unread,
Mar 16, 2022, 4:41:28 PM3/16/22
to xw18...@gmail.com, adwor...@googlegroups.com
Hi,

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

With regards to your concern, you’ve encountered ‘USER_PERMISSION_DENIED' error. The ‘USER_PERMISSION_DENIED’ usually occurs due to incorrectly setting the 'login-customer-id’ in the request or not specifying login-customer-id in the request. Note that when a user doesn't have permission to access a customer and you’re accessing a client customer then the manager's customer ID must be set in the 'login-customer-id’ in the header request. To resolve this, you will need to ensure that your OAuth2 credentials were generated while logged in as the user / email address that has access to the customer ID in your request. Also, if the said user / email address is one that has access to the MCC / manager of the customer account, then you may specify the MCC / manager account's ID as the login-customer-id

If you are still facing an issue, could you please provide us with the complete logs (request and response with request-id) via the Reply privately to the author option? If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Thanks,

Google Logo
Nirmita
Google Ads API Team
 

 



 

ref:_00D1U1174p._5004Q2Ylpt5:ref

Ngon Nguyen

unread,
Mar 17, 2022, 8:21:00 PM3/17/22
to xw18...@gmail.com, Google Ads API and AdWords API Forum
Chào mừng bạn đến với bảng nhớ tạm của Gboard, bất kỳ văn bản nào bạn sao chép sẽ được lưu tại đây.Sử dụng biểu tượng chỉnh sửa để ghim, thêm hoặc xóa đoạn.Nhấn vào một đoạn để dán vào hộp văn bản.Chạm và giữ một đoạn để ghim đoạn đó. Các đoạn đã bỏ ghim sẽ bị xóa sau 1 giờ.

Vào 18:21, Th 4, 16 thg 3, 2022 郑晓威 <xw18...@gmail.com> đã viết:
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a724533f-cf33-4db8-ad55-07b4283ef57an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages