Skip to content

MilesAdamson/banner_ad_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banner Ads

Setup Steps (Android)

  1. Increase the minSdkVersion of android/app/build.gradle to 19
defaultConfig {
    applicationId "com.example.banners"
    minSdkVersion 19
    targetSdkVersion flutter.targetSdkVersion
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}
  1. Increase the kotlin version of android/build.gradle
buildscript {
   ext.kotlin_version = '1.4.32'
   repositories {
     google()
     mavenCentral()
   }

   ...
}
  1. Add a meta-data to the application section of the Android Manifest. Below is a test app id you can use
<meta-data
       android:name="com.google.android.gms.ads.APPLICATION_ID"
       android:value="ca-app-pub-3940256099942544~3347511713"/>
  1. Run the app with your device, and find the device id in the console. Change kTestDeviceId
// The id of your own device should log to the console
const kTestDeviceId = "1630739AA7A907A2D01D5D2C47268D3F";

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published