Is it possible to edit game apk in android studio & integrate ad there?

So I’m trying to implement third party ads (other than admob), it’s looking not possible to do so without plug in. So is that possible to export the android game to Android Studio (official) and then edit it to integrate ads, either way saying is it possible to edit the apk of the android game (made using unreal) and integrate ad there and recompile.

Unrealop,

We use AndroidWorks with UE4. So if you’d like to use Android Studio instead, you’ll need to research their documentation and see how to implement in with what we use. We do have documentation set up for [using in-game advertisements][1]. Also keep in mind that Unreal Match 3 is a great project to download as you can go into it and break it apart and see how the advertisements work.

Good luck!

Using In-Game Ads in Unreal Engine Projects on Mobile Platforms | Unreal Engine 5.1 Documentation

It is possible to open the project in Android Studio. You can use File->New->Import Project and the navigating to your project-directory\Intermediate\Android\APK . The Android studio will import that project and it will also generate the Gradle configuration files.

May be you can add ads there, I am not sure about that.