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

Using with Google service account and JWT #72

Open
1 of 4 tasks
amitosdev opened this issue Jan 21, 2021 · 1 comment
Open
1 of 4 tasks

Using with Google service account and JWT #72

amitosdev opened this issue Jan 21, 2021 · 1 comment

Comments

@amitosdev
Copy link

amitosdev commented Jan 21, 2021

I'm submitting a ...

  • bug report
  • feature request
  • question about the decisions made in the repository
  • question about how to use this project

Summary

I am trying to understand how to use this module with JWT authentication. I have a simple Lambda that will run every few hours, get reports from Google Ads and store it in one of our DBs. The Ads account is internal (and server-to-server) so as I understand I don't need OAuth. I setup a Google service account and download the JSON file but I didn't understnad how to use it with this module. I also have a developer token I got from Google Ads.

Other information

This is the information I have in the JSON:

{
  "type": "service_account",
  "project_id": "XXX",
  "private_key_id": "XXX",
  "private_key": "-----BEGIN PRIVATE KEY-----XXXXXXXXX-----END PRIVATE KEY-----\n",
  "client_email": "[email protected]",
  "client_id": "XXX",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "XXXXXXXXX"
}
@wcoots
Copy link
Contributor

wcoots commented Mar 3, 2021

This is something we are aware of and will be looking into in the future. Pull requests to google-ads-api are welcome if you need it sooner.

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

No branches or pull requests

2 participants