Retail settings

The various methods for Retail Settings are listed below:

  1. Get retail settings
  2. Update retail settings
  3. List Brands from Asset Source

Get retail settings

Returns the retail settings for a given account, including approval configuration, brand values, Amazon seller details, and media channel settings.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account

Sample Response

Returns a JSON object of type RetailSettingsResponse serialized via Jackson.

FieldData TypeDescription
allApproversRequiredboolean/nullWhether all approvers must approve before activation.
approversarrayList of preview approvers.
approvers[].namestringName of the approver.
approvers[].emailIdstringEmail address of the approver.
brandValuesarray of stringList of brand values configured for the account.
amzSellerDetailsarrayList of Amazon seller detail objects.
amzSellerDetails[].idstringAmazon seller ID.
amzSellerDetails[].countryCodestringCountry code for the seller (e.g. US).
amzSellerDetails[].sellerAuthKeystringAuthentication key for the seller.
amzSellerDetails[].brandsarray of stringList of brands associated with this seller.
mediaChannelSettingsarrayList of media channel settings objects.
mediaChannelSettings[].mediaChannelIdxintegerIndex of the media channel.
mediaChannelSettings[].accountIdstringAccount ID associated with this media channel setting.
mediaChannelSettings[].accountNamestringAccount name associated with this media channel setting.
mediaChannelSettings[].profileIdstringProfile ID for the media channel.
mediaChannelSettings[].agencyFeesAppliedboolean/nullWhether agency fees are applied.
mediaChannelSettings[].agencyFeesfloatAgency fee percentage.
mediaChannelSettings[].countryCodestringCountry code for this media channel setting (e.g. US).
mediaChannelSettings[].domainstringDomain associated with this media channel setting.
mediaChannelSettings[].isUpdatedboolean/nullWhether the settings have been updated.
mediaChannelSettings[].isUsedboolean/nullWhether this media channel is currently in use.

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Update retail settings

Updates one setting section at a time for a given account. The updatedSettingsName field is mandatory and determines which section is updated — only the fields relevant to that section need to be included in the request. Requires AdvertiserSettings_Create permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account

Parameters

FieldData TypeRequirementDescription
updatedSettingsNamestringMandatoryIdentifies which setting section to update. Allowed values: "allApproversRequired", "approverEmails", "brandFilter", "amzSellerDetails", "mediaChannels".

Sample Request

HTTP
Copy

Values of updatedSettingsName

Depending on the value of updatedSettingsName, include only the corresponding fields for:

1.updatedSettingsName: "allApproversRequired"

2.updatedSettingsName: "approverEmails"

3.updatedSettingsName: "brandFilter"

4.updatedSettingsName: "amzSellerDetails"

5.updatedSettingsName: "mediaChannels"

1.updatedSettingsName: "allApproversRequired"

Updates only the flag that controls whether all approvers must approve before activation.

Parameters

FieldData TypeRequirementDescription
allApproversRequiredbooleanMandatoryWhether all listed approvers must approve before activation.

Request Body

JSON
Copy

2.updatedSettingsName: "approverEmails"

Updates the list of approver email addresses (also persists the current allApproversRequired flag).

Parameters

FieldData TypeRequirementDescription
approversarray of stringOptionalList of approver email addresses. Pass an empty array to clear all approvers.
allApproversRequiredbooleanOptionalWhether all listed approvers must approve before activation.

Request Body

JSON
Copy

3.updatedSettingsName: "brandFilter"

Updates the list of brand values configured for the account.

Parameters

FieldData TypeRequirementDescription
brandValuesarray of stringMandatoryList of brand values to save for this account.

Request Body

JSON
Copy

4.updatedSettingsName: "amzSellerDetails"

Updates the Amazon seller details for the account.

Parameters

FieldData TypeRequirementDescription
amzSellerDetailsarrayMandatoryList of Amazon seller detail objects.
amzSellerDetails[].idstringOptionalAmazon seller ID.
amzSellerDetails[].countryCodestringOptionalCountry code for the seller (e.g. US).
amzSellerDetails[].sellerAuthKeystringOptionalAuthentication key for the seller.
amzSellerDetails[].brandsarray of stringOptionalList of brands associated with this seller.

Request Body

JSON
Copy

5.updatedSettingsName: "mediaChannels"

Updates the media channel settings for the account.

Parameters

FieldData TypeRequirementDescription
mediaChannelSettingsarrayMandatoryList of media channel settings objects.
mediaChannelSettings[].mediaChannelIdxintegerMandatoryIndex of the media channel.
mediaChannelSettings[].accountIdstringOptionalAccount ID associated with this media channel setting.
mediaChannelSettings[].accountNamestringOptionalAccount name associated with this media channel setting.
mediaChannelSettings[].profileIdstringOptionalProfile ID for the media channel.
mediaChannelSettings[].agencyFeesAppliedbooleanOptionalWhether agency fees are applied.
mediaChannelSettings[].agencyFeesfloatOptionalAgency fee percentage.
mediaChannelSettings[].countryCodestringOptionalCountry code for this media channel setting (e.g. US).
mediaChannelSettings[].domainstringOptionalDomain associated with this media channel setting.
mediaChannelSettings[].isUpdatedbooleanOptionalWhether the settings have been updated.
mediaChannelSettings[].isUsedbooleanOptionalWhether this media channel is currently in use.

Request Body

JSON
Copy

Sample Response

JSON
Copy

List Brands from Asset Source

This will list all the brands available to be passed in the brand filter.

Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the advertiser account created on the platform.

accountId: Current account Id

query: The search query input by the user

limit: The limit of elements in the list

offset: The no. of elements to skip

Sample Request

HTTP
Copy

Sample Response

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