Product Set properties
datasetIdThe ID of the Data Set to which the Product Set belongs
nameThe name of the Product Set
rulesIt’s an array that encapsulates product rules. A
Product rule is an object containing the following parameters:operator
Operator to be used, from the table below.
field
Field to be filtered.
values
The values on which you want to apply the rule.
Catalog Field Name | API Field Name | Operators Available |
|---|---|---|
Category 1, Category 2, Category 3 | category1,category2,category3 | IsIn, IsNotIn |
Brand | brand | IsIn, IsNotIn |
Product ID | ExternalproductID | IsIn, IsNotIn |
Custom Label 0, Custom Label 1, Custom Label 2 , Custom Label 3, Custom Label 4 | CustomLabel0, CustomLabel1, CustomLabel2, CustomLabel3, CustomLabel4 | IsIn, IsNotIn |
Sale Price | SalePrice | Between, NotBetween, LessThan, GreaterThan |
Create a Product Set
A Product Set can be created for a specific advertiser by making a POST call to the Product-Set endpoint. The request body should specify the Data Set Id, the name of the Product Set, if it’s a draft (optional), and the product rules.Delete a Product Set
A Product Set can be deleted for a specific advertiser by making a DELETE call to the product-sets endpoint. You need to specify theproductSetId to delete in the request URL.
Retrieve Product Set data
Retrieve data for a specific Product Set
You can get the information of a specific Product Set by making a GET call to the product-sets endpoint. You need to specify theproductSetId to retrieve in the request URL.
Retrieve data for a specific Data Set
If you need to get all the Product Sets for a specific Data Set, you can make a GET call to the endpoint specifying the relevantdatasetId
Test Product Set rules
Before creating a Product Set, you can check how many products would be part of a Product Set with a particular set of rules. Use this endpoint to get the number of products belonging to the Product Set and a small sample of the products.Associate a Product Set and an Ad
Once a Product Set is created, it can be applied to an Ad as a filter. As a result, only products that belong to that Product Set are displayed in the Ad.adId: Id of the Ad to that you want to link to the specified Product Set.
An Ad can only have one Product Set assigned to it.
A Product Set can be associated with zero or more Ads.
A Product Set can be associated with zero or more Ads.
Remove a Product Set and Ad association
adId: Id of the Ad you want to unlink from the Product Set.
Sample Success Response
Retrieve associations between Ads and Product Sets
Retrieve filtering association data for a specific Ad
Get the Product Set assigned to an AdadId: Id of the ad you want to look for.
Sample Success response
Retrieve associations of a specific Product Set
By doing a GET call to this endpoint, you get the association information (ad id + product set id)productSetId: Id of the Product Set
Sample response
Validation errors
invalid-productset-requestThe request contains an invalid Product Set ID
invalid-productset-requestMissing authorization to get Product Set for the specified Data Set, or if the Product Set does not exist.
JSON_FORMATThere’s a constraint not satisfied by the provided JSON. For example: “productSet.rules: The operator Between isn’t compatible with the provided field”
REQUIRED_FIELDThe required field is missing.\