Serve ads in your Electron app with a few lines of code
Install the rev-utils library to augment your Electron setup with full compatibility for ads. We may occassionally update the package.
After creating window with new BrowserWindow
, pass in the window and
electron
global into setupRevUtils
Under the hood, setupRevUtils
calls two functions on the window
setupLinkHandler
to open ads (and block malicious behavior!)setUserAgent
, which removes non-standard portions of the User Agent string
which may trigger IVT (invalid traffic).