Browse the help center

Get advertiser ads.txt lines

Returns the ads.txt lines stored on the advertiser, parsed: each line's id, kind (RECORD — domain, account ID, DIRECT or RESELLER, optional certification ID; VARIABLE — e.g.

Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/advertisers/{advertiserId}/ads-txt.do

Returns the ads.txt lines stored on the advertiser, parsed: each line's id, kind (RECORD — domain, account ID, DIRECT or RESELLER, optional certification ID; VARIABLE — e.g. INVENTORYPARTNERDOMAIN=), its text, and notPublished — why a variable stored before such lines were refused (OWNERDOMAIN, MANAGERDOMAIN, CONTACT, SUBDOMAIN) is left out of every site's block, else null. They belong on an advertiser that is really a demand partner selling through its own tag (an ad network or exchange tag, a DSP seat): ads.txt lists sellers, so an ordinary advertiser that only buys has none. Every site with one of the advertiser's active banners linked to an active placement adds them to its ads.txt block. Requires ENABLED or READONLY level on the ADVERTISER_ADS_TXT permission and VIEW permission on the advertiser.

Path Params

advertiserId integer required

Unique numeric ID of the advertiser

1001

Responses

200

Lines returned

400

Bad request — invalid or missing parameters

401

Authentication error

403

No ADVERTISER_ADS_TXT permission, or the advertiser is outside the caller's shares

404

Advertiser 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.