Greeting!

I guess you're using our Google Ads DotNet client library 
<https://github.com/googleads/googleads-dotnet-lib>.
If this is not true, please correct me.

I'm not the author of this library but from what I read its code, it seems 
the *oAuth2Provider* that you mentioned is an object of the 
*AdsOAuthProviderForApplications* interface.
This interface in turn implements the *AdsOAuthProvider* interface, which 
contains the getter method of AccessToken 
<https://github.com/googleads/googleads-dotnet-lib/blob/a237a847b59cd5017559cd97a0acd5824af309a3/src/Common/Lib/AdsOAuthProvider.cs#L82>
.
So, my assumption is we should be able to retrieve access token, via 
*oAuth2Provider.getAccessToken()*.

Could you please try and let me know if it works for you?

Best,
Thanet, AdWords API Team

On Tuesday, December 13, 2016 at 5:05:21 AM UTC+9, [email protected] 
wrote:
>
> Hi
> My web application asks clients to move their MCCs under my account so 
> that the web app can manage the account.  To do so, I want to send and 
> accept a merge invitation of the account.
>
> The client will be asked to give our app access to their account, and I am 
> given an Auth Code.
>
> Using the AuthCode, I call 
>
> oAuth2Provider.FetchAccessAndRefreshTokens(AuthCode)
>
> And then store the resulting refresh token with their client customer id.
>
> I then want to use that refresh token hours later to make the API calls 
> that will send and accept the invitation.  How do I request a new Access 
> Token given the stored Refresh Token?  I am not storing the client's 
> account client_secret, just the refresh token and Client Customer Id.
>
> i have tried:
>
>     oAuth2Provider.RefreshToken = RefreshToken
>         oAuth2Provider.RefreshAccessToken()
>
> but this doesn't work.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3866c54e-6c05-4c20-a441-5ccde50214b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Stor... rentcafedev1
    • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum

Reply via email to