Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizmarcus/66c254f25cfb2668a9bb768abce678e4 to your computer and use it in GitHub Desktop.
Save luizmarcus/66c254f25cfb2668a9bb768abce678e4 to your computer and use it in GitHub Desktop.
void handleEvent(
AdmobAdEvent event, Map<String, dynamic> args, String adType) {
switch (event) {
case AdmobAdEvent.loaded:
print('Novo $adType Ad carregado!');
break;
case AdmobAdEvent.opened:
print('Admob $adType Ad aberto!');
break;
case AdmobAdEvent.closed:
print('Admob $adType Ad fechado!');
break;
case AdmobAdEvent.failedToLoad:
print('Admob $adType falhou ao carregar. :(');
break;
default:
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment