Two ways to get TrafficStars data out.
TrafficStars has a REST API for advertisers and publishers, and its reports come back as plain JSON. The work sits in keeping the token alive, in looping over a report that groups by one type per request, and in mapping campaign names to your own markets.
Build and run it yourself
- Generate an API key on the profile page of your TrafficStars account.
- Post it to
/v1/auth/tokenasrefresh_token, withgrant_type=refresh_token. The access token expires, so readexpires_inand renew it in time. - Call the campaigns report with
date_fromanddate_to. Version 1.1 is a GET with the group type in the path. Version 2 is a POST withgroup_byin the body. - Each request groups by one type. For campaign per day, request one day at a time grouped by
campaign. - Stay inside the limits. Version 2 takes at most 6 months per request and leaves archived campaigns out unless you send
show_archived. - Fetch campaign names from
/v1.1/campaignsand map them to your own markets and product lines.
Then monitor it, and move when an endpoint is deprecated, as the older /v1/stats endpoints already are.
Have Odins run it
- Access to your TrafficStars account is set up with you at onboarding. That is the one step on your side.
- We collect campaign delivery every day, watch the pipeline and fix it when something changes. We request history from 2020.
- You get spend, impressions and clicks per campaign per day, in the same structure as every other channel.
- Spot and format reporting is added when you ask for it.
The same goes for every other source you use. One team runs all of them. See all connectors
What the TrafficStars API offers.
The API covers campaigns, banners, spots and reports. For spend, the campaigns report is the part that matters. TrafficStars' own documentation is the reference.
| Resource | What it returns | Good to know |
|---|---|---|
Campaigns reportSynced by default |
Impressions, clicks, leads and cost for your campaigns, grouped by one type per request. | Two versions: v1.1/advertiser/custom/report/by-{group_type} and v2/campaigns/statistics. |
Campaigns report, by spot or format |
The same metrics per ad spot or ad format. | Added on request. |
v1.1/campaigns |
Your campaigns with ID, name, status and pricing model. | Archived campaigns are left out by default. |
v2/campaigns/{id}/spending |
One spending total for a campaign. | |
Sites, DSP and SSP reports |
The same report pattern for publishers and RTB partners. |
Group types, version 1.1
dayhourcampaigncreativespotformatcountrydeviceosbrowserlanguagecarrier
- Auth OAuth 2.0 bearer token, from an API key
- Format JSON
- Per request Up to 6 months in version 2
- History No limit documented
Worth knowing about TrafficStars data.
Leads need a postback.
Conversions show in TrafficStars statistics only when you send them back with a postback. Without one, do not read leads or ecpa as results.
Trackers count differently.
TrafficStars calls a gap of up to 20 percent between its own statistics and a third-party tracker normal. For popunder ads it records impressions where a tracker may count clicks.
The account is prepaid.
You add funds before campaigns receive traffic. Where VAT applies, it is added on top of the budget. Spend arrives per day from the report, without VAT.
No history limit is documented.
The API documentation states no limit on how far back reports go. Odins requests history from 2020.
What you get back.
Two layers. The raw one mirrors TrafficStars. The structured one is the table every source lands in, organised by your own markets and product lines.
Structured layer
Per campaign, per day| In the structured table | For TrafficStars |
|---|---|
| Date | Daily |
| Company and market | Set by your routing rules on campaign names |
| Channel and media | Its own channel, or inside a combined display channel |
| Source campaign | Campaign |
| Spend | Campaign cost, excluding VAT |
| Impressions | Impressions |
| Clicks | Clicks |
Raw layer
As TrafficStars reports itDaily delivery per campaign, as the report returns it. Spot and format reporting is added on request.
Use it where you work.
In your warehouse
Raw and structured tables delivered to BigQuery, Snowflake, Redshift or Databricks. Some customers use Odins for this alone.
In Odins
Reporting across every channel, and a model that shows what display contributes and where more spend still pays.
Through your AI assistant
Connect Claude, ChatGPT or Copilot to Odins with MCP and ask for the numbers in plain language.
Questions.
Does TrafficStars have an API?
Yes. TrafficStars has a REST API for advertisers and publishers that covers campaigns, banners, spots and reports. It uses an OAuth 2.0 bearer token, which you get by exchanging an API key generated on your profile page.
How do I get TrafficStars data into BigQuery?
Odins collects your TrafficStars delivery daily and delivers raw and structured tables to BigQuery, Snowflake, Redshift or Databricks. Access is set up with you at onboarding.
What level of detail do we get?
Per campaign per day by default, with spend, impressions and clicks. Spot and format reporting is added on request.
How far back does TrafficStars data go?
The API documentation states no history limit. Odins requests history from 2020.
How is TrafficStars measured in the model?
As its own channel or inside a combined display channel, with contribution and marginal return estimated like every other channel.
Do you cover other ad networks too?
Yes. TrafficJunky and other networks land in the same structure. See all display and programmatic connectors.
-1.png?width=1132&height=292&name=Asset%201@2x%20(12)-1.png)