Developers
Endpoints below match the live MS ADS NETWORK SSP codebase. Impressions and clicks are queued, fraud-checked, then written to ad_stats only after verification.
OpenRTB bid endpoints accept an API key when OPENRTB_API_KEY is configured on the server:
X-Api-Key: <key> or X-API-KeyAuthorization: Bearer <key>If no key is configured, requests are accepted (optional IP allow-list may still apply). Publisher dashboard uses session auth at /publisher/*.
All POST paths share the same handler. GET returns endpoint info (browser-friendly).
https://msadsnetwork.com/api/openrtb/bid
Primary JSON OpenRTB bid request. Aliases:
POST https://msadsnetwork.com/openrtb/bidrequestPOST https://msadsnetwork.com/openrtb/v2/bidPOST https://msadsnetwork.com/api/openrtb/v2/bidPOST /api/openrtb/bid HTTP/1.1
Host: msadsnetwork.com
Content-Type: application/json
X-Api-Key: YOUR_OPENRTB_API_KEY
{
"id": "bid-req-001",
"imp": [{
"id": "1",
"banner": { "w": 300, "h": 250 },
"bidfloor": 0.10,
"bidfloorcur": "USD"
}],
"site": { "domain": "example.com", "page": "https://example.com/article" },
"device": { "ua": "Mozilla/5.0", "ip": "203.0.113.10" },
"at": 1,
"tmax": 120
}
Winning bid (simplified) or no-bid with nbr. Invalid body → HTTP 400 with nbr: 2. Bad API key → HTTP 401.
{
"id": "bid-req-001",
"seatbid": [{
"bid": [{
"id": "bid-1",
"impid": "1",
"price": 1.25,
"adm": "<!-- creative markup -->",
"nurl": "https://msadsnetwork.com/..."
}]
}],
"cur": "USD"
}
https://msadsnetwork.com/serve-ad/{code}Serve creative for an ad unit code. Fraudulent traffic is rejected before auction.
https://msadsnetwork.com/track-impression/{ad_unit_code}1×1 pixel. Queues impression → traffic:verify cron → verified ad_stats only.
Query: price (CPM), auction_id
https://msadsnetwork.com/track-click/{ad_unit_code}Click redirect. Fraud / click-bomb checks run first; valid events go to verification queue.
Query: redirect, price, auction_id
https://msadsnetwork.com/api/ad/fetchJSON ad fetch helper used by some client integrations.
https://msadsnetwork.com/api/ad-units/{code}/prebid-configPrebid.js configuration for an ad unit code.
/api/ad/request — request creative (publisher_id, url, placement, device…)/api/ad/impression — SDK impression beacon/api/ad/click — SDK click beacon/api/v1/app/ad-request/api/v1/app/impression · /click · /reward/api/v1/app/config/{app_id}Throttled partner reporting under /api/dsp/reports/*:
/performance
/inventory
/daily
/realtime
/export
traffic:verify (via /msads-cron-traffic.php) moves valid events into ad_stats / clicks.Contact support or use the DSP portal for partner access.