Class VastCompanionAd
-
- All Implemented Interfaces:
public final class VastCompanionAdData model representing a VAST companion advertisement.
Companion ads are additional creative elements that accompany the main video advertisement. They can be displayed alongside, before, or after the video ad to enhance the advertising experience. This class encapsulates the dimensional specifications, creative resources, interaction URLs, and tracking information for companion ads.
The model combines tracking data from both inline and wrapper VAST responses, providing a unified view of all tracking requirements for the companion ad.
-
-
Constructor Summary
Constructors Constructor Description VastCompanionAd(Integer width, Integer height, List<Resource> resources, String clickThroughUrl, List<NativeTracker> inlineTrackers, List<NativeTracker> wrapperTrackers)
-
Method Summary
Modifier and Type Method Description final List<NativeTracker>getTrackers()final IntegergetWidth()final IntegergetHeight()final List<Resource>getResources()final StringgetClickThroughUrl()-
-
Constructor Detail
-
VastCompanionAd
VastCompanionAd(Integer width, Integer height, List<Resource> resources, String clickThroughUrl, List<NativeTracker> inlineTrackers, List<NativeTracker> wrapperTrackers)
- Parameters:
width- Width of the companion ad in pixelsheight- Height of the companion ad in pixelsresources- List of Resource instances containing the companion ad creative contentclickThroughUrl- Optional URL to navigate when user clicks on the companion adinlineTrackers- List of NativeTracker instances from inline VAST responseswrapperTrackers- List of NativeTracker instances from wrapper VAST responses
-
-
Method Detail
-
getTrackers
final List<NativeTracker> getTrackers()
-
getResources
final List<Resource> getResources()
-
getClickThroughUrl
final String getClickThroughUrl()
-
-
-
-