Register a site
Add the bare domain, host only. Protocol, path and port are stripped, sohttps://your-domain.example/news becomes your-domain.example.
- Domain: required, unique within your account. Register one form: a page on its
www.or bare alias finds it too. - Display name: optional, a label for the console.
Create a fragment
A fragment is the slot; the card is the piece that completes it.
For a publisher group under one GAM network, this means one account, one site per domain and one
fragment per level-3 family. The reference carries the site segment (
news-site above), so it only
needs to be unique per site. Create one fragment per section that needs its own
card eligibility, then route that section’s paths to it.
Pause or delete a fragment
A fragment is active or paused: Pause and Activate switch it from the fragment list. Pages resolved to a paused fragment answer no-fill (204), with no fallback to another rule or the
default, and render without a card. Pausing keeps the default and the rules that point to the
fragment; the console then tells you which of them will answer 204. The change applies on the next
call (no cache).
Delete removes the fragment, the routing rules that target it, its place as site default and its
place in every card’s eligibility.
Default fragment and routing rules
Open the site to decide which fragment each page gets. An exact rule wins, then the longest prefix, then the default fragment (resolution).1
Set the default fragment
Under Default fragment, choose an active fragment of the site, then Save default. It serves
every page no routing rule matches; choose none to answer
204 on those pages instead. The
fragment list marks it with a default badge.2
Add routing rules
Under Routing rules, enter a Path prefix, choose prefix or exact, select a fragment
of the site, then Add rule. A rule may target a paused fragment; a default may not. Delete
rule removes one.
/ with exact for the homepage, or with prefix for every page.
Paths are stored in lowercase and percent-encoded like the page path they are compared with. The same
path and match appear once per site, and a site holds at most 200 rules.
On a fragment’s Integration page, the routing rules you select become the scope of the Worker
code (scope). Nothing is saved: a rule added later covers pages outside
that scope only once you generate the code again and redeploy.
abc.txt, an optional public declaration
Cards are delivered with or without it. If you want to, publish a small text file at the root of your site, athttps://<your-domain>/abc.txt, to publicly declare doubleshift as an authorized
branded-content provider. It is the same transparency model as ads.txt, applied to the agentic web.
abc.txt
provider_domain, account_id, relationship:
shftd2.com: the doubleshift provider domain (fixed).<your account id>: your account id, shown in Settings → Account (also yourpartner_id).DIRECT: you control the account directly.RESELLERmeans a partner resells on your behalf.
text/plain, ASCII; # starts a comment and unknown fields are ignored. See the
ABC spec for the full format.
