public final class AdEvents
extends java.lang.Object
Created by Natasha Garner on 04/09/2017.
Modifier and Type | Method and Description |
---|---|
static AdEvents |
createAdEvents(AdSession adSession)
Create ad events instance associated with the supplied ad session.
|
void |
impressionOccurred()
Notify the ad session that an impression event has occurred.
|
public static AdEvents createAdEvents(AdSession adSession)
adSession
- associated with the ad eventsjava.lang.IllegalArgumentException
- if the supplied ad session is null.java.lang.IllegalStateException
- if an ad events instance has already been registered with
the ad session.public void impressionOccurred()
java.lang.IllegalStateException
- if the ad session configuration identifies JAVASCRIPT as the impression ownerjava.lang.IllegalStateException
- if the impression event has already been publishedjava.lang.IllegalStateException
- if the session has already been finished