Skip to main content
POST /api/v2/buyer/creatives/adopt-managed-audio-source This operation creates, or idempotently returns, one audio_hosted creative manifest from a promoted managed audio source. The caller supplies an opaque source identity, never an object-storage URL. Apostra issues the manifest’s bounded HTTPS asset URL server-side only after it confirms the exact source belongs to the authenticated buyer, advertiser, and storefront connection.
Supplying campaign_id records the manifest’s campaign association only. It never starts seller or destination delivery, creates delivery state, attaches to a media buy, or makes anything live.

Request shape

Response

An enabled request returns 201 with the manifest identity, opaque source and publication identities, and bounded hosted-audio URL:
created is false on a replay that finds the already-adopted source. Reusing the same source_uid and name is safe; if campaign_id is included, the call also retries the campaign association. A different name is refused rather than silently renaming the existing creative. The hosted URL is a revocable, time-bounded publication, not a private GCS URL. It is never a caller-supplied value, and the response never exposes the private object-storage URL or location.

Errors

  • 404 NOT_FOUND — the source is missing or is not owned by the authenticated buyer/advertiser/storefront triple. Those cases are intentionally indistinguishable.
  • 409 CONFLICT — the source/name identity is already held, an earlier adoption is still resolving, the adopted asset is no longer available, or the source’s delivery was revoked. Read details.reason; only the two *_in_progress reasons are automatically retryable.
  • 422 CAPABILITY_NOT_SUPPORTED — the bounded delivery origin is disabled or empty. A source that is not a promoted, unexpired audio source or a campaign from another advertiser is also refused with a 422 validation error.
  • 503 SERVICE_UNAVAILABLE — the bounded delivery origin is non-empty but invalid or otherwise misconfigured, so no bounded URL can be issued.
Revocation, retention expiry, and deletion requests fail closed. Upload a new source rather than attempting to refresh or reattach a source whose publication is no longer active.

Bring your own creative

Managed-media adoption and its delivery boundary

Creative overview

Manifest identity and creative transport