Class Ads

java.lang.Object
com.brightcove.ssai.ad.Ads

public class Ads extends Object
Contains helper static methods related to Ad.
  • Method Details

    • create

      public static <T, T2> Ad create(@NonNull String id, @NonNull String title, @NonNull String adSystem, @NonNull com.brightcove.ssai.ad.Creative<? extends T2> creative, @NonNull Multimap<Ad.TrackingType,TrackingEvent> trackingMultimap, @NonNull T rawAd, String creativeId, String creativeAdId)
      Creates an Ad with the provided Creative.
      Parameters:
      creative - The creative from the ad.
      trackingMultimap - The Multimap of the tracking events.
      Returns:
      instance of an Ad.
    • invalid

      public static Ad invalid()
    • isValid

      public static boolean isValid(Ad ad)