# Facebook

pro business

# Setting up

To add a new integration go to Maintenance → Integrations and click Connect near Facebook integration:

Click "Add new":

Settings:

  • Integration name. A name of the integration, can be any, you can use it for your convenience.

  • Cabinet ID. ID of the advertising account on Facebook (see below how to find it).

  • Token. Facebook API token (see below how to find it).

  • Use proxy. Use a proxy to request Facebook API.

# Assigning to campaigns

Each integration can be assigned to multiple campaigns.

Press Link to campaign and choose the campaigns:

# Getting cabinet ID

Open to Facebook Ads Manager and copy your account ID:

# Getting API token

Open Apps page and press Create App:

Choose Other and create an App:

Open app settings. Then choose Marketing API:

Press Tools, then select all the checkboxes and press Get Token:

Copy the token.

# Fixing integration issues

The main reasons why integration may not work:

  1. Outdated version of the integration API. Make sure that the version of the tracker (Admin-Keitaro v) that you use is not lower than 9.14.15. This version of the tracker has integration compatibility with Facebook api version 13.

  2. Incorrect token to connect to an advertising account via API. The page from which the correct token is taken looks like this

  3. Absence of Facebook parameters, namely {{adset.id}} in the Campaign settings in the Settings section and correspondingly in the campaign link you place in the source. You can connect the parameters directly from the template, in the campaign settings.

If you do not fill in the parameters or use values other than the template, no costs will be received:

If the traffic first goes to your site, to which the tracker is connected via some integration script (KClient PHP/Tracking script/Wordpress plugin), the placeholders from the source template need to be added to the site url as domain.com?adset_id={{adset.id}}&....

  1. In the FB ad settings, only the campaign or integration site link is inserted with no additional parameters. When creating an ad, the placeholders you get when using the source should be added in a separate window for the parameters.

# Integration FAQ

Error "Not tied to the company"

The integration isn't selected in the campaign's settings in Keitaro.

Error "Success status but costs are not updating"

Make sure there is adset.id parameter both in campaign's parameters in Keitaro and in a Facebook link.

Error "Integration show an error"

Check the Facebook token, make sure it's not expired and valid for the account.