@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface SyncEventSourcesSuccess

    Success response - sync operation processed event sources

    interface SyncEventSourcesSuccess {
        event_sources: {
            event_source_id: string;
            name?: string;
            platform_id?: string;
            seller_id?: string;
            event_types?: EventType[];
            value_currencies?: string[];
            action_source?: ActionSource;
            surface?: EventSurface;
            managed_by?: "buyer" | "seller";
            setup?: {
                snippet?: string;
                snippet_type?: "html" | "javascript" | "pixel_url" | "server_only";
                instructions?: string;
            };
            action: | "created"
            | "updated"
            | "unchanged"
            | "failed"
            | "deleted"
            | "archived";
            archived?: boolean;
            health?: EventSourceHealth;
            errors?: Error[];
            ext?: ExtensionObject;
        }[];
        sandbox?: boolean;
        context?: ContextObject;
        ext?: ExtensionObject;
    }
    Index
    event_sources: {
        event_source_id: string;
        name?: string;
        platform_id?: string;
        seller_id?: string;
        event_types?: EventType[];
        value_currencies?: string[];
        action_source?: ActionSource;
        surface?: EventSurface;
        managed_by?: "buyer" | "seller";
        setup?: {
            snippet?: string;
            snippet_type?: "html" | "javascript" | "pixel_url" | "server_only";
            instructions?: string;
        };
        action: | "created"
        | "updated"
        | "unchanged"
        | "failed"
        | "deleted"
        | "archived";
        archived?: boolean;
        health?: EventSourceHealth;
        errors?: Error[];
        ext?: ExtensionObject;
    }[]

    Results for each event source, including both synced and seller-managed sources on the account. Archived sources are included, flagged archived: true.

    Type Declaration

    • event_source_id: string

      Event source ID from the request

    • Optionalname?: string

      Name of the event source

    • Optionalplatform_id?: string

      Platform-specific ID assigned to the event source by the seller's ad platform. Introduced in AdCP 3.3. When reporting a platform identifier in 3.3 and later 3.x responses, sellers MUST emit both platform_id and the deprecated seller_id alias with identical values. Buyers MUST prefer platform_id and fall back to seller_id only when platform_id is absent. This identifies the object on the platform, not the seller.

    • Optionalseller_id?: string

      Deprecated in AdCP 3.3. Alias for platform_id, retained throughout 3.x; removal is no earlier than AdCP 4.0 and subject to the deprecation policy. When both fields are present, their values MUST be identical. Buyers MUST prefer platform_id and fall back to this field only when platform_id is absent. This remains the object's platform identifier, never the seller's identity.

    • Optionalevent_types?: EventType[]

      Event types this source handles

    • Optionalvalue_currencies?: string[]

      ISO 4217 currencies accepted for monetary event values from this source. Canonical ROAS buys require their media-buy currency in this list.

    • Optionalaction_source?: ActionSource
    • Optionalsurface?: EventSurface
    • Optionalmanaged_by?: "buyer" | "seller"

      Who manages this event source. 'buyer' = configured via this sync. 'seller' = always-on, managed by the seller (e.g. Amazon sales attribution for Amazon advertisers).

    • Optionalsetup?: {
          snippet?: string;
          snippet_type?: "html" | "javascript" | "pixel_url" | "server_only";
          instructions?: string;
      }

      Implementation details for activating this event source (e.g. JavaScript tag, pixel URL)

      • Optionalsnippet?: string

        Code snippet to place on the site (JavaScript, HTML pixel, etc.)

      • Optionalsnippet_type?: "html" | "javascript" | "pixel_url" | "server_only"

        Type of implementation. 'server_only' means no client-side tag is needed.

      • Optionalinstructions?: string

        Human/agent-readable setup instructions

    • action: "created" | "updated" | "unchanged" | "failed" | "deleted" | "archived"

      Action taken for this event source. archived reports a source newly archived by an archived: true request item. Undoing an archive reports updated. Archiving an already archived source, or undoing an archive on an active one, reports unchanged. Sellers return archived only to callers that sent archived. An archived source that this call did not change, such as in a discovery-only call, reports unchanged.

    • Optionalarchived?: boolean

      Whether the source is archived. Archived sources keep their configuration but stop accepting events and stop resolving for new optimization goals. Sellers MAY omit it for sources that are not archived.

    • Optionalhealth?: EventSourceHealth
    • Optionalerrors?: Error[]

      Errors for this event source (only present when action='failed')

    • Optionalext?: ExtensionObject
    sandbox?: boolean

    When true, this response contains simulated data from sandbox mode.

    context?: ContextObject