I used my MCC account to generate my WEB Application. So now i have access to the client_id and the client_secret:
client_secret = "xxxxxxxxxxxxxxxxxxxxx"
I'm using the PHP client library and the GetRefreshToken.php dont give me a refresh token immediately it show me this:
After a click on this link I get a page with:
This app would like to:
Manage your AdWords campaigns
Accept
After click on Accept the pages reload and than i'm able to take a code (refresh_token?).
I put that token in auth.ini, but i'm still getting "invalid_grant" message...
Otherwise thinking that this code is not the refresh_token, i'm edit the GetRefreshToken.php and replace the $code var by the code above on line 65. Its not working too... Now i'm getting a error_description that said "Invalid Code".
-----------
In this post Jur has a similar problem:
But in my case I cant see the message after click accept: "Please copy this code, switch to your application and paste it there:" Is simple redirect to my Redirect_URI with the code parameter.
-------------
Thats for HELP, i'm stuck...