Como poner el anuncio intenstitial en android studio

31 views
Skip to first unread message

arturo

unread,
Sep 22, 2018, 6:40:08 PM9/22/18
to Google Mobile Ads SDK Developers
Hola

Me podrian ayudar con el codigo de anuncio intenstitial para ponerlo en android studio 
he visto varios tutoriales pero no me han servido. Quiero poner uno que al ir al siguiente
activity salga el anuncio en pantalla completa. 

no se si tenga que incluir algun boton en main_activity.xml

 

AppsPost

unread,
Sep 23, 2018, 9:58:35 AM9/23/18
to Google Mobile Ads SDK Developers
Hola Arturo, 
para hacer lo que quieres tienes que usar los listener que te ofrece el anuncio. Verificas si el anuncio esta cargado. Si esta cargado muestra el anuncio y al cerrar que pase a la segunda actvidad a donde va el usuario. 

if (mInterstitialAd.isLoaded()) {
                mInterstitialAd
.show();
                mInterstitialAd
.setAdListener(new AdListener() {
                   
@Override
                   
public void onAdClosed() {
                        startActivity
(new Intent(SegundaActividad.this, PrimeraActividad.class));
                   
}
               
});

Te recomiendo usar el id de prueba que ofrece admob para hacer pruebas.

mobileadssdk-a...@google.com

unread,
Sep 24, 2018, 5:28:21 AM9/24/18
to AppsPost, Google Mobile Ads SDK Developers
Hi Arturo,

Thank you for reaching out to us regarding this. Please note that we can only respond to you in the English language so feel free to correct us if we misunderstood your concern.

Do you wish to open a new activity after closing the Interstitial Ad? If so, then you may indeed listen to the onAdClosed event and do any applicable actions as advised in the guide. Just keep in mind the following guidelines when implementing the flow of screens between your full screen Interstitial Ads and your other app screens.
Regards,
Ivan Bautista
Mobile Ads SDK Team


--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/7d34d3c0-5933-4228-a452-930acf9c3b96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

arturo

unread,
Nov 18, 2018, 5:35:56 PM11/18/18
to Google Mobile Ads SDK Developers
gracias lo inplementare, envie la app con puros banner.
Con cual se obtienen mas ingresos?
porque no he ganado mucho, solo 1 peso por dia.

mobileadssdk-a...@google.com

unread,
Nov 18, 2018, 11:36:48 PM11/18/18
to arturo, Google Mobile Ads SDK Developers
Hi Arturo,

Thank you for getting back to us. However, given that we can only respond to you using the English language, feel free to correct us if we misunderstood your concern.

Are you asking which Ad format (whether Banner or Interstitial Ad) will get you more earnings or revenue? If so, then please note that our team (Mobile Ads SDK Team) can only assist you with the code implementation of the Mobile Ads SDK. For any concerns about the performance of your Ad Units, please use this troubleshooter or raise them over to the AdMob Help Forum.

Regards,
Ivan Bautista
Mobile Ads SDK Team



--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages