AdTech Integration Guides

AdTech Integration Guides

  • App (SDK)
  • App (Somquery)
  • Desktop
  • CTV

›Display Ads

Getting Started

  • Somtag Introduction

Setup

  • Somtag Integration
  • Callback Function
  • Bookmarklets
  • Debugging

Display Ads

  • Retrieve Display Ads
  • Displaying / Styling Ad Slots
  • Reload Display Ads
  • Display Example
  • Ad Slot and Ad Product Overview

Video Ads

  • Retrieve VAST URLs
  • Video Example

FAQ

  • FAQ

Retrieve Display Ads

General

You fill an ad slot by calling the insertAd command, passing the ad slot name and a destination container:

<!-- anywhere in the page (preferred in the <head> of the page) -->
<script>
    function callback(error, result) {}
    somtag.cmd("insertAd", <adSlotName>, { container: "#rectangle_ad_container" }, callback);
</script>

<!-- anywhere in the page -->
<div id="rectangle_ad_container"></div>
ParameterDescription
adSlotNamename of the ad slot (see Overview of Display Ad Slots and Products)
{ options }object with only mandantory key container: a selector pointing to the ad container element
callback(error, result)optional callback function (see Callback function)

Special config for InRead / MinRead Config

Please add an additional anchor element to your page, where the ad will be displayed. The id of that element can only be 71M_inreadads.

Example:

<script>
    somtag.cmd("insertAd", "inread1", {
        container: "#ad_inread_container",
    });
</script>

<div id="“ad_inread_container”">
    <!-- In here the ad will be requested, but not displayed -->
</div>

<p>Lorem ipsum ...</p>
<div id="71M_inreadads"></div>
<!-- In here the ad will be displayed -->
<p>Lorem ipsum ...</p>
← DebuggingDisplaying / Styling Ad Slots →
  • General
  • Special config for InRead / MinRead Config
AdTech Integration Guides
Guides
AppDesktopCTV
More
GitHub
Contact

SevenOne Media GmbH
Medienallee 4
85774 Unterföhring

71.adtechnology@gmail.com
SevenOne Media - Wir bewegen Marken
Copyright © 2023 SevenOne Media GmbH