RE: login_customer_id issue

2022-03-17 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi there,

Thanks for reaching out to the Google Ads API Forum.

You may double check if the user / email address you used to generate the 
credentials indeed has access to the account in your request( your 
login-customer-id field). The USER_PERMISSION_DENIED error usually indicates 
that you are authenticating as a user that does not have access to the target 
account specified in your API request.

To avoid the said error, you will need to ensure that the user / email address 
you used to generate the credentials indeed has access to the account in your 
request. If the user / email address has access or is associated to the MCC / 
manager account, you will need to specify the said MCC / manager account's ID 
without hyphen(-) as the value of the login-customer-id field.

If you still persist with the error, you may provide us with the complete 
request and response logs, with the request-id along with the email address 
used to generate the OAuth2 credentials via Reply to Autor Privately option, so 
that I can continue to investigate further.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2Yoly2:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/AqhEL0R8W4JG00Kqyb_TdQTfqGMaaR9C4o6Q%40sfdc.net.


login_customer_id issue

2022-03-17 Thread charles lerasan
hi I have been reading a lot of answers and googled a few solutions. but 
none is working

To start.
I have a manager account : 123-456-7890
I have multiple client accounts under that manager account:
client_1 : 111-111-111-1
client_2: 222-222-222-2

Now, I am lost what is the login customer id. I tried using the ID [image: 
101.JPG]
But none of the IDs are working. When I used the Customer ID i am getting 
this:
"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;

I was able to get reports properly using the AdwordsClient but now that I 
am migrating to GoogleAdsClient I am getting this issue :(

Please help.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/018d2592-93a4-4894-8446-486cda4da850n%40googlegroups.com.