Request & response templates
Exactly what travels on the wire, in both directions and in every format we support — OpenRTB, XML and JSON, plus Prebid.js for browser banner requests. Use the configuration for your integration below.
Overview
As a supply partner you call us and we answer with a price and a click URL. As a demand partner we call you and read a price and a destination out of your response.
| Direction | Protocol | Route | Bodies |
|---|---|---|---|
| Supply → us | Feed | GET /feed/bidder | Query in · XML or JSON out |
| Supply → us | OpenRTB 2.5 | POST /rtb/bidder | JSON in · JSON out |
| Us → demand | Feed | GET your URL | Query out · XML or JSON back |
| Us → demand | OpenRTB 2.5 | POST your URL | JSON out · JSON back |
Feed and OpenRTB host: https://bid.searchplan.co. Each zone on these endpoints is identified by zid and
authorised by ckey, both issued by us.
For browser banner auctions, see Prebid integration at prebid.searchplan.co, using the zone parameter.
What we support
Three things describe a placement, and they are independent: what the slot is, where it is rendered, and what kind of audience it carries.
Formats #
For OpenRTB, the format is the imp object you send. It also decides what travels
in adm when we bid.
- popimp.banner + instl— Popunder or interstitial.
admcarries a destination URL, apopunder_xmldocument, or an<a href>snippet — tell us which one your tag expects. - bannerimp.banner— Display.
admcarries the buyer's HTML markup passed through unmodified, or a destination URL. - videoimp.video— Instream video.
admcarries the buyer's VAST document, passed through unmodified, so their impression and quartile trackers stay intact. We do not wrap or re-generate it. - nativeimp.native— Native placement.
admcarries the buyer's native JSON response, passed through unmodified. - parkingWeb · Feed only— Domain parking with delivery by browser redirect. Use
type=parkingon the feed endpoint and a parking-enabled zone. See Parking domain integration. OpenRTB parking is not supported.
On the feed endpoint, type accepts aliases:
popup for pop, and ctv, vast or
instream for video. You do not have to change what you already send us.
Environments #
Where the ad is rendered. This is a separate axis from the format: there is banner
on web and banner in-app, and video in all three. What tells them apart in OpenRTB is
the container, not imp.
- website— Send
site.domainandsite.pagewith the full URL. - in-appapp— Send
app.bundle,app.nameandapp.storeurl. - CTVapp + devicetype— As in-app, plus
device.devicetype3(Connected TV) or7(Set-Top Box).
Buyers filter hard on this. A request that says site but
carries no usable domain, or one that omits app.bundle on in-app traffic,
gets dropped downstream before it is ever priced — and it will look to you like a
silent no-bid.
Categories #
Every zone is either MS (mainstream) or AD (adult). We never cross them: adult creatives are not served on mainstream inventory and the other way round. Tell us which one a zone carries when you set it up.
Price floors #
Send imp.bidfloor and imp.bidfloorcur whenever you have a
floor. We forward it to buyers unchanged. Without it they bid blind, and the usual
result is a lower clearing price rather than a higher one. A 0 is read as
"no floor declared", not as a floor of zero.
Feed supply → us
Endpoint URL #
Use the endpoint URL we provide. The example below carries a placeholder zone and key — it will not serve traffic.
https://bid.searchplan.co/feed/bidder?zid=YOUR_ZID&ckey=YOUR_KEY&type=popup&ip=82.131.34.62&referrer=http%3A%2F%2Fexample.com&ua=Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_14_2%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F71.0.3578.98+Safari%2F537.36
Endpoint GET-parameters #
- zidRequired— Zone ID. Issued by us.
- ckeyRequired— Zone key. Issued by us; a wrong key returns 403.
- typeRequired— Feed type:
popup,banner,video,native,parking.pop,ctv,vastandinstreamare accepted as aliases — see What we support. - ipRequired— IP address of the visitor.
- uaRequired— User-Agent header from the visitor's HTTP request. Must be in URL-encoded format.
- pageOptional— URL of the page where the ad will be displayed. Must be in URL-encoded format.
- referrerOptional— URL of the page the visitor came from. Must be in URL-encoded format.
- refidOptional— Reference ID (subid). Passed through to reporting.
subidanduidare accepted as aliases. - countryOptional but highly recommended— Visitor country, ISO-2. Send the visitor's country, not your server's. When omitted, we try to resolve the supplied visitor
ip; unresolved visitor countries may be filtered. - qRequired for parking— Keyword/search term, URL-encoded and non-empty for
type=parking. Optional for other formats unless your zone requires it. - verticalOptional— Source category, separate from the keyword in
q. It does not replaceq.category,vertandrefid2are accepted as aliases. - langOptional— Language of the visitor, two-letter code.
- w, hRequired for banner— Slot size in pixels. Forwarded to demand and echoed back as
width/height. Without it the demand gets no size and the response echoes empty values. - pmodelOptional— Pricing model.
1— CPM,2— CPC. Defaults to the zone setting. - curOptional— Overrides bid currency. ISO-4217 alpha code. Default
USD. - formatOptional— Response format:
xml— defaultjson
The response shape follows type. Popup and parking answer with a
clickUrl; a banner answers with ad, width and
height. Ask for the type your zone is set up for — a banner zone called with
type=popup finds no matching demand and returns 204.
Parking domain integration #
Use a parking-enabled Web/Feed zone and type=parking.
This integration returns a bid and a redirect URL, rather than banner markup or a page of sponsored links.
Parking traffic is matched to parking demand; changing type does not turn a pop zone into parking.
- Required request fields—
zid,ckey,type=parking, visitorip, URL-encoded visitoruaand a non-empty keyword inq. - page— Send the actual parked domain or its full URL. Keep the source ID separate:
page=example.com&refid=source-42, neverpage=source-42-example.com. - referrer— Send the actual referring page when available. Do not use an intermediary or tracking endpoint to stand in for the inventory domain.
- refid— Stable source/sub-id for reporting and optimisation. This identifies the source; it is not the keyword.
- qRequired— Relevant keyword, URL-encoded and non-empty. Always include
qin parking requests; an empty value or an unresolved placeholder is not a keyword. Do not rely on automatic keyword extraction from the domain. Missing keywords can cause a no-bid before contacting demand. - vertical— Optional category; it is passed separately and does not supply the keyword.
- country— Visitor ISO-2 country, strongly recommended.
w,h, image, title and icon are not required for redirect delivery.
Parking GET-request example
The zone/key, IP, user agent, domain and keyword below are illustrative. Replace them with your assigned credentials and actual visitor/source values. Encode query values once.
https://bid.searchplan.co/feed/bidder?zid=YOUR_ZID&ckey=YOUR_KEY&type=parking&ip=203.0.113.10&ua=Mozilla%2F5.0%20%28Windows%20NT%2010.0%3B%20Win64%3B%20x64%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F156.0.0.0%20Safari%2F537.36&page=example.com&refid=source-42&q=car%20insurance&country=US&lang=en&pmodel=2&format=json
Parking JSON-response example
{
"clickUrl": "https://bid.searchplan.co/c/EXAMPLE_SIGNED_TOKEN",
"idad": 486213905,
"bid": 0.003750,
"cur": "USD"
}
Parking XML-response example
<?xml version="1.0" encoding="UTF-8"?>
<result>
<clickUrl>https://bid.searchplan.co/c/EXAMPLE_SIGNED_TOKEN</clickUrl>
<idad>486213905</idad>
<bid>0.003750</bid>
<cur>USD</cur>
</result>
Agree the price unit. pmodel=2 requests CPC (USD per delivered visitor in this redirect integration); pmodel=1 requests CPM (USD per 1,000). Without it, the zone configuration applies. The illustrative bid 0.003750 CPC is equivalent to 3.750 CPM. The response does not include a price-unit field, so both sides must use the same agreed model.
A bid response alone does not record delivery or earnings. If our bid wins, redirect the actual visitor's browser to the returned clickUrl, unchanged. Do not prefetch it, call it from your server, or extract and bypass its destination. The signed URL records the delivery and redirects to the buyer; do not add a separate win callback for this feed integration. Receiving a redirect callback does not itself guarantee final advertiser acceptance or payment.
204 means no bid: do not redirect the visitor to an example URL. Handle no-fill on your side. For XML, use format=xml; the fields and pricing model are the same. OpenRTB parking requests are not supported.
Popup XML-response example #
<?xml version="1.0" encoding="UTF-8"?>
<result>
<clickUrl>https://bid.searchplan.co/c/eyJkIjoiNTgwOTkxMCIsInMi</clickUrl>
<idad>486213905</idad>
<bid>0.138540</bid>
<cur>USD</cur>
</result>
Popup JSON-response example #
{
"clickUrl": "https://bid.searchplan.co/c/eyJkIjoiNTgwOTkxMCIsInMi",
"idad": 486213905,
"bid": 0.138540,
"cur": "USD"
}
Banner XML-response example #
<?xml version="1.0" encoding="UTF-8"?>
<result>
<ad><![CDATA[<a href="https://bid.searchplan.co/c/<token>" target="_blank" rel="noopener sponsored"></a>]]></ad>
<width>300</width>
<height>250</height>
<idad>486213905</idad>
<bid>0.138540</bid>
<cur>USD</cur>
<clickUrl>https://bid.searchplan.co/c/<token></clickUrl>
</result>
Banner JSON-response example #
{
"ad": "<a href=\"https://bid.searchplan.co/c/<token>\" target=\"_blank\" rel=\"noopener sponsored\"></a>",
"width": "300",
"height": "250",
"idad": 486213905,
"bid": 0.138540,
"cur": "USD",
"clickUrl": "https://bid.searchplan.co/c/<token>"
}
The banner markup is a link, not a creative. What wins our auction is a
destination, so ad is an anchor pointing at the click URL — wrap it in your own
creative, or ignore it and use clickUrl directly, which we send alongside for
exactly that. width and height echo the w/h
you sent; send them, because they are also what we forward to demand.
Response fields #
- clickUrl— Where to send the visitor. Redirects to the landing page and settles the win on its own. Returned for popup, parking and banner feeds.
- adbanner— Markup for the slot: an anchor to
clickUrl. - width, heightbanner— Size served, echoed from your request.
- idad— Identifier of the served ad, stable for that response.
- bid— Price in the unit your zone is paid in: CPC by default, CPM if agreed or if
pmodel=1. - cur— Currency of
bid.
Response HTTP-codes #
- 200— Successful response
- 204— Empty response. No ads were found
- 400— Required parameters are missing or incorrect
- 403— Wrong zone key
- 404— Zone is unknown or inactive
No bid is a 204 with an empty body — not a zero-bid payload and not an error.
OpenRTB supply → us
OpenRTB 2.5 over POST, credentials in the query string:
POST /rtb/bidder?zid=YOUR_ZID&ckey=YOUR_KEY with
Content-Type: application/json. We honour tmax as the deadline and never bid
below imp.bidfloor.
{
"id": "a3d9-supply-req-001",
"at": 1,
"cur": ["USD"],
"tmax": 400,
"imp": [{
"id": "1",
"banner": { "w": 300, "h": 250 }, // or "instl": 1 for pop
"bidfloor": 0.01,
"bidfloorcur": "USD",
"tagid": "your-placement"
}],
"site": {
"domain": "example-publisher.com",
"page": "https://example-publisher.com/article"
},
"device": {
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) …",
"ip": "88.20.14.7",
"geo": { "country": "USA" }
},
"user": { "id": "end-user-id" }
}
{
"id": "a3d9-supply-req-001",
"cur": "USD",
"seatbid": [{
"seat": "bidtags",
"bid": [{
"id": "b0f1c2d3-4e5a-6b7c-8d9e-0f1a2b3c4d5e",
"impid": "1",
"price": 0.13854,
"adm": "https://bid.searchplan.co/c/eyJkIjoiNTgwOTkxMCIsInMi",
"crid": "5809910",
"nurl": "https://bid.searchplan.co/n/eyJkIjoiNTgwOTkxMCIsInMi",
"adomain": ["advertiser.com"],
"w": 300,
"h": 250
}]
}]
}
price is always CPM here. w and h are echoed from your
imp.banner. Billing depends on the contract configured for your zone. For BURL-enabled Pop zones,
call bid.burl when the pop opens; nurl only reports the auction win.
See billable impressions.
adm payload #
What travels in adm is set per zone. Tell us which shape your tag expects:
https://bid.searchplan.co/c/TOKEN
<?xml version="1.0"?>
<ad><popunderAd><url><![CDATA[https://bid.searchplan.co/c/TOKEN]]></url></popunderAd></ad>
<a href="https://bid.searchplan.co/c/TOKEN" target="_blank"></a>
We return a destination, not creative markup. The bid tells you where to send the user, so this fits formats that open a landing page rather than render a creative we supply.
Request examples per format #
Same envelope in all four cases. What changes is the imp object and the
container. Fields shown are the ones that matter; the rest of OpenRTB 2.5 applies.
Banner — web #
{
"id": "req-001", "at": 1, "cur": ["USD"], "tmax": 400,
"imp": [{
"id": "1",
"banner": { "w": 300, "h": 250 },
"bidfloor": 0.35, "bidfloorcur": "USD",
"tagid": "your-placement"
}],
"site": {
"domain": "example.com",
"page": "https://example.com/article"
},
"device": {
"ua": "Mozilla/5.0 ...", "ip": "88.20.14.7",
"devicetype": 2,
"geo": { "country": "USA" }
},
"user": { "id": "end-user-id" }
}
Banner — in-app #
Same as above, replacing site with:
"app": {
"bundle": "com.example.app",
"name": "Example App",
"storeurl": "https://play.google.com/store/apps/details?id=com.example.app"
},
"device": { "devicetype": 4, "ifa": "38400000-8cf0-11bd-b23e-10b96e40000d" }
Video — instream #
app or site depending on the environment. For CTV, use
app and devicetype 3.
"imp": [{
"id": "1",
"video": {
"mimes": ["video/mp4"],
"protocols": [2, 3, 5, 6],
"w": 1920, "h": 1080,
"minduration": 5, "maxduration": 30,
"linearity": 1, "placement": 1,
"skip": 1
},
"bidfloor": 0.50, "bidfloorcur": "USD"
}],
"device": { "devicetype": 3 }
protocols is worth getting right: it declares which VAST
versions your player accepts, and buyers use it to decide whether to bid at all.
Native #
native.request travels as a string, not as an object — that is
what the spec says and what buyers parse.
"imp": [{
"id": "1",
"native": {
"request": "{\"native\":{\"ver\":\"1.2\",\"context\":1,\"plcmtcnt\":1,\"assets\":[
{\"id\":1,\"required\":1,\"title\":{\"len\":100}},
{\"id\":2,\"required\":1,\"img\":{\"type\":3,\"wmin\":300,\"hmin\":250}},
{\"id\":3,\"required\":0,\"data\":{\"type\":2,\"len\":200}}]}}",
"ver": "1.2"
},
"bidfloor": 0.20, "bidfloorcur": "USD"
}]
Response — the same shape for every format #
{
"id": "req-001", "cur": "USD",
"seatbid": [{ "seat": "bidtags", "bid": [{
"id": "b0f1c2d3-...", "impid": "1",
"price": 0.138540,
"adm": "<depends on the format, see above>",
"crid": "creative-id",
"nurl": "https://bid.searchplan.co/n/TOKEN",
"adomain": ["advertiser.com"],
"w": 300, "h": 250
}]}]
}
price is always CPM, whatever the format. No bid returns
HTTP 204 with an empty body — that is normal, not an error.
w and h are echoed back from imp.banner.
Billable impressions #
Pop OpenRTB: BURL is available by agreement, enabled per zone.
When enabled, our bid includes a signed burl such as
https://bid.searchplan.co/b/TOKEN. Call the exact returned URL when the
pop actually opens, according to the agreed billable event.
- burlopt-in Pop— Confirms the CPM impression and publisher payout. Do not call it just because the auction was won.
- nurlwin notice— On BURL-enabled zones it reports the auction win only; it does not bill an impression.
- /c/TOKENredirect— Opens the destination. It does not replace BURL for CPM billing on BURL-enabled zones. CPC click accounting remains a separate contract.
- /i/TOKENpixel— Impression signal for integrations configured to bill on the markup impression event.
No automatic NURL fallback on BURL-enabled zones. If BURL is not received and accepted, the CPM impression and payout are not recorded through NURL or the redirect. Confirm support before enabling this option. Feed integrations and zones without BURL retain their existing billing contract.
BURL callbacks return 204 when handled, including duplicate callbacks;
a 204 alone does not prove a new billable impression. Invalid tokens return
403; expired tokens return 410. Retry deduplication has
operational limits; do not intentionally replay callbacks.
Agree on the event and validate real traffic and partner reports. Our supply-side BURL and any demand-side BURL are separate notifications; receiving one does not prove that the other was sent or that the buyer confirmed revenue.
Prebid · Banner web Browser → Srchbid #
Add Bidtags to your website’s Prebid.js auction with the official Srchbid adapter, bidder code srchbid, and your assigned zone. See the official Prebid integration guide.
The adapter supports browser banner inventory and returns publisher-net CPM in USD. It is a Prebid.js integration, not a Prebid Server adapter. Video, native and app inventory are not supported by this adapter. Requests go to https://prebid.searchplan.co/prebid/bid; no server, ckey or API token is needed in the bidder parameters.
Get the official adapter #
Include srchbidBidAdapter in your Prebid.js build alongside your existing bidders and modules. Select Srchbid on the Prebid.js download page, or include the module when building from the Prebid.js source. Version 11.43.0 includes the adapter; when choosing another version, verify that its build contains srchbidBidAdapter.
Keep your existing consent modules and ad-server configuration. Adding the adapter does not replace the publisher’s auction, targeting or rendering flow.
Bidder parameters #
{
bidder: 'srchbid',
params: {
zone: 'YOUR_ASSIGNED_ZONE',
lifecycleSignals: true
}
}- zoneRequired— Zone ID assigned by Srchbid, as a string or number.
YOUR_ASSIGNED_ZONEis a placeholder; replace it with the production ID assigned to your website. - lifecycleSignalsOptional— Boolean, default
true. Enables win/render diagnostic callbacks for Srchbid’s own bid. Setfalseto disable these diagnostics without disabling bidding or delivery tracking in the winning creative. - mediaTypes.banner.sizesRequired— Declare the sizes your slot can actually display. The endpoint supports
300×250,728×90,320×50,300×600and160×600, subject to your zone’s configured sizes.
var pbjs = window.pbjs = window.pbjs || {};
pbjs.que = pbjs.que || [];
var adUnit = {
code: 'banner-slot',
mediaTypes: {
banner: { sizes: [[300, 250]] }
},
bids: [{
bidder: 'srchbid',
params: { zone: 'YOUR_ASSIGNED_ZONE' }
}]
};
pbjs.que.push(function () {
pbjs.addAdUnits([adUnit]);
pbjs.requestBids({
timeout: 1500,
bidsBackHandler: function () {
// Continue your existing ad-server targeting and rendering flow.
}
});
});This example requests bids; it does not render a banner by itself. Use your existing Prebid/ad-server setup to select and render the winning creative. A response or a winning bid alone is not a rendered impression.
Use an authorized HTTPS page and its actual URL. The browser’s Origin and the page URL supplied by Prebid must match. Validate on the page rather than inside an unrelated cross-origin iframe. Confirm the zone’s allowed domains during onboarding.
Win/render diagnostics and privacy #
With lifecycleSignals: true, the adapter can send one HTTPS GET when Prebid reports that its bid won and another when Prebid reports successful rendering. These callbacks go to bid.searchplan.co, do not bill impressions and do not measure viewability. The adapter handles them automatically; do not fire them manually or when merely receiving a bid. It does not collect results from other bidders.
The adapter uses Prebid’s supplied OpenRTB context, including transaction IDs, supply chain and first-party data, and requests USD floors from the floors module when available. It does not read browser storage, add user syncs or load external adapter code. Supplied TCF, USP and GPP signals are forwarded; forwarding them does not obtain consent. The official bidder page currently lists TCF EU support as not supported, and no GVL ID is declared. Keep the publisher’s consent modules and activity controls configured.
For Content Security Policy, allow https://prebid.searchplan.co in connect-src, plus https://bid.searchplan.co when diagnostics are enabled. Creative-specific CSP requirements should be agreed during onboarding.
Verify the integration #
Open the browser’s Network panel, run your auction and filter for /prebid/bid. The adapter sends one JSON request per banner opportunity using POST and Content-Type: text/plain, without cross-origin credentials. The zone parameter becomes zid in the endpoint URL.
POST https://prebid.searchplan.co/prebid/bid?zid=YOUR_ASSIGNED_ZONE
Content-Type: text/plain
Origin: https://your-website.exampleA bid response must be accepted by Prebid, win your auction and render before delivery can be assessed. If there is no eligible demand or no bid, let the auction continue normally for your other bidders. Reporting follows the normal aggregation schedule; preflight OPTIONS requests are not bid requests.
| Code | Meaning on the Prebid endpoint | What to check |
|---|---|---|
200 | Bid response returned. | Prebid accepts the response; then check auction outcome and creative rendering. |
204 | No bid, or a valid preflight. | For POST, inspect X-BidTags-Status when present. received-no-demand indicates no eligible bid was returned. |
400 | Invalid request or unsupported banner format. | Page URL, matching Origin, banner sizes and request body. |
403 | Origin or domain not allowed. | HTTPS page and the zone’s allowed domains. |
404 | Unknown or disabled zone. | Assigned zone ID and activation status. |
405 | Unsupported method. | Use the adapter’s POST request. |
413 | Request body exceeds 64 KiB. | Reduce unnecessary request data. |
For an isolated review, use the Srchbid review page. The review zone 200007 is restricted to authorized review hosts and uses normal impression accounting. Request a separate production zone; do not copy the review zone into your live site.
For troubleshooting, send info@bidtags.com your website URL, zone ID, Prebid.js version, UTC request time, HTTP status and any Prebid console errors.
Existing private Bidtags integrations #
If your current build uses bidtagsBidAdapter and bidder: 'bidtags', it is the earlier private integration. To migrate, first include srchbidBidAdapter in your build, then change the bidder code to srchbid, keeping the assigned zone. Update any bidder-specific ad-server targeting, analytics or configuration that references the old code.
Do not request the same slot and zone through both bidder codes. The old standalone prebid.js and integration.zip package is not a replacement for an official build containing Srchbid. If you use display.js tags instead of a Prebid.js auction, keep that integration separate; changing this documentation does not require changing those tags.
Feed us → demand
Give us a URL template with macros and we call it with GET. We read two values out of your response — the price and the destination — so your existing shape works unchanged.
https://your-endpoint.com/search
?q={q}&ip={ip}&ua={ua}&country={country}
&subid={supply}&url={url}&device={device}
https://your-endpoint.com/search
?q=car%20insurance&ip=88.20.14.7&ua=Mozilla%2F5.0%20(Windows%20NT%2010.0…)
&country=US&subid=164759
&url=https%3A%2F%2Fexample-publisher.com%2Farticle&device=desktop
Response — XML #
Either attributes or text nodes; CDATA is unwrapped for you.
<?xml version="1.0"?>
<result>
<listing bid="0.4200" url="https://land.example.com/o?c=1"/>
</result>
bid_path = result.0.listing.0.@bid // → 0.4200
url_path = result.0.listing.0.@url // → https://land.example.com/o?c=1
<response>
<ad>
<price>0.42</price>
<link><![CDATA[https://land.example.com/o?c=1&x=2]]></link>
</ad>
</response>
bid_path = response.0.ad.0.price.0 // → 0.42
url_path = response.0.ad.0.link.0 // → https://land.example.com/o?c=1&x=2
How XML paths are built. Every element becomes a list, because a tag can repeat —
so each step carries an index: result.0.listing.0. Attributes are prefixed with
@, and a bare text node is read straight from the element. You don't have to work this out
yourself: send us one sample response and we set the paths.
Response — JSON #
{
"listings": [
{ "bid": 0.42, "url": "https://land.example.com/o?c=1" }
]
}
bid_path = listings.0.bid
url_path = listings.0.url
Response fields we read #
- bidRequired— Your price. Tell us whether it is
cpcorcpm; zero or less counts as no bid. - urlRequired— Destination we send the visitor to. Must be an absolute
httporhttpsURL.
Both are located by path, so the field names above are only a convention — yours can be called anything, at any depth.
Response HTTP-codes we accept #
- 200— Parsed for a bid. An empty body, a zero bid or a missing destination is treated as no bid.
- 204— No bid. The expected way to say "nothing this time".
- Anything else— Logged as an error for that request and skipped. It never blocks the auction.
OpenRTB us → demand
We POST a BidRequest built to your spec. The two templates below are the ones we send today — banner and pop — generated by the bidder itself, so this is literally what arrives at your endpoint.
{
"id": "6f2a1c94-3d17-4b8e-9c02-1a5f7e0d4b33",
"imp": [{
"id": "1",
"banner": { "w": 300, "h": 250 },
"tagid": "pub-4471"
}],
"at": 1,
"cur": ["USD"],
"tmax": 370,
"device": {
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 …",
"ip": "88.20.14.7",
"devicetype": 2,
"geo": { "country": "USA", "type": 2 },
"language": "en",
"os": "Windows",
"dnt": 0,
"lmt": 0
},
"user": { "id": "ccf3cd95b1e10060d75d1a233fdde8f63ca5be81" },
"site": {
"id": "example-publisher.com",
"domain": "example-publisher.com",
"page": "https://example-publisher.com/article",
"ref": "https://google.com/",
"keywords": "car insurance",
"publisher": { "id": "pub-4471" },
"cat": ["IAB24"]
},
"source": {},
"ext": { "sub": "164759" }
}
"imp": [{
"id": "1",
"instl": 1, // no banner object for pop
"tagid": "pub-4471"
}],
{
"id": "6f2a1c94-3d17-4b8e-9c02-1a5f7e0d4b33",
"cur": "USD",
"seatbid": [{
"bid": [{
"id": "1",
"impid": "1",
"price": 0.55,
"adm": "https://land.example.com/o?c=1",
"nurl": "https://your-endpoint.com/win?p=${AUCTION_PRICE}",
"adomain": ["advertiser.com"]
}]
}]
}
We read the first bid of the first seat. The destination comes from adm by default — a
bare URL, or extracted from CDATA or an href if your adm is markup.
If it lives in nurl instead, say so and we read it there.
Demand billing notices #
If your integration bills through bid.burl, include it in the bid
response and agree its activation and billable event with us. Support is configured
per demand or supply/demand connection; returning a BURL does not enable it automatically.
For Pop configured with pop_open, we call your BURL after the accepted
opening signal on our redirect flow. For integrations configured with adm,
the trigger is our markup impression signal. These are separate from the supply's
call to our BURL. VAST impression trackers and feed destination URLs are not BURL.
${AUCTION_PRICE} is replaced with the buyer-side clearing price in
the agreed price unit, not the publisher payout. Notifications are best effort:
validate a real callback and reconcile it against your reporting API before
considering billing confirmed.
| Setting | Value |
|---|---|
| Format | pop, banner or ctv — we only send what you are set up for. |
| Timeout | 50–2000 ms, default 250. tmax reserves processing time and is also bounded by the time remaining in the auction. The configured timeout is not a guarantee of that much time for every request. |
| Geo | ISO-2 allowlist. Empty means every country. |
| Devices | Any of desktop, mobile, tablet. |
| Price | cpc or cpm. |
| QPS | Agreed per partner, enforced on our side. |
Answer within the timeout. One deadline covers every partner in the auction — a late
bid is discarded even if it would have won. ${AUCTION_PRICE},
${AUCTION_CURRENCY} and ${AUCTION_IMP_ID} are filled in when we fire your
nurl; any other ${AUCTION_*} macro is emptied rather than sent unresolved.
Reporting API supply → us
Revenue fields apply to JSON and CSV, including country and sub-ID breakdowns. Current-day and partially reconciled rows can have an estimate before any confirmed payout. Confirmation may arrive later and may be revised. Historical publisher payouts through 5 September 2026 are preserved. Country/sub-ID confirmed amounts are allocated from the confirmed zone payout; they are not independent source-level partner validation.
Pull your own delivery and revenue numbers. The token goes in the URL, so the call works from a scheduled fetch, a spreadsheet or a browser — no headers, no login.
The token identifies you and scopes the data. It only ever returns your own zones; asking for a zone that is not yours returns no rows rather than an error. Treat it as a credential — anyone holding the URL can read your numbers. Ask us to rotate it if it leaks.
Endpoint URL #
https://api.searchplan.co/api/rtb/report?token=YOUR_TOKEN&from=2026-08-01&to=2026-08-20
Endpoint GET-parameters #
- tokenRequired— Your reporting token. Issued by us.
- from, toOptional— Date range,
YYYY-MM-DD, inclusive, UTC. Defaults to the last 7 days. Maximum span is 92 days. - groupOptional— How rows are aggregated:
day— one row per day, all zones summed. Default.zone— one row per zone, whole range summed.day_zone— one row per day and zone.
- zoneOptional— Limit to one zone or several, comma-separated:
zone=165101,165103. - zone_nameOptional— Limit to zones whose name contains this text, case-insensitive:
zone_name=banner. Handy when you do not want to keep a list of IDs. - min_requestsOptional— Drop rows below this many requests. Useful to hide the long tail of near-empty days.
- breakdownOptional— Add one of these dimensions to every row:
country— ISO-2 country.subid— the sub-id received from your integration.subid_country— sub-id and country together.
groupand the zone filters above. - limit, offsetBreakdowns only— Page through high-cardinality results.
limitdefaults to 10,000 and cannot exceed 10,000;offsetdefaults to 0. - formatOptional— Response format:
json— defaultcsv— same columns, one header row
Country and sub-id breakdowns #
Use a breakdown when you need to compare the quality and earnings of traffic segments, rather than only totals by zone. For example:
https://api.searchplan.co/api/rtb/report?token=YOUR_TOKEN&from=2026-08-30&to=2026-08-31&group=day_zone&breakdown=subid_country&limit=1000&offset=0
- country— Returns the full funnel:
requests,responses,fill_rate, no-bid diagnostics, impressions, clicks and revenue. - subid, subid_country— Return
requests,requests_estimated,impressions,clicksandrevenue. Response, fill and no-bid fields are deliberately omitted because they are not recorded at sub-id granularity.
Coverage is bidder-only. Direct advertiser zones are excluded because their reports do not provide country or sub-id. Breakdown history starts on 30 August 2026. Sub-id request counts start at 2026-09-01T20:00:00Z; earlier sub-id rows can still contain delivery and revenue, but requests cannot be reconstructed.
Breakdown JSON and pagination #
{
"rows": [
{
"date": "2026-09-02",
"zone": "165104",
"zone_name": "Example - WW - Pop",
"subid": "campaign-42",
"country": "US",
"requests": 1250,
"requests_estimated": true,
"impressions": 41,
"clicks": 2,
"revenue": 0.1842,
"estimated_revenue": 0.2010
}
],
"meta": {
"breakdown": "subid_country",
"coverage": "bidder_only",
"limit": 1000,
"offset": 0,
"returned": 1,
"truncated": false,
"results_available_from": "2026-08-30",
"requests_available_from": "2026-09-01T20:00:00Z"
}
}
If meta.truncated is true, repeat the request with offset increased by the previous limit. Continue until it is false. CSV uses the same filters and paging parameters; add &format=csv.
JSON-response example #
{
"rows": [
{
"date": "2026-08-21",
"zone": "165104",
"zone_name": "Example - WW - Pop",
"requests": 1848,
"responses": 1254,
"fill_rate": 0.6786,
"no_bid": 3994,
"timeouts": 7558,
"errors": 3002,
"skipped": 0,
"impressions": 1254,
"clicks": 1,
"invalid": 0,
"revenue": 0.031922,
"estimated_revenue": 0.035000
}
]
}
Response fields #
- dategroup=day, day_zone— Day of the row, UTC.
- zone, zone_namegroup=zone, day_zone— Zone the row belongs to.
- requests— Requests you sent us that reached the auction.
- responses— Requests we answered with a bid.
- fill_rate—
responses / requests, as a fraction.0.6786is 67.86%. - impressions— Ads served. On feed integrations every answered request is an impression, because you request the ad in order to display it. On OpenRTB it counts the win notices you fire, since there you may award the impression to another bidder.
- clicks— Clicks registered through the
clickUrlwe returned. - invalid— Parking zones only. Clicks the advertiser did not validate in its daily report (flagged as invalid or not counted at all). These clicks are not paid. Filled once the advertiser report for that day is in; until then it is 0. Always 0 for other formats.
- revenue— Your confirmed publisher payout for the row, in USD. The existing field name is unchanged. Unconfirmed amounts are excluded; zero may mean not yet confirmed, rather than a final zero.
- estimated_revenue— Your provisional publisher payout in USD, before partner validation. This is a separate estimate of the same traffic, not an amount to add to
revenue. It may differ from the final confirmed amount. Only today (UTC) carries an estimate; from yesterday back it is 0 andrevenueis the figure.
Why a request did not get a bid #
These four fields add up to the requests that produced no bid, and they say where each one stopped. They are there so you can fix an integration without asking us to read the logs.
- no_bid— We asked demand and nobody bid. Normal background level; a zone sitting at 100% no-bid usually means the traffic does not match what the connected demand buys.
- timeouts— Demand did not answer in time. Ours to chase, not yours.
- errors— Demand answered with an HTTP error.
- skipped— (Named
filtereduntil 2026-11-09.) Dropped before we asked anyone, so it never had a chance to earn. This is the one worth watching: a high number points at your request, not at demand. The usual causes are unresolved macros sent literally (ip={ip}instead of the value), a missing or emptyuaorip, no resolvable country, or atypethe zone does not serve.
Standard, country and sub-id figures are aggregated hourly, so the current hour can read low until the next roll-up. The combined subid_country breakdown is built daily and is final after the next daily roll-up.
Response HTTP-codes #
- 200— Successful response. An empty
rowsarray is a valid 200. - 400— Bad date format,
fromafterto, range over 92 days (31 with a breakdown), unknowngroup/breakdown, or invalid paging values. - 403— Invalid token, or a token that is not enabled for RTB reporting.
Macros
For demand feed templates. A macro we don't recognise, or one with no value for that request, resolves
to an empty string — a template never goes out with {something} still in it.
{ua}, {url} and {ref} are URL-encoded for you; the rest are
substituted raw.
| Macro | Value | Also accepted as |
|---|---|---|
{q} | Search term | {query} {keyword} {kw} {search} {term} |
{ip} | End user IP | {user_ip} {clientip} {client_ip} {remote_ip} {visitor_ip} |
{ua} | User agent | {useragent} {user_agent} |
{url} | Page URL | {page} {page_url} {pageurl} |
{ref} | Referrer | {referer} {referrer} |
{subid} | Sub-id from the supply | {sub} {sub1} {subid1} {pubid} {refid} |
{country} | ISO-2 country | {geo} {cc} {country_code} |
{lang} | Two-letter language | {language} {accept_lang} {accept_language} |
{device} | desktop · mobile · tablet | {device_type} {devicetype} |
{os} | OS from the user agent | — |
{supply} | Our id for the traffic source | — |
{w} {h} | Slot size, when sent | — |
{count}, {num}, {limit} and {results} always
resolve to 1 — we take a single listing per request.
Status codes
| Code | Meaning | What to do |
|---|---|---|
204 | No bid. | Nothing — no demand won this auction. |
400 | Missing parameter or invalid JSON body. | The message names it, e.g. ip parameter is required. |
403 | Wrong ckey. | Check the key issued for that zone. |
404 | Unknown or paused zone. | Confirm the zid and that the zone is live. |
405 | OpenRTB called without POST. | Use POST. |
410 | Click URL older than one hour. | Expected for stale clicks. |
Feed errors carry a body in the zone's format —
<result><error>…</error></result> or {"error": "…"}.
OpenRTB errors return the status with an empty body.