Ad networks
Add Pub Premier demand to your network and give your publishers more competition for every impression.
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.
If you run your own publisher portal, the Partner API plugs Pub Premier's demand, approvals and reporting straight into it.
Add Pub Premier demand to your network and give your publishers more competition for every impression.
Onboard your third-party publishers and websites from your own dashboard.
Manage many client websites with one integration and per-site reporting.
Offer premium programmatic demand inside your SaaS or CMS product.
Connect a portfolio of websites and track earnings in your own tools.
Launch without building an ad stack: approvals, ad serving and demand are handled by us.
Create publishers with your own IDs and keep both systems in sync.
Submit websites for approval and follow every status change.
Get the complete ads.txt lines for each website, as JSON or plain text.
Check a website's ads.txt in one call and move it into our review queue.
Receive the JavaScript ad tags our team issues, ready to show in your dashboard.
Impressions, clicks, revenue, CTR and eCPM by day, website or publisher.
POST /publishers
POST /websites
GET /websites/{id}/ads-txt
POST /websites/{id}/verify
Usually within 24–48 hours
GET /websites/{id}/ad-tags
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.
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.
data field; lists also return pagination (limit, offset, total).publisher_id is accepted you can use your own external_id.YYYY-MM-DD in UTC; timestamps are ISO 8601 UTC.429 rate_limited above it — wait and retry).{ "error": { "code": "invalid_domain", "message": "domain must be a website domain, for example example.com." } }
| HTTP | Meaning |
|---|---|
| 400 | Body is not valid JSON. |
| 401 | Missing, invalid or revoked API key. |
| 403 | Partner account paused. |
| 404 | Not found, or not yours. |
| 409 | Duplicate: domain already submitted or external_id already used. |
| 422 | A field is invalid — see error.code and error.message. |
| 429 | Rate limit reached. |
| 5xx | Temporary problem on our side — retry with backoff. |
| status | next_step | Meaning |
|---|---|---|
pending | add_ads_txt_and_verify | Submitted. Publish the ads.txt lines and call Verify. |
pending | awaiting_review | Verified and in our review queue. |
active | install_ad_tags | Approved. Ad tags are available or will be shortly. |
rejected | rejected | Not approved (content, traffic or policy). Contact us for details. |
suspended | contact_support | Ads paused, for example because of invalid traffic. |
/meCheck that your API key works and read your account status, payment terms and totals.
curl "https://pubpremier.me/api/partner/v1/me" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{
"data": {
"id": "8b0d…", "name": "Your Company", "status": "active",
"payment_terms": { "net_days": 45, "minimum_payout_usd": 100, "fees": "none" },
"publishers": 12, "websites": 30
}
}/publishersRegister one of your publishers. Store your own ID in external_id and use it anywhere a publisher_id is expected.
| Field | Type | Description |
|---|---|---|
name | string, required | Publisher or company name (2–120 characters). |
email | string | Publisher contact email (for our records). |
external_id | string | Your own unique ID for this publisher. |
country | string | 2-letter country code, e.g. PK. |
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" }'{
"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
/publishersAll publishers you created, newest first. Supports limit (1–200) and offset.
curl "https://pubpremier.me/api/partner/v1/publishers" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{ "data": [ { "id": "3f2c…", "external_id": "pub_123", "name": "Ali Media" } ],
"pagination": { "limit": 50, "offset": 0, "total": 12 } }/publishers/{publisher_id}One publisher (by Pub Premier ID or your external_id) with all of its websites and their status.
curl "https://pubpremier.me/api/partner/v1/publishers/pub_123" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{
"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" } ]
}
}/websitesRegister 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.
| Field | Type | Description |
|---|---|---|
publisher_id | string, required | Pub Premier publisher ID or your external_id. |
domain | string, required | Website domain, e.g. example.com. |
name | string | Display name (default: the domain). |
category | string | e.g. News, Tech, Sports, Finance. |
monthly_pageviews | integer | Approximate monthly pageviews. |
country | string | Main audience country (2-letter code). |
external_id | string | Your own ID for this website. |
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 }'{
"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
/websitesAll your websites. Filter with publisher_id and status (pending, active, rejected, suspended); page with limit / offset.
curl "https://pubpremier.me/api/partner/v1/websites" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{ "data": [ { "id": "a91e…", "domain": "example.com", "status": "active",
"approved": true, "next_step": "install_ad_tags" } ],
"pagination": { "limit": 50, "offset": 0, "total": 30 } }/websites/{website_id}Status, verification and how many ad tags are ready. Poll it every 15–60 minutes to know when a website is approved.
curl "https://pubpremier.me/api/partner/v1/websites/a91e…" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{
"data": {
"id": "a91e…", "domain": "example.com", "status": "active", "verified": true,
"approved": true, "next_step": "install_ad_tags", "ad_tags_available": 3
}
}/websites/{website_id}/ads-txtEvery 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.
curl "https://pubpremier.me/api/partner/v1/websites/a91e…/ads-txt" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{
"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" ]
}
}/websites/{website_id}/verifyReads 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.
curl -X POST "https://pubpremier.me/api/partner/v1/websites/a91e…/verify" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY" \ -H "Content-Type: application/json"
{ "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
/websites/{website_id}/ad-tagsAfter 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.
curl "https://pubpremier.me/api/partner/v1/websites/a91e…/ad-tags" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{
"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" }
}/reportsDaily 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.
| Field | Type | Description |
|---|---|---|
start_date / end_date | YYYY-MM-DD | Default: the last 7 days (UTC). Maximum range 92 days. |
group_by | string | date | website | publisher | date,website (default) | date,publisher |
publisher_id | string | Only this publisher (ID or external_id). |
website_id | string | Only this website. |
curl "https://pubpremier.me/api/partner/v1/reports" \ -H "Authorization: Bearer $PUBPREMIER_API_KEY"
{
"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
https://<domain>/ads.txt with all lines from the ads.txt endpoint. Keep existing lines and add ours below them.placement field suggests where.impressions | Ads shown. |
clicks | Ad clicks. |
ad_requests | Ad requests made by the tags, when available. |
revenue_usd | Earnings in US dollars, as shown in the Pub Premier dashboard. Recent days are estimates until final reports arrive. |
ctr / ecpm_usd | clicks ÷ 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.
| Integration, setup or monthly fees | None |
| Minimum traffic or deposit | None |
| Payment cycle | Net 45 |
| Minimum payout | $100 (lower balances roll over) |
| Revenue share | As agreed in your partnership agreement |
| Deductions | Only invalid traffic |
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.
Tell us about your platform and publishers. We'll set up your partner account and send your API key.