Tag installation

The AdPriva Tag is the fastest way to integrate AdPriva.

It’s a lightweight JavaScript snippet (<5KB) that serves ads and generates cryptographic proofs for impressions and clicks with no cookies, no trackers, no hidden identifiers.

Quickstart

Place this snippet in <head> or just before </body>:

<script async src="https://cdn.adpriva.com/tag.js"
  data-site="YOUR_SITE_ID"
  data-zone="ZONE_ID">
</script>
  • data-site → your Publisher Site ID (from the AdPriva Dashboard)
  • data-zone → placement Zone ID (e.g. banner_300x250, native_feed_1)

The Tag loads asynchronously, under 5KB and won’t block page performance.

Supported Formats

  • Banner Ads → IAB standard sizes (300×250, 728×90, 160×600)
  • Native Ads → auto-adapt to your site’s design
  • Video Ads → instream & outstream supported
  • Custom Placements → flexible containers for unique layouts

Proof Integration

  • ViewProofs → generated when an ad enters the viewport
  • ClickProofs → generated when a user clicks
  • Explorer Sync → proofs published to the AdPriva Explorer (publicly verifiable)
  • Dashboard Tracking → monitor proofs + stablecoin earnings in real time

Advanced Options

  • Backfill / Fallback → serve house ads when no AdPriva demand is available
  • Self-hosted Mode → run the Tag locally to bypass ad blockers
  • Custom Events (beta) → trigger proofs for scrolls, form submits or in-app events

Testing Your Installation

  1. Install the Tag on a test page.

  2. Load the page and trigger an ad slot.

  3. Confirm in your Publisher Dashboard:

    → Ad slot shows as active

    → ViewProofs / ClickProofs logged in real time

  4. (Optional) Search the proof ID in the AdPriva Explorer for public verification.

With just one script, your site becomes verifiable, privacy-first ad inventory, ready to earn with proof-backed campaigns.

{% @mermaid/diagram content="sequenceDiagram
participant U as User
participant P as Publisher Page
participant T as AdPriva Tag
participant E as Proof Engine
participant X as AdPriva Explorer
participant S as Settlement
U->>P: Visits site / app
P->>T: Loads AdPriva Tag (async <5KB)
T->>E: Request ad + generate proof
E-->>T: Returns verified ad + Proof ID
T->>U: Displays ad (banner, native, video)
E->>X: Logs cryptographic proof (ViewProof/ClickProof)
X-->>All: Public verification available
E->>S: Validated proofs trigger payout
S-->>P: Ad Revenue Share Payement
S-->>U: Stablecoin rewards (if opted-in)" %}