Partner API · v1

Connect your ad platform to Pub Premier with one REST API

Ad networks, publisher networks, agencies and monetization platforms: register your publishers and websites from your own portal, push websites for approval, receive the ad tags our team issues and show live revenue reporting — under your own brand.

REST · JSON · HTTPSLive reportingReviewed, brand-safe inventoryNo integration feesNet 45 payments
Who it's for

Built for platforms that manage publishers

If you run your own publisher portal, the Partner API plugs Pub Premier's demand, approvals and reporting straight into it.

Ad networks

Add Pub Premier demand to your network and give your publishers more competition for every impression.

Publisher networks

Onboard your third-party publishers and websites from your own dashboard.

Agencies

Manage many client websites with one integration and per-site reporting.

Monetization platforms

Offer premium programmatic demand inside your SaaS or CMS product.

Media groups

Connect a portfolio of websites and track earnings in your own tools.

New ad-tech startups

Launch without building an ad stack: approvals, ad serving and demand are handled by us.

What the API does

Everything your portal needs

Publisher registration

Create publishers with your own IDs and keep both systems in sync.

Website submission

Submit websites for approval and follow every status change.

ads.txt delivery

Get the complete ads.txt lines for each website, as JSON or plain text.

Verification

Check a website's ads.txt in one call and move it into our review queue.

Ad tags

Receive the JavaScript ad tags our team issues, ready to show in your dashboard.

Live revenue reporting

Impressions, clicks, revenue, CTR and eCPM by day, website or publisher.

Integration flow

From first publisher to first revenue

1. Create a publisher

POST /publishers

2. Submit a website

POST /websites

3. Publish ads.txt

GET /websites/{id}/ads-txt

4. Verify

POST /websites/{id}/verify

5. Our review

Usually within 24–48 hours

6. Get ad tags

GET /websites/{id}/ad-tags

7. Live reporting

GET /reports

Ad tags are created by the Pub Premier team after a website is approved — they are not generated instantly by the API. Every website is reviewed to keep inventory brand-safe for all partners.

Quick start

Base URL:

https://pubpremier.me/api/partner/v1

Every request needs your API key in the Authorization header (X-Api-Key also works). Test your key with GET /me:

curl "https://pubpremier.me/api/partner/v1/me" \
  -H "Authorization: Bearer pp_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

A missing, wrong or revoked key returns 401 unauthorized; a paused partner account returns 403 partner_paused.

Conventions, limits & errors

  • JSON in and out. Successful responses have a data field; lists also return pagination (limit, offset, total).
  • IDs are UUIDs. Wherever a publisher_id is accepted you can use your own external_id.
  • Dates are YYYY-MM-DD in UTC; timestamps are ISO 8601 UTC.
  • Rate limit: 120 requests per minute per key (429 rate_limited above it — wait and retry).
{ "error": { "code": "invalid_domain", "message": "domain must be a website domain, for example example.com." } }
HTTPMeaning
400Body is not valid JSON.
401Missing, invalid or revoked API key.
403Partner account paused.
404Not found, or not yours.
409Duplicate: domain already submitted or external_id already used.
422A field is invalid — see error.code and error.message.
429Rate limit reached.
5xxTemporary problem on our side — retry with backoff.

Website statuses

statusnext_stepMeaning
pendingadd_ads_txt_and_verifySubmitted. Publish the ads.txt lines and call Verify.
pendingawaiting_reviewVerified and in our review queue.
activeinstall_ad_tagsApproved. Ad tags are available or will be shortly.
rejectedrejectedNot approved (content, traffic or policy). Contact us for details.
suspendedcontact_supportAds paused, for example because of invalid traffic.

API endpoints

GET/me

Your partner account

Check that your API key works and read your account status, payment terms and totals.

Request
curl "https://pubpremier.me/api/partner/v1/me" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{
  "data": {
    "id": "8b0d…", "name": "Your Company", "status": "active",
    "payment_terms": { "net_days": 45, "minimum_payout_usd": 100, "fees": "none" },
    "publishers": 12, "websites": 30
  }
}

POST/publishers

Create a publisher

Register one of your publishers. Store your own ID in external_id and use it anywhere a publisher_id is expected.

FieldTypeDescription
namestring, requiredPublisher or company name (2–120 characters).
emailstringPublisher contact email (for our records).
external_idstringYour own unique ID for this publisher.
countrystring2-letter country code, e.g. PK.
Request
curl -X POST "https://pubpremier.me/api/partner/v1/publishers" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Ali Media", "email": "[email protected]", "external_id": "pub_123", "country": "PK" }'
Response
{
  "data": {
    "id": "3f2c9a1e-…", "external_id": "pub_123", "name": "Ali Media",
    "email": "[email protected]", "country": "PK", "status": "active",
    "created_at": "2026-11-21T09:10:00Z"
  }
}

Errors: 409 duplicate_external_id · 422 invalid_name / invalid_email / invalid_external_id

GET/publishers

List publishers

All publishers you created, newest first. Supports limit (1–200) and offset.

Request
curl "https://pubpremier.me/api/partner/v1/publishers" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{ "data": [ { "id": "3f2c…", "external_id": "pub_123", "name": "Ali Media" } ],
  "pagination": { "limit": 50, "offset": 0, "total": 12 } }

GET/publishers/{publisher_id}

Get a publisher

One publisher (by Pub Premier ID or your external_id) with all of its websites and their status.

Request
curl "https://pubpremier.me/api/partner/v1/publishers/pub_123" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{
  "data": {
    "id": "3f2c…", "external_id": "pub_123", "name": "Ali Media",
    "websites": [ { "id": "a91e…", "domain": "example.com", "status": "pending",
                    "verified": false, "next_step": "add_ads_txt_and_verify" } ]
  }
}

POST/websites

Submit a website for approval

Register a publisher's website. It starts as pending; next publish the ads.txt lines and call Verify. A domain can be submitted to Pub Premier only once.

FieldTypeDescription
publisher_idstring, requiredPub Premier publisher ID or your external_id.
domainstring, requiredWebsite domain, e.g. example.com.
namestringDisplay name (default: the domain).
categorystringe.g. News, Tech, Sports, Finance.
monthly_pageviewsintegerApproximate monthly pageviews.
countrystringMain audience country (2-letter code).
external_idstringYour own ID for this website.
Request
curl -X POST "https://pubpremier.me/api/partner/v1/websites" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "publisher_id": "pub_123", "domain": "example.com", "category": "News", "monthly_pageviews": 50000 }'
Response
{
  "data": {
    "id": "a91e…", "publisher_id": "3f2c…", "domain": "example.com",
    "status": "pending", "verified": false, "approved": false,
    "next_step": "add_ads_txt_and_verify"
  }
}

Errors: 409 domain_used / already_submitted · 422 invalid_publisher / invalid_domain

GET/websites

List websites

All your websites. Filter with publisher_id and status (pending, active, rejected, suspended); page with limit / offset.

Request
curl "https://pubpremier.me/api/partner/v1/websites" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{ "data": [ { "id": "a91e…", "domain": "example.com", "status": "active",
  "approved": true, "next_step": "install_ad_tags" } ],
  "pagination": { "limit": 50, "offset": 0, "total": 30 } }

GET/websites/{website_id}

Get a website

Status, verification and how many ad tags are ready. Poll it every 15–60 minutes to know when a website is approved.

Request
curl "https://pubpremier.me/api/partner/v1/websites/a91e…" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{
  "data": {
    "id": "a91e…", "domain": "example.com", "status": "active", "verified": true,
    "approved": true, "next_step": "install_ad_tags", "ad_tags_available": 3
  }
}

GET/websites/{website_id}/ads-txt

Get the ads.txt lines

Every ads.txt line the website must publish at https://<domain>/ads.txt. Add all lines and keep the website's existing ones. Add ?format=text for a plain-text file.

Request
curl "https://pubpremier.me/api/partner/v1/websites/a91e…/ads-txt" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{
  "data": {
    "ads_txt_url": "https://example.com/ads.txt",
    "line_count": 110,
    "lines": [ "google.com, pub-4762407120814229, DIRECT, f08c47fec0942fa0", "…" ],
    "required_for_verification": [ "google.com, pub-4762407120814229, DIRECT, f08c47fec0942fa0" ]
  }
}

POST/websites/{website_id}/verify

Verify a website

Reads the website's ads.txt and checks the required Pub Premier line. When it's present the website is verified and enters our review queue.

Request
curl -X POST "https://pubpremier.me/api/partner/v1/websites/a91e…/verify" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY" \
  -H "Content-Type: application/json"
Response
{ "data": { "status": "pending", "verified": true, "next_step": "awaiting_review",
  "message": "Verified. The website is now in our review queue." } }

Errors: 422 ads_txt_not_found / ads_txt_line_missing

GET/websites/{website_id}/ad-tags

Get the ad tags

After approval our team issues the website's ad tags. Show them in your own dashboard so the publisher can paste each one where the ad should appear. Empty until the website is approved.

Request
curl "https://pubpremier.me/api/partner/v1/websites/a91e…/ad-tags" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{
  "data": [ { "id": "t1…", "name": "Banner 300×250", "sizes": "300x250",
              "placement": "Inside articles, after the 2nd paragraph.",
              "code": "<script async src=…></script>…" } ],
  "meta": { "website_id": "a91e…", "status": "active" }
}

GET/reports

Get live reporting

Daily performance for your websites — the same figures as the Pub Premier publisher dashboard, updated through the day. Power your own dashboard and your publishers' reports.

FieldTypeDescription
start_date / end_dateYYYY-MM-DDDefault: the last 7 days (UTC). Maximum range 92 days.
group_bystringdate | website | publisher | date,website (default) | date,publisher
publisher_idstringOnly this publisher (ID or external_id).
website_idstringOnly this website.
Request
curl "https://pubpremier.me/api/partner/v1/reports" \
  -H "Authorization: Bearer $PUBPREMIER_API_KEY"
Response
{
  "data": [ { "date": "2026-11-20", "website_id": "a91e…", "domain": "example.com",
              "impressions": 15230, "clicks": 41, "ad_requests": 18900,
              "revenue_usd": 12.4831, "ctr": 0.27, "ecpm_usd": 0.8196 } ],
  "meta": { "start_date": "2026-11-14", "end_date": "2026-11-20", "timezone": "UTC", "currency": "USD" },
  "totals": { "impressions": 96410, "clicks": 260, "revenue_usd": 81.2204 }
}

Errors: 422 invalid_date / invalid_range / range_too_long / invalid_group_by

ads.txt guide

  • Every website needs https://<domain>/ads.txt with all lines from the ads.txt endpoint. Keep existing lines and add ours below them.
  • Never remove our lines after approval — missing lines reduce or stop earnings.
  • The list can grow as new demand is added. Re-read it regularly (for example weekly) and update the file. See our ads.txt guide.

Installing ad tags

  • Paste each tag exactly as provided where the ad should appear; the placement field suggests where.
  • Don't change the code, wrap it in iframes, or hide or stack ads. Ads must be visible to real visitors.
  • Clear the website cache after installing. Impressions usually appear in reporting within an hour.

Reporting definitions

impressionsAds shown.
clicksAd clicks.
ad_requestsAd requests made by the tags, when available.
revenue_usdEarnings in US dollars, as shown in the Pub Premier dashboard. Recent days are estimates until final reports arrive.
ctr / ecpm_usdclicks ÷ impressions × 100 / revenue ÷ impressions × 1000.

Keep in sync: poll pending websites every 15–60 minutes; pull today and yesterday's reporting every 30–60 minutes and the last 7 days once a day for final figures. Webhooks are planned for a later version.

Commercial terms

Integration, setup or monthly feesNone
Minimum traffic or depositNone
Payment cycleNet 45
Minimum payout$100 (lower balances roll over)
Revenue shareAs agreed in your partnership agreement
DeductionsOnly invalid traffic

Policies & traffic quality

  • You may onboard third-party publishers and offer our demand through your platform under your brand.
  • Every website must pass our review and follow ad network policies: no adult, illegal, copyrighted or misleading content.
  • You're responsible for your publishers' traffic quality. Bots, paid or incentivised traffic, auto-refresh, pop-unders, click fraud and hidden ads are not allowed.
  • We may pause any website with invalid or suspicious traffic and withhold the related earnings.

Security

  • Keep API keys on your server only — never in browser JavaScript, mobile apps or public code.
  • Use one key per system and ask us to revoke a key at once if it may be exposed. All requests use HTTPS and are logged.

Support & changelog

Questions: [email protected] — include the request URL, time and the error.code you received.

v1 · November 2026 — publishers, websites, ads.txt, verification, ad tags and live reporting.

FAQ

Partner API questions

Does Pub Premier offer an ad network API for platforms?
Yes. The Pub Premier Partner API is a REST API that lets ad networks, publisher networks, agencies and monetization platforms connect their own portal to Pub Premier — to register publishers and websites, get approvals, receive ad tags and pull live revenue reporting.
Can we keep our own brand and publishers?
Yes. You keep your platform, your brand and your relationship with your publishers. Your publishers use your dashboard; Pub Premier works in the background through the API.
Can we onboard third-party publishers?
Yes. Partners may onboard their own third-party publishers and offer Pub Premier demand through their platform, as long as every website passes our review and follows ad network policies, and the partner stays responsible for its publishers' traffic quality.
Are ad units and ad tags created automatically?
Every website is reviewed by our team first to protect ad quality. After approval our team issues the ad tags, and your platform receives them automatically from the ad-tags endpoint.
Is there an integration fee or minimum traffic?
No. There is no integration fee, no monthly fee, no minimum traffic requirement and no deposit.
How and when are partners paid?
Payments are on a Net 45 cycle with a $100 minimum payout. Revenue share is set in the partnership agreement. The only deductions are for invalid traffic.
What reporting does the API provide?
Daily impressions, clicks, ad requests, revenue, CTR and eCPM per website or publisher — the same live figures shown in the Pub Premier publisher dashboard, ready to display to your publishers.
How do we get an API key?
Contact our partnerships team. Once your partner account is set up we send your API key securely; you can have several keys and we can revoke any of them.

Ready to connect your platform?

Tell us about your platform and publishers. We'll set up your partner account and send your API key.