# Facebook Ads Integration

Sign in to Facebook ads account

{% embed url="<https://www.facebook.com/adsmanager/>" %}

***

### Create Campaign

1\. Click on the "**+ Create**" button to create a new Campaign

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FD0v5swvxAybkzKU21Ayv%2Fimage.png?alt=media\&token=f958e8f9-c5d3-4b3a-b6ed-54e5c0b0b32d)

2\. Choose the **Campaign objective**

3\. Define **Campaign Name** and **Campaign Budget**

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2F0MaUY0BV1BW9ITGwvatT%2Fimage.png?alt=media\&token=dbc7c4ef-174e-4bee-914e-ec1037759669)

#### **Ad Set**

* Define **Campaign Schedule**
* Select **Placements** and **Targeting**&#x20;

#### **Ad**

* Choose **Ad format** from **Ad Setup**
* Add **Creatives** and the **description** of the **advertisement**
* Add **Affiliate Tracking link** in "**Website URL**"

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FGCLFPcwCiLdAlXJRMEEP%2Fimage.png?alt=media\&token=4f24067e-0a53-4189-a52c-177a445d576a)

* Click on the **Publish** button

For more information visit&#x20;

{% embed url="<https://en-gb.facebook.com/business/help/621956575422138?id=649869995454285/>" %}

***

### Postback Setup <a href="#postback-setup-in-offer18" id="postback-setup-in-offer18"></a>

#### Get Facbook Postback

1\. Go to **Events Manager** **» Data Sources**

2\. Add Events **»** Select "**From a New Website**"

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FMnNSM2mH63400faL4nqa%2Fimage.png?alt=media\&token=729b0d9b-1cc3-4d65-b565-1585b3881b18)

3\. Click on "**Install code manually**"&#x20;

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2F2uuFOn90HvcyGVm6pDn5%2Fimage.png?alt=media\&token=bd5e06f7-9ae3-41ac-9282-4df919950952)

4\. Collect the pixel code segment using the "**Copy code**" button.

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FKoaWwpQB5z16R0S8LylN%2Fimage.png?alt=media\&token=83b8da2c-3622-4ede-b343-168e68e55eb5)

#### Add Postback in Offer18

* log in to the Offer18 Affiliate Dashboard
* Offers **»** My Offers(Approved)

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FvbiFHaZCUgkoaWGUfk35%2Fimage.png?alt=media\&token=113c6666-528f-44e5-b168-c634a4ca7f53)

* Click on the Offer name to enter its configuration.
* Scroll Down to Postback Section. &#x20;
* Select an event from the Event drop-down.
* Select "HTML Tag/iframe" from Type Drop-down.
* Place the pixel code segment inside the Postback field.
* Click on Add button

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FQrYYP2Tgtk48LWBZdNir%2Fimage.png?alt=media\&token=30cb35d9-6410-4dba-b66b-a1b16fa7572d)

***

### Postback Results

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FlFZlY7N7wZkfNaEkFuMS%2Fimage.png?alt=media\&token=88b70e15-c219-4f1a-af10-ea562e982658)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.offer18.com/affiliate/integration/facebook-ads-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
