Documentation Index
Fetch the complete documentation index at: https://docs.overlayed.gg/llms.txt
Use this file to discover all available pages before exploring further.
Before You Begin
Before you start setting up ads, make sure to contact the Overlayed team to discuss ads on your app. We’ll discuss ad positioning, ad units, and more. It’s crucial to start this process early so that we have time to setup the ads before you start using them.Installation
To start with ads, you’ll need to install the@overlayed/ads package:
Setup
Electron
On the electron side, for any BrowserWindow or RenderWindow you create and intend to show ads in, you’ll need to call:Preload
Within your electron app’s preload script, you’ll need to add the following import:Render Process
Within the render process, there are a few more things to set up:Initialization
Call theinit method when your HTML/JS first loads:
Adding the ads script
Use the package helpers to build and mount the script with the correct app domain:getAdsScriptUrl() from @overlayed/ads.

