getAd

open override fun getAd(adContext: AdContext, adRequestInfo: StorytellerAdRequestInfo, onComplete: (StorytellerAd) -> Unit, onAdFallbackRequest: (StorytellerAdLoadError) -> Unit, onError: (StorytellerAdLoadError) -> Unit)

Legacy SDK module entry point without slot context.

GAM VAST requires AdSlot state to coordinate fallback and deferred VAST error firing, so this overload always fails and allows the caller to surface the configuration mismatch.


open override fun getAd(adContext: AdContext, slot: AdSlot, adRequestInfo: StorytellerAdRequestInfo, onComplete: (StorytellerAd) -> Unit, onAdFallbackRequest: (StorytellerAdLoadError) -> Unit, onError: (StorytellerAdLoadError) -> Unit)

Loads a GAM VAST-backed StorytellerAd for the supplied slot.

The request uses the GAM VAST endpoint, callback-derived request parameters, and query-string serialization. Results are returned through the standard SDK callbacks on the main thread.