Skip to content

Commit

Permalink
Update gms ads to latest 23.0.0 (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-lucas-bon authored Apr 8, 2024
1 parent 90cfb83 commit b982e09
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AdMobRecyclerViewAdapter(admobBannerId: String, context: Context?, title:

// 2. Setup the AdMob view
adView.adUnitId = admobBannerId
adView.adSize = AdSize.MEDIUM_RECTANGLE
adView.setAdSize(AdSize.MEDIUM_RECTANGLE)

// 3. Subsribe to the listener if needed
adView.adListener = object : AdListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AdMobScrollViewFragment : BaseFragment() {
// 2. Create AdMob view, setup and add it to view hierarchy
val adView = AdView(view.context)
adView.adUnitId = AdMobIdentifier.getAdUnitFromPid(pid)
adView.adSize = AdSize.MEDIUM_RECTANGLE
adView.setAdSize(AdSize.MEDIUM_RECTANGLE)
binding.adSlotView.addView(adView, 0)

// 3. Attach listener (will include Teads events)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AdMobWebViewFragment : BaseFragment(), SyncAdWebView.Listener {

webviewHelperSynch.registerAdView(adView)
adView.adUnitId = AdMobIdentifier.getAdUnitFromPid(pid)
adView.adSize = AdSize.MEDIUM_RECTANGLE
adView.setAdSize(AdSize.MEDIUM_RECTANGLE)

// 4. Create the TeadsAdapterListener
mListener = object : TeadsAdapterListener {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tv.teads

object AndroidLibConfig {
const val compileSdk = 31
const val minSdk = 19
const val compileSdk = 33
const val minSdk = 21
const val targetSdk = 28
}
2 changes: 1 addition & 1 deletion TeadsSDKDemo/buildSrc/src/main/java/tv/teads/Libs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ object Libs {
const val APPLOVIN_SDK = "com.applovin:applovin-sdk:11.3.0"

const val MATERIAL = "com.google.android.material:material:1.4.0"
const val PLAY_SERVICES_ADS = "com.google.android.gms:play-services-ads:20.2.0"
const val PLAY_SERVICES_ADS = "com.google.android.gms:play-services-ads:23.0.0"

const val HUAWEI_IDENTIFIER = "com.huawei.hms:ads-identifier:3.4.28.313"

Expand Down

0 comments on commit b982e09

Please sign in to comment.