com.brightcove.ssai.ad

## Class Ads

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

-     public class Ads
      extends java.lang.Object

  Contains helper static methods related to `Ad`.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T,T2> Ad` | `create(java.lang.String id, java.lang.String title, com.brightcove.ssai.ad.Creative<? extends T2> creative, Multimap<Ad.TrackingType,TrackingEvent> trackingMultimap, T rawAd)` Creates an Ad with the provided `Creative`.
    `static Ad` | `invalid()`
    `static boolean` | `isValid(Ad ad)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### create

          public static <T,T2> Ad create(@NonNull
                                         java.lang.String id,
                                         @NonNull
                                         java.lang.String title,
                                         @NonNull
                                         com.brightcove.ssai.ad.Creative<? extends T2> creative,
                                         @NonNull
                                         Multimap<Ad.TrackingType,TrackingEvent> trackingMultimap,
                                         @NonNull
                                         T rawAd)

      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)