Hello Nikisha and thank you for your quick reply,

unfortunately this is not the usecase I have. We are an agency and we want 
to create/edit ads and reports on behalf of our clients. But in the first 
place we don't know our clients ad account id. So whats the easiest way to 
go to make those users have their ad accounts linked to our manager acc? 

Basically I tried to realize it like this:

1. Request adwords scope oauth2 accesstoken for the user // got this working
2. Fetch his account hierarchy to get a list of his ad accounts. // got a 
permission error for the user - probably because I only have a test 
developer token and I used a new google acc I transfered ownership of a 
test client acc to?
3. Make the user choose which ad account he wants us to have access to
4. Send an invitation to the ad account to be managed be our mcc
5. Have permanent access to the acc.

Is this realistic? 

Best regards


Am Donnerstag, 5. März 2020 21:10:31 UTC+1 schrieb adsapiforumadvisor:
>
> Hello Dominik,
>
> Thank you for reaching out. Could you please confirm if you are looking to 
> fetch the customer within your MCC account and apply for access for these 
> customer accounts via API? If my understanding is correct, you could use 
> ManagedCustomerService 
> <https://developers.google.com/adwords/api/docs/reference/latest/ManagedCustomerService>
>  
> to get the account hierarchy under your manager account. Please refer to 
> the complete code sample available here 
> <https://developers.google.com/adwords/api/docs/samples/java/account-management#get-the-account-hierarchy-under-the-current-account>.
>  
> Also, refer to this 
> <https://developers.google.com/adwords/api/docs/guides/accounts-overview#creating_and_organizing_accounts>
>  
> guide for linking your manager account to client customer account using 
> API. For your concern related to applying the access for your customer 
> account, you might find this 
> <https://developers.google.com/adwords/api/docs/guides/first-api-call> 
> guide useful to generate the OAuth2 credentials via API. Please note, you 
> need to authorize using the AdWords scope to make calls via AdWords API. 
> Let us know if you need any additional information.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UXUBSu: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/570bbbf3-da59-4f32-9e39-d263e4738d31%40googlegroups.com.

Reply via email to