Danial,

My issue involved using a service account rather than an installed 
application. It wasn't very clear in the documentation exactly what type of 
account was necessary. Nonetheless, creating a new installed application 
client id did the trick and I now have my refresh token. Thanks for your 
help!

On Thursday, August 1, 2013 6:08:57 AM UTC-7, Danial Klimkin wrote:
>
> Hello Luke,
>
>
> Can you please double-check the client application ID is the "installed 
> application" client ID with the OOB redirect URI listed as a valid redirect 
> in the API Console?
>
> I can't see any other reason for this error.
>
>
> -Danial, AdWords API Team.
>
>
> On Thursday, August 1, 2013 4:34:50 AM UTC+4, Luke Culbertson wrote:
>>
>> I am also receiving the same error (redirect uri mismatch) when running 
>> the generate_refresh_token.py script, even with an offline application type.
>>
>> Request Details
>>
>>    - from_login=1
>>    - cookie_policy_enforce=false
>>    - scope=https://adwords.google.com/api/adwords
>>    - response_type=code
>>    - access_type=offline
>>    - redirect_uri=urn:ietf:wg:oauth:2.0:oob
>>    - as=-3dec539cc01dab84
>>    - display=page
>>    - pli=1
>>    - client_id=***.apps.googleusercontent.com
>>    - authuser=2
>>    - hl=en
>>
>> Any ideas on what is causing this?
>>
>> On Wednesday, July 31, 2013 2:54:53 AM UTC-7, Danial Klimkin wrote:
>>>
>>> Hello,
>>>
>>>
>>> What is the type of the client you use? For Web application type you 
>>> need to explicitly list allowed redirect URLs in the API console.
>>>
>>> From your request it looks like you need an offline (standalone) 
>>> application type.
>>>
>>>
>>> -Danial, AdWords API Team.
>>>
>>>
>>> On Tuesday, July 30, 2013 12:17:18 AM UTC+4, connor....@room77.comwrote:
>>>>
>>>> I am currently trying to access the monthly search volume of a given 
>>>> keyword. To do this, I need to generate a refresh token using 
>>>> generate_refresh_token. The URL it gives me to access the verification 
>>>> code 
>>>> is broken, returning the error: redirect_uri_mismatch. It states: The 
>>>> redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a 
>>>> registered redirect URI.
>>>>
>>>> The details are:
>>>>
>>>>
>>>>    - cookie_policy_enforce=false
>>>>    - scope=https://adwords.google.com/api/adwords
>>>>    - response_type=code
>>>>    - access_type=online
>>>>    - redirect_uri=urn:ietf:wg:oauth:2.0:oob
>>>>    - display=page
>>>>    - client_id=230466429510.apps.googleusercontent.com
>>>>
>>>>
>>>> The URL it gives me is: 
>>>> https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&client_id=230466429510.apps.googleusercontent.com&access_type=offline
>>>>
>>>> Is there any way to fix this, or generate a token another way?
>>>>
>>>> Thank you
>>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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