Example 02-1 - Impression tracking VPAID ads



The configuration for this example is:


flowplayer("a.example", "", {
    playlist: [
        {
            url: OVA_HTTP_SHOW_STREAM_1,
            duration: 30
        }
    ],

    plugins: {
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

            "analytics": {
                "google": {
	                "custom": {
                       "enable": true,
                       "accountId": "UA-10158120-1",
                       "impressions": {
                           "linear": "/ova/impression-counter/custom-test/linear",
                           "nonLinear": "/ova/impression-counter/custom-test/nonLinear",
                           "companion": "/ova/impression-counter/custom-test/companion"
                       }
                    }
                }
            },

            "debug": {
                "levels": ""
            },

            "ads": {
                "schedule": [
                    {
                       "position": "pre-roll",
                        "tag": "http://www.adotube.com/kernel/..videoURL=[VIDEO_FILE_URL]"
                    }
                ]
            }
        }
    }
});