← Back to docs

Publisher Quick Start

Get from signup to earning in five steps.

Edit this page →
1) Register
Create your publisher account and provide your domain + contact email.
2) Wait for activation
After validation, your account becomes active and inventory can enter auctions.
3) Create ad unit
In the publisher portal, define your ad unit (sizes, environment, floor price).
4) Copy tag
Copy the mde.js embed for the ad unit you just created.
html
<!-- Step 4 — Copy the tag (ad slot + mde.js embed) -->
<div id="mde-slot-1"></div>
<script type="module">
  import * as mde from 'https://exchange.adsgupta.com/mde.js';
  mde.init({ seat: 'mde', publisherId: 'YOUR_PUBLISHER_ID' });
  mde.defineSlot({
    adUnitId: 'YOUR_AD_UNIT_ID',
    divId: 'mde-slot-1',
    sizes: ['300x250']
  });
  mde.enableServices();
  mde.display('mde-slot-1');
</script>
5) Paste into HTML
Paste the tag into your page where the ad should render.
html
<!-- Step 5 — Paste into your HTML -->
<!-- Put this where you want the ad to render -->
<div class="product-sidebar">
  <h3>Sponsored</h3>
  <div id="mde-slot-1"></div>
</div>
<script type="module">
  import * as mde from 'https://exchange.adsgupta.com/mde.js';
  mde.init({ seat: 'mde', publisherId: 'YOUR_PUBLISHER_ID' });
  mde.defineSlot({ adUnitId: 'YOUR_AD_UNIT_ID', divId: 'mde-slot-1', sizes: ['300x250'] });
  mde.enableServices();
  mde.display('mde-slot-1');
</script>