Ads
Manage advertisement settings and placements.
List all the sites with ads configured
get
pagestring
Identifier of the page results to fetch.
limitnumber · max: 1000
The number of results per page
statusstring · enum · default: "in-review"
Filter sites by their ads review status
Options: in-review
, live
, rejected
X-GitBook-Partner-Keystringrequired
curl -L \
--url 'https://api.gitbook.com/v1/ads/sites' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'X-GitBook-Partner-Key: text'
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"id": "text",
"url": "text",
"email": "text",
"topic": "webdev",
"status": "in-review"
}
]
}
Update the Ads configuration for a site
patch
siteIdstringrequired
The unique id of the site
X-GitBook-Partner-Keystringrequired
curl -L \
--request PATCH \
--url 'https://api.gitbook.com/v1/ads/sites/{siteId}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'X-GitBook-Partner-Key: text' \
--header 'Content-Type: application/json' \
--data '{
"status": "live",
"zoneId": "text",
"reportingId": "text"
}'