---
schema_version: "1"
id: f07b88a9d98280d7c5eb575fb4f0e6afef85eeca3bcae596c5f2a0f300aa88ca
title: Audience
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_audience.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_audience.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e4f62a6e76cd262067b4b20e831cdfe64e483a7babb0c8eeedba7148c4b70967
description: Represents the audience in an Experience Builder site. An audience consists of different types of criteria, where the audience can be assigned and used for targeting in a site. This type extends the Metadata metadata type and inherits its fullName field.
---
# Audience

Represents the audience in an Experience Builder site. An audience consists of different types of criteria, where the audience can be assigned and used for targeting in a site. This type extends the Metadata metadata type and inherits its fullName field.

## File Suffix and Directory Location

Audience components have the suffix .audience and are stored in the audience folder.

## Version

Audience components are available in API version 44.0 and later.

## Special Access Rules

Access to the Audience type requires the AudienceMetadata permission. This permission is on by default for orgs that have Networks enabled.

Access to permission criteria for the Audience type requires the AudiencePermissionCriteria permission. This permission is available in API version 45.0 and later and is on by default for orgs that have Networks enabled.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d157384e96">Field Name</th>

              <th class="featureTableHeader  " id="d157384e99">Field Type</th>

              <th class="featureTableHeader  " id="d157384e102">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">audienceName</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type">string</td>

              <td class="entry" headers="d157384e102" data-title="Description">Required. The name of the audience.</td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">container</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type">string</td>

              <td class="entry" headers="d157384e102" data-title="Description">Required. The name of the site or org that contains the audience.</td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">criteria</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type"><a class="xref" href="#AudienceCriteria">AudienceCriteria</a></td>

              <td class="entry" headers="d157384e102" data-title="Description">Required. Criteria in an audience. This field is available in API version 47.0
                and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">criterion</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type">
                <a class="xref" href="#AudienceCriterion">AudienceCriterion</a>[]
              </td>

              <td class="entry" headers="d157384e102" data-title="Description">Removed. List of criteria in an audience.
                <p class="p"> This field is available in API version 44.0–46.0. In API version 47.0 and later,
                  use <span class="keyword parmname">criteria</span> instead.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type">string</td>

              <td class="entry" headers="d157384e102" data-title="Description">The description of the audience.</td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">formula</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type">string</td>

              <td class="entry" headers="d157384e102" data-title="Description">Formula used to determine the audience. This field is available in API version
                45.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">formulaFilterType</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type">FormulaFilterType​(<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d157384e102" data-title="Description">Indicates the audience’s formula type. Valid values are <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">AllCriteriaMatch</samp></li>

                  <li class="li"><samp class="codeph nolang">AnyCriterionMatches</samp></li>

                  <li class="li">
                    <samp class="codeph nolang">CustomLogicMatches</samp> (available in API
                    version 45.0 and later)
                  </li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">isDefaultAudience</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type">boolean</td>

              <td class="entry" headers="d157384e102" data-title="Description">Indicates whether the audience is the default audience (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). This field is available and required in API version 48.0. In API
                version 49.0 and later, this field is optional.<p class="p">The default audience file name is
                  of format <samp class="codeph nolang">Default_<var class="keyword varname">Network
                      Name</var>.audience</samp>.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d157384e96" data-title="Field Name"><span class="keyword parmname">targets</span></td>

              <td class="entry" headers="d157384e99" data-title="Field Type"><a class="xref" href="#PersonalizationTargetInfos">PersonalizationTarget​Infos</a></td>

              <td class="entry" headers="d157384e102" data-title="Description">Targets for the audience. This field is available in API version 47.0 and
                later.</td>

            </tr>

          </tbody>

        </table>

## AudienceCriteria

Represents criteria for an audience. This subtype is available in API version 47.0 and later.

| Field Name | Field Type | Description |
| --- | --- | --- |
| criterion | [AudienceCriterion](#AudienceCriterion)\[\] | List of criteria for an audience. An audience can have up to 100 criteria. |

## AudienceCriterion

Represents a criterion for an audience.

<table class="featureTable sort_table" summary="">



            <thead class="thead sorted" align="left">
              <tr>
                <th class="featureTableHeader  " id="d157384e347">Field Name</th>

                <th class="featureTableHeader  " id="d157384e350">Field Type</th>

                <th class="featureTableHeader  " id="d157384e353">Description</th>

              </tr>

            </thead>

            <tbody class="tbody">
              <tr>
                <td class="entry" headers="d157384e347" data-title="Field Name"><span class="keyword parmname">criteriaNumber</span></td>

                <td class="entry" headers="d157384e350" data-title="Field Type">int</td>

                <td class="entry" headers="d157384e353" data-title="Description">The number associated with the criterion in a formula, for example (1 AND 2) OR
                  3. This field is available in API version 45.0 and later.</td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e347" data-title="Field Name"><span class="keyword parmname">criterionValue</span></td>

                <td class="entry" headers="d157384e350" data-title="Field Type"><a class="xref" href="#AudienceCriteriaValue">AudienceCriteriaValue</a></td>

                <td class="entry" headers="d157384e353" data-title="Description">The value of the criterion.</td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e347" data-title="Field Name"><span class="keyword parmname">operator</span></td>

                <td class="entry" headers="d157384e350" data-title="Field Type">AudienceCriterionOperator(<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type
                  string)</td>

                <td class="entry" headers="d157384e353" data-title="Description">The operator associated with this criterion. Valid values are: <ul class="ul bulletList">
                    <li class="li"><samp class="codeph nolang">Equal</samp></li>

                    <li class="li"><samp class="codeph nolang">NotEqual</samp></li>

                    <li class="li"><samp class="codeph nolang">GreaterThan</samp></li>

                    <li class="li"><samp class="codeph nolang">GreaterThanOrEqual</samp></li>

                    <li class="li"><samp class="codeph nolang">LessThan</samp></li>

                    <li class="li"><samp class="codeph nolang">LessThanOrEqual</samp></li>

                    <li class="li"><samp class="codeph nolang">Contains</samp></li>

                    <li class="li"><samp class="codeph nolang">StartsWith</samp></li>

                    <li class="li">
                      <samp class="codeph nolang">Includes</samp> (available in API version 45.0
                      and later)
                    </li>

                    <li class="li">
                      <samp class="codeph nolang">NotIncludes</samp> (available in API version
                      45.0 and later)
                    </li>

                  </ul>
                </td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e347" data-title="Field Name"><span class="keyword parmname">type</span></td>

                <td class="entry" headers="d157384e350" data-title="Field Type">AudienceCriterion​Type(<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

                <td class="entry" headers="d157384e353" data-title="Description">Required. Valid values are:<ul class="ul bulletList">
                    <li class="li"><samp class="codeph nolang">GeoLocation</samp></li>

                    <li class="li"><samp class="codeph nolang">Domain</samp></li>

                    <li class="li"><samp class="codeph nolang">Profile</samp></li>

                    <li class="li"><samp class="codeph nolang">FieldBased</samp></li>

                    <li class="li">
                      <samp class="codeph nolang">Permission</samp> (available in API version 45.0
                      and later)
                    </li>

                    <li class="li">
                      <samp class="codeph nolang">Default</samp> (available in API version 47.0
                      and later)
                    </li>

                    <li class="li">
                      <samp class="codeph nolang">Audience</samp> (available in API version 53.0
                      and later)
                    </li>

                  </ul>
                  For a list of AudienceCriteriaValue fields that you can use with each
                  AudienceCriterion <span class="keyword parmname">type</span> field value, see <a class="xref" href="#AudCritTypeAudCritValueTable">this table</a>.</td>

              </tr>

            </tbody>

          </table>

## AudienceCriteriaValue

Represents the value of a criterion in an audience. For a list of AudienceCriteriaValue fields that you can use with each AudienceCriterion type field value, see [this table](#AudCritTypeAudCritValueTable).

| Field Name | Field Type | Description |
| --- | --- | --- |
| audienceDeveloperName | string | Developer name of the audience. This field is available in API version 53.0 and later. You can use this field only when the value of the AudienceCriterion type field is Audience. |
| city | string | City of a user. You can use this field only when the value of the AudienceCriterion type field is GeoLocation. |
| country | string | Country of a user. You can use this field only when the value of the AudienceCriterion type field is GeoLocation. |
| domain | string | Domain of a user. You can use this field only when the value of the AudienceCriterion type field is Domain. |
| entityField | string | Field of an object. You can use this field only when the value of the AudienceCriterion type field is FieldBased. |
| entityType | string | Type of object. You can use this field only when the value of the AudienceCriterion type field is FieldBased. |
| fieldValue | string | Value of a field. You can use this field only when the value of the AudienceCriterion type field is FieldBased. |
| isEnabled | string | Indicates whether the permission is enabled (true) or not (false) for a user. This field is available in API version 45.0 and later. You can use this field used only when the value of the AudienceCriterion type field is Permission. |
| permissionName | string | Valid API name of a standard user or custom permission. This field is available in API version 45.0 and later. You can use this field only when the value of the AudienceCriterion type field is Permission. |
| permissionType | string | Type of permission. Valid values are Standard and Custom. This field is available in API version 45.0 and later. You can use this field only when the value of the AudienceCriterion type field is Permission. |
| profile | string | Profile of a user. You can use this field only when the value of the AudienceCriterion type field is Profile. |
| subdivision | string | Subdivision of a user. You can use this field only when the value of the AudienceCriterion type field is GeoLocation. |

This table summarizes which AudienceCriteriaValue fields you can use with the different AudienceCriterion type field values.

<table class="featureTable sort_table" summary="">


            <thead class="thead sorted" align="left">
              <tr>
                <th class="featureTableHeader  " id="d157384e812">AudienceCriterion Type</th>

                <th class="featureTableHeader  " id="d157384e815">AudienceCriteriaValue Fields</th>

              </tr>

            </thead>

            <tbody class="tbody">
              <tr>
                <td class="entry" headers="d157384e812" data-title="AudienceCriterion Type"><samp class="codeph nolang">GeoLocation</samp></td>

                <td class="entry" headers="d157384e815" data-title="AudienceCriteriaValue Fields">
                  <span class="keyword parmname">city</span>
                  <p class="p"><span class="keyword parmname">country</span></p>
                  <p class="p"><span class="keyword parmname">subdivision</span></p>
                </td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e812" data-title="AudienceCriterion Type"><samp class="codeph nolang">Domain</samp></td>

                <td class="entry" headers="d157384e815" data-title="AudienceCriteriaValue Fields"><span class="keyword parmname">domain</span></td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e812" data-title="AudienceCriterion Type"><samp class="codeph nolang">Profile</samp></td>

                <td class="entry" headers="d157384e815" data-title="AudienceCriteriaValue Fields"><span class="keyword parmname">profile</span></td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e812" data-title="AudienceCriterion Type"><samp class="codeph nolang">FieldBased</samp></td>

                <td class="entry" headers="d157384e815" data-title="AudienceCriteriaValue Fields">
                  <span class="keyword parmname">entityField</span>
                  <p class="p"><span class="keyword parmname">entityType</span></p>
                  <p class="p"><span class="keyword parmname">fieldValue</span></p>
                </td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e812" data-title="AudienceCriterion Type"><samp class="codeph nolang">Permission</samp></td>

                <td class="entry" headers="d157384e815" data-title="AudienceCriteriaValue Fields">
                  <span class="keyword parmname">isEnabled</span>
                  <p class="p"><span class="keyword parmname">permissionName</span></p>
                  <p class="p"><span class="keyword parmname">permissionType</span></p>
                </td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e812" data-title="AudienceCriterion Type"><samp class="codeph nolang">Audience</samp></td>

                <td class="entry" headers="d157384e815" data-title="AudienceCriteriaValue Fields"><span class="keyword parmname">audienceDeveloperName</span></td>

              </tr>

            </tbody>

          </table>

## PersonalizationTargetInfos

Represents targets for an audience. This subtype is available in API version 47.0 and later.

When deploying an audience, you must include [ExperienceBundle](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_experiencebundle.htm "Represents a text-based code structure of the settings and site components, such as pages, branding sets, and themes that make up an Experience Builder site. Developers can quickly update and deploy Experience Builder sites programmatically using their preferred development tools. This type extends the Metadata metadata type and inherits its fullName field.") in your package to support experience variation targets.

| Field Name | Field Type | Description |
| --- | --- | --- |
| target | [PersonalizationTarget​Info](#PersonalizationTargetInfo)\[\] | List of targets for an audience. |

## PersonalizationTargetInfo

Represents a target for an audience. This subtype is available in API version 47.0 and later.

<table class="featureTable sort_table" summary="">



            <thead class="thead sorted" align="left">
              <tr>
                <th class="featureTableHeader  " id="d157384e998">Field Name</th>

                <th class="featureTableHeader  " id="d157384e1001">Field Type</th>

                <th class="featureTableHeader  " id="d157384e1004">Description</th>

              </tr>

            </thead>

            <tbody class="tbody">
              <tr>
                <td class="entry" headers="d157384e998" data-title="Field Name"><span class="keyword parmname">groupName</span></td>

                <td class="entry" headers="d157384e1001" data-title="Field Type">string</td>

                <td class="entry" headers="d157384e1004" data-title="Description">Required. Group name of the target. Groups bundle related target and audience
                  pairs. You can have up to 2,000 groups and 500 targets per group.<p class="p">To determine the
                    target group name, see <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.communities_dev.meta/communities_dev/communities_dev_personalization_names.htm" target="_blank" title="HTML (New Window)">https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/communities_dev_personalization_names.htm</a> in the <cite class="cite">Experience
                      Cloud Developer Guide</cite>.</p>
                </td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e998" data-title="Field Name"><span class="keyword parmname">priority</span></td>

                <td class="entry" headers="d157384e1001" data-title="Field Type">int</td>

                <td class="entry" headers="d157384e1004" data-title="Description">Priority of the target. Within a group, priority determines which target is
                  returned when the user matches more than one audience.</td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e998" data-title="Field Name"><span class="keyword parmname">targetType</span></td>

                <td class="entry" headers="d157384e1001" data-title="Field Type">string</td>

                <td class="entry" headers="d157384e1004" data-title="Description">Required. Type of target, indicating the nature of the data being targeted.
                  Supported values include:<ul class="ul bulletList">
                    <li class="li">
                      <samp class="codeph nolang">ExperienceVariation</samp> (API version 47.0 and
                      later)
                    </li>

                    <li class="li">
                      <samp class="codeph nolang">NavigationLinkSet</samp> (API version 49.0 and
                      later)
                    </li>

                    <li class="li">
                      <samp class="codeph nolang">Report</samp> (API version 49.0 and later)
                    </li>

                    <li class="li">
                      <samp class="codeph nolang">Dashboard</samp> (API version 49.0 and
                      later)
                    </li>

                  </ul>
                  <p class="p">You can have up to 2,500 <samp class="codeph nolang">ExperienceVariation</samp> targets and 25,000 record targets.</p>
                  <p class="p">For more
                    information on the <samp class="codeph nolang">ExperienceVariation</samp> target
                    type, see <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_experiencebundle.htm" title="Represents a text-based code structure of the settings and site components, such as pages, branding sets, and themes that make up an Experience Builder site. Developers can quickly update and deploy Experience Builder sites programmatically using their preferred development tools. This type extends the Metadata metadata type and inherits its fullName field.">ExperienceBundle</a>.</p>
                </td>

              </tr>

              <tr>
                <td class="entry" headers="d157384e998" data-title="Field Name"><span class="keyword parmname">targetValue</span></td>

                <td class="entry" headers="d157384e1001" data-title="Field Type">string</td>

                <td class="entry" headers="d157384e1004" data-title="Description">Required. Value of the target, which is the developer name of the experience
                  variation, such as <samp class="codeph nolang">ContactSupport_ContactSupportFor​California_Page</samp> for a page
                  variation.<p class="p">To determine the target developer name, see <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.communities_dev.meta/communities_dev/communities_dev_personalization_names.htm" target="_blank" title="HTML (New Window)">https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/communities_dev_personalization_names.htm</a>
                    in the <cite class="cite">Experience Cloud Developer Guide</cite>.</p>
                </td>

              </tr>

            </tbody>

          </table>

## Declarative Metadata Sample Definition

The following is an example of an Audience component.

<?xml version="1.0" encoding="UTF-8"?>
<Audience xmlns="http://soap.sforce.com/2006/04/metadata">
    <audienceName\>Audience Metadata</audienceName\>
    <container\>Customer</container\>
    <criteria\>
        <criterion\>
            <criteriaNumber\>1</criteriaNumber\>
            <criterionValue\>
                <country\>United States</country\>
                <subdivision\>Nevada</subdivision\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>GeoLocation</type\>
        </criterion\>
        <criterion\>
            <criteriaNumber\>2</criteriaNumber\>
            <criterionValue\>
                <profile\>customer community user</profile\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>Profile</type\>
        </criterion\>
        <criterion\>
            <criteriaNumber\>3</criteriaNumber\>
            <criterionValue\>
                <domain\>sampledomain.example.com</domain\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>Domain</type\>
        </criterion\>
        <criterion\>
            <criteriaNumber\>4</criteriaNumber\>
            <criterionValue\>
                <entityField\>Manager.Profile.CreatedBy.Contact.MailingCountry</entityField\>
                <entityType\>User</entityType\>
                <fieldValue\>USA</fieldValue\>
            </criterionValue\>
            <operator\>StartsWith</operator\>
            <type\>FieldBased</type\>
        </criterion\>
        <criterion\>
            <criteriaNumber\>5</criteriaNumber\>
            <criterionValue\>
                <entityField\>RecordTypeId</entityField\>
                <entityType\>CollaborationGroup</entityType\>
                <fieldValue\>CollaborationGroup.Group\_RT2</fieldValue\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>FieldBased</type\>
        </criterion\>
        <criterion\>
            <criteriaNumber\>6</criteriaNumber\>
            <criterionValue\>
                <isEnabled\>true</isEnabled\>
                <permissionName\>ManageUsers</permissionName\>
                <permissionType\>Standard</permissionType\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>Permission</type\>
        </criterion\>
        <criterion\>
            <criteriaNumber\>7</criteriaNumber\>
            <criterionValue\>
                <isEnabled\>false</isEnabled\>
                <permissionName\>NamespaceXYZ\_\_CustomPermABC</permissionName\>
                <permissionType\>Custom</permissionType\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>Permission</type\>
        </criterion\>
        <criterion\>
            <criteriaNumber\>8</criteriaNumber\>
            <criterionValue\>
                <audienceDeveloperName\>Audience1</audienceDeveloperName\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>Audience</type\>
        </criterion\>
    </criteria\>
    <formula\>1 AND (2 OR 3 OR 4 OR 5 OR 6 OR 7) AND 8</formula\>
    <formulaFilterType\>CustomLogicMatches</formulaFilterType\>
    <isDefaultAudience\>false</isDefaultAudience\>
    <targets\>
        <target\>
            <groupName\>c194d79c-5c6b-4c6a-8d14-0e7042564355$#$Branding</groupName\>
            <priority\>1</priority\>
            <targetType\>ExperienceVariation</targetType\>
            <targetValue\>Customer\_Service\_testBrandingSet\_Branding</targetValue\>
        </target\>
    </targets\>
</Audience\>

## Usage

You can’t use Metadata API to delete an audience.

In API version 47.0 and later, you can’t create an audience without criteria.

The list of targets provided in the input for an audience is considered the state of target assignments that you want. For example, see the following information for deleting, creating, and updating targets.

If you don’t have a default audience, updating targets can result in the UI erroneously showing a target assigned to the default audience. The target assignment data in the API is correct. To work around the UI issue, temporarily assign another target to the default audience and then delete it.

Personalization using audience targeting varies what the user can see in the browser but doesn’t secure data in any way. To prevent users accessing sensitive data, use standard Salesforce security features, such as sharing rules and permission sets.

Delete targets

To delete a single target from an audience, deploy the entire list of targets for the audience minus the one that you want to delete.

To delete all the targets from an audience, deploy the audience with empty targets tags. For example:

<?xml version="1.0" encoding="UTF-8"?>
<Audience
    xmlns="http://soap.sforce.com/2006/04/metadata">
    <audienceName\>testAudience</audienceName\>
    <container\>testContainer</container\>
    <criteria\>
        <criterion\>
            <criteriaNumber\>1</criteriaNumber\>
            <criterionValue\>
                <country\>United States</country\>
                <subdivision\>Nevada</subdivision\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>GeoLocation</type\>
        </criterion\>
    </criteria\>
    <formulaFilterType\>AllCriteriaMatch</formulaFilterType\>
    <isDefaultAudience\>false</isDefaultAudience\>
    <targets\>
    </targets\>
</Audience\>

Update an audience without updating targets

To update an audience without updating targets, deploy the audience without targets tags. For example:

<?xml version="1.0" encoding="UTF-8"?>
<Audience
    xmlns="http://soap.sforce.com/2006/04/metadata">
    <audienceName\>testAudience</audienceName\>
    <container\>testContainer</container\>
    <criteria\>
        <criterion\>
            <criteriaNumber\>1</criteriaNumber\>
            <criterionValue\>
                <country\>United States</country\>
                <subdivision\>Nevada</subdivision\>
            </criterionValue\>
            <operator\>Equal</operator\>
            <type\>GeoLocation</type\>
        </criterion\>
    </criteria\>
    <formulaFilterType\>AllCriteriaMatch</formulaFilterType\>
    <isDefaultAudience\>false</isDefaultAudience\>
</Audience\>

Create targets

To create a target, deploy the entire list of targets for the audience plus the one that you want to create.

Update the priority of a target

To change the priority of a target within an audience, deploy the entire list of targets for the audience with the new priority values for the targets.

To change the priority of a target that affects priority in another audience, deploy both audiences with their entire list of targets with the new priority values for the targets.

Update the target assignment for an audience

To reassign a target to a new audience, deploy both audiences with their entire list of targets. Deploy one list with the target removed, and the other list with the target added.

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).