Smart Ads Insight (Pro) reads your Google Ads spend through an OAuth client you create in your own Google Cloud project. You need three values: the OAuth client ID, the OAuth client secret and your Google Ads customer ID. No developer token is asked.
What you get once connected: the Ads Insight tab and the Ads section of the report. See Smart Ads.
The Google screens below were captured in French; every button is at the same place in English. IDs, names and keys are hidden on purpose.
Steps #
- Pick or create a Google Cloud project. Open the Google Cloud console and pick or create your own project. You do not need to start the Google Cloud free trial: the Google Ads API does not need it.
- Enable the Google Ads API. In that project: APIs & Services → Library → Google Ads API → Enable. This gives Test access: test accounts only.

- Request Explorer access. On the Google Ads API page of the Cloud console, open “Access levels” → “Manage” and request Explorer access so that your real ad account can be read. Google usually reviews it automatically. When it is granted, “Current access level” shows Explorer.


- Fill in the Branding page. Google Auth Platform → Branding: app name, user support e-mail, application home page and privacy policy link. Without it, the “Publish app” button of step 8 stays greyed out.

- Create the OAuth client. Google Auth Platform → Clients → “Create client”, application type “Web application”, and give it a name.


- Paste the redirect URI. In WordPress, go to Opti-Behavior → Settings → Ads, open the Google Ads card and click Copy next to “Authorized redirect URI”. In the OAuth client form, click “Add URI” under “Authorized redirect URIs” (not “Authorized JavaScript origins”), paste it, then click “Create”.


- Copy the client ID and the client secret now. Google shows the client secret only once, in the window that opens right after “Create”: copy both values at once and paste them in “OAuth client ID” and “OAuth client secret”. Later, the page of the OAuth client no longer shows the secret. If you lost it, add a new secret on that page (“Client secrets”) and paste the new one. The secret is stored encrypted and never shown again in WordPress either.


- Publish the app. Google Auth Platform → Audience → “Publish app”. If the button is greyed out, finish the Branding page first (step 4). If the app stays in “Testing” mode, Google expires the access after 7 days.

- Find your customer ID. It is the 10-digit number at the top left of Google Ads, under the account name (example: 123-456-7890); it is also shown next to each account in the Google Ads account picker. Paste it in “Customer ID”; dashes are accepted.



- Click “Authorize Google Ads”. Accept with a Google account that can see the ad account. You come back to the card connected and the import starts.

Already have a refresh token? Open “Or: paste a refresh token by hand”: it replaces step 10. Fill in steps 7 and 9, paste the token, then click Save token.
The access Google grants (scope “adwords”) includes read and write access to your Google Ads account; Opti-Behavior Pro uses it only to read.
Common problems #
- Google refuses the redirect URI (redirect_uri_mismatch). The URI in your OAuth client must be exactly the one shown in the card: use the Copy button, paste it under “Authorized redirect URIs” (not “Authorized JavaScript origins”), with no space and no extra character. If your site address changed (http → https, www), copy it again.
- You cannot find the client secret any more. Google shows it only when the client is created (step 7). Open the OAuth client, add a new secret under “Client secrets”, copy it at once, paste it in “OAuth client secret” and save.
- “Publish app” is greyed out. The Branding page is not complete: fill it in (step 4), then come back to Audience.
- “This is not a Google Ads customer ID.” It has 10 digits, like 123-456-7890 (top of Google Ads, next to the account name). With a manager account, paste the ID of the ad account itself.
- Access refused, or no figures after authorizing. Check that the Google account you accepted with can see the ad account, and that Explorer access was granted (step 3): with Test access only test accounts can be read.
- Explorer access is refused. A Cloud project on a free trial or with suspended billing is refused Explorer access (known Google issue). Use a project without the free trial.
- Connected, then disconnected after 7 days. The OAuth app is still in “Testing” mode: publish it (step 8), then click “Authorize Google Ads” again.
- “Only a site administrator can authorize an ad account.” Sign in to WordPress as an administrator.
Good to know: the Google Ads connection was built against the public API documentation and checked with simulated responses; we have not yet run it on a live ad account.
Test, sync, disconnect #
“Test connection” checks the keys. The import runs daily; “Sync now” runs it at once. Figures are kept for a rolling 30 days. “Disconnect” deletes the keys from your site; the figures already imported stay and drop out as they pass 30 days. Disconnecting does not cancel the access on the network’s side: to withdraw it, revoke the token or the app in your Meta, Google or TikTok account. Uninstalling Opti-Behavior Pro deletes the keys and the imported figures.
Where your keys go #
Your API credentials are stored encrypted in your WordPress database and are sent only to Meta, Google or TikTok. They never pass through Opti-Behavior servers. Anyone with admin or database access to your site can use them. Opti-Behavior Pro only sends read (reporting) requests; it never creates, edits or deletes campaigns.
Other networks #
Connect Meta Ads · Connect TikTok Ads
Meta, Google Ads and TikTok are trademarks of their owners. Opti-Behavior is not affiliated with or endorsed by them.