Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

AdUnitId Set For Admob Without MVVM

$
0
0

I have followed https://xamarinhelp.com/admob-xamarin-forms-display-google-ads-mobile-app/ and set upAdMob for my Xarain Forms app and it displays on both iOS and Android. The problem is trying to set the correct AdunitId after determining iOS versus Android. I have tried the code in many places and it compiles fine in one instance but returns an error that you can only set the AdUnitId once. Does anyone have a non-NVVM working solution for setting that?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>