fuse.init()

Type Function
Return value none
Revision Release 2024.3703
Keywords ads, advertising, monetization, fuse, init
See also fuse.checkLoaded()
fuse.show()
fuse.*

Overview

Initializes the Fuse service. It should only be called once.

Upon initialization, a few ads for the default [ad zone][guide.monetization.fuse.zones] will be loaded and cached. Each time an ad is consumed (shown) via fuse.show(), Fuse will attempt to cache ads for the requested zone plus one additional zone. If you want to pre-load ads for a specific zone instead of relying on the initial default cache, call fuse.load() with a specified zone.

Syntax

fuse.init( appID, listener )
appID (required)

String. String containing the Fuse App ID associated with your app.

  • To get a new App ID, create an app in the Fuse dashboard.
  • For an existing Fuse app, navigate to the app home page where you can find the App ID listed directly below the app name shown at the top of the page.
listener (required)

Listener. Listener function that will receive adsRequest events.