How do I optimise my Microsoft Advertising campaigns with Eulerian's Conversions API (CAPI) connector?
The Microsoft Advertising CAPI connector sends your conversions to Microsoft Advertising directly from Eulerian’s servers, through the Conversions API (CAPI), alongside the Universal Event Tracking (UET) tag. You create it in Activate > S2S, after three preparations: an authorisation on your Microsoft Advertising account, then an API token and the Tag ID of your UET tag.
Note
Solution: Activation. Module: Activate. Level: simple.
The problem
Ad blockers, browser restrictions on cookies, the limits of mobile tracking and consent collection all reduce the number of conversions that a browser tag such as the UET tag can measure. Fewer measured conversions means fewer signals for Microsoft Advertising’s bidding algorithms, and less accurate reporting.
What you will get
- A more reliable connection, to lower the cost per result. Loading errors, connectivity problems and ad blockers affect Conversions API data less than UET tag data. Used alongside the tag, the Conversions API lets the ad delivery system lower your cost per result.
- Ads optimised for actions taken later in the purchase journey. For example actions that follow a purchase (such as a subscription), in-store actions and customer scores. This information helps the system show your ads to the customers most likely to generate value.
- Better measurement. The Conversions API helps you measure the performance and attribution of your ads across the whole purchase journey, from discovery to conversion, online and offline.
- More matched events. A matched event is an event Microsoft Advertising can associate with one of its users. With the Conversions API you send additional customer information (hashed email, hashed phone number…) that increases their number.
Eulerian brings the exhaustive collection of browsing, conversion and ad interaction data, and a native CAPI connector.
Step 1: create an authorisation for your Microsoft Advertising account
Open Activate > Connector configuration > Authorisation and create an authorisation that targets the right Microsoft Advertising account.
This step comes first: the UET tag that will receive your server-side data, and so the conversions sent by the connector, are attached to that account.
Step 2: generate an API token and get the Tag ID of your UET tag
The Microsoft Advertising Conversions API is authenticated by an API token linked to your UET tag. To generate it, in your Microsoft Advertising account:
- Open the UET section and select your existing UET tag with the pencil icon (or set up a new UET tag).
- In the “Edit UET tag” section, click Save and next.
- In the “Set up tagging” section, select Use Conversions API.
- In the “Conversions API” section, click Copy Token, then Next and Done.
Also note the Tag ID of that same UET tag: step 3 asks for both values.
Microsoft documentation: https://learn.microsoft.com/en-us/advertising/guides/uet-conversion-api-integration?view=bingads-13 (opens in a new window)
Important
If you also measure your conversions with the UET tag in the browser, use the same UET tag for the CAPI connector. The UET tag and the connector send the same event ID (
eventId), so Microsoft Advertising automatically deduplicates the conversions received from both sources. You can override this ID if needed.
Step 3: create the connector
- Open Activate > S2S > Add a new connector > Microsoft Advertising CAPI.
- Fill in the fields of the table below.
- Click Next.
| Field | Value |
|---|---|
| Connector name | free text |
| User consent settings | select “custom vendor”, enter the name of the Microsoft Advertising vendor as declared in your consent management platform (CMP), then select the purposes defined for this vendor |
| Call type, incoming traffic | “site-centric” |
| Call type, internal promotion | not applicable |
| API Token | the Microsoft Advertising API token (step 2) |
| Tag ID | the ID of your UET tag (step 2) |
Tip
The hashed email address is sent by default, with no particular setting.
Step 4: set the trigger rules
Specify the pages on which the connector sends a server call. To send all your conversions, use a generic trigger rule that covers all your conversion events, for example:

Step 5 (optional): additional settings
On the connector’s settings screen:
- the Partner connector attributes panel lets you activate, deactivate or archive the connector, or schedule its activation;
- the Partner parameters panel repeats your API Token and your Tag ID, and adds three optional parameters, described below;
- the Custom parameters panel lets you send any additional parameter.

| Parameter | Effect |
|---|---|
| email_remap | to set only if your users’ hashed email address reaches Eulerian through a CRM sync. Without it, the hashed email is still sent by default |
| phone_remap | to set only if your users’ hashed phone number reaches Eulerian through a CRM sync |
| event_name | the name of the event sent to Microsoft Advertising. If left empty, it is filled in from the context of the call: purchase for a sale, cart for a started basket, page_view for other events. For a conversion to count in a custom conversion goal, this name must match the event action defined in the goal on the Microsoft Advertising side |
For sale and quote events, you can send the conversion amount, its reference and the associated products, as well as custom parameters such as the pLTV (predicted lifetime value).
The information sent to Microsoft Advertising
- the Eulerian internal ID (EUID), through the
anonymousIdparameter; - the visitor’s IP address and their browser’s user agent;
- the visitor’s CRM ID, if they are logged in;
- the visitor’s hashed email, if it is specified in the connector’s configuration (
email_remap) and available; - their hashed phone number, if it is specified in the connector’s configuration (
phone_remap) and available; - the
idfaand thegaid, if available; - the Microsoft Advertising click ID
msclkid, taken from the parameter of the same name in the landing page URL. It is sent only if the name of the channel preceding the conversion contains “Bing” or “Microsoft”.
For the msclkid to be sent, auto-tagging must be enabled in your Microsoft Advertising account, and your campaigns must be tracked with the Eulerian tracking template: see How do I track my Bing Ads campaigns?
For spend, see How do I sync my Bing Ads spend with Eulerian?. For any difficulty, contact the Customer Success team at am@eulerian.com.