List All Campaigns
You can download the list of all campaigns along with their associated attributes in the advertiser accounts using this POST operation
URL: POST/api/v1/campaigns/list
Request Parameters
Parameter | Parameter Description | Type | Required | Possible Values |
---|---|---|---|---|
advertiserId | ID of advertiser | integer | Y | Advertiser ID for which the campaign needs to be updated for delivery status |
Filter[campaignId] | ID of the campaigns you wish to list details for. Note: if no campaignId is specified, all campaigns in the advertiser account will be returned | array | N | Unique numeric identifier. Maximum list size is 25 entries. |
Filter[name] | Filter based on the list of specified campaign names. If no campaign names are specified, all campaigns in the advertiser account will be returned | string | N | Valid campaign name |
Filter[status] | Filter based on the campaign status | string | N | Enum values: • draft • live • scheduled • paused • completed |
Filter[lastModifiedDate] | Filter list of campaigns created or modified on or after this date | string | N | Date should be in format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX Note: date values are converted internally to EST timezone |
startIndex | Defines at which point in the list to return campaigns. Example: To return the first ten Campaigns in the list, set: startIndex = 0 count = 10 | integer | N | Use startIndex and count to return various selections of the list. |
count | Defines the total number of campaigns to be returned. Example: To return the first ten Campaigns in the list, set: count = 10 startIndex = 0 | integer | N | Use count and startIndex to return various selections of the list. Note: defaultCount=100, maxCount = 100, minCount = 1 |
Sample Request
curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/campaigns/list' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>'
--header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779'
--data '{ "advertiserId": 1, "Filter[campaignId]": [1], "Filter[name]": ["string"], "Filter[status]": "string”, "Filter[lastModifiedDate]": "string", "startIndex": 0, "count": 10 }'
Response
Element | Description | Type |
---|---|---|
totalResults | Number of campaigns returned by the API that match the request criteria | integer |
Attributes of the campaigns returned by the API. The following attributes are listed: • campaignId • campaignExtId • name • description • objective Enum values: AWARENESS, ENGAGEMENT, CONVERSION • Status Enum values: DRAFT, LIVE, SCHEDULED, PAUSED, COMPLETED • startDate ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX • endDate ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX Note: for campaigns that are set to run indefinitely, the endDate will return "9999-12- 31T00:00:00-05:00" • budgetType Enum values: DAILY, TOTAL • deliverySpeed Enum values: FRONTLOADED, EVENLY • dailyBudget • totalBudget • campaignType Enum values: only 'NGD', 'SPONSORSHIP', 'HOUSE' values are supported • creationDate ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX • lastUpdatedDate ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX |
Sample Response
[ { "totalResults": 1, "response": [ { "campaignId": 1, "campaignExtId": 1, "name": "string", "description": "string", "objective": "string", "status": "string", "startDate": "string", "endDate": "string", "budgetType": "string", "deliverySpeed": "string", "dailyBudget": 0.0, "totalBudget": 0.0, "campaignType": "NGD", "creationDate": "string", "lastUpdatedDate": "string" } ] }
]
Updated 10 days ago