siteA

About siteA

What this site is and what it demonstrates.

Running HB Wrapper Basic — units in the HTML How this page works ↓
  1. The wrapper loads once in the <head>, as early as practical, async.

    <script async
      src="https://hbw-cdn.hbwrapper.com/hbw.siteA.hbwrapper.com.js"></script>
  2. Every slot is a div already present in the body, carrying data-aaad and the ad unit path.

    <div data-aaad="true"
         data-aa-adunit="/19191187/hbw_siteA_atf"></div>
  3. Nothing else runs. Slots that are in the HTML when the wrapper initialises are picked up on load, so this page never calls processAdsOnPage().

    Each link here is a full page load, so the same two steps repeat on every page of the site.

Auction console: add ?hbwConsole to this URL.

All demo patterns ↗

In the markupThe slot below was in the document before the wrapper ran. Static pages need no API call.

siteA is a demonstration site. It runs the same header bidding wrapper a partner would run on live inventory, on ordinary static pages with the ad slots written directly into the HTML. What you see in the panel beside this text is the entire integration.

Two other demonstration sites cover what this one cannot. siteB appends content and new ad slots as you scroll. siteC is a single-page application that replaces the whole view on a client-side route change. Each one demonstrates a single integration decision, and the index lists them.

The articles here were written for this site. They are short on purpose: enough real page for an auction to behave the way it would on a publisher's own inventory, and no longer.

See all demo patterns