Integrations

Video Integration

Video Integration

Video Integration

Supported Players

Self Integration

The players listed below require a code snippet to be added to the page/player. Please see the section of each player for the instructions.

  • AniView
  • Vidazoo
  • IMA SDK (all players that are using the IMA SDK)
  • VideoJS, JW Player, Brightcove and more
Request Integration

The integration of the players below can be enabled by asking the account manager of the corresponding player to enable the Assertive Yield integration for you.

  • Avantis (Check details below)
  • Brid TV (Check details below)
  • Primis
  • Connatix
  • STN (Send to News)
  • VI
  • Unruly
  • Rise (StreamRail, ironSource)
  • Select Media
  • Ex.Co
  • MinuteMedia (Voltex)

AniView

The following describes a possible integration of AniView within the Assertive Yield Revenue Attribution platform.

Note: with the following integration AniView revenue will show up as Prebid. We are working on a core re-design to support additional revenue sources. This is at least three months out, though.

  1. go to Studio > Player Tags within AniView and edit the player you have in use.
  2. switch to the Override Functions tab and add Post Start from the dropdown.
  3. copy the following code into the text box below
  4. save and deploy the new player script
p.on("AdImpression", function (e) {
    var platformCPMFee = 0.2; // your AniView platform CPM fee to be deducted
    var adserverCurrency = "USD"; // currency conversion requires the prebid currency module
    var fallbackConversionRate = 1.0; // conversion rate used when the prebid module is not available (please make sure that a fallback conversion rate is configured in prebid as well)

    try {
        var tagInfo = e.tagInfo ? e.tagInfo : e.data.p1.tagInfo;

        var highestPreBid_partner = "video_unknown";
        if (tagInfo.bidder) {
            highestPreBid_partner = "video_" + tagInfo.bidder;
        } else {
            for (var i = 0; i < tagInfo.vast.length; i++) {
                var vast = tagInfo.vast[i];
                var match = vast.match(/<AdSystem>(?:<!\[CDATA\[)?(.*?)(?:\]\]>)?<\/AdSystem>/);
                if (match) {
                    highestPreBid_partner = "video_" + match[1];
                    break;
                }
            }
        }

        var netCPM = tagInfo.bidCpm - platformCPMFee;
        if (adserverCurrency && adserverCurrency !== "USD") {
            if (pbjs && pbjs.convertCurrency) {
                netCPM = pbjs.convertCurrency(netCPM, "USD", adserverCurrency);
            } else {
                netCPM = netCPM * fallbackConversionRate;
            }
        }

        var data = {
            source: "video",
            slotId: "aniview_video",
            adUnitPath: "aniview_video",
            highestPreBid: netCPM,
            highestPreBid_partner,
            mediaType: "aniview_video",
            creative_width: p.getWidth(),
            creative_height: p.getHeight(),
            preBidWon: true,
            timeToRespond: null,
        };
        window.assertive.logCustomImpression(data);
    } catch (error) {
        console.error("Couldn't log custom impression", error);
    }
});

Vidazoo

For help from the Vidazoo team, please email: pubops@vidazoo.com

Please add data-on-widget-ad-impression="onVidazooWidgetAdImpressionCallback" to your vidazoo tag like this:

<script defer src="https://static.vidazoo.com/basev/vwpt.js" data-widget-id="{{your data widget id}}" data-on-widget-ad-impression="onVidazooWidgetAdImpressionCallback">
<script>
    function onVidazooWidgetAdImpressionCallback(cpm, info) {
        try {
            var highestPreBid_partner = "video_unknown";
            switch (info.adType) {
                case "ima":
                    highestPreBid_partner = "video_AdX";
                    break;
                case "marketplace":
                    highestPreBid_partner = "video_Vidazoo";
                    break;
                case "pre_bid":
                    highestPreBid_partner = "video_" + info.bidderCode;
                    break;
                default:
                    break;
            }
            var data = {
                source: "video",
                slotId: "vidazoo_video",
                adUnitPath: "vidazoo_video",
                highestPreBid: info.netCpm - info.adServingFee,
                highestPreBid_partner,
                mediaType: "vidazoo_video",
                creative_width: info.width,
                creative_height: info.height,
                preBidWon: true,
                timeToRespond: null,
            };
            window.assertive.logCustomImpression(data);
        } catch (error) {
            console.error("Couldn't log custom impression", error);
        }
    }
</script>

Avantis

For the real-time Assertive Yield <> Avantis Integration, please email your Avantis Account Manager and support@avantisvideo.com. They will enable it for you.

Note: by default Avantis does not send revenue data related to Amazon. In order to receive all data, please ask them enable the Amazon revenue reporting.

Brid TV

Note: the integration is currently limited to the Brid Enterprise/Whitelabel Product. Support for other products is planned. Please reach out to your Brid.tv account manager to learn more.

  1. Head to the EDIT SITE level screen in Brid by clicking the gear icon in the top navigation next to the website dropdown.
  2. Look for the "Assertive Yield - Entity Id" option and supply your AY entity id.
  3. Save and within minutes you should see video revenue data populating in AY.

IMA SDK

For players using the IMA SDK, the IMA integration can be enabled in the client configuration under integrations, see "Tracking" page.

VideoJS, JW Player, Brightcove and more

The implementation depends on the video adserver and prebid implementation with the given player. Please reach out for details.

Primis

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

Connatix

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

STN (Send to News)

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

VI

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

Unruly

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

Rise (StreamRail, ironSource)

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

Select Media

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

Ex.Co

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

MinuteMedia (Voltex)

The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.

Currency Control

Assertive Yield expects the revenue data in the currency of your Google Ad Manager Account. Should the player report impressions in a different currency, conversion is necessary.

To convert the impression CPM you can apply a static conversion, implement a custom dynamic system or use the prebid currency module if available before passing it to logCustomImpression e.g.

var videoCurrency = "USD";
var gamCurrency = "EUR";
if (typeof pbjs.convertCurrency === "function") {
    bidCPM = pbjs.convertCurrency(bidCPM, videoCurrency, gamCurrency);
} else {
    throw new Error(
        "Currency module not found - can't convert bid currency " +
            videoCurrency +
            " to gam currency " +
            gamCurrency +
            ", skipping."
    );
}
This website uses cookies.   Learn more