Hi,

In the correct steps, you paste the authorization code you can obtain from 
the browser after pasting the URL (like you wrote in your post).
Did you successfully obtain authorization code and paste it in the console?

Best,
- Takeshi, AdWords API Team

On Tuesday, December 17, 2013 4:46:51 PM UTC+9, off...@expokrym.com wrote:
>
> Hi there! 
> I have problem with get refresh_token using GetRefreshToken.php. I have 
> followed the instructions about getting an OAuth 2.0 refresh_token. I have 
> the client_id, client_secret both of which have been placed into the 
> src/Google/Api/Ads/Adword/auth.ini file.
> Than I ran GetRefreshToken.php
> We have ran this from [url]/examples/AdWords/Auth/GetRefreshToken.php and 
> initially ended up with a blank page.
> I found that the command:
> if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
> return;
> }
> the realpath command is returning false and therefore the two values did 
> not match and consequently the script was just stopping without any message 
> hence the white screen.
> So I commented out these commands and tried again. This time we got a 
> little further but still received an error.
> Log in to your AdWords account and open the following URL:
>
> https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=834565438197.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline
> After approving the token enter the authorization code here: 
> Your OAuth2 Credentials are incorrect.
> Please see the GetRefreshToken.php example.
> {
> "error" : "invalid_request"
> }
> How can I get refresh_token for using Google AdWords API?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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