Skip to main content

Documentation Index

Fetch the complete documentation index at: https://theoptimizer.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Once your Facebook integration is connected, you can manage the individual ad accounts and authentication profiles associated with it from Integrations → Facebook.

Ad Accounts

Click on the Facebook integration to see the full list of ad accounts pulled from your connected profiles.

Enable and Disable Accounts

Each ad account has an ON/OFF toggle. Disabling an account stops TheOptimizer from syncing data and running automation rules for that account. All historical data is retained — you can re-enable it at any time and data will resume syncing. You can also disable multiple accounts at once using the bulk actions menu.

Archive Ad Accounts

Archiving is a stronger form of removal than disabling. When an ad account is archived it is completely hidden from the system — it no longer appears in dropdown selectors, filters, or the Campaign Creator, and TheOptimizer stops all processing for it: no data sync, no automation rules, no campaign or resource visibility. Use archiving when you want to permanently retire an ad account from your workflow without losing the ability to restore it later if needed. Archive a single account Hover over any ad account row in the list. Below the account name, two inline actions appear: Edit and Archive. Click Archive to archive that account immediately.
Single ad account archive — hover the row to reveal the Archive inline action
Archive multiple accounts at once Select the checkboxes next to two or more ad accounts. A bulk action bar appears at the bottom of the screen showing options including Manage Tags, Manage Linked Trackers, and Archive. Click Archive to archive all selected accounts in one operation.
Bulk archive — select multiple accounts and use the Archive button in the bottom action bar
View and unarchive archived accounts Archived accounts are hidden from the default view. To find them:
  1. Click Filters at the top of the ad accounts list.
  2. Select Archived from the filter menu.
  3. Choose Archived (to see only archived accounts) or All (to see both active and archived).
  4. Click Apply Filters.
Filter by Archived status to reveal hidden archived accounts
Once the archived accounts are visible, select one or more using their checkboxes, then click Unarchive in the bottom action bar. The account is immediately restored — it reappears in all selectors and filters, and TheOptimizer resumes data syncing and rule execution for it.

Add Tags

Ad accounts can be tagged with any labels you define — by client, brand, vertical, team, or any other convention. Tags appear as filters throughout TheOptimizer, making it easy to work with specific subsets of accounts. Some tags (timezone, currency) are applied automatically by TheOptimizer when the account is first synced. To add a tag: hover the ad account row and click Edit, or use the tag controls directly in the Tags column.

Customise Tracker Connections Per Account

By default, tracker connections are configured at the integration level and apply to all ad accounts. But you can override this at the individual account level:
  • Link a different tracker — use a different tracking platform for this specific account.
  • Pause the tracker connection — stop pulling tracker data for this account without affecting others.
  • Change the tracking template — use a different template (macro mapping) for this account.
Access these settings from Linked Trackers on the individual ad account page.

Profiles

Profiles are the Facebook logins or access tokens that TheOptimizer uses to access your ad accounts. Each profile appears as a card in the Profiles panel, showing the profile name, how many ad accounts are assigned to it, and quick-action buttons.
Profiles panel — profile cards showing account count, Sync, Re-Authenticate, and Manage Ad Accounts buttons
Each profile card shows:
  • Account count — number of ad accounts currently assigned to this profile
  • Sync — re-queries Facebook to pull in any new ad accounts accessible to this profile
  • Re-Authenticate — refreshes the OAuth token or replaces a token that has expired
  • Manage Ad Accounts — opens the assignment dialog to control which ad accounts use this profile

Add New Profiles

Go to Integrations → Facebook → Profiles and click the Connect new profile card. Choose your connection method (Business profile, Personal profile, or Access Token) and complete the flow. Reasons to add multiple profiles:
  • Team access — each team member manages their own set of accounts under their own login.
  • Backup access — if a primary profile is restricted, a backup profile can take over the affected accounts immediately.
  • Multiple Business Managers — different Business Managers often have different admin logins.
  • Access Token isolation — keep system user tokens separate from personal logins for more stable long-running integrations.

Assign Ad Accounts to a Profile

Each ad account must be assigned to exactly one profile — the profile TheOptimizer uses to access it. To change which profile an account uses, click Manage Ad Accounts on the profile you want to assign accounts to.
Assign Ad Accounts dialog — accounts assigned to another profile (top) and accounts already using this profile (bottom)
The dialog shows two sections:
  • Accounts assigned to another profile — ad accounts that this profile has access to but which are currently using a different profile. Select any you want to reassign to this profile.
  • Accounts already assigned to this profile — ad accounts currently using this profile, listed for reference.
Select the accounts you want to add, then click Save. The selected accounts immediately switch to using this profile for all data sync and automation.
You can also reassign a single ad account directly from the ad accounts table — hover the row and click Edit to change its assigned profile without opening the profiles panel.

Sync New Ad Accounts

When you add a new ad account to a Business Manager you’ve already connected, it won’t appear automatically. To pull in the new account, click Sync on the relevant profile card. This re-queries Facebook for that profile and pulls in any newly accessible accounts.

Grant Access to New Pages

If you create a new Facebook Page after connecting TheOptimizer, it won’t automatically be available for use in the Campaign Creator. You need to re-authenticate the relevant profile and explicitly grant access to the new Page during the OAuth flow.
  1. Go to Integrations → Facebook → Profiles.
  2. Find the profile that should have access to the new Page and click Re-Authenticate.
  3. On the first step of the Facebook dialog, click Edit settings instead of Continue.
Click Edit settings on the Facebook authorization dialog to modify page access
  1. On the Pages selection screen, select the new Pages you want to grant TheOptimizer access to.
Pages selection screen — choose Opt in to all current and future Pages to avoid repeating this step
  1. Complete the rest of the OAuth flow as normal.
Select “Opt in to all current and future Pages” on the Pages screen. This grants access to any Pages you create in the future, so you won’t need to go through this process again the next time you launch a campaign under a new Page.

Re-authenticate a Profile

Facebook OAuth tokens expire or become invalid when you:
  • Change your Facebook account password
  • The ad network detects suspicious activity on your account
  • Security settings change (e.g., two-factor authentication changes)
  • The token is manually revoked from Facebook’s security settings
When a token expires, TheOptimizer can no longer sync data or run automation for the accounts under that profile. Click Re-Authenticate on the profile card and complete the OAuth flow again to refresh the token. Re-authenticating refreshes the token without losing any account history, automation settings, or tags.
Re-authenticate a profile to refresh an expired OAuth token
You will receive email notifications when a profile needs re-authentication. Do not ignore them. If a profile becomes invalid and is not refreshed, all automation and data sync for its accounts will silently stop.