We are using the client Web SDK in JavaScript to be able to send OMID tracking.
When we are about to close an Ad, due to an User Interaction, we call the method adContext.finish() before closing the Ad. The issue is that we do not know "how long" to wait before closing the Ad to be sure the Track is sent.
On a documentation I found on a Java Client, it is said 1 second. However, we found this a bit random when using this approach.
Is there a way to get a kind of promise to be sure when the track is sent ? Such as:
await adContext.finish();
closeAd();
We are using the client Web SDK in JavaScript to be able to send OMID tracking.
When we are about to close an Ad, due to an User Interaction, we call the method
adContext.finish()before closing the Ad. The issue is that we do not know "how long" to wait before closing the Ad to be sure the Track is sent.On a documentation I found on a Java Client, it is said 1 second. However, we found this a bit random when using this approach.
Is there a way to get a kind of promise to be sure when the track is sent ? Such as: