List Itemset Campaign Association
This API helps users to fetch itemset associations of a campaign.
URL: POST/api/v1/itemsetAssociations/list
Request Parameters
 | Parameter | Notes | Type | Required | Possible Values | 
|---|---|---|---|---|
| advertiserId | ID of the advertiser | integer | Y | Unique numeric identifier | 
| Filter[campaignId] | returns response for specific campaign IDs listed. If not specified, returns list of all itemsets associated with campaigns for an advertiser account Note: Max size is 25 | integer | N | Unique numeric identifier | 
| Filter[itemsetId] | returns response for specific itemset Ids listed. If not specified, returns list of all itemsets associated with campaigns for an in the advertiser account Note: Max size is 25 | integer | N | Unique numeric identifier | 
| startIndex | You can use this parameter to fetch specific number of itemsets associations from a list. This indicates the starting position of the list Note: To return the first ten itemsetAssociations, set startIndex=0 and count = 10 | integer | N | Valid integer value | 
| count | You can use this parameter in combination with startIndex to fetch specific number of targets/audiences from the available list. Note: To return the first ten itemsetAssociations, set startIndex=0 & defaultCount=100, maxCount=100, minCount=1 | integer | N | Valid integer value | 
Note:
- If you dont pass both Filter[campaignId] and Filter[itemsetId] - details of all itemset campaign association for the advertiserId are returned
- If you pass only Filter[campaignId] - details of itemset campaign association for specified campaignIds are returned
- If you pass only Filter[itemsetId] - details of itemset campaign association for the specified itemsetIds are returned
- If you pass both Filter[campaignId] and Filter[itemsetId]- details of itemset campaign associations for the matching combination of campaignIds and itemsetIds from the list specified, are returned
Headers
 | Header Name | Description | Required | Values | 
|---|---|---|---|
| Authorization | The token will provide you the access to the API. It is same for all advertisers you access through the API. | Y | Please utilize the generated auth_tokenshared with you at the time of partner onboarding from the Getting Started Guide | 
| WM_CONSUMER.ID | We will provide you the consumer ID to access the API. It is same for all advertisers you access through the API. | Y | Please use the generated ConsumerIdshared with you at the time of partner onboarding. Refer to the Getting Started Guide for more information | 
| WM_SEC.AUTH_SIGNATURE | Auth signature as an API key. | Y | Use the signature generator code from Getting Started Guide to generate this value | 
| WM_SEC.KEY_VERSION | We will provide you with the KEY VERSION to access the API. It is same for all advertisers you access through the API. | Y | 1 | 
| WM_CONSUMER.intimestamp | Timestamp for which the auth signature is generated. Use Unix epoch format for the timestamp. | Y | Use the signature generator code from Getting Started Guide to generate this value | 
Sample Request - List Itemset Campaign Association with brand, category, custom and no halo association
curl -X POST \ 'https://developer.api.us.walmart.com/api-proxy/service/display/api/v1/api/v1/itemsetAssociations/list' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: ***********' \ --header 'WM_CONSUMER.ID: abcde-v123-fa2r-a1fs-asd45f6qef' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '{      "advertiserId": 1,                               "Filter[campaignId]": [123,234,345],            "Filter[itemsetId]": [567,678,789],                "startIndex": 0,                                 "count": 100                                }' Response
 | Element | Description | Type | 
|---|---|---|
| totalResults | result list count | integer | 
| response | response is an array holding the following elements that are detailed in the below table. The response objects are detailed | 
response Objects
 | Parameters | Notes | Type | Required | Possible Values | 
|---|---|---|---|---|
| itemsetId | ID of the featured itemset | string | Y | Unique ID value | 
| campaignId | ID of the campaign that is associated with the itemset | string | Y | Unique campaign ID value | 
| itemsetType | Type of itemset associated with campaign. Should always have value FEATURED | string | Y | FEATURED | 
| haloItemsetId | ID of the custom and halo itemsets Note: 
 | list of integers | N | |
| haloAssociationType | Type of halo association | string | Y | 
 | 
| collection | To indicate it’s an itemset. | string | Y | ITEM_SET | 
Sample Response - List Itemset Campaign Association with brand, category, custom and no halo association
{ "totalResults": 4, "response": [ { "campaignId": 123, "itemsetId": 567, "itemsetType": "FEATURED", "collection": "ITEM_SET", "haloItemsetId": [12,98] "haloAssociationType": "BRAND" }, { "campaignId": 234, "itemsetId": 678, "itemsetType": "FEATURED", "collection": "ITEM_SET", "haloItemsetId": [12], "haloAssociationType": "CATEGORY" }, { "campaignId": 345, "itemsetId": 789, "itemsetType": "FEATURED", "collection": "ITEM_SET", "haloItemsetId": [12], "haloAssociationType": "CUSTOM" }, { "campaignId": 344, "itemsetId": 7899, "itemsetType": "FEATURED", "collection": "ITEM_SET", "haloAssociationType": "NONE" } ]
}
Updated 4 months ago
