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

Ad Publishers

  • Setting up your ads.txt file
  • Installing the ad script on your page
  • Creating an ad placement
  • Creating a Video Placement
  • Creating a Playlist and Adding Content
  • US Privacy law compliance steps
  • Ad script lifecycle events
  • Detecting ad-blocking users
  • 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

FAQs and Demos

  • Getting started with Ads – Common Issues & FAQs
  • Payment & Fee FAQs
  • Special ad format: Sticky Stack
  • NitroPay
  • Docs
  • Ad Publishers
  • Installing the ad script on your page

Installing the ad script on your page

Every site on the NitroPay platform gets a custom built version of our advertising script. This allows us to only bundle what’s needed to maximize your specific site’s revenue, keeping the script as lean as possible. Please include the script in the <head> section of your site. None of your placements will generate ads unless this script is fully loaded on your page. Replace the #### with the ID of your site, you can see the correct IDs for each of your properties in the panel.

<script data-cfasync="false">window.nitroAds=window.nitroAds||{createAd:function(){return new Promise(e=>{window.nitroAds.queue.push(["createAd",arguments,e])})},addUserToken:function(){window.nitroAds.queue.push(["addUserToken",arguments])},queue:[]};
</script>
<script data-cfasync="false" async src="https://s.nitropay.com/ads-####.js"></script>

Do not host the script locally, bundle it, or use anything to proxy the request (ie: Cloudflare). The script will not work properly in these situations and revenue will be heavily impacted.

Share this document:
  • Facebook
  • Twitter
  • LinkedIn
Updated on January 25, 2023
Setting up your ads.txt fileCreating an ad placement
© GG Software, LP
Privacy Policy | Terms of Use | Contact us