Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

On This Page:

Plugin Hooks.

Details of the plugin hooks supported by Revive Adserver.

 


General Information

The Revive Adserver system provides a number of standard plugin hooks - locations in the core code base where Revive Adserver will scan for installed plugins, and include the functionality provided by the plugins at that location.

The details below describe the hooks, and how to extend the functionality of Revive Adserver at these points.

3rdPartyServers Hook

To be documented.

bannerTypeHtml Hook

To be documented.

bannerTypeText Hook

To be documented.

deliveryCacheStore Hook

To be documented.

deliveryDataPrepare Hook

To be documented.

deliveryLimitations Hook

The deliveryLimitations hook allows plugins to add capabilities to Revive Adserver for defining delivery rules to be used as part of banner Delivery Options.

Revive Adserver supports 4 different groups within the deliveryLimitations hook:

  • Client
  • Geo
  • Site
  • Time

These groups relate, respectively, to the delivery rules provided by the Client Delivery RulesGeotargeting Delivery RulesSite Delivery Rules and Time Delivery Rules.

Each delivery rule requires two files :

  • One file to define the way the way the rule is displayed in the UI, and how data for the rule is managed/stored:
    • plugins/deliveryLimitations/{$GROUP}/{$RULE}.class.php
      • where {$GROUP} is one of the supported groups listed above; and
      • where {$RULE} is a string representing the delivery rule.
    • The file must define a class of the format:
      • class Plugins_DeliveryLimitations_{$GROUP}_{$RULE} extends Plugins_DeliveryLimitations
    • The class may override methods from the parent Plugins_DeliveryLimitations class as required to define the details of how the delivery rule works.
  • One file to define the way the rule is processed during delivery of banners (i.e. if the rule matches or fails):
    • plugins/deliveryLimitations/{$GROUP}/{$RULE}.delivery.php
    • The file must define a function of the format:
      • function MAX_check{$GROUP}_{$RULE}($limitation, $op, $aParams = array())
    • The function must return:
      • true if the rule passes (and the banner is permitted to be delivered); or
      • false if the rule fails (and the banner is not permitted to be delivered).

deliveryLog Hook

To be documented.

geoTargeting Hook

To be documented.

invocationTags Hook

To be documented.

reports Hook

To be documented.

videoAds Hook

To be documented.

  • No labels