Setup Facebook and Instagram

Warning

The Facebook API will be retired at the end of February 2023.

Update a Facebook Page

You can update the Facebook Page used by an Advertiser by repeating the steps in Link a Facebook Page.

Read a Facebook Page

You can verify page access by calling GET /facebook/fb_page_url and verifying that page_access and page_admin_access fields are true.

curl -H 'Authorization: Token YOUR_TOKEN' \
https://services.adroll.com/facebook/fb_page_url?apikey=MYAPIKEY
{
    "fb_page_id": "924916227619294",
    "fb_page_img": "https://scontent.xx.fbcdn.net/v/t1.0-1/c8.0.50.50/p50x50/13227202_924916487619268_2595545300798231503_n.jpg?oh=841895bd5e393a55db271b4ab9b4a212&oe=57C28088",
    "fb_page_name": "Cats 4 Gold",
    "is_published": true,
    "page_access": true,
    "page_admin_access": true
}

Error Codes

Code

Message

Reason

1359102

A Facebook Ad Account is required

We have not completed its integration with Facebook. Wait a few minutes and try again

1359102

A Facebook page URL is required

The Facebook Page integration process has not been completed

Target Instagram

You target Instagram by including instagramstream in the placement_targets parameter of the POST /api/v1/adgroup/create endpoint:

curl -H 'Authorization: Token YOUR_TOKEN' \
-F campaign=F6FMJOTUHVENRAFAR34OV7 \
-F placement_targets="[\"desktopfeed\",\"mobilefeed\",\"rightcolumn\",\"FAN\",\"instagramstream\"]" \
-F name="Test AdGroup" \
'https://services.adroll.com/api/v1/adgroup/create?apikey=MYAPIKEY'