API Documentation
The official technical reference for PubAdHub APIs. Get your Access Key and Publisher Key from the PubAdHub Console, then select an endpoint below to explore and test.
Start with Credentials
Access Key
Used to authenticate requests for brand list and reporting endpoints.
Required For
Publisher Key
Credential required for Amazon seller catalogs and affiliate product search.
Required For
Publisher ID
Publisher Id from your Account Manager, sent as pubi on the RTB serving engine. OpenRTB 2.5 uses your Publisher Identity as the path value.
Required For
Platform Access Key
Path credential for platform S2S conversion postbacks. Issued by your Account Manager — not a publisher AccessKey header.
Required For
groups Publisher APIs
View allFor publishers integrating brand list, RTB, OpenRTB 2.5, reporting, product search, and publisher-hosted S2S postbacks.
Brand List API
PublisherRetrieve merchant/brand records, including offer_id, brand name, merchant category, verification status, tracking URLs (homepage and deeplink), country eligibility, traffic restrictions, deal flags, and commission information.
https://statsapi.pubadhub.com/api/brands-list
Brand List by Traffic Type
PublisherRetrieve the Brand List merchant records that allow one traffic type, including tracking URLs, restrictions, and commission fields.
https://statsapi.pubadhub.com/api/brands-list-by-traffic-type
RTB API
PublisherRequest ads in real time from the PubAdHub RTB Serving Engine and receive a bid response with a redirect (tracking) URL when an ad is available.
http://rtb.pubadhub.com/serving-engine
OpenRTB 2.5
PublisherSend one OpenRTB 2.5 bid request per auction. A fill returns HTTP 200 with a USD earnings-per-click price and a click URL. No ad returns HTTP 204.
http://rtb.pubadhub.com/openrtb/{PublisherKey}
Revenue Share Report
PublisherRetrieve click-level, source-level, or date-wise revenue share data including gross revenue, publisher earnings, click counts, transaction identifiers, and publisher tracking values (subid1–subid5).
https://statsapi.pubadhub.com/api/reporting/revenue-share
Click-Level Conversion Report
PublisherRetrieve click-level conversion data (click_id, revenue, click_date) with pagination metadata for a date range of at most 2 days.
https://statsapi.pubadhub.com/api/reporting/clicklevel
Amazon Seller Product Search
PublisherSearch Amazon seller products with optional pagination and receive matching product records with a PubAdHub tracking URL for outbound clicks.
https://statsapi.pubadhub.com/api/amazon-seller-products/search
Affiliate Product Search
PublisherSearch in-stock affiliate products by keyword and receive monetized redirect URLs for Shop / Buy clicks.
https://statsapi.pubadhub.com/api/products/search
Publisher S2S Integration
PublisherReceive conversion credits and cancellations from PubAdHub on an HTTP GET URL you host. Query parameters carry txnid, cid, payout, status, and edate.
https://publisher.example.com/s2s/postback
hub Platform APIs
View allFor platforms and affiliate / offer networks sending S2S conversion postbacks.