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.
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.
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.
Studio
> Player Tags
within AniView and edit the player you have in use.Override Functions
tab and add Post Start
from the dropdown.save
and deploy
the new player scriptp.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);
}
});
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>
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.
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.
For players using the IMA SDK, the IMA integration can be enabled in the client configuration under integrations
, see "Tracking" page.
The implementation depends on the video adserver and prebid implementation with the given player. Please reach out for details.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
The integration of the player can be enabled by asking the account manager of the player to enable the Assertive Yield integration for you.
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."
);
}
Discover helpful resources for deep-dive industry knowledge
Experience faster and more effective assistance with our exclusive AY support
With comprehensive courses and recognizable certificates, take your next steps with us.
Browse an extensive list of industry-related buzzwords and find answers to your questions.
What's new on AY? This collection is an overview of new products and features release in AY tools.