Class ImaAdRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • stallAdTimeoutMs

        public ImaAdRequest.Builder stallAdTimeoutMs​(int stallAdTimeoutMs)
        Parameters:
        stallAdTimeoutMs - Timeout in ms to consider the ad playback stalled and switch to the main content playback
        Returns:
        the Builder
      • scheduleDelayMs

        public ImaAdRequest.Builder scheduleDelayMs​(long scheduleDelayMs)
        Parameters:
        scheduleDelayMs - Time offset that will be added to the current position when manually scheduling ads. Note that this delay is just to allow for a smooth transition to the ad, not to schedule ads in advance.

        The IMA SDK will drop pending ads if they're not played in the seconds following the ad response itself, so the value will be limited to ImaAdRequest.SCHEDULE_DELAY_MAXIMUM_MS.

        Default is ImaAdRequest.SCHEDULE_DELAY_DEFAULT_MS.

        Returns:
        the Builder