---
title: "Docs — Daylight"
description: "Put Daylight on your site. Paste the tags, call the API, or ask your coding agent — all three show the same ads and count them the same way."
canonical: "https://daylight.ad/docs"
---

# Put daylight on your site

A new ad network for builders, by builders. One key, three ways in, and a page to show the clicks and stats

- **Paste the tags** recommended We fetch the ad and draw it.
- **Ask your agent** Your agent does the install.
- **Call the API** You fetch the ad and draw it.

## Paste the tags

In your page

The tags to paste
```html
<script async src="https://plainsun.com/f.js" data-site="YOUR_SITE_KEY"></script>
<link rel="stylesheet" href="https://plainsun.com/f.css">
<div data-daylight>Your own content, shown if no ad loads</div>
```

Put it where the ad should go. **`YOUR_SITE_KEY`** is on your site’s page.

- [Get your site key](https://daylight.ad/submit/site)
- [What an ad looks like](https://daylight.ad/docs/all#layouts)
- [Style it to match your site](https://daylight.ad/docs/all#variables)

## Ask your agent

To your agent

What to say to your agent
```
Add Daylight ads to this site.
Read https://daylight.ad/SKILL.md and follow it.
```

Paste it into any coding agent that can edit your files. **It asks you for the key and where the ad goes, then checks it counts.**

- [The five steps it takes](https://daylight.ad/docs/all#agent-steps)
- [What to expect](https://daylight.ad/docs/all#agent-expect)
- [The guide it reads](https://daylight.ad/SKILL.md)

## Call the API

From your server

The request
```http
GET https://plainsun.com/api/v1/unit?site=YOUR_SITE_KEY
```

One ad comes back as JSON. Draw it **always with the line that marks it as an ad**.

- [See the full response](https://daylight.ad/docs/all#response)
- [The markup to draw](https://daylight.ad/docs/all#markup)
- [Want to add more than one?](https://daylight.ad/docs/all#nonce)

## Your site key comes with a free account

Sign up with your site’s address and you land on its page with these tags drawn and your key already in place of **`YOUR_SITE_KEY`**. Everything else is in the full docs.

- [All docs](https://daylight.ad/docs/all)
- [Get started](https://daylight.ad/join?want=site)

## Put your site in daylight

Every kind of ad a site can run, where each one fits on a page. They are real listings from the library: press one and you go to that product. Nothing here is counted, because nothing on this page was served.

An example site with a real ad in each place one fits

Card

Stack

No picture of its own

Compact

daylight.ad is in beta. Questions, comments or problems: [hello@daylight.ad](mailto:hello@daylight.ad) · [How it works](https://daylight.ad/about) · [Docs](https://daylight.ad/docs) · [Privacy](https://daylight.ad/privacy) · [Opt out](https://daylight.ad/optout)
