Audience Targeting Object

Audience Targeting Object Schema:

Name

Modifier and Defaults

Type

Description

collection

Required

Array <Targeting Restrictions Object>

Collection of Targeting Restrictions.
Submit[] (empty array) to target NONE for the given targeting type.

๐Ÿšง

You must adhere to the restrictions defined for each field. Otherwise, the server will return 400 Bad Request.

Some sample Audience Targeting Objects:

{
   "collection": []
}
{
    "collection": [
        {
            "collection": [
                112233,
                12123,
                123876,
                123,
                1687024,
                9876
            ],
            "type": "INCLUDE"
        }
    ]
}
{
    "collection": [
        {
            "collection": [
                123456,
                12345
            ],
            "type": "INCLUDE"
        },
        {
            "collection": [
                98765,
                87654
            ],
            "type": "EXCLUDE"
        }
    ]
}
{
    "collection": [
        {
            "collection": [
                {
                    "rule_id": 5253453,
                    "similarity_level": 15
                },
                {
                    "rule_id": 444487,
                    "similarity_level": 25
                }
            ],
            "type": "INCLUDE"
        }
    ]
}
๐Ÿ“˜

The above examples could be in a request or response body.

๐Ÿ“˜

Field Names

Parent and child objects both have a property called collection.

๐Ÿ“˜

No PATCH Operation

Audience Targeting does not support a PATCH operation - submitted values overwrite the old ones.

๐Ÿ“˜

Remove An Audience

To remove an audience, re-submit a new collection to the relevant audience targeting endpoint (omitting any relevant audiences).

๐Ÿ“˜

Remove All Audiences

To remove all audiences, submit an empty collection to the relevant audience targeting endpoint.
(See the Target NONE example above).