Configure a Client Library for OAuth in the Google Ads API

Stay organized with collections Save and categorize content based on your preferences.

Once you have the configuration requirements, you're ready to set up a client library to handle Google Ads API calls. Since each client library is configured differently, follow the instructions linked to below for your particular programming language.

Configure client library with OAuth2 credentials

Verify your configuration

When you've completed setting up OAuth, make a call to the Google Ads API using one of the provided code examples in the client library. Choose a simple example, like GetCampaigns, to verify your setup.

If you encounter issues, diagnose your OAuth2 credentials with Google Ads Doctor and review the preceding steps. You can also consult the Troubleshooting guide for tips on debugging common issues.