stopDynamicPlacements
Overview
Section titled “Overview”Stops the dynamic placement polling loop. No new placement divs will be created until a page-transition refreshAds call restarts polling.
Example
Section titled “Example”window.htag.api('1').stopDynamicPlacements();
// Resume polling on the next page transitionwindow.htag.api('1').refreshAds({ pageTransition: true });Calling refreshAds({ elementIds: [...] }) does not restart dynamic placement polling unless you also set pageTransition: true.
Parameters
Section titled “Parameters”None.
Return Value
Section titled “Return Value”Returns the Htag API object, allowing for method chaining.
Related Concepts
Section titled “Related Concepts”- Dynamic Placements: How dynamic placements work
- refreshAds: Page-transition refresh behavior