onAllComplete
Collapse the table of content
Expand the table of content

AdScheduler.onAllComplete event

Raised when the main content reaches the end and any scheduled post-roll ads are also ended.

Syntax


function handler(adScheduler) { /* Your code */ }
 
// addEventListener syntax
adScheduler.addEventListener("allcomplete", handler);
adScheduler.removeEventListener("allcomplete", handler);
 
- or -

adScheduler.onallcomplete = handler;


Event handler parameters

adScheduler

Type: AdScheduler

The AdScheduler that raised the event.

Remarks

If there are no post-roll ads, the event fires when the main content ends.

Requirements

Client

Windows 10

Namespace

MicrosoftNSJS.Advertising

Library

AdScheduler.js

See also

AdScheduler

 

 

Show:
© 2017 Microsoft