Read one ad creative with GET /api/v1/ads/creatives/{creativeId}. Requires an API key with the read scope or a signed-in workspace member.
Request
Returns one stored creative by workspace ID, including copy, destination, media reference, and provider settings.
| Parameter | In | Type | Required |
|---|---|---|---|
creativeId |
path | UUID | Yes |
workspaceId |
query | UUID | Yes |
Response
- HTTP 200:
AdCreativewithid,accountId,provider,externalId,kind,actorAccountId,mediaId,headline,body,callToAction,destinationUrl,providerSettings,syncedAt.provider:meta_ads,google_ads,reddit_ads,pinterest_ads,tiktok_ads,linkedin_ads,snapchat_ads,amazon_ads,openai_ads
The OpenAPI document has each field’s type.
Examples
const creative = await workspace.ads.creative(creativeId);creative = workspace.ads.get_creative(creative_id)curl "https://pubnio.com/api/v1/ads/creatives/$CREATIVE_ID?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio ads get-creative "$CREATIVE_ID"async () => {
const creativeId = "<creativeId>";
const response = await codemode.request({
method: "GET",
path: `/api/v1/ads/creatives/${creativeId}`,
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
- Field lengths and ranges are in the OpenAPI document.