If you are using version 19 of AdMob and want to upgrade to version 20, you can follow these steps:
Update your AdMob SDK: You need to update your AdMob SDK to version 20. You can do this by downloading the latest version of the AdMob SDK from the AdMob website and updating your code accordingly.
Replace Google Mobile Ads dependencies: In version 20, the Google Mobile Ads SDK no longer contains the AdMob SDK. Instead, you need to use the Google Mobile Ads dependencies. You can do this by updating your build.gradle file to include the following dependencies:
dependencies { implementation 'com.google.android.gms:play-services-ads:20.4.0' }
Update your ad units: Once you have updated your SDK and dependencies, you need to update your ad units to use the new version of AdMob. You can do this by logging into your AdMob account and updating your ad units to use version 20.
Test your ads: Finally, you should test your ads to ensure that they are working correctly. You can do this by using test ads during development and testing.
By following these steps, you should be able to transition from using AdMob version 19 to version 20.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-06-21 18:58:32 +0000
Seen: 13 times
Last updated: Jun 21 '23
Can a transitive dependency in gradle be made exclusively for runtime purposes?
Why can't IntelliJ IDEA detect the Kotlin multiplatform library?
How do compileSdkVersion and targetSdkVersion differ from each other?
What does the error message "Failed to apply plugin [id 'com.jfrog.artifactory']" mean?
Why doesn't the Android Studio display the layout preview once MaterialCalendarView has been added?
How to update the outdated WebSecurityConfigurerAdapter in Spring Boot?
How can we add animation to the user interface using jetpack compose?