Ad Management SPA mode

Ad Management SPA mode

In order to correctly manage ad calls between different pages of an SPA site, we provided two ways to detect a page change.

⚠️ This requires an activation from your Pubstack representative. Both for manual or auto mode.

auto

This mode look for URL’s changes, and modification in the <head> of the page. The check is simple and can cover simple cases, but is not enough to cover all publishers different setup.

manual

This mode give the publisher the freedom to fire the “page change” event when in need. In this way all needed modification (ex: page context, divs change) can be made on the page before our reload.

To send the event, please add this line in your script:

window.dispatchEvent(new CustomEvent('admSPAReload'));