# Package com.google.android.exoplayer2.source.ads

- Interface Summary
  Interface | Description
  --- | ---
  AdsLoader | Interface for loaders of ads, which can be used with `AdsMediaSource`.
  AdsLoader.EventListener | Listener for ads loader events.

- Class Summary
  Class | Description
  --- | ---
  AdPlaybackState | Represents ad group times and information on the state and URIs of ads within each ad group.
  AdPlaybackState.AdGroup | Represents a group of ads, with information about their states.
  AdsMediaSource | A `MediaSource` that inserts ads linearly into a provided content media source.
  ServerSideInsertedAdsMediaSource | A `MediaSource` for server-side inserted ad breaks.
  ServerSideInsertedAdsUtil | A static utility class with methods to work with server-side inserted ads.
  SinglePeriodAdTimeline | A `Timeline` for sources that have ads.

- Exception Summary
  Exception | Description
  --- | ---
  AdsMediaSource.AdLoadException | Wrapper for exceptions that occur while loading ads, which are notified via `MediaSourceEventListener.onLoadError(int, MediaPeriodId, LoadEventInfo, MediaLoadData, IOException, boolean)`.

- Annotation Types Summary
  Annotation Type | Description
  --- | ---
  AdPlaybackState.AdState | Represents the state of an ad in an ad group.
  AdsMediaSource.AdLoadException.Type | Types of ad load exceptions.