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

    Function syncPrincipalLifecycle

    • Read, guarded-replace, and observe one principal configuration lifecycle.

      Every replacement uses the latest seller configuration version. A structured CONFLICT causes a bounded fresh read and a new logical operation. After an applied response, reusable destinations are polled until all are ready or at least one reaches a terminal action_required/rejected state.

      Parameters

      • client: PrincipalLifecycleClient
      • configuration: {
            notification_configs?: AgentNotificationConfig[];
            reporting_destinations?: AgentReportingDestination[];
            declarations?: AgentDeclarations;
            reporting_subscriptions?: {
                subscription_id: string;
                subscription_version: number;
                active: boolean;
                scope: { all_authorized_accounts?: true; account_ids?: string[] };
                exclude_account_ids?: string[];
                operator_domains?: string[];
                selector: {
                    feed_purpose: "pacing" | "analytics" | "billing";
                    period_duration: string;
                    required_finality: ReportingFinality;
                    alignment?:
                        | "utc"
                        | "account_timezone"
                        | "source_timezone"
                        | "billing_cycle";
                    dimensions?: ReportingDimension[];
                    match?: "exact"
                    | "all"
                    | "finest";
                    dimension_systems?: ReportingDimensionSystems;
                    period_timezone?: string;
                };
                reconciliation_mode: ReportingReconciliationMode;
                replace_account_configs?: boolean;
                destination?: { destination_id: string; path_template?: string };
                destination_overrides?: {
                    account_ids?: [string, ...string[]];
                    operator_domains?: [string, ...string[]];
                    destination_id: string;
                    path_template?: string;
                }[];
            }[];
        }
        • Optionalnotification_configs?: AgentNotificationConfig[]

          Complete desired agent-level subscriber set. The same caller-scoping, proof-of-control, secret handling, and replacement rules as sync_agent_notification_configs apply.

          16

        • Optionalreporting_destinations?: AgentReportingDestination[]

          Complete desired reusable reporting destination set. Omitting a previously present destination_id revokes it, and [] revokes every destination: the seller halts new deliveries to all of its generations within the advertised suspension_interval_seconds and retains it as a retired generation for reporting history. Revocation does not delete caller-owned data already delivered. destination_id values MUST be unique.

          64

        • Optionaldeclarations?: AgentDeclarations
        • Optionalreporting_subscriptions?: {
              subscription_id: string;
              subscription_version: number;
              active: boolean;
              scope: { all_authorized_accounts?: true; account_ids?: string[] };
              exclude_account_ids?: string[];
              operator_domains?: string[];
              selector: {
                  feed_purpose: "pacing" | "analytics" | "billing";
                  period_duration: string;
                  required_finality: ReportingFinality;
                  alignment?:
                      | "utc"
                      | "account_timezone"
                      | "source_timezone"
                      | "billing_cycle";
                  dimensions?: ReportingDimension[];
                  match?: "exact"
                  | "all"
                  | "finest";
                  dimension_systems?: ReportingDimensionSystems;
                  period_timezone?: string;
              };
              reconciliation_mode: ReportingReconciliationMode;
              replace_account_configs?: boolean;
              destination?: { destination_id: string; path_template?: string };
              destination_overrides?: {
                  account_ids?: [string, ...string[]];
                  operator_domains?: [string, ...string[]];
                  destination_id: string;
                  path_template?: string;
              }[];
          }[]

          Complete desired reporting subscription set (experimental, media_buy.reporting_subscriptions). Omitting a subscription deactivates it; [] deactivates every subscription. subscription_id values MUST be unique.

          32

      • options: PrincipalLifecycleOptions = {}

      Returns Promise<PrincipalLifecycleResult>