Hi Nam,
Thank you for reaching out to us.
Best way to solve the issue is through replication of the behavior. However, you mentioned that there is no known way to replicate the said issue. So, let me just share my thoughts based on the details you have currently shared. It seems like the issue here is you are trying to play the ad without loading the ads or requesting for the ads to be played. You may want to check our SDK Architecture for better understanding on the lifecycle of the SDK.
Additionally, it would also be best to check out Get Started guide and our Android sample apps and use them as reference for your own application to avoid implementation issues.
Lastly, I also noticed that you are still using an older version of the Android SDK. We would recommend to update to the latest version (v3.25.1) to be updated on the latest features and possibly avoid other issues that have been fixed with the latest updates.
Regards,
|
||||||
override fun loadAd(adMediaInfo: AdMediaInfo, adPodInfo: AdPodInfo) {
Log.i(“DEBUG_IMA","loadAd")
this.adMediaInfo = adMediaInfo
if (adMediaInfo != null && adMediaInfo.url != null && adMediaInfo.url.length > 0) {
url = adMediaInfo.url
baseVideoView.setVideoPath(url)
}
}
override fun playAd(adMediaInfo: AdMediaInfo?) {
Log.i(“DEBUG_IMA","playAd")
this.adMediaInfo = adMediaInfo
adsManager?.resume()
didPlay()
}
Hello Nam,
Thank you for responding back to us.
Kindly check our documentation for AdsManager interface, this is the object which handles playing ads after they've been received from the server. After the AdsManager is retrieved from an AdsManagerLoadedEvent, init should be called first. After the LOADED event is fired, start can be called. At any time, destroy can be called to end ad playback.
Additionally, we cannot debug base on your code snippet only. What we can recommend to you is to check our sample apps and use that as reference for your own integration of the SDK to avoid implementation issues. Should you still encounter any issue after doing so, kindly share with us your sample project implementation that can replicate the issue so we can further investigate and the steps to reproduce the behavior.
Regards,