getAds

abstract fun getAds(): List<Ad>

Returns the list of Ads in the media item

Important: In DAI, Google does not give the list of all ads that will be stitched in the video. It gives one by one once it is its turn to be played.

This method will return only the ads that were already played.

Return

the list of Ad available in the timeline.