Ad platforms

Connect X (Twitter) Ads

Updated

Add the X destination with your pixel ID, the event ID of your purchase event, and the four keys of an X developer app with Ads API access. Purchases go to X from the server; spend syncs with the same kind of keys.

Before you start

  • Admin or advertiser access to your X account.
  • The owner or admin role in ROASaurus, and your store connected with tracking installed.
  • A paid plan or the trial: the Free plan sends conversions to Meta, Google Ads, Google Analytics 4 and TikTok only.

Steps

  1. Get your X details

    In X Ads, open Events Manager for the pixel and event IDs, and the X developer portal for the app keys.

    • Pixel ID: from Events Manager
    • Purchase event ID: for example tw-o1abc-o1def; optional IDs for add to cart, checkout, page view and lead
    • API key and API key secret: of a developer app with Ads API access
    • Access token and access token secret: of a user with Ad Manager access to the ad account
  2. Add X in ROASaurus

    Open Connections › Tracking & destinations, find X under Ad platforms and click Add pixel. Fill in the fields, tick the events to send, and click Save.

    You should see: X listed on the page with its events, and on the store's Connections page as Connected.

  3. Send a test

    Place a test order and check the delivery; X shows the conversion in Events Manager after a delay.

    You should see: In Data quality › Deliveries, the event with status sent and the platform's answer.

    The ROASaurus Mac app showing Deliveries: each server event per platform with its status and the platform's answer. Fictional demo store, simulated data.
    The ROASaurus iPhone app showing Deliveries: each server event per platform with its status and the platform's answer. Fictional demo store, simulated data.
    Data quality › Deliveries in the Mac and iPhone apps (fictional demo store, example data).
  4. Bring in ad spend

    Under Ad spend, click Connect an ad account, choose X (Twitter) and enter the app keys and tokens.

    You should see: "Connected … Spend of the last 30 days is synced." The account then syncs every hour.

What you should see

Every paid order goes to X from the server, and its campaign spend counts in ROAS, CAC and profit per campaign. Data quality › Overview shows the share of orders X accepted and which match keys they carried.

Common problems

"Unauthorized" from X
The app has no Ads API access yet, or the user of the access token has no access to the ad account. Request Ads API access in the developer portal.
Deliveries show "failed"
Open the failed row: it shows X's own error. Most often a token was revoked or lacks a permission. Fix the credentials on the destination, save, then use Send again.

Next step

Send revenue, revenue without tax and shipping, profit or predicted lifetime value.

Choose the conversion value

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.