# MD for: https://www.mercadopago.com.mx/developers/en/docs/checkout-pro-orders/additional-settings/ads-conversion.md \# Ads conversion Ads conversion analysis allows you to evaluate the return on your commercial campaigns. Checkout Pro offers integration with Facebook Ads and Google Ads, allowing you to associate payments with your campaigns. > NOTE > > Only instantly approved payments with credit and debit cards, Mercado Pago cash, or Meses sin Tarjeta will be associated. ## Facebook Ads To associate an order with a Facebook Ads pixel, include the \`config.online.tracks\` parameter with the \`type\` \`facebook\_ad\` and the corresponding \`pixel\_id\` when sending the request to the :TagComponent{tag="API" text="Create order" href="/developers/en/reference/online-payments/checkout-pro/create-order/post"} endpoint. > NOTE > > Only one pixel can be configured per order. For more information, visit the \[official Facebook site\](https://www.facebook.com/business/help/742478679120153?id=1205376682832142). \`\`\`curl curl -X POST \\ -H 'accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'Authorization: Bearer ENV\_ACCESS\_TOKEN' \\ -H 'X-Idempotency-Key: UNIQUE\_KEY' \\ 'https://api.mercadopago.com/v1/orders' \\ -d '{ "type": "online", "processing\_mode": "manual", "total\_amount": "1000.00", "external\_reference": "order\_pro\_123", "payer": { "email": "buyer@email.com" }, "items": \[ { "title": "My product", "unit\_price": "1000.00", "quantity": 1, "unit\_measure": "unit", "total\_amount": "1000.00" } \], "config": { "online": { "tracks": \[ { "type": "facebook\_ad", "values": { "pixel\_id": "PIXEL\_ID" } } \] } } }' \`\`\` Once the configuration is complete, a \`purchase\` event will be associated with the specified pixel when a payment originated by your ad is approved. ## Google Ads To associate an order with a Google Ads tag, include the \`config.online.tracks\` parameter with the \`type\` \`google\_ad\` and the \`conversion\_id\` and \`conversion\_label\` values available in your Google account when sending the request to the :TagComponent{tag="API" text="Create order" href="/developers/en/reference/online-payments/checkout-pro/create-order/post"} endpoint. > NOTE > > Only one tag can be configured per order. For more information about Google Ads conversion tags, visit the \[official Google site\](https://ads.google.com/home/). \`\`\`curl curl -X POST \\ -H 'accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'Authorization: Bearer ENV\_ACCESS\_TOKEN' \\ -H 'X-Idempotency-Key: UNIQUE\_KEY' \\ 'https://api.mercadopago.com/v1/orders' \\ -d '{ "type": "online", "processing\_mode": "manual", "total\_amount": "1000.00", "external\_reference": "order\_pro\_123", "payer": { "email": "buyer@email.com" }, "items": \[ { "title": "My product", "unit\_price": "1000.00", "quantity": 1, "unit\_measure": "unit", "total\_amount": "1000.00" } \], "config": { "online": { "tracks": \[ { "type": "google\_ad", "values": { "conversion\_id": "CONVERSION\_ID", "conversion\_label": "CONVERSION\_LABEL" } } \] } } }' \`\`\` Once the configuration is complete, a conversion will be associated with the specified tag when a payment originated by your ad is approved.