List ad creatives with GET /api/v1/ads/creatives. Requires an API key with the read scope or a signed-in workspace member.
Request
Filter by account or ad. Provider-native creatives carry diagnostic provider IDs and no workspace media unless one was matched.
| Parameter | In | Type | Required |
|---|---|---|---|
workspaceId |
query | UUID | Yes |
accountId |
query | UUID | No |
adId |
query | UUID | No |
cursor |
query | string | No |
limit |
query | string | No |
Response
- HTTP 200:
AdCreativeListwithdata,hasMore,nextCursor,freshness.
The OpenAPI document has each field’s type.
Examples
const creatives = await workspace.ads.creatives({ adId });creatives = workspace.ads.list_creatives()curl "https://pubnio.com/api/v1/ads/creatives?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio ads list-creatives --ad-id "$AD_ID"async () => {
const response = await codemode.request({
method: "GET",
path: "/api/v1/ads/creatives",
query: { workspaceId: codemode.workspaceId },
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems every Ads operation and most operations declare.
Idempotency
None needed: a read is safe to retry.
Limits
- Up to 100 items a page; pass
nextCursorback ascursor. See Pagination.