Approval Flow

The various methods for Approval Flow are listed below:

  1. Submit approval request
  2. Get approval status

A campaign can be activated once its approval status is Approved. If no approvers are configured in retail settings (approvers: []), the campaign is considered pre-approved and can be activated immediately.

Submit approval request

Sends a preview approval email to all configured approvers for the retail campaign. Requires MediaPlan_Tags_Create permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account.
retailCampaignIdxintegerMandatorypathIndex of the retail campaign.

Sample Request

HTTP
Copy

Parameters

FieldData TypeRequirementDescription
userNamestringMandatoryDisplay name of the user submitting the request.
userEmailstringMandatoryEmail address of the user submitting the request.

requesterHostUrl and apiUrl are set server-side from the request headers and are not required in the body.

Request Body

JSON
Copy

Sample Response

JSON
Copy

Get approval status

Returns the current approval status for a retail campaign. Requires MediaPlan_Tags_Create permission.

Activation rule: The campaign can be activated if:

  • status is "Approved", or
  • No approvers are configured in retail settings (approvers: [])

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account.
retailCampaignIdxintegerMandatorypathIndex of the retail campaign.

Sample Request

HTTP
Copy

Sample response

FieldData TypeDescription
approvalIdxintegerInternal ID of the approval record.
statusenum (string)Overall approval status. Values: Pending, Approved, Rejected, Unavailable, Invalid.
requesterEmailstringEmail of the user who submitted the approval request.
requiredApprovalsintegerNumber of approvals required to reach Approved status.
createdOnstringTimestamp when the approval request was created.
updatedOnstringTimestamp when the approval was last updated.
approverDetailsarrayList of individual approver decision records.
approverDetails[].userEmailstringEmail address of the approver.
approverDetails[].userNamestringDisplay name of the approver (defaults to "External User" if not a platform user)
approverDetails[].userIdintegerInternal user ID of the approver (defaults to -1 for external approvers).
approverDetails[].approvalStatusenum (string)Individual decision by this approver. Values: Pending, Approved, Rejected, Unavailable, Invalid.

Request Body

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard