{#
/**
* Copyright (C) 2023 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see
Onboard with one of our supported SSP's, enter your API key and configure which displays you want to activate.
In most cases you will need to list your displays with the SSP and copy your SSP ID into the CMS.
Please note that your players will require HTTP access to https://exchange.xibo-adspace.com
to receive ads from any SSP.
{{ interface.getFormError() }}
{% else %} {% set numberOfAuthedDisplays = interface.getAuthorisedDisplayCount() %}{% trans %}Your API key is authorised for {{ numberOfAuthedDisplays }} displays.{% endtrans %}
{% endif %} {% if not interface.isProviderSetting("apiKey") %} {% set title %}{% trans "API Key" %}{% endset %} {% set helpText %}{% trans "Your API key allows for secure communication between the CMS and the Xibo SSP connector service. It is used to orchestrate the delivery of ads to your players. Enter your API Key from Xibo." %}{% endset %} {{ forms.input("apiKey", title, interface.getSetting("apiKey"), helpText) }} {% endif %} {% if not interface.isProviderSetting("cmsUrl") %} {% set title %}{% trans "CMS URL" %}{% endset %} {% set helpText %}{% trans "The URL your players use to connect to your CMS." %}{% endset %} {{ forms.input("cmsUrl", title, interface.getSetting("cmsUrl"), helpText) }} {% endif %}{{ available.description }}
{% endif %} {% set title %}{% trans "Enabled?" %}{% endset %} {% set helpText %}{% trans "Connect to this partner" %}{% endset %} {{ forms.checkbox(partnerKey ~ "_enabled", title, interface.getPartnerSetting(partnerKey, "enabled"), helpText) }} {% set title %}{% trans "API Key" %}{% endset %} {% set helpText %}{% trans "Enter your API Key from this SSP." %}{% endset %} {{ forms.input(partnerKey ~ "_key", title, interface.getPartnerSetting(partnerKey, "key"), helpText) }} {% set title %}{% trans "Test mode?" %}{% endset %} {% set helpText %}{% trans "Should we connect to this partners test or production system?" %}{% endset %} {{ forms.checkbox(partnerKey ~ "_isTest", title, interface.getPartnerSetting(partnerKey, "isTest"), helpText) }} {% if available.isWidgetSupported %} {% set title %}{% trans "Use the SSP widget to schedule ad requests manually?" %}{% endset %} {% set helpText %}{% trans "When using the SSP widget you do not need to configure a share of voice, duration or min/max duration." %}{% endset %} {{ forms.checkbox(partnerKey ~ "_isUseWidget", title, interface.getPartnerSetting(partnerKey, "isUseWidget"), helpText) }} {% endif %}To see a list of available partners please enter your API key, save this form and then come back here.
{% endif %}Disabling this connector will stop all displays from making ad requests.
{% endblock %}