The bot owner is also providing "ad space" to Google. Author pays Google to show the ad. Bot owner gets paid by Google to "display" that ad and for conversion. The bot themselves aren't getting paid for installing the application.
In a normal scenario, the provider of ad space would be a website or an application. Google would pay the owner of that space. On Youtube, that would be an ad served by Google paid to the channel owner.