Subscribe directed campaigns (alpha)
Task Reference
Subscribe directed campaigns (alpha)
Mirror campaigns from a mapped adapter account
POST
Subscribe directed campaigns (alpha)
Subscribe an active, non-organization adapter account that is already mapped
to the requested advertiser. The first sync enumerates
A successful enrollment response can contain sync errors. When
get_media_buys
without IDs and backfills terminal history for one year; active campaigns are
always mirrored. This backfill covers campaign metadata, not delivery reports.
Named operation: subscribe_directed_campaigns
Omitting governance keeps the subscription read-only. Supplying caps does not
grant write authority: the separate
directed-campaign-writes customer gate and
support for the requested provider operation are also required. Governance is controlled
by Interchange; ordinary buyer callers receive an authorization error if they
try to set or change it through this operation.
The request completes after the initial enumeration attempt. The response includes the
durable subscription (backfillStart, lastSyncedAt, lastSyncStatus, and
lastSyncError) plus the initial mirrored/retired/skipped counts. Calling the
same operation again is idempotent and refreshes the mirror.
The default metadata sweep runs every 15 minutes. Use the subscription-status
operation for the latest metadata-sync health and fixed history boundary.
There is no running backfill percentage or delivery-import status. Campaign
summaries expose mode, provider, mirror state, and directed.lastSyncedAt for
row-level freshness.
When broad enumeration omits a campaign that is already mirrored, Interchange
reads nonterminal upstream IDs through a bounded, resumable direct-read cycle
before treating absence as authoritative. A complete terminal response preserves
the campaign and its package history even when the provider returns an empty
package list. Already-terminal local mirrors remain available without repeated
provider reads. A failed or incomplete direct response marks the sync unhealthy
and retains the last valid mirror.
Response
errors is non-empty,
the subscription remains durable with status ERROR and the worker retries; other
provider-supported directed operations remain available. A successful response with
mirrored: 0 and no errors means no campaigns were eligible in the one-year metadata
window. Neither outcome is a delivery backfill.
Errors and recovery
See Directed campaigns (alpha).