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

Name

Type

Description

countryCodes

String Array

An array of ISO country codes. Specifies the locations.

type

String Enum

Identifies the type of geofencing.
Enum values:
WHITELIST
BLACKLIST