Skip to main content
This guide shows you how to register your own app with Google to obtain your OAuth credentials (client ID & secret). These are required to let your users grant your app access to their Google Ads accounts.
You will need to pass a security review to go live with your integration.Follow our guide to get approved as fast as possible.

Create your OAuth App

1

Create a Google Cloud account

If you don’t already have one, sign up for a Google Cloud account.
2

Create a new project

  1. Go to the Google Cloud Console.
  2. Click on the project dropdown at the top left of the page.
  3. Click New Project.
  4. Enter a Project Name for your project.
  5. Under Location, select the appropriate organization or folder where this project should belong.
    If you’re not part of an organization, it will default to No organization
  6. Click Create and wait for the project to be created.
  7. Select it from the project dropdown.
3

Enable the APIs you need

  1. Go to the API Library in the Google Cloud Console.
  2. Search for Google Ads API and click Enable.
4

Configure the OAuth consent screen

  1. Go to APIs & Services > OAuth consent screen in the Google Cloud Console.
  2. Click Get started.
  3. Fill in all the required fields in the App Information form.
  4. Click Next. Select the appropriate Audience:
    • External: For applications available to any Google user
    • Internal: For applications restricted to users within your Google Workspace organization
  5. Click Next. Fill in the Contact Information; these are the email addresses that Google will use to notify you about any changes to your project.
  6. Click Next, then check the I agree to the Google API Services: User Data Policy checkbox, and click Continue.
  7. Add the scopes your application needs. Under Data Access, click Add or Remove Scopes and select the scopes that correspond to the APIs you enabled.
Make sure to select scopes based on the APIs you enabled earlier when setting up the app. See Google’s OAuth 2.0 Scopes documentation for all available scopes.
  1. Under Audience, click Add users if you selected External user type (required for testing before verification).
In “Testing” mode with an external user type, refresh tokens expire in 7 days unless only basic scopes are used (userinfo.email, userinfo.profile, openid, or their OpenID Connect equivalents). You can remove this 7-day limit by switching from Testing to Production in step 8 below.
5

Create OAuth 2.0 credentials

  1. Go to APIs & Services > Credentials in the Google Cloud Console.
  2. Click Create Credentials and select OAuth client ID.
  3. Select Web application as the application type.
  4. Enter a name for your OAuth client.
  5. Under Authorized redirect URIs, add https://api.nango.dev/oauth/callback.
While setting up the OAuth credentials, the Authorized JavaScript origins should be your site URL (https://app.nango.dev if you’re testing from the Nango UI).
  1. Click Create.
  2. A dialog will appear with your client ID and client secret. Save these credentials securely as you’ll need them when configuring your integration in Nango.
Google allows up to 100 refresh tokens per account per OAuth client ID. New tokens overwrite the oldest without warning when the limit is reached.
6

Check your Google Ads API access level

Google Ads API access is set by the Google Cloud project that owns your OAuth client. You don’t need a developer token: Google sunset developer tokens on September 9, 2026.Enabling the API gives your project Test access, which only works with Google Ads test accounts. To call production accounts, open your project’s Google Ads API Overview page in the Google Cloud Console and apply for Explorer access. Approval is automated in most cases.Explorer access allows up to 2,880 operations per day on production accounts. Each search request, including each page of results, counts as one operation. Apply for Basic or Standard access from the same page if you need more. See Google’s access levels documentation.
Calls to production accounts from a project with only Test access fail with CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION (v25 and later) or ACTION_NOT_PERMITTED (v24 and earlier).
7

Set your manager account customer ID (optional)

If you access your users’ Google Ads accounts through a manager (MCC) account, Nango sends that account’s customer ID (10 digits, no hyphens) as the login-customer-id header. Skip this step if you don’t use a manager account.If every connection uses the same manager account, set it once as a connection config default so it isn’t shown in the Connect UI:
If your end users each have their own manager account, leave it out. It appears as an optional field in the Connect UI for them to fill in.
login_customer_id is an optional connection_config field. Pass it under integrations_config_defaults.<INTEGRATION-ID>.connection_config when creating a connect session via the create connect session API if your integration always uses one manager account. Omit it if it varies per end user; the Connect UI collects it instead.Don’t pass developer_token. Google ignores it today and will reject it in a future API version.
8

Start building your integration

Follow the Quickstart to build your integration.
9

Verify your app

Most Google Ads scopes are marked “sensitive” by Google.You can develop your integration in test mode, but you need to pass a security review to go live.Follow our guide to prepare and pass as quickly as possible.
For applications using sensitive or restricted scopes, Google requires verification and a security assessment. This process can take several weeks to complete.
10

Publish your app (switch from Testing to Production)

To move your OAuth app from testing to production:
  1. Go to APIs & Services > OAuth consent screen > Audience.
  2. Click Publish App to switch your app from testing to production.

Important considerations

Refresh token expiration For information on why Google refresh tokens expire, see Why is my Google refresh token expiring?. For Google OAuth basics, see Google’s OAuth 2.0 documentation. For more details on Google Ads scopes and API implementation, see Google Ads API documentation.