Configure AdMob

Modified on Thu, 11 May, 2023 at 4:09 AM

1. Make sure you have an AdMob account, If you haven't created an AdMob account, please signup here.


2. Login into AdMob console.


3. Select menu Apps and click ADD APP.



4. Setup your app with these options.





5. Create your ad units (currently iniNews only support interstitial and banner ads but you can add more type of ads into it).





Setup Banner Ad Unit


5.1.1 To create banner ad, click Select on Banner.


5.1.2 Add the name of your ad unit in Ad unit name for your Banner Ad (for example "Test Banner Ad") then click Create ad unit.



5.1.3 You will get these IDs.



5.1.4 Then you must open your project folder on Android Studio or VS Code to implement above IDs on your app.


5.1.5 Open AndroidManifest.xml on android\app\src\main\AndroidManifest.xml then change the value under com.google.android.gms.ads.APPLICATION_ID with your AdMob App ID.



5.1.6 Then go to lib\ad_helper.dart and change bannerAdUnitId with your banner Ad unit ID.



5.1.7 You banner ad has already set-up and is ready to be shown.



Setup Interstitial Ad Unit


5.2.1 To create interstitial ad, click Select on Interstitial.


5.2.2 Add the name of your ad unit in Ad unit name for your Interstitial Ad (for example "Test Interstitial Ad") then click Create ad unit.



5.2.3 You will get these IDs. 



5.2.4 If you already setup your AdMob App ID, skip this step. If not, please follow step 5.1.5 to implement your AdMob App ID.


5.2.5 Then go to lib\ad_helper.dart and change interstitialAdUnitId with your interstitial Ad unit ID.



5.1.6 Your interstitial ad already set-up and ready to be shown.


6. Then rebuild the app.





Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article