Connector

Collect X Ads data in Snowflake

Load X Ads, formerly Twitter Ads, into Snowflake tables with OWOX Data Marts: campaigns, line items, promoted tweets and daily performance on a schedule. See each promoted post with its engagement counts, then join to web analytics and CRM.

X AdsConnectedAccountsAd PerformanceAd Performance…All Cards
Data MartPublishedone definition
SnowflakeDateClicksImpre…Daily 09:00
Refreshed on a schedule. No exports, no copy-paste.

Get Started Free

Hand this to your AI

X Ads spend never sits in the same query as your other paid channels, so it's judged on engagement alone.

Paste this into your AI assistant. It loads X Ads into Snowflake tables with OWOX Data Marts and lines billed spend up with your other paid channels by date, so X is judged on cost per lead.

The prompt

load X Ads into Snowflake and give me weekly billed spend, clicks and leads for X next to my other paid channels in one table, with cost per lead for each

Endpoints

S00 · Why

Why X Ads belongs next to your CRM in Snowflake

On X an ad is a post. X Ads reports impressions, engagements and the amount billed, but not what the visitors it sent were worth. Put promoted posts, ad performance, website touch points and CRM deals in one data warehouse as tables and SQL can start to answer that.

  • Read each promoted post's text and counts in one place
  • Compare X with LinkedIn, Facebook and Google in one spend query
  • Follow link clicks to the visits and deals after them
X AdsPromoted post spend
Web analyticsVisits, sign-ups
CRMOpportunities, deals
Your data warehouseSnowflakePromoted po…VisitDealJoined by idPost promotedDeal months laterA SQL join links the post to the deal.

S01 · Step 1

Step 1: Connect X Ads and choose the fields

Create a Data Mart on Snowflake and choose X Ads as the data source. Enter your developer app keys, tokens and Account ID, then select the fields.

  • 10 endpoints and 187 fields are available
  • Ad Performance has 20 fields: impressions, clicks, billed charge, engagements, follows and likes
  • Several account ids can feed one Data Mart
New Data MartChoose a sourceLinkedIn AdsX AdsReddit AdsAuthorizeConnectedEndpointAd PerformanceAccountsAd Performance by…All Cards
Ad Performance20 fieldsdateplacementimpressionsclicksbilled_engagementsbilled_charge_local_micro

S02 · Step 2

Step 2: Load X Ads into a Snowflake table

Review the pre-filled Snowflake database, schema and table. The first run loads the previous month through today.

  • Performance goes to its own table, such as the stats table
  • billed_charge_local_micro is local currency in micros, so convert it once in a view
DestinationSnowflakeDatabaseSchemax_adsTablestatsRun
Run HistoryPendingRunningSuccessIncremental load
Tablex_ads.stats

S03 · Step 3

Step 3: Read the output schema in plain words

The output schema gives each column a plain description. Your data quality checks can read it too.

  • placement separates ALL_ON_TWITTER from PUBLISHER_NETWORK delivery
  • A colleague can read it without the API docs
x_ads.statsOutput schemaFieldDescriptiondateThe date for which the…placementThe placement type (ALL_ON_TWITT…impressionsNumber of impressions.clicksNumber of clicks.billed_engagementsNumber of billed engagements.billed_charge_local_microBilled amount in micros.

S04 · Step 4

Step 4: Join the X Ads tables in SQL

Line items, promoted tweets and tweets are separate Snowflake tables that share ids, and they join into one X Ads data model.

  • Look up a promoted tweet's tweet_id in Tweets for the post's full_text and counts
  • Campaigns, accounts and cards each load as their own table
Line Itemsidnamecampaign_id
Tweetstweet_idfull_textretweet_count
Promoted Tweetsidline_item_idtweet_id

S05 · Step 5

Step 5: Schedule the load and backfill history

Add a run trigger once and a scheduled refresh keeps the Snowflake tables up to date. A manual run takes older dates.

  • A lookback window, 2 days by default, reloads recent days
  • Backfill any start and end date
ScheduleRun on a scheduleDaily 09:00
BackfillRun backfill
Run HistoryDaily scheduleManual backfillDaily schedule

S06 · Step 6

Step 6: Use the same Snowflake tables in every report

Spreadsheets, dashboards, AI assistants such as Claude and ChatGPT, AI insights in Slack or email and your data model all read the same tables.

  • Review promoted posts by their engagement counts
  • One set of tables behind every report
X AdsData MartPublished
Your data model
Google Sheets
Data Studio dashboards
Claude, ChatGPT
Slack, email

Recent updates

Why OWOX

Why OWOX for X Ads in Snowflake

Ads API scripts and manual exports pull the X numbers out. OWOX leaves them as Snowflake tables that you own and can model.

  • In your Snowflake account. You control access to the tables with your own roles.
  • Post and cost together. Promoted tweets load beside the tweets themselves, with text and engagement counts.
  • Ready to model. Line item and tweet ids tie promoted tweets to their line items and tweets, ready for your data model.
  • Looked after for you. When X changes its Ads API, no script of yours needs repair.
  • Free when self-hosted. The open-source OWOX Data Marts runs on your own infrastructure at no licence cost.

Book a callGet Started Free

Trust

The Data Partner You Can Trust

users

166K Source: Internal OWOX data as of 2026-11-15

Executives and data analysts across 20+ industries

G2 rating

4.9★2

“A trusted data analytics partner” — verified review

npm installs

171K3

In Open Source We Trust

Customers