Browse the help center

Add site ads.txt lines

Parses 'lines' the IAB ads.txt 1.1 way — blank lines and # comments skipped, variables kept — and appends what it adds to the site's additional ads.txt lines, each line once: lines of a partner that sells the site but is not an advertiser here, such as a header-bidding bidder.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/ads-txt/lines.do

Parses 'lines' the IAB ads.txt 1.1 way — blank lines and # comments skipped, variables kept — and appends what it adds to the site's additional ads.txt lines, each line once: lines of a partner that sells the site but is not an advertiser here, such as a header-bidding bidder. OWNERDOMAIN and MANAGERDOMAIN describe the site owner and are set only on the White Label page; CONTACT and SUBDOMAIN belong to the publisher's own file; a line with any of them is refused. When a line is malformed or refused nothing is stored and the answer carries success=false, invalidLines (1-based line numbers) and msg. Returns the site's ads.txt view as the GET does. Requires ENABLED level on the SITE_SUPPLY_CHAIN permission and UPDATE permission on the site; a masked share is refused.

Path Params

siteId integer required

Unique numeric ID of the site

5001

Form Params

lines string required

The block as the partner gave it, one line per line

adform.com, 1234, RESELLER

Responses

200

Lines added, or refused with invalidLines

400

Bad request — invalid or missing parameters

401

Authentication error

403

No SITE_SUPPLY_CHAIN permission, or the site is outside the caller's shares or masked

404

Site not found

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.