Cant access shared accounts through api

20 views
Skip to first unread message

Kostja Saprykin

unread,
Mar 19, 2021, 8:10:47 AM3/19/21
to AdWords API and Google Ads API Forum
I set my python program to collect campaigns of account, it works fine for campaigns that are linked to my manager, but i cant get data from request regarding shared account,
i get this warning:
WARNING:google.ads.google_ads.client:Request made: ClientCustomerId: 8252429017, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v6.services.GoogleAdsService/SearchStream, RequestId: 1fssbQ4_jBPXzY3lqJ1pFg, IsFault: True, FaultMessage: 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. 

Shared account linked to b2b.click.mcc as manager, and i dont have access to it.
I also set login-customer-id to this mcc but it doesnt help.

How can i fix this?

Google Ads API Forum Advisor Prod

unread,
Mar 21, 2021, 11:07:56 PM3/21/21
to sapryki...@gmail.com, adwor...@googlegroups.com
Hi Kostja,

To better look into the issue, could you share the following details :
  • email address used to generate your OAuth2 credentials
  • MCC/manager account ID where the email address is associated to
  • complete request and response logs, with the request ID, that were generated when the error occurred
You may then send the above requested details using the Reply privately to author option, for privacy purposes.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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