Geofencing

Restricting your content based on the viewer's geographic location

Overview

Geofencing restricts access to specific content based on the viewer's geographic location. The restriction is defined using a geofence object.

The object contains a list of country codes and defines the geofencing type.

Types of geofencing

  • BLACKLIST - prohibits access from the locations specified in the countryCodes property.
  • WHITELIST - permits access exclusively from the locations specified in the countryCodes property.

Properties of the Geofence object

NameTypeDescription
countryCodesString ArrayAn array of ISO country codes. Specifies the locations.
typeString EnumIdentifies the type of geofencing.
Enum values:
WHITELIST
BLACKLIST