Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot generate refresh token. "missing 'type' field in credentials" #162

Closed
hoffmanmc opened this issue Dec 15, 2023 · 2 comments
Closed

Comments

@hoffmanmc
Copy link

I am trying to set up a connection to the Google Ads API as per these instructions..

However, when I run:
oauth2l fetch --type oauth --credentials credentials.json --scope adwords --output_format refresh_token
I recieve the error:
missing 'type' field in credentials

I've tried adding the --type flag and specifying oath to no avail. I also tried specifying "type" at the top level of the object, which returned the error: unknown credential type: "oauth"

I installed using the tar file, running on Linux.

@mrohnstock
Copy link

let me guess, your OAuth client credentials.json got generated for 'web application' as I did.

You have to generate one for 'desktop application' (even you're working on a web application) as this tool here does only support credentials made for 'desktop application'.

See also #127

@andyrzhao
Copy link
Collaborator

Documented in: #167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants