@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function validActionsForStatus

    • Returns the default set of valid buyer actions for a given media buy status.

      Terminal statuses (completed, rejected, canceled) return an empty array. Active statuses return the full set of actions; paused restricts to resume, cancel, and budget/date updates.

      Both pending statuses allow full modification — the protocol permits restructuring a buy (packages, budget, dates) while awaiting creatives or start date.

      Sellers with restricted capabilities can filter the result:

      const actions = validActionsForStatus('active')
      .filter(a => a !== 'sync_creatives'); // no creative management

      Parameters

      Returns MediaBuyValidAction[]