Skip to content

Promises on AdSession Tracks Issuing #32

@anthonyjlmorel

Description

@anthonyjlmorel

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions