This is the seventh 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 use the CustomerService.ListAccessibleCustomers() method to retrieve the resource names of all Google Ads customer accounts that are accessible with an authenticated user’s refresh token. It will also show how to leverage the Google Ads Runner created in Part 6 and implement server side error handling for invalid refresh tokens.
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...
Google Cloud console: https://console.cloud.google.com
Chapters:
00:00 Intro
01:50 Writing the ListAccessibleCustomers method
04:30 Getting Resource Names from the Response
06:12 Handling Invalid Refresh Tokens