List Ad Groups
Request Parameters
| Parameter | Parameter Description | Type | Required | Possible Values |
|---|---|---|---|---|
| advertiserId | ID of advertiser | integer | Y | Advertiser ID for which the ad group needs to be updated for delivery status |
| campaignId | ID of the campaign | integer | Y | Unique numeric identifier. |
| Filter[name] | A valid ad group name with which the desired ad group can be searched in the absence of ad group ID | array<string> | N | Provide an ad group name to search the relevant ad group by name instead of ad group ID |
| Filter[status] | Filter based on the ad group status | string | N | Enum values: • draft • live • scheduled • paused • completed • archived |
| Filter[lastModifiedDate] | Provide a date to fetch only those ad groups which were modified on or after that date | string | N | Date format must follow ISO 8601 time zone format: • yyyy-MM-dd'T'HH:mm:ss.SSSXXX |
| Filter[adGroupId] | ID of the ad groups you wish to list details for. Note: if no adGroupId is specified, all ad groups in the campaign will be returned | array<integer> | N | Unique numeric identifier. Maximum list size is 25 entries. |
| startIndex | You can use this parameter in combination with count, to fetch specific number of ad groups from a list. This indicates the starting position of the list | integer | N | Integer value. Default = 0 Example: To return the first ten ad groups, set startIndex=0 and count=10 |
| count | Defines the total number of ad groups to be returned. You can use this parameter in combination with startIndex, to fetch specific number of ad groups from a list. | integer | N | Integer value. Example: To return the first ten adGroups, set startIndex=0 and count=10 |
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_token shared with you at the time of partner onboarding from the Getting Started Guide |
| Content-Type | Format of the message body | Y | application/json |
| WM_CONSUMER.ID | Unique ID for consumer. 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 ConsumerId shared 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 | 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 |
| x-targeting-format Note: Its applicable only for Line item entity snapshots. | Specifies the JSON schema used to evaluate and return the targeting object. To ensure backward compatibility, omitting this header defaults to the legacy expression structure. It assumes two values:
| N | Default: Values: |
Sample Request - List of Ad Groups Matching Filter Criteria (Legacy Expression Structure)
curl --request POST 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/adGroups/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: *************' \
--header 'WM_CONSUMER.intimestamp: 1565309779' \
--data '{ "advertiserId": 1, "campaignId": 1, "Filter[name]": ["Test ad group"], "Filter[status]": "DRAFT", "Filter[lastModifiedDate]": "2026-11-05T00:47:05.763-05:00", "Filter[adGroupId]": [1, 2], "startIndex": 0, "count": 10 }'Sample Request - List of Ad Groups Matching Filter Criteria (Legacy Expression Structure)
curl --request POST 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/adGroups/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: *************' \
--header 'WM_CONSUMER.intimestamp: 1565309779' \
--header 'x-targeting-format: EXPRESSION' \ --data '{ "advertiserId": 1, "campaignId": 1, "Filter[name]": ["Test ad group"], "Filter[status]": "DRAFT", "Filter[lastModifiedDate]": "2026-11-05T00:47:05.763-05:00", "Filter[adGroupId]": [1, 2], "startIndex": 0, "count": 10 }'Sample Request - Fetch Ad Groups and Their Metadata Matching the Filter Criteria (Flattened Targeting Structure)
curl --request POST 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/adGroups/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: *************' \
--header 'WM_CONSUMER.intimestamp: 1565309779' \
--header 'x-targeting-format: FLAT' \
--data '{ "advertiserId": 1, "campaignId": 1, "Filter[name]": ["Test ad group"], "Filter[status]": "DRAFT", "Filter[lastModifiedDate]": "2026-11-05T00:47:05.763-05:00", "Filter[adGroupId]": [1, 2], "startIndex": 0, "count": 10 }'Response
| Field | Description | Data Type | Possible Values |
|---|---|---|---|
| totalResults | Number of ad groups returned matching the filter criteria | Integer | integer |
| response | Attributes of Array of ad group objects. Each object within the response field corresponds to a different ad group. | Array |
Response Object Fields
Each object within the response field corresponds to a different ad group.
| Field | Description | Data Type | Possible Values |
|---|---|---|---|
| campaignId | ID of the campaign the ad group belongs to | Integer | |
| adGroupId | Internal ID of the ad group | Integer | |
| adGroupExtId | External ad server ID of the ad group | Integer | |
| name | Name of the ad group | String | |
| status | Status of the ad group | String | DRAFT, LIVE, SCHEDULED, PAUSED, COMPLETED, ARCHIVED |
| startDate | Ad group start date (ISO 8601 format) | Date | |
| endDate | Ad group end date (ISO 8601 format); returns 9999-12-31T00:00:00-05:00 for indefinite run | Date | |
| budgetType | Budget type | String | DAILY, TOTAL |
| deliverySpeed | Pacing strategy | String | FRONTLOADED, EVENLY |
| dailyBudget | Daily budget (if applicable) | Double | |
| totalBudget | Total budget (if applicable) | Double | |
| rateType | Pricing structure | String | CPM |
| frequencyCapDay | Daily frequency cap per user | Integer | |
| frequencyCapWeek | Weekly frequency cap per user | Integer | |
| frequencyCapMonth | Monthly frequency cap per user | Integer | |
| maxBid | Maximum bid | Double | |
| outOfStockProtection | Represents the advertiser's opt-in/opt-out setting. Out-of-Stock Protection is enforced only when the ad group uses a supported landing page (Item Page/PDP, Brand Shelf, or Brand Shop). | boolean | Values: true/false |
| targeting | Targeting configuration for the ad group. Supports keywords, contextual, behavioral, or run-of-site (only one allowed). Optionally combined with geo targeting | Object/array | |
| creationDate | Ad group creation timestamp (ISO 8601 format) | Date | |
| lastUpdatedDate | Last modified timestamp (ISO 8601 format) | Date | |
| attributesSetOnAdGroupLevel | Indicates whether budget and schedule are set at the ad group level | Boolean | true, false |
| creativeRotationMode | Creative rotation strategy | String | OPTIMIZE_PERFORMANCE, ROTATE_EVENLY |
| mediaType | Media type of the ad group | String | BANNER, VIDEO |
Error Response
| Field | Description | Optional field/Nullable? | Type | Possible values |
|---|---|---|---|---|
| code | Code=failure Click here for more information about Status Codes and Errors | N | string | failure |
| details | List of error codes associated with the request. Use these codes for programmatic error handling. | N | array | Refer to this link for detailed error messages |
| message | High-level summary of the error, when available. | Y | string | |
| errors | Detailed information about one or more errors, including the affected field (when applicable), error code, and a human-readable description. | Y | array<object> |
errors Array Object Details
| Field | Description | Optional field/Nullable? | Type | Possible values |
|---|---|---|---|---|
| field | JSON field associated with the error. Omitted if the error applies to the request as a whole. | Y | string | |
| errorType | Machine-readable error code that uniquely identifies the error condition. Applications should use this value for error handling logic. | N | string | |
| description | Human-readable explanation of the error, including why the request failed and, when possible, how to resolve it | N | string |
Sample Response Success - List of Ad Groups Matching Filter Criteria (Legacy Expression Structure)
{ "totalResults": 2, "response": [ { "campaignId": 1, "adGroupId": 1, "adGroupExtId": 1, "name": "Test ad group", "status": "DRAFT", "startDate": "2026-11-10T14:00:34.839Z", "endDate": "2026-12-31T14:00:34.839Z", "budgetType": "total", "deliverySpeed": "evenly", "totalBudget": 10000.0, "rateType": "cpm", "frequencyCapDay": 10, "frequencyCapWeek": 50, "frequencyCapMonth": 200, "maxBid": 5.0, "outOfStockProtection": true,
"targeting": { "and": [ { "behavioral": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, { "geoTargets": [ { "id": 2, "name": "Alabama", "locationType": "STATE" }, { "id": 3, "name": "Alaska", "locationType": "STATE" }, { "id": 10, "name": "Abbeville", "locationType": "CITY" } ] } ] }, "creationDate": "2026-11-05T00:47:05.763-05:00", "lastUpdatedDate": "2026-11-05T00:47:05.763-05:00", "attributesSetOnAdGroupLevel": true, "creativeRotationMode": "OPTIMIZE_PERFORMANCE", "mediaType": "BANNER" }, { "campaignId": 1, "adGroupId": 2, "adGroupExtId": 2, "name": "Test ad group", "status": "DRAFT", "startDate": "2026-11-10T14:00:34.839Z", "endDate": "2026-12-31T14:00:34.839Z", "budgetType": "daily", "deliverySpeed": "evenly", "dailyBudget": 100.0, "rateType": "cpm", "frequencyCapDay": 10, "frequencyCapWeek": 100, "frequencyCapMonth": 500, "maxBid": 10.0, "outOfStockProtection": true,
"targeting": { "and": [ { "behavioral": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, { "geoTargets": [ { "zipCode": "35004" } ] } ] }, "creationDate": "2026-11-05T00:47:05.763-05:00", "lastUpdatedDate": "2026-11-05T00:47:05.763-05:00", "attributesSetOnAdGroupLevel": true, "creativeRotationMode": "OPTIMIZE_PERFORMANCE", "mediaType": "BANNER" } ]
}Sample Response Failure - List of Ad Groups Matching Filter Criteria (Legacy Expression Structure)
[ { "code": "failure", "details": [ "string" ], "message": "string", "errors": [ { "field": "string", "errorType": "string", "description": "string" } ]
}
]Sample Response Success - List of Ad Groups Matching Filter Criteria (Legacy Expression Structure)
{ "totalResults": 2, "response": [ { "campaignId": 1, "adGroupId": 1, "adGroupExtId": 1, "name": "Test ad group", "status": "DRAFT", "startDate": "2026-11-10T14:00:34.839Z", "endDate": "2026-12-31T14:00:34.839Z", "budgetType": "total", "deliverySpeed": "evenly", "totalBudget": 10000.0, "rateType": "cpm", "frequencyCapDay": 10, "frequencyCapWeek": 50, "frequencyCapMonth": 200, "maxBid": 5.0, "outOfStockProtection": true, "targeting": { "and": [ { "behavioral": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, { "geoTargets": [ { "id": 2, "name": "Alabama", "locationType": "STATE" }, { "id": 3, "name": "Alaska", "locationType": "STATE" }, { "id": 10, "name": "Abbeville", "locationType": "CITY" } ] } ] }, "creationDate": "2026-11-05T00:47:05.763-05:00", "lastUpdatedDate": "2026-11-05T00:47:05.763-05:00", "attributesSetOnAdGroupLevel": true, "creativeRotationMode": "OPTIMIZE_PERFORMANCE", "mediaType": "BANNER" }, { "campaignId": 1, "adGroupId": 2, "adGroupExtId": 2, "name": "Test ad group", "status": "DRAFT", "startDate": "2026-11-10T14:00:34.839Z", "endDate": "2026-12-31T14:00:34.839Z", "budgetType": "daily", "deliverySpeed": "evenly", "dailyBudget": 100.0, "rateType": "cpm", "frequencyCapDay": 10, "frequencyCapWeek": 100, "frequencyCapMonth": 500, "maxBid": 10.0, "outOfStockProtection": true, "targeting": { "and": [ { "behavioral": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, { "geoTargets": [ { "zipCode": "35004" } ] } ] }, "creationDate": "2026-11-05T00:47:05.763-05:00", "lastUpdatedDate": "2026-11-05T00:47:05.763-05:00", "attributesSetOnAdGroupLevel": true, "creativeRotationMode": "OPTIMIZE_PERFORMANCE", "mediaType": "BANNER" } ]
}Sample Response Failure - List of Ad Groups Matching Filter Criteria (Legacy Expression Structure)
[ { "code": "failure", "details": [ "string" ], "message": "string", "errors": [ { "field": "string", "errorType": "string", "description": "string" } ]
}
]Sample Response Success - Fetch Ad Groups and Their Metadata Matching the Filter Criteria (Flattened Targeting Structure)
{ "totalResults": 2, "response": [ { "campaignId": 1, "adGroupId": 1, "adGroupExtId": 1, "name": "Test ad group", "status": "DRAFT", "startDate": "2026-11-10T14:00:34.839Z", "endDate": "2026-12-31T14:00:34.839Z", "budgetType": "total", "deliverySpeed": "evenly", "totalBudget": 10000.0, "rateType": "cpm", "frequencyCapDay": 10, "frequencyCapWeek": 50, "frequencyCapMonth": 200, "maxBid": 5.0, "outOfStockProtection": true, "targeting": { "behavioral": { "include": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, "geoTargets": { "include": [ { "id": 2, "name": "Alabama", "locationType": "STATE" }, { "id": 3, "name": "Alaska", "locationType": "STATE" }, { "id": 10, "name": "Abbeville", "locationType": "CITY" } ] } }, "creationDate": "2026-11-05T00:47:05.763-05:00", "lastUpdatedDate": "2026-11-05T00:47:05.763-05:00", "attributesSetOnAdGroupLevel": true, "creativeRotationMode": "OPTIMIZE_PERFORMANCE", "mediaType": "BANNER" }, { "campaignId": 1, "adGroupId": 2, "adGroupExtId": 2, "name": "Test ad group", "status": "DRAFT", "startDate": "2026-11-10T14:00:34.839Z", "endDate": "2026-12-31T14:00:34.839Z", "budgetType": "daily", "deliverySpeed": "evenly", "dailyBudget": 100.0, "rateType": "cpm", "frequencyCapDay": 10, "frequencyCapWeek": 100, "frequencyCapMonth": 500, "maxBid": 10.0, "outOfStockProtection": true, "targeting": { "behavioral": { "include": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, "geoTargets": { "include": [ { "zipCode": "35004" } ] } }, "creationDate": "2026-11-05T00:47:05.763-05:00", "lastUpdatedDate": "2026-11-05T00:47:05.763-05:00", "attributesSetOnAdGroupLevel": true, "creativeRotationMode": "OPTIMIZE_PERFORMANCE", "mediaType": "BANNER" } ]
}Sample Response Failure - Fetch Ad Groups and Their Metadata Matching the Filter Criteria (Flattened Targeting Structure)
[ { "code": "failure", "details": [ "string" ], "message": "string", "errors": [ { "field": "string", "errorType": "string", "description": "string" } ]
}
]Updated 2 days ago
Did this page help you?
