Smart Ads Insight (Pro) reads your TikTok Ads spend through a developer app you create yourself on TikTok API for Business. You need three values: the App ID, the Secret and your Advertiser ID. TikTok reviews the developer account, then the app: allow a few days before the last step.
What you get once connected: the Ads Insight tab and the Ads section of the report. See Smart Ads.
IDs, names and keys are hidden on purpose on the screens below.
Steps #
- Create a developer account. Go to TikTok API for Business (business-api.tiktok.com) and create a developer account.
- Copy the redirect URL. In WordPress, go to Opti-Behavior → Settings → Ads, open the TikTok Ads card and click Copy next to “Advertiser redirect URL”.

- Create the app. In the developer portal, open “My Apps” and click “Create App”. Fill in “App name” and “App description”, paste the URL of step 2 in “Advertiser redirect URL”, tick “Ad account management” and “Reporting” under “Scope of permission”, then click “Submit”.



- Wait for approval. TikTok reviews the developer account first, then the app: allow a few days. The app cannot read your ad account before its status is “Approved”.
- Copy the App ID and the Secret. Open the app (“App Detail” → “Basic Information”): the App ID, then the Secret (click the eye to show it). The redirect URL you pasted is listed under “Advertiser redirect URLs”. Paste the two values in “App ID” and “Secret”. The secret is stored encrypted and never shown again.


- Find your Advertiser ID. In TikTok Ads Manager, open the account menu at the top right: it is the number under the account name, digits only (example: 7012345678901234567). Paste it in “Advertiser ID”. It is filled in for you when you authorize a single advertiser account.


- Click “Authorize TikTok”. Once the app is approved, sign in with the TikTok account that manages your ads and choose your account under “Ads Manager”. You come back to the card connected, the long-term access token is saved and the import starts.


Already have a long-term access token? Open “Or: paste a long-term access token by hand”: it replaces steps 1 to 5 and 7. Fill in the Advertiser ID, paste the token, then click Save token.
Common problems #
- Authorize fails or TikTok shows an error page. The app is not approved yet (step 4), or the “Advertiser redirect URL” of the app is not exactly the one shown in the card: copy it again with the Copy button.
- “This is not a TikTok advertiser ID.” It is a number, like 7012345678901234567 (TikTok Ads Manager, under the account name). Digits only.
- “TikTok does not let this key read this ad account.” Click “Authorize TikTok” again and tick the advertiser account, and check that the app has the Ad Account Management and Reporting permissions.
- “TikTok limits how often your ad account can be read.” Nothing was lost; the next daily import tries again.
- “Only a site administrator can authorize an ad account.” Sign in to WordPress as an administrator.
Good to know: the TikTok 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 Google Ads
Meta, Google Ads and TikTok are trademarks of their owners. Opti-Behavior is not affiliated with or endorsed by them.