Update a custom audience

Learn to update custom audience metadata and definitions while managing rebuilds.

Overview

Use this endpoint to modify eligible attributes of an existing custom audience.

Audience updates fall into two categories:

  • Metadata updates — update the audience name, description, or objective
  • Definition updates — modify the audience criteria and rebuild the audience

Understanding the difference is important because updating an audience definition restarts audience processing.

Availability

Supported for Onsite Display only.


Why update an audience?

Use audience updates when you need to:

  • Rename an audience
  • Update audience descriptions
  • Change campaign objectives
  • Refine audience criteria
  • Modify predictive audience inputs
  • Update advanced audience logic
  • Refresh targeting strategies
⚠️

Shared audience limitation

Shared audiences (isShared = true) cannot be updated.


How audience updates work

Audience updates are applied to an existing audience.

Some updates affect metadata only, while others require the audience to be rebuilt.

Audience update workflow

Existing Audience

Retrieve current audience configuration.

Update Fields

Modify metadata or audience criteria.

Audience Rebuild

Audience processing restarts if criteria change.

Status Update

Status transitions to IN_PROGRESS.

Available

Audience becomes targetable again.


Create vs update

Create Audience Update Audience
Creates a new audience Modifies an existing audience
Generates a new audience ID Retains the existing audience ID
Starts a new audience build May restart audience processing
Used for new targeting strategies Used to refine existing strategies

Before you begin

  • Valid advertiserId
  • Valid audienceId
  • AudienceID where isShared=false
  • Understanding of which fields need to be updated
  • Understanding of audience rebuild behavior

Endpoint

PATCH /api/v1/audiences


Metadata updates vs definition updates

Not all audience updates have the same impact.

Metadata updates

Metadata updates modify audience information without changing audience logic.

Supported fields:

  • name
  • description
  • audienceObjective
  • audienceObjectiveText (use if audienceObjective=Other)

Common use cases

  • Rename audiences
  • Improve organization
  • Update campaign planning metadata

Definition updates

Definition updates modify the audience criteria.

Supported field:

  • audienceDefinition

Common use cases

  • Refine audience logic
  • Update predictive inputs
  • Change item propensity criteria
  • Modify lookalike seed audiences
  • Update advanced audience logic
⚠️

Audience rebuild behavior

Updating audienceDefinition overwrites the existing audience definition and restarts audience processing.


Request details

How this request is used

Updates audience metadata or audience criteria.

Key fields and behaviors

  • audienceId
    Identifies the audience to update.

  • name
    Audience name.

  • description
    Audience description.

  • audienceObjective
    Audience goal such as:

    • REACH
    • PERFORMANCE
    • OTHER
  • audienceObjectiveText
    Required when audienceObjective = OTHER.

  • audienceDefinition
    Contains the audience criteria object.


Audience definition objects

The structure inside audienceDefinition varies by audience type.

Use the appropriate audience guide when updating criteria:

  • Rule-Based Audiences
  • Brand Affinity Audiences
  • Item Propensity Audiences
  • Lookalike Audiences
  • Advanced Targeting Audiences
📌

Best practice

Retrieve the existing audience definition before modifying audience criteria.


Audience rebuild impact

Updating audience criteria restarts audience processing.

Lifecycle behavior

AVAILABLE

Audience is ready for targeting.

Update Definition

Submit changes to the audience.

IN_PROGRESS

Audience is rebuilding.

AVAILABLE

Updated audience is ready.

Operational impact

  • Audience processing restarts
  • Audience status changes to IN_PROGRESS
  • Audience becomes available again after processing completes
  • Audience targeting should not be considered ready until status returns to AVAILABLE

Sample requests

Update name, description, and objective
curl -X PATCH \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/audiences' \ --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": 190000,   "audienceId": 10000000, "name": "Test rule based audience", "description": "Test audience", "audienceObjective": [ "REACH", "OTHER" ], "audienceObjectiveText": "custom objective" }' 
Update audience definition
curl -X PATCH \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/audiences' \ --header 'Authorization: *******' --header 'Content-Type: application/json' --header 'WM_SEC.AUTH_SIGNATURE: ***********' --header 'WM_CONSUMER.ID: *****' --header 'WM_SEC.KEY_VERSION: 1' --header 'WM_CONSUMER.intimestamp: 1565309779' --data '{ "advertiserId": 190000, "audienceId": 10000000, "attribute": "ITEM_PROPENSITY", "audienceDefinition": { "audienceCriteria": { "propensityCriteria": { "strategy": "PROMOTE_SEASONAL_PRODUCTS", "categories": [ { "category": [ { "name": "Wheelchair Accessories", "level": 3 } ] }, { "category": [ { "name": "Books", "level": 1 } ] } ] } } } }' 

Response details

What this response returns

A successful response confirms the audience update request was accepted.

Key fields to use

  • audienceId
    Updated audience identifier.

  • name
    Audience name.

  • details
    Processing status message.

  • code
    Indicates whether the update request succeeded or failed.

  • details
    Provides additional information about the request, including errors when applicable.

  • 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 response

The update request was accepted and applied.

Definition update

If audience criteria were modified:

  • Audience rebuild begins
  • Status transitions to IN_PROGRESS
  • Audience must return to AVAILABLE before targeting

Sample response

Audience update successful
{ "code": "success", "audienceId": 10000000, "name": "Updated Audience", "details": [ "AUDIENCE_UPDATE_SUCCESS" ]
}
Sample Response - failure
[ { "code": "failure", "details": [ "string" ],    "message": "string",
    "errors": [ { "field": "string", "errorType": "string", "description": "string" } ] }
]

Common issues

  • Updating a shared audience
  • Omitting required nested criteria
  • Updating audienceDefinition without expecting a rebuild
  • Using the wrong audience definition structure
  • Assuming a successful update means the audience is immediately targetable

What happens next

After updating an audience:

  1. Audience changes are applied
  2. Audience processing restarts if criteria changed
  3. Audience status transitions to IN_PROGRESS
  4. Monitor status until AVAILABLE
  5. Resume targeting once the audience is available

Related pages


Did this page help you?