Programmatic Ads with Hivestack

Programmatic platforms are a strong trend and a great way to increase DOOH advertisement sales.

Hivestack by PERION is a full-featured, world-wide Programmatic Advertising Platform offering easy access to the largest DSPs in the market, such as Yahoo OmniChannel and Google DV360.

This tutorial describes how to integrate OnSign Screens with Hivestack.

Requirements:

  • An active OnSign Account
  • An active Hivestack Account
  • A Hivestack API Key given by Hivestack for making ad requests 
  • A Hivestack Screen ID for each Player screen

Player Requirements:

We recommend using Player App versions 10.5.0 or later for Programmatic Ads to leverage OnSign’s advanced programmatic ad caching.

 

IMPORTANT - Programmatic integration will not work in case the OnSign App is outdated, or in case the SoC firmware does not match the requirements.

 

The OnSign Account must subscribe to the Programmatic Service Add-on, and have the following features enabled which are not enabled by default:

  • Custom Attributes
  • App Events
  • Programmatic Apps

Step 1 - Configuring Custom Player Attributes

Custom Player Attributes work as local Player parameters which Apps can access during playback.

Once a Custom Player Attribute is created in the general Settings menu, it will be possible to enter a Custom Attribute parameter for each Player.

Custom Player Attributes are configured on each Player in Player Settings > Custom Attributes.

To use the Hivestack App, configure these two Custom Attributes:

  • Hivestack API Key – Type Text
  • Hivestack Screen ID – Type Text

Custom Attributes are case-sensitive and must be entered in the exact spelling.

 
new player custom attribute

Once the Custom Player Attributes are created, the Hivestack API Key and Screen IDs need to be configured in the settings of every Player.

  1. On your Players page, select a specific Player.
  2. Go to Settings
  3. Enter the Hivestack API Key and Hivestack Screen ID.
    insert custom attributes in player settings

Step 2 - Set up the Hivestack App

Configuring the Hivestack App follows the same process as any other OnSign content app.

  1. Click the New button > App > Then search for the Hivestack App and select it.
  2. Choose an App name.
  3. For the App Attributes, you can choose between using a Custom Player Attribute or writing the Hivestack IDs into the text box below. 
    If the App is connected to a Custom Player Attribute and text is written in the text box, the Custom Attribute takes precedent. 
    Hivestack app
  4. Select the Hivestack Environment the App should connect. This is either Staging, in case you are still validating the solution, or Production, in case your environment is ready for showing Ads to your audience.
  5. Select a Fallback Media. This will be shown when there is no Creative available from Hivestack or when there is not enough time to retrieve the Creative from the Hivestack platform.

Common setup errors are:

  • Using a wrong API Key or an invalid Screen ID won't allow the App to obtain the Creatives from the Hivestack server.
  • The media is too large and the complete media download was not fully executed on time to be presented. Don't worry, as the media will be downloaded in the background and should be gracefully presented in the next cycle.

Step 3 - App Duration

The Hivestack App has a variable length behavior. This allows the playback of creatives with different lengths coming from Hivestack. To take advantage of this feature, the Hivestack App should have a duration at least as long as the longest creative to be presented.

For example, if the creative has a maximum length of 15 seconds, the App should have a duration of at least 15 seconds.

Due to its variable behavior, if the received Creative is only 10 seconds long, the app will only play the ad for 10 seconds and skip to the next item.

Step 4 - Hivestack App Playback Report

OnSign can provide two different reports for the Hivestack App:

  • Playback Report – This will count the times the Hivestack App has been presented.
  • Programmatic Report – This will provide detailed information for every Criative played by the Hivestack app. This is a great way to cross-reference the number of presented ads, comparing it to the Hivestack Platform reports.

Firewall Requirements

In addition to the OnSign firewall settings, please ensure the following domains can be accessed from each Player which plays the Hivestack App:

  • apps.hivestack.com (To send ad request and play confirmation calls)
  • cdn-apps.hivestack.com (To download the creative files)
  • *.hsdlv.com (creative files download - new) 
  • dgg3rnz8nudgw.cloudfront.net (To download the creative files - phased out August 2025) 

Investigating Errors

If the Hivestack App is not behaving as expected, the most likely issues are:

  • No network – If there is no network, the app can't check if there is a designated ad to be presented.
  • Wrong or missing credentials – If the API Key or Screen ID are missing, the app will not be able to query for available ads.

Testing your Hivestack Credentials

Testing your Hivestack credentials is simple. Just open one of the two URLs below in your browser, replacing the [ScreenID] and [API_KEY] placeholders with your credentials.

Staging – If your credentials only work in a staging and testing environment

https://uat.hivestack.com/nirvana/api/v1/units/schedulevast/[SCREEN_ID]?apikey=[API_KEY]

Production – If your credentials are already available in the production environment

https://apps.hivestack.com/nirvana/api/v1/units/schedulevast/[SCREEN_ID]?apikey=[API_KEY]