google-ima

Google IMA event when Ad video is completed/finished


I am new to Google DFP video / Google IMA service. I am reading the following link:

And I cannot find any event which would tell if the Ad video is finished playing itself.

Is there a such functionality in Google IMA?

ie.

adsLoader.addEventListener(
    google.ima.AdsManagerLoadedEvent.Type[SOME EVENT TYPE HERE],
    [CALLBACK FUNCTION],
false);

Solution

  • I believe this is the one you are looking for

    adsManager.addEventListener(
          google.ima.AdEvent.Type.COMPLETE,
          onAdEvent);