Documentation for Implementing Affiliate Ads Solution into mobile apps

Welcome to the Sonar-Ads implementation guide for Flutter! This documentation will walk you through the steps required to integrate our cutting-edge affiliate marketing ads into your Flutter application. By following this guide, you’ll be able to seamlessly replace traditional ads with high-performing affiliate ads, maximizing your revenue potential and enhancing user engagement.

Our integration process leverages a simple SDK setup, allowing for flexible and dynamic ad management. Once integrated, you can effortlessly update and enhance your ad functionalities without disrupting your app’s performance. Let’s get started with the implementation!

Please follow the steps below to integrate Sonar-Ads into your Flutter app:

  1. Create a libs folder in android->app folder if not exist Copy & Paste .aar file in libs folder.

2. Create a libs folder in android->app folder if not exist Copy & Paste .aar file in libs folder.

3. Add 2 dependencies in App level build.gradle file

implementation(“io.github.kevinnzou:compose-webview-multiplatform:1.9.2”)

implementation(files(“libs/shared-release.aar”))

Note => These dependencies only support in compiledSdk 34 so if not then update to 34

4. Create a channel & channel Method in MainActivty.kt file & Passed Intent to open New SecondActivity.kt.

5. Create a new file SecondActivity.kt and Write code for open Ads View.

6. Register SecondActivity.kt in Android Menifest File.

7. Declare Method Channel In Flutter Code.

9. Declare Method Channel In Flutter Code.

Integration Support

If you encounter any errors or have any questions during the integration process, please don’t hesitate to contact us. Our support team is here to assist you and ensure a smooth implementation.We look forward to helping you successfully integrate Sonar-Ads and unlock the full revenue potential of your app.