Using Categories with ESNI

🚧

REDONDANT AVEC "HANDLING CONTENT REPLACEMENT SLOT". A SUPPRIMER

The ESNI API

It is also possible to use the ESNI API to manage categories.

To create or edit a category, use the "Audience" element with an "id" attribute which corresponds to the category name.

For example:

<Media href="YourServiceName">
    <MediaPoint id="YourMediaPointName" matchTime="2022-11-18T16:00:00Z" expectedDuration="PT0H1M">
        <Apply>
            <Policy id="1">
                <ViewingPolicy id="1">
                   <Audience id="arlington-va">
                        <audience:zip>20301</audience:zip>
                        <audience:zip>22207</audience:zip>
                        <audience:zip>22350</audience:zip>                     
                    </Audience>
                    <action:Content>ESPN_Alt_1</action:Content>
                </ViewingPolicy>
            </Policy>
        </Apply>
    </MediaPoint>
</Media>

This will create or update a category named "arlington-va" containing 3 zip codes.

At this time it is not possible to simply reference an existing category. Stay tuned for this feature.

Please see this page for more information about the ESNI API.