• How it works
  • Partners
  • Blog
  • Docs
  • Sign up
  • Client Area

Ad Publishers

  • Getting started with Ads – Common Issues & FAQs
  • Payment & Fee FAQs
  • Setting up your ads.txt file
  • Installing the ad script on your page
  • Creating an ad placement
  • US Privacy law compliance steps
  • Ad script lifecycle events
  • Detecting ad-blocking users
  • Special ad format: Sticky Stack
  • Placement Configuration API

CMP

  • Adding custom consents or disclosures
  • Creating a link for the user to manage their consents

Sponsor

  • Getting started with Sponsor

Users

  • Getting started with Users
  • Adding the Users SDK to your site
  • Initializing the Users SDK
  • Launching the login/registration screen
  • Managing user sessions
  • Users SDK API Reference
  • NitroPay
  • Docs
  • Ad Publishers
  • Creating an ad placement

Creating an ad placement

For your convenience, there is a placement creation tool located on your site entry in the panel.

Below is an example implementation for a placement generated using our setup tool.

<div id="placement-1"></div>

<script type="text/javascript">
  window["nitroAds"].createAd("placement-1", {
    refreshLimit: 10,
    refreshTime: 90,
    report: {
      enabled: true,
      wording: "Report Ad",
      position: "fixed-bottom-right"
    }
  });
</script>

The first parameter of the createAd api must match a DOM element id on the page. Use a unique element id for every ad placement on your page to avoid common implementation issues. We suggest using a human readable static id for each unique placement for your report building and tracking purposes in the panel.

The second parameter is an object with the ad’s configuration (see: API reference).

Share this document:
  • Facebook
  • Twitter
  • LinkedIn
Updated on January 25, 2023
Installing the ad script on your pageUS Privacy law compliance steps
© GG Software, LP
Privacy Policy | Terms of Use | Contact us