Class 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<? extends T2> creative, @NonNull Multimap<Ad.TrackingType,TrackingEvent> trackingMultimap, @NonNull T rawAd, String creativeId, String creativeAdId)
      Creates an Ad with the provided Creative.
      creative - The creative from the ad.
      trackingMultimap - The Multimap of the tracking events.
      instance of an Ad.
    • invalid

      public static Ad invalid()
    • isValid

      public static boolean isValid(Ad ad)