Reporting API

The reporting API returns the same daily summary you see on the Prebid Analytics cards, so you can pull it into your own dashboards, spreadsheets or BI tools. Requests are authenticated with an API key from your organization.

1. Create an API Key

From the sidebar, navigate to Connect > API Keys. This page requires admin permission.

Click Create new secret key. Each key is listed with its ID, when it was created and when it was last used. From the same table you can show the key, regenerate it or disable it.

ActionEffect
Show API keyDisplays the secret key so you can copy it.
Regenerate Secret KeyReplaces the key. Requests using the old key stop working.
DisableRejects all requests made with the key until you enable it again.

Keep the key on your server. Anyone with the key can read your organization's reporting data.

2. Find Your Organization ID

Open Administration > Organization and go to the settings of your organization. The organization ID is the part of the page URL after /setup/org/, for example https://app.biddingstack.com/setup/org/ORG_ID/settings.

A key only works for the organization it was created in. Requests for another organization return 403.

3. Send a Request

Pass the secret key as-is in the Authorization header, without a Bearer prefix.

curl -H "Authorization: YOUR_SECRET_KEY" \
  https://app.biddingstack.com/api/open/ORG_ID/prebid
EndpointReturns
GET /api/open/ORG_ID/prebidA list of your website projects, sorted by page views. Each item has website_id, domain and a summary object.
GET /api/open/ORG_ID/projects/PROJECT_ID/prebidThe summary object for one project. Use the website_id from the list as PROJECT_ID.

A missing, wrong or disabled key returns 403 with an empty body.

Summary Fields

The summary covers yesterday. Fields ending in _old hold the same figure for the same day one week earlier, so you can calculate the week-on-week change.

FieldMeaning
pvPage views.
rpmPage RPM. Calculated from Google Ad Manager revenue when Ad Manager is connected, otherwise from header bidding revenue.
viewabilityViewable share of impressions, in percent.
contentNumber of distinct URLs that received page views.
impression, impppvTotal ad impressions, and impressions per page view.
prebid, prebid_rateHB Impressions, and HB Impression Share in percent.
cpm_avgHB eCPM.
revenueHeader bidding revenue recorded by Prebid.
bidders, timeoutNumber of bidders with activity, and number of timeouts.

When Google Ad Manager is connected and yesterday's Ad Manager data is complete, the summary also includes:

FieldMeaning
gam_revenue, gam_revenue_oldTotal revenue across all Ad Manager channels.
gam_ecpmGAM eCPM across all channels.
hb_revenue_shareHB Revenue Share: header bidding's share of all Ad Manager revenue, in percent, calculated on gross revenue.
gam_diffPrebid vs GAM: how far Prebid's recorded revenue is from the header bidding revenue Ad Manager reports, in percent.
gam_nettrue when part of the revenue comes from Transfon's Ad Manager network and gam_revenue, rpm and gam_ecpm are net of the Transfon revenue share.

Invalid Traffic

Invalid traffic is excluded by default, as with the Exclude IVT switch in the dashboard. Add ?exclude_ivt=0 to include all traffic:

curl -H "Authorization: YOUR_SECRET_KEY" \
  "https://app.biddingstack.com/api/open/ORG_ID/projects/PROJECT_ID/prebid?exclude_ivt=0"

See how to filter IVT and bot traffic for how traffic is flagged.

Stay ahead in ad monetization

Header bidding, yield, and ad tech insights for publishers. A few emails a month, no spam.

By subscribing you agree to our privacy policy.