08-11-2011 11:25 AM
I recently ran into an issue where a video was embedded on a third-party site and that site drove an inordinate amount of traffic to our system. The vendor thought we spammed the video since we reached our monthly campaign goals in a matter of minutes.
Is it possible to disable ads on a player if that player is embedded on a third-party domain? For example, any player embedded on mysite.com would roll pre-roll but if someone embeds a video on yoursite.com the ads are disabled automatically but NOT on mysite.com
08-18-2011 04:05 PM
You could write a plugin to check the root domain of the page, and if it's not mysite.com just disable advertising using the setAdPolicy() method of the advertising module. Because of the way some sites work with embedding Flash players (like MySpace), you won't always be able to read the domain of the page, which is normally done with getExperienceURL() of the experience module through the API. But if you couldn't read the domain, you could always default to having ads off.