Hi Scott, 

You could do it either ways. If the account is linked with your Google Ads 
Manager account, you can use your client credentials (client id and client 
secret) and OAuth tokens (access token and refresh token) to access any 
account's data in your manager account's hierarchy. You could display the 
data based on the logged in user's client customer id.

If the accounts are not linked, you could use your client credentials and 
have the user who has access to the target account (typically your client) 
to authorize the OAuth set up 
<https://developers.google.com/adwords/api/docs/guides/first-api-call#set_up_oauth2_authentication>
 (generate 
the authorization code while setting up the OAuth). And use this 
authorization code to generate the OAuth tokens. Then use this set of 
credentials to make API calls against the client's account. In this set up, 
you will have different set of credentials for each account. This wiki 
<https://github.com/googleads/googleads-java-lib/wiki/API-access-on-behalf-of-your-clients-(web-flow)>
 guide 
shows how to have API access on behalf of your clients in Java. 

Please let me know if you have any additional questions. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/545867e0-b092-44ed-ade4-5082c9b67e1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Scott G
    • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to