Web SDK
HTML; native multimedia ads and banners.
Install
Place it at the end of <body> and load it once per page:
<script>
(function(w,d,s,src,n){var js,ajs=d.getElementsByTagName(s)[0];if(d.getElementById(n))return;
js=d.createElement(s);js.id=n;w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)};w[n].l=1*new Date();
js.async=1;js.src=src;ajs.parentNode.insertBefore(js,ajs)})(window,document,'script','https://static.aottercdn.com/trek/sdk/3.5.8/sdk.js','AotterTrek');
AotterTrek('init', '[Trek client id]');
AotterTrek('send');
</script>
Native multimedia ad (in-content)
<div id="ad-container"></div>
<script>
AotterTrek('suprAd', { selector: '#ad-container', place: '[Your PlaceUid]',
onAdLoad: () => {}, onAdFail: () => {} });
</script>
Banner (sticky bottom)
AotterTrek('suprAd', { selector: '#banner', place: '[Banner PlaceUid]', mobile: true, fixed: 'bottom' });
React · Next.js
To install with AI, run npx skills add aotter/skills in the project; get_integration_skill lists the web skills to use and this placement's keys. The web skills describe a plain HTML page for now; in a framework project such as React or Next.js, the skill first asks where the snippet belongs (aotter/skills#7).
Test keys
| Item | Value |
|---|---|
| clientId | yEFcFoJaruNorh5RqtuR |
| Banner | f62fc7ee-2629-4977-be97-c92f4ac4ec23 |
| Native Multimedia 300×250 | 5a41c4d0-b268-43b2-9536-d774f46c33bf |
First-party data (optional)
AotterTrek('setUser', { email: '<sha256>', hashedPhone: '<sha256>', birthYear: 1990, gender: 'female' });
AotterTrek('send');
ConsentSend only after user consent, and only hashed values.
Prebid
pbjs.setConfig({ aseal: { clientId: '[Trek client id]' } });
const adUnits = [{ code: 'div-1', mediaTypes: { banner: { sizes: [[300, 250]] } },
bids: [{ bidder: 'aseal', params: { placeUid: '[PlaceUid]' } }] }];