Skip links
View Categories

Connect Meta Ads to Opti-Behavior Pro: where to find each key

4 min read

Smart Ads Insight (Pro) reads your ad spend with keys you create yourself in your own Meta business. You need two values: a System User access token and your ad account ID. You also need an app in your Meta business (Meta App Dashboard). Allow about 15 minutes.

What you get once connected: the Ads Insight tab and the Ads section of the report. See Smart Ads.

The Meta screens below were captured in French; every button is at the same place in English. IDs, names and keys are hidden on purpose.

Steps #

  1. Open System users. Open Meta Business Settings (business.facebook.com/settings), then Users → System users. Keep the Meta Ads card (WordPress → Opti-Behavior → Settings → Ads) open in another tab.
    Business settings, System users list with the Add buttonOpen the Meta Ads card
  2. Add a system user. Click “Add”, give it a name and keep the role Employee: it is enough.
    Create system user dialog with name, role and confirm button
  3. Give it your ad account. Select the system user and click “Assign assets”. Choose “Ad accounts”, tick your ad account, turn on “View performance”, then click “Assign assets”.
    Assign assets dialog with the ad accounts category selectedAd account row selected in the asset assignment dialogToggle to view performance and the assign button
  4. Give it a role on your app. In Business Settings, open Accounts → Apps, select your app and click “Assign people”. Tick the system user, turn on a role for it, then click “Assign”. Do not skip this step: without a role on the app, Meta shows “No permissions available” when you generate the token and ads_read cannot be ticked.
    Business settings, Apps page with the Assign people buttonAdd people to the app, system user row selectedAssign a role on the app to the system user
  5. Generate the token. Back in Users → System users, select the system user and click “Generate token”. Select your app. Then choose when the token expires: with “60 days”, you will have to generate and paste a new token every 60 days (the card then shows “Reconnect needed”); with “Never”, the token works until you revoke it (“Revoke tokens”). On the permissions screen, tick ads_read, then generate the token.
    Generate token dialog, app selectorGenerate token dialog with the app list openToken expiry choice: 60 days or never
  6. Paste the token. Copy the token into “System User access token (ads_read)”. It is stored encrypted and never shown again.
    Paste the token
  7. Find your ad account ID. In Ads Manager, open the account menu at the top left: the number shown under “Ad account ID” is the ID. Paste it in “Ad account ID”, with or without act_ (example: act_1234567890).
    Ads Manager account selector showing where the ad account ID isFind your ad account ID
  8. Only if your Meta app requires “app secret proof”. Meta asks for the App ID and the App secret only when “Require app secret” is on (Meta App Dashboard → App settings → Advanced → Security). You find both in App settings → Basic: the App ID, and the App secret behind the “Show” button. Otherwise leave these two fields empty.
    Advanced app settings, the secret-proof requirement toggleApp settings, where the App ID and the app secret areOnly if your Meta app requires app secret proof
  9. Click Save. The token is checked at once with one light read of the account, then the figures are imported. The card shows the name and the currency of your ad account.
    Click Save

Common problems #

  • “No permissions available” when you generate the token. The system user has no role on the app. Do step 4 (Accounts → Apps → your app → “Assign people” → the system user → a role), then start “Generate token” again. The “Installed apps” tab of the system user stays empty until a first token exists: this is normal, the role is not given there.
    Error message: no permission available when the system user has no app roleSystem user tab for installed apps
  • “This is not an ad account ID.” Paste only the number of the account menu in Ads Manager, like act_1234567890. Not the Business ID, not a campaign ID.
  • “Meta does not let this key read this ad account.” The system user does not have the account: go back to step 3 (“Assign assets” → your ad account → “View performance”), and check that ads_read was ticked when the token was generated (step 5). Then generate a new token and save again.
  • No app to pick when you generate the token. The token is generated for an app of your business. Create an app in the Meta App Dashboard first, give the system user a role on it (step 4), then come back to step 5.
  • “Reconnect needed” after about 60 days. The token was generated with the 60-day expiry. Generate a new token (step 5), paste it and save.
  • “Meta limits how often your ad account can be read.” Nothing was lost; the next daily import tries again.
  • The token was pasted but you cannot see it any more. This is expected: a saved token is never shown again. To replace it, paste a new one and save.

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 Google Ads · Connect TikTok Ads

Meta, Google Ads and TikTok are trademarks of their owners. Opti-Behavior is not affiliated with or endorsed by them.

Leave a comment

Explore
Drag