Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NitroAd

Hierarchy

  • NitroAd

Index

Constructors

Properties

Methods

Constructors

constructor

  • Do not call this directly. Use createAd to create placements.

    Parameters

    Returns NitroAd

Properties

id

id: string

The unique id attribute for this placement.

options

Placement settings.

Methods

onNavigate

  • onNavigate(): void
  • In single-page applications, this can be called to clear and refresh the placement when navigating to a different URL.

    remarks

    In an SPA, where navigating to a new page doesn't trigger a full page refresh, you can keep a reference to the NitroAd object you receive when calling createAd, and call this from your framework's navigation event.

    Alternatively, you can remove the container div from the DOM, then recreate it and call createAd again. The div being removed will be detected, and any related resources will be freed.

    Returns void

renderContainers

  • renderContainers(): boolean
  • Returns boolean

Generated using TypeDoc