Example 3 - Targetted Ad Delivery

This example delivers only ads that match a "food" category. To achieve this, ads are configured on the OpenX server with a "site variable" called "category" and a value of "food" is assigned.

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 3 - Targetted Ad Delivery
   </ova.title>
   <ova.json>
       {
            "debug": {
              "debugger": "firebug",
              "levels": "OVA_DEBUG"
            },

            "ads": {
                "pauseOnClickThrough": true,
                "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": "OVA_OPENX_API",
                      "customProperties": {
                            "target": [ "category=food", "gender=male" ]
                      }
                   }
              ],
              "schedule": [
                  {
                      "zone": "5",
                      "position": "pre-roll"
                  }
              ]
            }
       }
   </ova.json>
</config>