I'm trying to connect to DFP with a node js client, which requires me to create a refresh token:
https://github.com/ShinyAds/node-google-dfp
So I went to the developers console, and created an OAuth client ID for a web application. The OAuth consent screen contains my email and product name to be shown to user. Next I downloaded the json file, that contains the following fields: client_id, project_id, auth_uri, token_uri, auth_provider_x509_cert_url and client_secret.
Then I took the client_id from the json and made the following POST request:
URL: https://accounts.google.com/o/oauth2/device/code
Body: client_id=xxxxx.apps.googleusercontent.com&scope=https://www.googleapis.com/auth/dfp
The response I got from the server is this:
{
"error": "invalid_client",
"error_description": "Invalid client type."
}I carefully checked that the client_id doesn't contain trailing spaces or anything like that.
Thanks for your help.