Function requestAd

  • Request the ad using the passed ad tag and returns an array with the VastResponse needed to get an inline ad.

    Parameters

    • adTag: string

      The VAST ad tag request url.

    • options: RequestAdOptions & WrapperOptions

      Options Map. The allowed properties are:

    • vastChain: VastChain = []

      Optional vastChain with the previous VAST responses.

    Returns Promise<VastChain>

    Returns a Promise that will resolve with a VastChain with the newest VAST response at the beginning of the array. If the VastChain had an error. The first VAST response of the array will contain an error and an errorCode entry.

Generated using TypeDoc