Thank you for the response Ray Tsang.We are managing all of the adwords 
accounts from a single top MCC and we have registered it as a web 
application.I want to know how do we get refresh token for a web 
application rather than for a native application.Please clarify.

Regards,
Karthik

On Thursday, 13 February 2014 21:44:22 UTC+5:30, Ray Tsang (AdWords API 
Team) wrote:
>
> Karthik,
>
> GetRefreshToken works best when you have registered a native application. 
>  Please see our OAuth 2.0 Authentication Guide for AdWords 
> API<https://developers.google.com/adwords/api/docs/guides/authentication>
> .
> Whether you need to use OAuth 2.0 native application or web application 
> depends on whether you will be managing all of your AdWords accounts from a 
> single top MCC or not.
>
> Thanks,
>
> --
> Ray Tsang (AdWords API Advisor)
>
>
> On Wednesday, February 12, 2014 5:59:31 AM UTC-5, Karthik vvs wrote:
>>
>>
>> We have registered our site as a web application and in which there is a 
>> redirect url which redirects to the status of the application ex: 
>> https://app_name.organization_name.com/status . when I run the 
>> getRefreshToken() method, I have to get a code on which typing it on the 
>> input console while running the method should give me refresh token. The 
>> problem is the redirect URI is just a page which does not contain any code 
>> which can be pasted on the console while running getRefreshToken() method. 
>> The details of the request are below:
>>
>>
>>    - from_login=1
>>    - cookie_policy_enforce=false
>>    - scope=https://adwords.google.com/api/adwords
>>    - response_type=code
>>    - redirect_uri= https://app_name.organization_name.com/status(whichis 
>> just a page which does not give any code to be copied)
>>    - access_type=offline
>>    - as=33ee5a9ea*******
>>    - display=page
>>    - pli=1
>>    - client_id=20*********.apps.googleusercontent.com
>>    - authuser=1
>>    - hl=en
>>
>> How can I get the code to be pasted to get refresh token? Can I just edit 
>> the redirect URI to "urn:ietf:wg:oauth:2.0:oob" in the google cloud 
>> console and use it to get refresh token?
>>
>> We have three of such sites which are registered as web applications and 
>> redirect URIs will redirect to their respective statuses.Do I have to 
>> register all the 3 applications as web applications
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to