@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Function preflightUpdateMediaBuy

    • Decide whether an update_media_buy request is reachable against the current buy state. When the buy carries only legacy valid_actions[], the preflight passes (with compat.source: 'valid_actions') for any matching action - mode is not knowable, so it's reported as self_serve but flagged as a compat fallback.

      Supplying an accepted snapshot enables negotiated-term checks; separately stored snapshots use options.proposal. options.task defaults to the named update facade. For route-neutral strict assessment, use preflightMediaBuyActions.

      Multi-action requests: every resolved action must be present in available_actions[]. All missing actions are reported in denials[] so callers can render every blocker in a single pass.

      Throws ValidationError for unmapped mutation fields or when the request touches no recognized update_media_buy field. This is a buyer-side bug (the SDK was asked to dispatch a no-op), not a seller-side denial.

      Parameters

      Returns PreflightResult