In addition, when I run the GetCampaigns.java from the library, and I input my clientID/secret/refresh token, I still don't have permission. I'm using the same email addresses, but I get the error PERMISSION_DENIED: The caller does not have permission. I've enabled the API and retrieved the necessary credentials, so I'm not sure what the error could be.
On Monday, June 22, 2020 at 11:25:39 AM UTC-7 Amber Xie wrote: > Hi, > > Unfortunately this did not fix it. I've inputted a managerId and a > loginCustomerId corresponding to the manager account and a client account > I've created directly underneath the manager. Running "mvn -X clean install > exec:java > -Dexec.mainClass="com.google.ads.googleads.examples.accountmanagement.GetAccountHierarchy"" > > givves me an error that User does not have permission to access customer, > and that the manager's customer must be set in 'login-customer-id' > header. See > https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id > . > > Where is the 'login-customer-id' header? Is it in the code or is it > outside? > > I've tried callig just the managerId, but it gives me the error that > loginCustomerId must be provided if managerId is provided. > > Thanks! > > On Monday, June 22, 2020 at 7:30:30 AM UTC-7 adsapiforumadvisor wrote: > >> Hi Amber, >> >> Yes, if the email you are authenticated as is not the email you used to >> create your OAuth2 credentials, you will receive a permission error. I >> suggest using the email connected to your OAuth2 credentials or creating >> new credentials with the email address you are currently using. >> Additionally, you will also need to ensure that the email address you are >> using is added as a user to your account. You can do this by going into the >> UI -> Tools & Settings -> Setup -> Account access and security. If you >> continue to experience issues, please provide your account's CID, complete >> detailed logs of the request and response, as well as the email address you >> are using to authenticate the API call so that I can take a closer look. >> >> Regards, >> Danica, Google Ads API Team >> >> ref:_00D1U1174p._5004Q2180Ly: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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a6059a68-7429-47c1-8ff2-e1938ff2f33cn%40googlegroups.com.
