NinaData Monetizer -- Installation

Canonical URL: https://docs.ninadata.ai/install/

What NinaData sends you

Before installing, you receive from NinaData:

Ads only render on the exact domains NinaData has authorized for your (publisherId, siteId) pair. On any other domain the runtime is silent -- no ads, no telemetry.

Where to paste the snippet

Paste both <script> blocks below into the page <head>, in the order shown. If you use a tag manager, the two blocks must be injected into <head> in that same order (the config block first, then the runtime script).

The snippet

<script>
  window.NINA_MONETIZER_CONFIG = {
    mode:         "monetizer",
    publisherId:  "CUSTOMER_PUBLISHER_ID",
    siteId:       "CUSTOMER_SITE_ID",
    diagnostics:  false,
    quietConsole: true,
    telemetry: {
      enabled:         true,
      endpoint:        "https://collector.ninadata.ai/api/monetizer-event",
      sampleRate:      1,
      maxBatchEvents:  10,
      flushIntervalMs: 500
    },
    consent: {
      enabled:   true,
      mode:      "observe",
      timeoutMs: 1000
    }
  };
</script>
<script async src="https://cdn.ninadata.ai/monetization.js"></script>

Replace CUSTOMER_PUBLISHER_ID and CUSTOMER_SITE_ID with the exact strings NinaData provided.

What NOT to change

If NinaData asks you to change any of these values, they will confirm it in writing.

How to verify

Install on the agreed test URL first. Then, in a fresh private / incognito browser window, open DevTools and confirm:

Visible ads may appear when the page is eligible and demand returns a bid. Absence of an ad on a given page load is not automatically a failure.

Send NinaData

NinaData confirms healthy install on their side before you extend the install beyond the test URL. See the rollout checklist.

Rollback

  1. Remove the <script> block that sets window.NINA_MONETIZER_CONFIG.
  2. Remove the <script async> block that loads https://cdn.ninadata.ai/monetization.js.
  3. If either block was injected through a tag manager, clear the tag manager or template cache.
  4. Tell NinaData when the rollback took effect.

After the next page load, no NinaData runtime code runs, no telemetry is sent, and no placements are created.