Closed ALTELMA closed 8 years ago
Hi Phongthorn,
Have you followed our get started guide? From this post, it's likely that you've not set up client id and secret correctly.
I recommend you to check your settings, especially those written in this section strictly. Also, please ensure you put in valid auth.ini too.
If you need any further help, please let me know.
Knack
I apologized for unclear questions. I will access to DFP and I already from below list.
"The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob can only be used by a Client ID for native application. It is not allowed for the 'WEB' client type. You can create a Client ID for native application in the Credentials section of the Google Developers Console."
Actually, I so confusing with this line from your instructions. "Now in your distribution, navigate to examples/[PRODUCT]/Auth and run the GetRefreshToken.php example. Copy the refresh token the example produces into the auth.ini file mentioned above."
How can I run GetRefreshToken.php from browser or command line?
Advice or leads me, please. P.S. use PHP Thank you.
The error is pretty clear, you'll need to create a client ID and secret of type "installed application" on the Google Developer console (it may also be called "other").
You must run the GetRefreshToken.php example in a command line, it will not work in the browser.
Thanks, Vincent
The error is pretty clear, you'll need to create a client ID and secret of type "installed application" on the Google Developer console (it may also be called "other").
You must run the GetRefreshToken.php example in a command line, it will not work in the browser.
Thanks, Vincent
Wow, at first I didn't found that "installed application" type, but then you said it can called "other" and you just saved my life. Thanks!!!
I cannot get refresh token, because an error 'uri_redirect_mismatch'. I already create Ouath2. I do something wrong?
Please advice me, please.