Skip to content

Multi-scene projects

The recommended way to use the Admob Plugin in a multi-scene Godot project is as follows:

  1. Create a new scene for managing Ads (ie. named AdManager).
    • Attach a script to the root node
  2. Add an Admob node to the new scene
    • @onready, link to an admob_node variable
  3. Connect all signals and keep all ad logic in this script
  4. From Godot Editor's Project->Project Settings... menu, select the Globals tab
    • Set this new scene as an Autoload

After setting this scene as an Autoload, the Admob Plugin methods can be invoked from any scene as shown in the following example:

AdManager.admob_node.show_banner()