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.

  1. Select the custom audience type and define its criteria.
  2. Submit a Create Audience request.
  3. Walmart Connect processes the audience definition.
  4. 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 groups

A successful Create Audience request does not mean the audience is immediately available for targeting. Confirm that the audience status is AVAILABLE before 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.

Before you begin

  • Confirm you have a valid advertiserId and 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

View technical specifications

Request 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 name
  • description
    audience description
  • audienceType
    Must be CUSTOM
  • audienceObjective
    Defines the audience objective: REACH, PERFORMANCE, or OTHER
  • audienceObjectiveText
    If audienceObjective=OTHER, user defined objective text
  • attribute
    Identifies the custom audience type
  • audienceDefinition
    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.

  • RULE_BASED

    Defintion object: include, exclude, demographics, geoTargets

  • Predictive

    • ITEM_PROPENSITY
      Definition object: propensityCriteria
    • BRAND_AFFINITY
      Defintion object: brandAffinityCriteria
    • LOOKALIKE
      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

  • name

    Name 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

IssueGuidance
Duplicate audience nameAudience names must be unique.
Invalid audience attributeConfirm the attribute value is supported.
Missing objective textInclude audienceObjectiveText when audienceObjective contains OTHER.
Invalid audience definitionReview the required audienceCriteria structure for the selected audience type.
Audience not availableAllow 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


Did this page help you?