[Live Demo] Building a Google Ads API Web App - Part 6: Google Ads API Setup

Опубликовано: 09 Октябрь 2024
на канале: Google Ads Developers
5,121
16

This is the sixth part of an 8-episode series, in which we’ll take a deep dive into developing web apps with the Google Ads API, with a focus on the OAuth flow, by building a multi-tenant app entirely from scratch.

This episode will demonstrate how to write easily maintainable code with the Google Ads API by creating “Google Ads Runner” that dynamically generates Google Ads clients with user-specific refresh tokens accessed via the secret manager implementation from Part 5. The “Google Ads Runner” also makes handling Google Ads exceptions and upgrading versions more efficient.

Resources:
Google Ads API documentation: https://developers.google.com/google-...
Google Ads API OAuth documentation: https://developers.google.com/google-...
Google Ads API Auth Video Series:    • Authentication & Authorization Series  
list_accessible_customers example: https://github.com/googleads/google-a...
Obtain your Developer Token: https://developers.google.com/google-...
Google Cloud console: https://console.cloud.google.com

Chapters:
00:00 Intro
00:49 Creating the Google Ads Runner
02:30 Creating Credentials
02:42 Obtaining a Developer Token
04:14 Retrieving Refresh Tokens from the Secret Manager
04:57 Handling Invalid Refresh Tokens
07:44 Handling Google Ads Exceptions
08:06 Benefits of using a Google Ads Runner