Create Admob App Loading Ad on Android

Create Admob App Loading Ad on Android

Tiempo de lectura: 2 minutos Today we are going to learn how to create an app loading ad with Admob on Android. First, we will implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And add in the manifest (below </application>) … Read more

Create Admob Interstitial Ad on Android

Tiempo de lectura: 2 minutos Today we’re going to learn how to implement an Interstitial ad on Android using Java. First, we’ll implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then, we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And add in the manifest (below </application>): <meta-data android:name=”com.google.android.gms.ads.AD_MANAGER_APP” android:value=”true” … Read more

Create rewarded Admob ad on Android

Create rewarded Admob ad on Android

Tiempo de lectura: 2 minutos Today we’re going to learn how to add a rewarded Admob ad on Android using Java. First, we’ll implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And we add in the manifest (below </application>) <meta-data … Read more

Add Ad Consent Message for European Users – AdMob GDPR with Flutter

Add Ad Consent Message for European Users – AdMob GDPR with Flutter

Tiempo de lectura: 2 minutos Today we are going to learn how to implement the mandatory consent message from Google AdMob, which will be requested from European users by the GDPR or GPDR law or Data Protection who want to view the ads of the APP with AdMob. We are going to use the official AdMob package for Flutter (https://developers.google.com/admob/flutter/eu-consent?hl=es-419) … Read more

Adding GDPR European Ad Consent Message with React Native Google Mobile Ads (ADMOB) with Expo

Adding GDPR European Ad Consent Message with React Native Google Mobile Ads (ADMOB) with Expo

Tiempo de lectura: 2 minutos Today we are going to learn how we can add the mandatory ad consent message to comply with GDPR. The first thing we need to do is to have our message set up: https://devcodelight.com/mensaje-consentimiento-conforme-rgpd-para-admob/ NOTE: I am using version 12.2.0 of react-native-google-mobile-ads at least (https://github.com/invertase/react-native-google-mobile-ads) Once configured, let’s go to android/app/proguard-rules.pro and add: -keep class … Read more

Implementing Google Consent for GDPR with React Native

Implementing Google Consent for GDPR with React Native

Tiempo de lectura: 2 minutos Today we are going to learn how we can implement the GDPR consent message with React Native. Let’s install the following library (https://www.npmjs.com/package/@ulangi/react-native-ad-consent) npm install @ulangi/react-native-ad-consent –save Now let’s add this key in info.plist of iOS: <key>GADDelayAppMeasurementInit</key> <true/> Now we open AndroidManifest.xml in case of Android. And add: <meta-data android:name=”com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT” android:value=”true”/> <uses-library android:name=”org.apache.http.legacy” android:required=”false”/> And … Read more

Fixing error Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement when updating Google Play Service Ads.

Fixing error Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement when updating Google Play Service Ads.

Tiempo de lectura: < 1 minuto   When updating the version of com.google.android.gms:play-services-ads: to 2.5.0, you may encounter the following error: A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable > Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement-base-20.1.2-runtim … *Continues with more errors. The issue is that we also need to update the Firebase version. To update it, we should set the version 30.1.0 … Read more

Create a banner with AdMob on Android using Java or Kotlin

Create a banner with AdMob on Android using Java or Kotlin

Tiempo de lectura: 3 minutos Create a banner with AdMob in an Android application is a process that involves several steps. Below, I will provide you with a basic step-by-step tutorial using Java or Kotlin and the AdMob SDK. Step 1: AdMob Configuration Create an AdMob account: If you don’t have an AdMob account yet, go to AdMob and sign … Read more