Get ads
Up to 25 ads in one request, each as Get ad answers it, in the order asked. Use it to read the ads a search or list returned in one round trip. It counts one call per ad. An id the library lacks, or an item that is not an ad id, comes back under missing and the rest still return. Without a plan, the first 10 ids are read, as one call. Same answer as the MCP tool get_ads.
/api/v1/ads/batchAuthentication
API key, OAuth token or signed-in session, sent as Authorization: Bearer <key or token> (a session rides on its cookie). An OAuth token needs mcp:read. See authentication.
Query parameters
idsarray of stringrequiredAd ids, comma-separated: 1 to 25, from List ads or Search library. A shortened id (8 characters or more) or an ad page URL also works.
compactbooleantrue: a leaner answer for reading many ads. Leaves out make_yours and breakdown.remix (the same script and modes as remix_spec) and remix_spec.scenes (the same as breakdown.scenes). Default false. Default
false.
Response fields
adsarray of AdcountintegerHow many ads came back.
missingobjectPresent when an id matched no ad. The ads that were found are in ads.
notestringWith no plan, only the first 3 ids are read and this says so.
full_accessstring
Responses
- 200
The ads. Body:
AdBatch. - 400
A parameter is missing or out of range. Body:
Problem. - 401
No credentials, or the token is invalid or expired. The oauth2 security scheme says how to get one. Body:
Problem. - 403
The token lacks the mcp:read scope. Body:
Problem. - 404
No such brand, niche, format, visual format, hook tactic or ad. Body:
Problem. - 429
rate_limited: more than 60 requests a minute from this account.quota_exceeded: the plan's MCP/API allowance is used up (10,000 a month on Pro, 50,000 a month on Agency, 200 a day on the 7-day free trial, UTC), or an account with no plan has used its 20 preview calls.detailsays which limit and when it resets.resolutionsays what to do next and links to the plans page. Show both to the person. Body:Problem. - 503
The library could not be read; retry shortly. Body:
Problem.