Display slot
One element per placement, rendered in a sandboxed iframe. Slots added later are picked up automatically.
WIDTHxHEIGHTSDKs, APIs and tools for integrating with Nitx. Start with the Publisher SDKs: one protocol to show Nitx ads on your website and in your apps.
<head>
<!-- Nitx Publisher Tag, printed by your dashboard -->
<script>
(function(n,i,t,x){ /* loads v1.js */ })(window,document,'nitx');
nitx('init', 'PUB-AM-XXXXXX');
</script>
</head>
<body>
<article>…</article>
<div class="nitx-ad"
data-slot="SLOT-XXXXXX"
data-size="300x250"></div>
</body>Events
Quickstart
Install, start, show an ad. Every SDK starts with the source code from your Nitx Publisher dashboard.
<!-- Nitx Publisher Tag -->
<script>
(function(n,i,t,x){
n['NitxPublisher']=t;
n[t]=n[t]||function(){(n[t].q=n[t].q||[]).push(arguments)};
var s=i.createElement('script');s.async=1;
s.src='https://cdn-new.nitx.app/sdk/publisher/v1.js';
i.head.appendChild(s);
})(window,document,'nitx');
nitx('init', 'PUB-AM-XXXXXX');
</script><div class="nitx-ad" data-slot="SLOT-XXXXXX" data-size="300x250"></div><script>
nitx('init', 'PUB-AM-XXXXXX');
// From your own consent banner:
nitx('consent', true);
// After a login or sign-up, only with the user's consent:
nitx('identify', { email: user.email, phone: user.phone, gender: user.gender, birth_year: user.birthYear, city: user.city, country: user.country, traits: { plan: user.plan } });
// On logout or when the user asks to be forgotten:
nitx('reset');
</script>Formats
Image, video and HTML creatives in views the SDK sizes for you. Slot kinds come from the dashboard, so the code stays the same.
One element per placement, rendered in a sandboxed iframe. Slots added later are picked up automatically.
WIDTHxHEIGHTAn inline view the app places in its layout. Adaptive banners take the full width at 50 to 90 dp.
banner_320x50banner_300x250banner_adaptiveFull screen at a natural break, with a close control. Image or video, portrait or landscape.
interstitialFull screen when the app launches or returns to the foreground, with a frequency rule.
app_openRendered with your own UI, as a post, card or row. The SDK supplies the assets and tracks the view.
nativeFull-screen video the user opts into for a reward. Defined now so the taxonomy is stable.
rewardedPrivacy by design
The same rules ship in every SDK and are enforced on the device, not left to each integration.
nitx('identify', { email: ' Ada@Example.com ' })nitx('consent', true)Changelog
iOS native ads: overlay underneath the child with forwarded clicks via NitxNativeAd.performClick(), same design as Android
Flutter SDK··34e3311
README: document NitxNativeAd.performClick()
iOS SDK··49554b4
NitxNativeAd.performClick(): programmatic click for hosts that render outside UIKit (Flutter)
iOS SDK··7d89533
Nitx Publisher SDK for Flutter 1.0.0: bridge over the Android and iOS SDKs, banner and native ad views, example app, unit tests
Flutter SDK··71d3f07
Nitx Publisher SDK React Native bridge 1.0.0: TypeScript surface, Kotlin and Swift modules over the native SDKs, NitxBanner and NitxNativeAdView, example app, jest tests, README
React Native SDK··c8b7e40
Pick your platform, paste the code from your dashboard and ship. The docs stay public, no account needed.