Package com.castlabs.android.adverts

# Interface ServerAdProvider

All Superinterfaces:
  `AdProvider`

All Known Implementing Classes:
  `HlsInterstitialPlugin`

public interface ServerAdProvider extends AdProvider
Provider responsible for creating server-side ad loaders (for example SSAI solutions).

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AdLoader`
  `createAdLoader(PlayerConfig config)`
  Create a server-side `AdLoader` for the provided `PlayerConfig`.

  ### Methods inherited from interface com.castlabs.android.adverts.AdProvider

  `getName`

- ## Method Details

  - ### createAdLoader

    @Nullable AdLoader createAdLoader(@NonNull PlayerConfig config)
    Create a server-side `AdLoader` for the provided `PlayerConfig`.
    Parameters:
      `config` - The configuration of the playback session.
    Returns:
      A new `AdLoader` instance, or `null` if the provider cannot serve the configuration.