iOS uses e.g.) playerConfig.styleConfig.userInterfaceType = .system to set the user interface type.
In the Bitmovin SDK, I was told that IMA could not search for clickTrackingUrl because there was no getter in Google IMA. As a result, you cannot get clickTrackingUrl directly from Bitmovin.
To solve this problem, I have to run the same thing as the behavior of GoogleIMAadsManager.clicked(). However, the method cannot be executed in the current Bitmovin SDK.
If any users have successfully implemented the loading of clickTrackingUrl into an advertising server on an Android or iOS app using BitmovinPlayer customUI, please share your solution.
I haven’t solved it, but if you have an idea, it would be very helpful for me to share it.
Thank you.
Thanks for pointing out that this API is missing in our iOS SDK for the described use-case. Please open a feature request as described here so we can track it internally.
Good news, we just released version 3.56.0 of our iOS Player SDK where we added the possibility to access the GoogleIMAadsManager.clicked API through our SDK.
You can access it by doing something like:
var imaAdsManager: ImaAdsManager?
let adConfig = AdvertisingConfig(...)
adConfig.ima.preferredUiType = .disabled
adConfig.onAdsManagerAvailable = { adManager in
imaAdsManager = adManager
}
and when you need to handle the click, simply call:
Thank you for the feedback. I’ve confirmed version 3.56.0 and verified that the clickTracking Count is correctly incremented only once when operated according to the sample code.
I have a request. Could you please provide the Android sample code, similar to iOS, that uses AdvertisingConfig.ima.onAdsManagerAvailable?