> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.adsxapp.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to set up the B4You postback in AdsX

The postback is the link that tells AdsX about each B4You sale. On B4You, it is called a **webhook**. Once it is set up, every B4You sale shows up in **My Sales** in AdsX, along with the ad that drove it. You set it up once for each B4You account.

## 1. Copy the postback in AdsX

In the side menu, open **Advanced Tracking → Activate Platforms**. On the **B4You** card, click **Copy postback**.

![Copy postback button on the platform card in AdsX](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/copiar-postback_ximvee.png)

## 2. Open the B4You webhooks

Log in to the [B4You dashboard](https://dash.b4you.com.br/apps/webhooks). In the B4You dashboard, click **Apps** in the side menu and then **Webhooks**.

![B4You – step 1](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/1_1q0ajr4.png =640x360)

## 3. Create the webhook

Click **Nova Integração** (New integration).

![B4You – step 2](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/2_cqzytq.png =640x360)

## 4. Fill in the webhook

1. **Nome do Webhook** (Webhook name): a name you will recognize, such as "AdsX".
2. **URL do Webhook** (Webhook URL): paste the postback you copied in AdsX.
3. **Produto** (Product): choose **Todos que sou afiliado** (All I am an affiliate of).
4. **Eventos** (Events): check **Compra aprovada** (Purchase approved). Also check **Carrinho abandonado** (Abandoned cart): it shows up in **My Sales** as a checkout, so you see who reached the payment page and did not buy.
5. Click **Salvar** (Save).

![B4You – step 3](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/3_5k1hb8.png =640x360)

## 5. Activate B4You in AdsX

Go back to AdsX and, on the **B4You** card, click **Activate**. Without this click, B4You is not active in AdsX.

![Activate button on the platform card in AdsX](https://storage.crisp.chat/users/helpdesk/website/-/c/d/6/5/cd65ba6180e97000/ativar_7xvwhp.png)

The card now shows **Activated**, and B4You appears as an option when you create a presell.

## How to know it worked

The next B4You sale shows up in **Advanced Tracking → My Sales**. If it does not, check:

- that the **Compra aprovada** event is checked;
- that the link in **URL do Webhook** matches the one you copied in AdsX, complete and with no space at the end;
- that the presell product is from B4You.

Stuck on a step? Talk to support through the chat inside AdsX.