Update campaign delivery status
Learn to pause, resume, archive, and unarchive Onsite Display campaigns.
Overview
Use this endpoint to pause, resume, archive, or unarchive an Onsite Display campaign.
Unlike Campaign Update APIs, this endpoint changes a campaign's delivery state rather than its configuration.
Use Campaign Status APIs when you need to:
- Pause active delivery
- Resume paused campaigns
- Archive campaigns
- Restore previously archived campaigns
Availability
Supported for Onsite Display only.
How campaign status updates work
Campaign status actions are governed by lifecycle rules and campaign readiness requirements.
Status updates:
- Change campaign delivery state
- Do not update campaign configuration
- Do not modify budgets, schedules, or targeting
- May affect campaign delivery immediately
- Are subject to lifecycle restrictions
Campaign updates vs campaign status updates
- Campaign Update APIs modify campaign configuration.
- Campaign Status APIs modify campaign lifecycle state.
Use the appropriate workflow depending on whether you need to change settings or delivery behavior.
Campaign lifecycle actions
Draft
Campaign is being configured.
Scheduled
Waiting for future start date.
Live
Eligible to serve impressions.
Paused
Delivery temporarily stopped.
Completed
Flight dates have ended.
Archived
Removed from active management workflows.
When to use each action
Pause
Temporarily stop campaign delivery while preserving campaign configuration.
Resume
Restart delivery for a previously paused campaign.
Archive
Remove campaigns from active management workflows when they are no longer needed.
Unarchive
Restore an archived campaign so it can be managed again.
Supported actions by campaign status
| Action | Draft | Scheduled | Live | Paused | Completed | Archived |
|---|---|---|---|---|---|---|
| Pause | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
| Resume | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
| Archive | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Unarchive | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
- ✅ = Action supported
- ❌ = Action not supported
Archiving campaigns and ad groupsCampaigns and all associated ad groups must be in Draft status to be archived. Scheduled or live campaigns and ad groups cannot be archived.
Lifecycle dependencies
Campaign status changes may affect delivery immediately.
Campaigns do not operate in isolation.
Campaign
Controls top-level campaign delivery state.
Ad Groups
Underlying ad groups influence actual delivery eligibility.
Delivery
Delivery begins or stops depending on campaign and ad group state.
ImportantUpdating campaign status changes campaign delivery state, but actual delivery still depends on underlying ad group readiness and eligibility.
Before you begin
- Valid
advertiserId - Valid
campaignId - Campaign in an eligible lifecycle state
- Understand the desired target status
- Confirm any ad group dependencies
Endpoint
PUT /api/v1/campaigns/action
PUT /api/v1/campaigns/actionRequest details
How this request is used
Updates the lifecycle state of a campaign to control whether it is actively delivering.
Key fields and behaviors
-
campaignId
Identifies the campaign being updated. -
action
Determines the target lifecycle state:pauseresumearchiveunarchive
Important constraint
Only actions allowed for the campaign's current lifecycle state will succeed.
Sample requests
Single operation
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/campaigns/action' \ --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, "campaignId": 1, "action": "pause" }
] 'Batch operation
curl -X PUT \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/campaigns/action' \ --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, "campaignId": 1, "action": "pause" }, { "advertiserId": 1, "campaignId": 2, "action": "resume" },
{ "advertiserId": 1, "campaignId": 3, "action": "archive" },
{ "advertiserId": 1, "campaignId": 4, "action": "unarchive " },
] '
Batch supportCampaign status actions support batch requests. The max batch size for this endpoint is 10. All objects must use the same
advertiserId, and eachadvertiserId+campaignIdpair must be unique in the payload.See the Batch Requests Guide for retry strategies, partial success handling, etc.
Response details
What this response returns
Confirms whether each campaign action was successfully applied.
Key fields to use
-
campaignId
Campaign associated with the result. -
code
Action result (success,failure) -
details
Validation messages or failure reasons. -
message
Optional. High-level, human-readable summary of the error when available. -
errors
Detailed information about one or more errors. This is an array object with fields:field,errorType,description
Error Handling
If the request or an individual item fails, the response includes error information to help identify the issue and determine the corrective action. Use errorType for the error condition, field for the affected request field when applicable, and description for an explanation of the error and, when available, guidance on how to resolve it.
For the complete error response schema and endpoint-specific response definitions, see the API Reference. For guidance on HTTP status codes and how clients should handle them, see API status codes and error handling.
How to interpret results
Successful actions
code=success
The requested lifecycle action was applied successfully.
Failed actions
code=failure
The action was rejected because lifecycle or dependency requirements were not satisfied.
Batch operations
Batch responses may contain both successful and failed actions.
Always validate results at the individual campaign level.
Sample response
Single operation
[ { "code": "success", "details": [ "string" ], "campaignId": 1 }
]Batch operation
[ { "code": "success", "details": [ "string" ], "campaignId": 1 }, { "code": "success", "details": [ "string" ], "campaignId": 2 }, { "code": "failure", "details": [ "string" ], "campaignId": 3, "message": "One or more errors occurred.", "errors": [ { "field": "string", "errorType": "string", "description": "string" } ] }
]Sample response - failure
[ { "code": "failure", "details": [ "string" ], "message": "string",
"errors": [ { "field": "string", "errorType": "string", "description": "string" } ] }
]Common issues
- Attempting to archive a campaign with active dependencies
- Trying to resume a campaign that is not paused
- Using invalid action values
- Applying actions in unsupported lifecycle states
- Assuming campaign status alone guarantees delivery
What happens next
After a successful status update:
- Delivery may start or stop immediately
- Campaign lifecycle state changes
- Ad group eligibility continues to influence actual delivery behavior
- Additional lifecycle actions may become available or unavailable
Related pages
Updated 12 days ago
