Create a custom audience
Learn to create custom audiences using behavioral, predictive, and advanced targeting.
Overview
Create custom audiences using Walmart first-party data to reach shoppers based on historical behavior, predicted purchase intent, or combinations of existing audience segments.
The Create Audience API supports multiple custom audience types through a single endpoint. While all audience types share the same core request structure, the audience definition and configuration requirements vary by type.
Availability
Supported for Onsite Display only.
How it works
Custom audience creation is an asynchronous process.
- Select the custom audience type and define its criteria.
- Submit a Create Audience request.
- Walmart Connect processes the audience definition.
- Retrieve the audience status to confirm when it is available for targeting.
Audience processing may take several hours, depending on the size of the requested audience.
Audience availabilty for ad groupsA successful Create Audience request does not mean the audience is immediately available for targeting. Confirm that the audience status is
AVAILABLEbefore applying it to an ad group.
Choose an audience type
The Create Audience API supports multiple audience types, each with its own targeting logic and configuration requirements.
Rule-based audiences
Define audiences using purchase, browse, and other supported behavioral criteria, with optional demographic and geographic filters.
View definition and implementation guide →Predictive audiences
Configure Item Propensity, Brand Affinity, or Lookalike audiences using predictive models and audience-specific inputs.
View definition and implementation guide →Advanced audiences
Combine existing audiences using inclusion, exclusion, and Boolean logic to build more specific segments.
View definition and implementation guide →Before you begin
- Confirm you have a valid
advertiserIdand appropriate API access. - Select the audience type that supports your targeting goals.
- Review the audience-specific configuration requirements in the corresponding guide.
- Prepare any required source audiences, targeting item sets, or targeting criteria.
Endpoint
POST /api/v1/audiences
POST /api/v1/audiencesRequest details
How this request is used
The Create Audience API creates a new custom audience using shared audience attributes and an audience-specific definition.
All requests include the advertiser, audience name, audience type, and the definition used to build the audience.
Key fields and behaviors
name
Unique audience namedescription
audience descriptionaudienceType
Must beCUSTOMaudienceObjective
Defines the audience objective:REACH,PERFORMANCE, orOTHERaudienceObjectiveText
If audienceObjective=OTHER, user defined objective textattribute
Identifies the custom audience typeaudienceDefinition
Contains the audience-specific targeting logic
Supported audience attributes and audience definitions
The attribute field determines which type of audience is created and which definition structure is required. The audienceDefinition object contains audienceCriteria, which defines the targeting logic used to build the audience.
The structure of audienceCriteria varies depending on the selected attribute.
-
Defintion object:
include,exclude,demographics,geoTargets -
ITEM_PROPENSITY
Definition object:propensityCriteriaBRAND_AFFINITY
Defintion object:brandAffinityCriteriaLOOKALIKE
Definition object:lookAlikeCriteria
-
ADVANCED
Definition object:advancedCriteria
For the complete definition structure, required inputs, and sample requests, see the corresponding audience creation guide.
Response details
A successful request initiates audience creation and processing.
Audience creation is asynchronous, and the audience must finish building before it can be used for targeting.
Refer to the API Reference for the complete response schema.
Key fields to use
-
nameName of the audience created.
-
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.
Common issues
| Issue | Guidance |
|---|---|
| Duplicate audience name | Audience names must be unique. |
| Invalid audience attribute | Confirm the attribute value is supported. |
| Missing objective text | Include audienceObjectiveText when audienceObjective contains OTHER. |
| Invalid audience definition | Review the required audienceCriteria structure for the selected audience type. |
| Audience not available | Allow processing to complete before applying the audience to targeting. |
What happens next
After submitting a Create Audience request, use the List Custom Audiences API to retrieve audience information and validate build status.
Once the audience status is AVAILABLE, it can be applied through the appropriate Behavioral Targeting workflow.
Related pages
Updated about 1 month ago
