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

Use service account for connecting to Google Ad Manager API #27213

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

Jakeii
Copy link
Member

@Jakeii Jakeii commented Jun 10, 2024

What is the value of this and can you measure success?

Current authentication is tied to a user account of someone on the commercial team.

If for whatever reason their account is removed (when they leave) or they no longer need access to GAM (by changing teams) the credentials stop working and they need to be replaced.

This has happend a few times over the years, by changing to a service account we can stop this mildly inconvenient thing happening now and again!

What does this change?

Replace client id/secret and refresh token with a service account JSON file (still stored in parameter store).

The SDK will only accept a file path so the token is written as a temporary file and then cleaned up using the stop hooks.

Checklist

@Jakeii Jakeii marked this pull request as ready for review June 13, 2024 10:52
@Jakeii Jakeii requested a review from a team as a code owner June 13, 2024 10:52
@Jakeii Jakeii requested a review from a team June 13, 2024 10:52
@Jakeii Jakeii merged commit 2715f1b into main Jun 17, 2024
3 checks passed
@Jakeii Jakeii deleted the jlk/use-service-account-for-gam branch June 17, 2024 10:29
@prout-bot
Copy link
Collaborator

Seen on ADMIN-PROD (merged by @Jakeii 12 minutes and 5 seconds ago)

@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD (merged by @Jakeii 13 minutes and 9 seconds ago)

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

Successfully merging this pull request may close these issues.

3 participants