Seller-computed declaration intersection and exclusions, when supported.
Readback for every subscription, including inactive ones whose obligations are retained.
active: accepted and resolving per account. inactive: the caller set active false. action_required: the subscription cannot deliver anywhere until the caller acts, for example because its destination is suspended or not ready; issues names the cause. Moving to action_required fires principal.changed with reason reporting_subscription_changed.
When the seller accepted the current subscription_version. Immutable for that version. Coverage starts at the first boundary at or after the later of this instant and the account's authorized_at; a buy is owed from the period in which it is confirmed.
Optionalprior_versions?: ReportingSubscriptionPriorVersion[]Earlier versions, newest first, retained while any obligation of that version is retained, so a buyer can recompute their expected periods after local-state loss. Each entry carries the configuration that version had. At most the 16 newest are listed inline; prior_versions_count gives the total, and the rest are read through get_principal reporting_subscription_page.
Optionalprior_versions_count?: numberTotal retained prior versions. Present whenever prior_versions is. When larger than the number listed inline, page the rest through get_principal reporting_subscription_page with list prior_versions.
Optionaldeactivated_at?: stringWhen active false was applied. Present when and only when state is inactive.
Optionalinactive_intervals?: { deactivated_at: string; reactivated_at?: string }[]Intervals during which the subscription was inactive, oldest first, retained while any obligation they affect is retained, so a buyer can recompute expected periods after local-state loss. Reactivation is a fresh start: nothing that starts during an interval is owed, and coverage resumes at the first boundary at or after reactivated_at. The current interval, while the subscription is inactive, has no reactivated_at.
Optionaldestination_ref?: stringDestination generation currently bound. Present when and only when the configuration names a destination.
Caller-selected stable key, unique within the authenticated principal and not equal to any delivery_config_id the caller uses on any account with this seller. Never . or .., because it may appear in a destination path.
Caller-selected immutable semantic generation, with its own accepted_at. Increment when the selector, reconciliation_mode, destination (including destination_overrides), the scope kind (all_authorized_accounts or account_ids), or operator_domains change. Membership edits, adding or removing account_ids and changing exclude_account_ids, apply in place without a new version (see membership), as do active and replace_account_configs. Sellers reject a reused version with different semantic content.
Whether the subscription creates new obligations. false is a cutover at deactivated_at: periods that started before it remain owed in full, and no later ones are created. The subscription stays readable for history.
Accounts covered. all_authorized_accounts is an explicit acknowledgment, never implicit, and follows the caller's account authority as it changes, including accounts other operators grant later; narrow it with operator_domains when the destination serves one operator. account_ids names specific accounts.
Optionalall_authorized_accounts?: trueOptionalaccount_ids?: string[]Optionalexclude_account_ids?: string[]Accounts opted out of an all_authorized_accounts subscription. Not valid with account_ids scope.
Optionaloperator_domains?: string[]Only accounts whose operator is one of these domains are in scope. Keeps an all-accounts subscription feeding an operator-specific destination from picking up accounts another operator grants later.
Offering attributes that are stable across sellers. The seller resolves the selector separately for each account and its products. An account, buy, or package with no matching offering is excluded with reason offering_unsupported; that never fails the subscription. Rejects offering_id: the selector chooses by stable attributes, never by a seller-specific offering.
Same values as the offering feed_purpose.
ISO 8601 duration matched exactly against the offering's schedule.period_duration.
Optionalalignment?: "utc" | "account_timezone" | "source_timezone" | "billing_cycle"Optional: only offerings whose schedule uses this alignment are candidates. Without it, the resolved offering's published alignment governs period boundaries.
Optionaldimensions?: ReportingDimension[]Breakdown in the standard vocabulary. With match exact (the default when present) the offering's dimensions must equal this set; with finest or all they must include it. Omit to match any breakdown.
Optionalmatch?: "exact" | "all" | "finest"exact selects the offering whose dimension set equals dimensions; native dimensions that do not map to the vocabulary count as distinct, so package by device does not equal package. finest selects the single offering with the most mapped dimensions among those including every selector dimension. Ties under exact and finest go to the lowest offering_id in byte order. all selects every offering including every selector dimension, each with its own obligations. Defaults to exact when dimensions is present and finest when it is absent. With match exact and no dimensions, every candidate qualifies and the lowest offering_id wins. Matching reads each offering's standard_dimensions and unmapped_dimensions. Billing subscriptions MUST use exact with dimensions, so a billing feed's breakdown never depends on which offerings happen to exist.
Optionaldimension_systems?: ReportingDimensionSystemsOptionalperiod_timezone?: stringIANA timezone override for period boundaries. Only valid when scope.account_ids names exactly one account. An account_timezone offering matches and uses this zone in place of the account's. A utc offering matches only when this is exactly UTC or Etc/UTC; other names that tzdata links to UTC, such as Etc/GMT, GMT, Etc/Universal, or Zulu, do not match. A source_timezone or fixed billing_cycle offering matches only when its published period_timezone equals this one. A billing_cycle offering whose anchor the buyer configures never matches a subscription, which has no way to supply the anchor.
Optionalreplace_account_configs?: booleanWhen true, ends the caller's own active sync_accounts reporting_delivery_configs with the same feed_purpose on in-scope accounts where this subscription resolves an offering, by cutover, and the subscription takes over. Applied once per subscription_version, or when the flag changes to true. Never affects another principal's configurations or accounts this subscription excludes, and never advances an account's revision.
Optionaldestination?: { destination_id: string; path_template?: string }Managed delivery target. Omit to select only API-delivered (Core) offerings. When present, only offerings whose method matches the destination's pattern and transport match.
A destination_id in the caller's principal reporting_destinations. The seller binds the current generation and echoes its destination_ref in state.
Optionalpath_template?: stringRelative path under the destination location, without . or .. segments. Placeholders: {account_id}, {subscription_id}, {offering_id}, {period_start}. Each substituted value fills exactly one segment: the seller percent-encodes (RFC 3986) any value containing / or equal to . or .., so no value can add or escape a segment. MUST contain {account_id} when the scope can cover more than one account or another active subscription of the caller shares the destination, and is then required for file_transfer destinations.
Optionaldestination_overrides?: {Per-account routing inside one subscription, so an agency keeps advertisers apart without registering a subscription per destination. Each entry sends the accounts it selects, by account_ids or by operator domain, to its own destination; every other account uses destination. An account_ids entry wins over an operator_domains entry. An account may appear in at most one account_ids entry and an operator domain in at most one operator_domains entry; otherwise the whole request fails with INVALID_REQUEST. Every override destination MUST have the same pattern and transport as destination, so routing never changes which offering resolves. Changing overrides is a destination change and needs a new subscription_version. Requires destination.
Optionalissues?: TaskErrorDetail[]Structured issues. Messages are untrusted display data.
Optionalaccounts_with_exceptions?: ReportingSubscriptionAccountExceptions[]Accounts where this subscription has an open get_reporting_status exception, so a caller need not poll every account, in account_id byte order. At most 1000 are listed inline; accounts_with_exceptions_count gives the total, and the rest are read through get_principal reporting_subscription_page. Changes fire principal.changed with reason reporting_subscription_changed.
Optionalaccounts_with_exceptions_count?: numberTotal accounts with an open exception. Present whenever accounts_with_exceptions is.
Optionalaccounts_unauthorized_count?: numberTotal accounts in accounts_unauthorized. Present whenever accounts_unauthorized is.
Optionaldestination_override_refs?: { destination_id: string; destination_ref: string }[]Destination generation bound for each destination_overrides destination_id. Present when and only when the configuration has destination_overrides.
Optionalaccounts_unauthorized?: ReportingSubscriptionUnauthorizedAccount[]Accounts this subscription covered whose authority the caller has since lost, in account_id byte order, so a revoked grant reads differently from a seller that stopped publishing. A grant reduced to allowed_tasks without get_reporting_status is such a loss, listed from the reduction; a reduced grant that still lists get_reporting_status is not. At most 1000 are listed inline; accounts_unauthorized_count gives the total, and the rest are read through get_principal reporting_subscription_page. Only accounts the subscription previously covered appear. Entries carry no current account data and nothing created after unauthorized_at. An entry is removed on re-grant, including when get_reporting_status is added back to a reduced grant, and is otherwise retained for status_retention_days after unauthorized_at; after that it drops, and a later re-grant is a fresh coverage start from authorized_at with no gap claimed. Every addition or removal fires principal.changed with reason reporting_subscription_changed.
True only when every active destination submitted by this lifecycle call reached ready.