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

ParameterParameter DescriptionTypeRequiredPossible Values
advertiserIdID of advertiserintegerYAdvertiser 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
arrayNUnique 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
stringNValid campaign name
Filter[status]Filter based on the campaign statusstringNEnum values:
• draft
• live
• scheduled
• paused
• completed
Filter[lastModifiedDate]Filter list of campaigns created or modified on or after this datestringNDate should be in format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX

Note: date values are converted internally to EST timezone
startIndexDefines at which point in the list to return campaigns.

Example:
To return the first ten Campaigns in the list, set: startIndex = 0
count = 10
integerNUse startIndex and count to return various selections of the list.
countDefines the total number of campaigns to be returned.

Example:
To return the first ten Campaigns in the list, set:
count = 10
startIndex = 0
integerNUse 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


ElementDescriptionType
totalResultsNumber of campaigns returned by the API that match the request criteriainteger
Attributes of the campaigns returned by the API. The following attributes are listed:
• campaignId
• campaignExtId
• name
• description
• objective
Enum values: AWARENESS, ENGAGEMENT, CONVERSION, DEFAULT
Note: Older campaigns created before the objective feature was introduced, will show
"DEFAULT" as their objective
• 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
• attributesSetOnAdGroupLevel: It indicates whether the budget, schedule, and delivery
speed are configured at the Ad Group level. It returns true if the values are set at Ad
group level and false if at campaign level
Data type: Boolean
Possible values: true, false

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", "attributesSetOnAdGroupLevel": false } ] }
]