Quickstart — Publisher

From signup to live ads in under 10 minutes. This guide walks through adding your first site, installing the embed script, creating a placement, and approving your first ad template.

Prerequisites

You need:

  • An Inlay account — sign up free
  • A publicly accessible website (any stack — HTML, Next.js, WordPress, Webflow, etc.)
  • Ability to add a <script> tag to your site's <head>

Local development

The embed script works on localhost too. AI template generation requires the DOM snapshot sent by a real visitor, so you can test the full flow in a local browser tab.

Steps

Add your site

Go to Dashboard → Sites → Add site. Enter your website's base URL (e.g. https://example.com). Give it a memorable name and click Create site.

Inlay creates a unique siteScriptId for your site. This identifier is embedded in your script tag and is used to route requests back to your account.

Install the embed script

On the site detail page, copy the two-line embed tag and paste it into every page of your site — ideally just before the closing </head>:

your-site/index.html
<!-- Inlay — abc12345 -->
<script async src="https://useinlay.com/api/script/abc12345def67890"></script>

The script is served from Inlay's CDN with a one-hour cache. When you deploy updates to your script logic, publishers automatically receive the updated version without touching their embed tag.

The async attribute is required. It prevents the script from blocking your page render.

Create a placement

Go to Sites → [your site] → Add placement. Fill in:

  • Name — a label for your own reference (e.g. "In-article — Blog posts")
  • URL patterns — which pages should show ads. Use glob syntax: https://example.com/blog/*
  • Ad format — choose from Content Card, In-Feed Social, or Editorial Block
  • Floor CPM — optional minimum bid price in USD (e.g. 1.50)

You can create multiple placements per site — for example, one for blog posts and one for product pages, each with different URL patterns and floor prices.

Trigger template generation

Visit a page on your site that matches the placement's URL patterns in a browser. The embed script will:

  1. Detect the matching placement
  2. Capture the DOM structure around the target selector
  3. Send it to Inlay's serve endpoint
  4. Trigger AI template generation (takes 5–15 seconds)

The page shows nothing yet — ads are held back until you approve the template. Return to your dashboard and you'll see the placement status change to Pending approval.

Preview and approve

In the Dashboard, click the placement to open the preview panel. You'll see the generated ad component rendered with sample creative. Two options:

  • Approve — sets the template live. All future matching page loads will serve real ads immediately.
  • Regenerate — optionally add written feedback (e.g. "use a smaller font, remove the border") and request a new template. The next visitor triggers a fresh generation pass.

You can also click Open on your site → to test the ad injected into your actual live page, complete with a floating approval panel so you can approve or regenerate without leaving the tab.

After approval

Once approved, the template is reused for every impression — the AI generation step only runs once per template lifecycle. Regeneration resets the cycle.

What's next