Compliance

The various methods for Compliance are listed below:

  1. Trigger campaign compliance check
  2. Fetch Compliance Data

Trigger campaign compliance check

Triggers a compliance check for specified ad groups within a retail campaign. Returns a raw JSON string from the compliance service. Requires MediaPlan_View permission.

Path Parameters

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

Sample Request

HTTP
Copy

Parameters

FieldData TypeRequirementDescription
adGroupIdsarray of stringMandatoryList of ad group IDs to run the compliance check on.
adUnitIdintegerMandatoryThe ad unit ID to check.
retailerIdintegerOptionalRetailer ID associated with the campaign.
retailerstringOptionalRetailer identifier string.
inventoryTypestringMandatoryInventory type of the campaign (e.g. sponsored_products).

Request Body

JSON
Copy

Response

Returns a raw JSON string from the compliance service.

Request Body

JSON
Copy

Fetch Compliance Data

Returns configured retailers, compliant retailers, and the latest brand data for the account. Used to populate the compliance setup UI. Requires Ads_Create permission.

Path Parameters

NameData TypeRequirementParameter TypeDescription
accountIdstringMandatorypathID of the account.

Sample Request

HTTP
Copy

Response

Returns a JSON object with three arrays built from publisher site settings, retailer data, and the account's stored brand data.

FieldData TypeDescription
configuredRetailersarrayRetailer objects configured for the publisher. Logo URLs are prefixed with the compliance CDN base URL.
configuredRetailers[].idintegerRetailer ID.
configuredRetailers[].namestringRetailer name.
configuredRetailers[].logoURLstringAbsolute URL of the retailer logo.
compliantRetailersarrayRetailers that have standard creative compliance guidelines configured.
compliantRetailers[].retailerstringRetailer identifier name.
compliantRetailers[].guidelinesobjectCompliance guidelines object for the retailer.
brandDataarrayLatest brand data record for the advertiser (sorted by updatedAt desc, max 1 entry).
brandData[].advertiserIdintegerAdvertiser ID.
brandData[].dataobjectStored brand data payload.
brandData[].updatedAtstringISO timestamp of the last update.

Request Body

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