Add a banner slot to your page.
Place a slot where the banner should appear, and load the script once
anywhere on the page. Replace YOUR_SITE_SLUG with the
slug of your site in the MVSP dashboard.
<div data-mvsp-ad></div>
<script async src="https://api.mvsp.ai/releases/embed.deb6d26fa572279a.js"
integrity="sha384-3rbSb6VyJ5pxen9z886pL/LWX4aX4Humer2kvK6G+QC1Uf1Bexq2cIWCAxI9IyNN"
crossorigin="anonymous"
data-site="YOUR_SITE_SLUG"></script>
The banner scales down to fit its container (max-width: 100%)
and opens the advertiser in a new tab with
rel="sponsored noopener". If no banner matches, the slot
stays empty.
Several slots, or one category.
Add data-category to a slot to only show banners from
that category. Use several slots on one page — each gets a different
banner as long as enough are available.
<div data-mvsp-ad data-category="Teknologi"></div> <div data-mvsp-ad></div>
| Categories |
|---|
Teknologi · Finans · Reise · Mat og drikke · Helse · Mote · Underholdning · Bolig · Annet |
Random, weighted, counted.
| Topic | Behaviour |
|---|---|
| Selection | A random active banner is picked on every page view among those ticked for your site (and matching the slot's category). |
| Weight | Each banner has a weight 1–10. A banner with weight 3 is drawn three times as often as one with weight 1. |
| Impressions | Counted each time a banner is returned for a page view. |
| Clicks | The banner links via /ads/click/…, which counts the click and redirects to the advertiser. |
| Privacy | Only counters per banner, site and day are stored. No cookies, no visitor identifiers. |
What to upload.
JPG files only, up to 900 KB (larger images are shrunk automatically
in the dashboard). The image is optional: an ad with only a title and
text is shown as a simple bordered text card that inherits your
page's font. Common sizes that work well:
728×90, 300×250, 320×100.
The click URL must be http(s).
Manage banners, weights and per-site visibility in the dashboard under Ads, and follow impressions, clicks and click-through rate per site under Ad stats.
Fetch banners yourself.
Not on the web? Read the JSON directly:
curl "https://api.mvsp.ai/ads/serve?site=YOUR_SITE_SLUG&category=Teknologi&limit=1"
Returns { success, data: [{ id, title, text, category, imageUrl, clickUrl }] }
(imageUrl is null for text-only ads).
Use clickUrl for the link so clicks are counted; up to 10
banners per call.