Thanks Ivan. 

I tested hardcoding the OAuth2 credential and refresh token with the .net 
client library with great sucess. Very clean and the refresh seems robust. 
I marked your earlier responce as the completion of this thread.

Best Regards,
Peter Valenta

On Wednesday, 14 June 2017 07:50:18 UTC+2, Ivan Bautista wrote:
>
> Hi Peter,
>
> Basically, you just need to generate the OAuth2 credentials and refresh 
> token once for the parent MCC account, then any of the child accounts under 
> the MCC account can be accessed using the same OAuth2 credentials. You will 
> just need to specify the clientCustomerId in the request header for the 
> AdWords client account the user want to access data from. Here's a sample 
> code 
> <https://developers.google.com/adwords/api/docs/guides/samples-use-cases#dsDropDownDefault>
>  for 
> changing the clientCustomerId programmatically.
>
> Another thing you need to look out for is when the access token expires 
> <https://developers.google.com/adwords/api/docs/guides/authentication#access_and_refresh_token>,
>  
> however, this is automatically handled by default if you use any of the 
> available client libraries 
> <https://developers.google.com/adwords/api/docs/clientlibraries>.
>
> Let me know if this helps.
>
> Regards,
> Ivan
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/74c04048-1cd2-4983-b150-72ae397e979c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to