JavaScript API
Reference the relevantDigital JavaScript API.
Use the relevantDigital JavaScript API to load ads and extend HB Manager behavior. Start with the API overview, then choose a guide for configuration, events, video, or single-page applications.
Start here
JavaScript API overview — Review the available public API functions.
relevantDigital.loadPrebid() — Load ads with HB Manager.
Configure and observe auctions
relevantDigital.addPrebidConfig() — Apply Prebid configuration through the API.
relevantDigital.addAmazonConfig() — Configure Amazon UAM or TAM through the API.
relevantDigital.addAuctionCallbacks() — Register global auction callbacks.
relevantDigital.addAdsCallbacks() — Receive consistent ad events across ad servers.
Support video and dynamic pages
relevantDigital.defineVideoSlots() — Define video slots for header bidding.
relevantDigital.loadVideoUrls() — Load VAST URLs for configured video slots.
relevantDigital.destroySlots() — Clean up slots during single-page application navigation.
Last updated
Was this helpful?