Get Filthy Rich by Monetizing Your Xamarin.Forms App with AdMob

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • Monetizing your app can be a nice way to get something back for the effort and love that you've put into your Xamarin.Forms app. One way of doing it is by adding ads to your app. In this video I will show you how you can include Google AdMob ads in your Xamarin.Forms application without too much hassle.
    We will learn about a plugin that you can use for this, how to show banners, interstitial ads and even reward video advertisements!
    💝 Join this channel to get access to perks:
    / @jfversluis
    🛑 Don't forget to subscribe to my channel for more amazing content: th-cam.com/users/GeraldVerslui...
    🐦 Follow me on Twitter: / jfversluis
    🔗 Links
    Sample code Repo: github.com/jfversluis/XFAdMob...
    Plugin Repo: github.com/marcojak/MTAdmob
    Plugin Blogpost:www.xamarinexpert.it/admob-ma...
    Xamarin Forms Repo: github.com/xamarin/Xamarin.Forms
    ⏱ Timestamps
    0:00 Intro
    0:30 AdMob Plugin Blogpost & GitHub Repository
    2:00 Outline Sample App
    2:35 Install ATAdMob NuGet
    3:40 Important Note About the IDs for Testing
    4:20 Make iOS and Android Apps Metadata Ready for Showing Ads
    6:48 Add Initialization Code
    9:30 Implement Banner Ad
    11:25 Run Sample App (Banner Ad)
    11:57 Important Notes About Privacy!
    13:10 Implement Video Reward and Interstitial Ads
    18:04 Run Sample App (Video and Interstitial)
    19:15 Where to Find the IDs in Google AdMob
    20:58 Outro
    🎥 Video edited with Camtasia (ref): techsmith.z6rjha.net/AJoeD
    🙋‍♂️ Also find my...
    Twitter: / jfversluis
    Blog: blog.verslu.is
    Twitch: / jfversluis
    All the rest: jfversluis.dev
    #XamarinForms #Monetization #AdMob #ads #earnmoney #ios #android #Xamarin
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 113

  • @Otonium
    @Otonium 2 ปีที่แล้ว +5

    Looking forward for the MAUI version of this video! Thank you! (Because I can't find any samples so far)

    • @PostJJJJJJJJJJ
      @PostJJJJJJJJJJ 5 หลายเดือนก่อน +1

      Not even a single Video of it and already 1 year passed..

  • @michaelgamble2453
    @michaelgamble2453 3 ปีที่แล้ว +1

    Great this gives me some ideas for projects I'm mulling over! Thanks!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      I’m sure they’ll be a great succes!

  • @Roudter
    @Roudter 2 ปีที่แล้ว +1

    Hey brother...This was a perfect 'getting started' tutorial. Thank you.

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Awesome! Thanks for watching!

  • @XRando78X
    @XRando78X 3 ปีที่แล้ว

    Extremely helpful, thank you!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Glad you think so! Thanks!

  • @ahmadpayab4852
    @ahmadpayab4852 2 ปีที่แล้ว

    As always another great tutorial
    thank you

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Glad you liked it!

  • @decode222
    @decode222 3 ปีที่แล้ว

    Thanks man, good content

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Glad you liked it! Good comment! 😉

  • @moatasemkremed5395
    @moatasemkremed5395 3 ปีที่แล้ว +1

    On fire 🔥

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Don't set the money on fire! 🙀

  • @BlyZeHD
    @BlyZeHD 2 ปีที่แล้ว +1

    It did everything like shown and my app wont load anymore :(

  • @jaikumaran2607
    @jaikumaran2607 3 ปีที่แล้ว +1

    Hi Gerald, great tutorial/info.
    Regarding the "App Id" you used in the video, it is test Id. so for real application all the test "App Id" need to be replaced with real one is it? if so, where should I look for the Id? is it from AdMob page or i need personally look for it somewhere?
    Have a great day!!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      I think I mention this in the video, right? Yeah, just get those IDs from your account and put them in the right properties. The IDs you should use are specific to you.

    • @jaikumaran2607
      @jaikumaran2607 3 ปีที่แล้ว

      @@jfversluis got it man. Btw when I can't use the Android.Gms.Ads in the main activity. The intelisense unable to find it. But the NuGet package is installed properly. Not sure what I am missing😅😅😅.

  • @MarioStaats
    @MarioStaats 3 ปีที่แล้ว +1

    Awesome Tutorial @Gerald Versluis. Just to ask, can you show how to integrate that in a MonoGame-Android-App? Its really hard to find something useful, like your videos. *thumbsUp*

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      I don't think I'll be able to do that easily because I'm not entirely sure what you mean... But I think that specifically is something I don't have much experience with. It sound more like something Android native? In that case what you could do is look at the source for this plugin, take the renderer on Android and implement that natively in your app :)

  • @devanandkumar9429
    @devanandkumar9429 ปีที่แล้ว

    it's not working on the Android 12 or sdk 31 or more version. i have tried to solve it but it has not been successful. Please help..

  • @tariqalsunaydih4410
    @tariqalsunaydih4410 2 ปีที่แล้ว

    I'm Facing this problem While Testing . And try to find solution for days !!
    Error MT1303: Could not decompress the native framework 'FBLPromises.framework' from '/Users/macbook/Projects/Qilat/Qilat.iOS/obj/iPhoneSimulator/Debug/device-builds/iphone 13 pro max-15.0/mtouch-cache/FBLPromises.framework.zip'. Please review the build log for more information from the native 'unzip' command. (MT1303)

  • @84TimmermanJ
    @84TimmermanJ 2 ปีที่แล้ว

    Hi Gerald. Thank you for your tutorial, it helped me a lot. I still have one question. What can we do to make sure the user keeps seeing ads if the smartphone or tablet is offline? I've noticed all apps are turned of when there is no internet connection. Of course this is logical but maybe there is a workaround so the user doesn't notice he won't get any ads when internet is off. Thank in advance!

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      There is an event for when the ads fail to load. Hook into that and hide the control at that point :)

  • @hrishikeshgarud7177
    @hrishikeshgarud7177 2 ปีที่แล้ว +1

    In my application only test ads are working. Real ads are not appearing.
    I have checked the the app id and ad ids are correct. Any solution?
    Real ads are not appearing from 3 days.

    • @sivakumar7060
      @sivakumar7060 2 ปีที่แล้ว +2

      I hope you fix that issue..!

  • @4Asteria
    @4Asteria 2 ปีที่แล้ว

    Hello Gerald,
    Thanks for showing.
    One question that came up here is:
    Is there a way to set the color on both sides of the banner if it does not cover the whole width of the screen?
    Greetings

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Good question! Can’t you set a backgroundcolor? 😅

    • @4Asteria
      @4Asteria 2 ปีที่แล้ว

      @@jfversluis in a quick test the BackgroundColor only shows above and below if the height is larger than the bannerAd
      Any way, thanks for your reply.
      Really appreciate your work here

  • @madraven37
    @madraven37 3 ปีที่แล้ว +1

    Thank you. Not all heroes wear capes..

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Haha thank you! :D

    • @madraven37
      @madraven37 3 ปีที่แล้ว

      @@jfversluis sir, I just want to clarify, does the ad show even if the app is still in development or not yet uploaded in the App Store?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      I think it should yes

  • @fadge316
    @fadge316 2 ปีที่แล้ว

    Hey, thanks for the tutorial! I've found that the ad initially showed and now every time I run the app, it's not showing. Any ideas as to why this would happen? I haven't changed any of the code so it just seems weird. Also, sometimes the deploy will fail but there's no errors shown
    Edit:
    I am running Android btw

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      I think it takes a while before it knows what ads to serve and it will also see that you're running it yourself. But its very hard to say without knowing the project, sorry

  • @innomotionmedia4039
    @innomotionmedia4039 3 ปีที่แล้ว

    also the banner isnt showing if no height request is set.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      I think I mentioned that in my video, did I forget? 🙀

  • @ashutoshrajput6877
    @ashutoshrajput6877 3 ปีที่แล้ว

    I am learning Xamarin and found it quite interesting but there are no Xamarin jobs in the market so what is the future of Xamarin Developers?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +5

      I wish I had a crystal ball and knew the answer to that! Also, that question is very dependant on where you are in the world. Where I am there definitely are Xamarin jobs. Keep looking, I know they are out there and hopefully it will become more and more with .NET MAUI in the future!

  • @LisaLiel
    @LisaLiel ปีที่แล้ว

    Hi Gerald. I downloaded your sample code, and found an issue. When I run it, the header and the buttons show up, but the banner does not. If I click one of the buttons and the close the video or interstitial, the banner appears. Do you know what could be causing this?

    • @jfversluis
      @jfversluis  ปีที่แล้ว

      Without a valid ID that links to your advertising account it won’t work :)

    • @LisaLiel
      @LisaLiel ปีที่แล้ว

      @@jfversluis The thing is, I didn't change anything. So it still had your app ID in it. And the test ads work, except that the banner ad won't appear until after either the interstitial or the video run. It's odd.

  • @EdJastre
    @EdJastre 2 ปีที่แล้ว

    Hi, My Ads is not working anymore, it says that the Ad serving is limited on website, I added my personal device as Tester device, removed all the Banners Ids 3 times, What else can I do? Create another account for AdMob? AdMob don't answer my questions! Thanks

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      I'm no AdMob expert unfortunately, this is really something they should answer

  • @xskodemedia746
    @xskodemedia746 8 หลายเดือนก่อน

    so this does not work with maui i followed step by step and just errors after uninstalling from nuget then the maui project for android could build

    • @jfversluis
      @jfversluis  8 หลายเดือนก่อน +1

      There definitely is also a version available that works with .NET MAUI

    • @xskodemedia746
      @xskodemedia746 8 หลายเดือนก่อน

      @@jfversluis okay I'll check that one out

  • @loubarr1957
    @loubarr1957 2 ปีที่แล้ว

    Hey - AWESOME VIDEO! I have a question...my real ads aren't working (I've had them >24hours). Is this because of debug mode/not on the app stores? Cant get them to load! Thanks!

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      Thanks! It can be a lot of things. Try to see in the AdMob portal what you can find in the logging etc. as well

    • @loubarr1957
      @loubarr1957 2 ปีที่แล้ว +1

      @@jfversluis okay thanks… I love the fact you reply to your comments. Hands down the best TH-cam channel going!!!

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      @@loubarr1957 Thanks Lou! Trying my best to keep up with them :) We're in this together!

  • @cissemy
    @cissemy ปีที่แล้ว

    HI Gerard,
    The ad banner does not show up on iphone simulator but does on android.

    • @jfversluis
      @jfversluis  ปีที่แล้ว

      Check log out put or maybe something on the Adsense portal. It can be a million reasons, hard to say without any information

  • @hmphibrizo
    @hmphibrizo 5 หลายเดือนก่อน

    No se puede resolver el tipo de interfaz "Android.Gms.Ads.Reward.IRewardedVideoAdListener". ¿Le falta una referencia de ensamblaje?

    • @hmphibrizo
      @hmphibrizo 5 หลายเดือนก่อน

      retrogradale

  • @yuray6800
    @yuray6800 ปีที่แล้ว

    Hi, Is possible to preload Interstitial Ad so after pressing button i dont gonna have delay.

    • @jfversluis
      @jfversluis  ปีที่แล้ว +1

      Sure, it's described in the README: github.com/marcojak/MTAdmob#rewarded-video

    • @yuray6800
      @yuray6800 ปีที่แล้ว

      @@jfversluis thank you sir

  • @MuhammadNadeem-wj6xd
    @MuhammadNadeem-wj6xd ปีที่แล้ว

    Hi @Gerald I'm getting this error Failed to load ad: 3 (on rewarded video show).

    • @jfversluis
      @jfversluis  ปีที่แล้ว +1

      Check to see if you can find any more details

    • @MuhammadNadeem-wj6xd
      @MuhammadNadeem-wj6xd ปีที่แล้ว

      @@jfversluis i spent 3 days on it but no success just rewarded video issue even I'm working with test app id and unit id.

  • @YoUserExp
    @YoUserExp 3 ปีที่แล้ว

    Hey Gerald, You had mentioned the other day to message you on Twitter but I cannot find your account.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      WHAAAAT? Yeah my TH-cam is the only one that's different. Everywhere else you can find me with jfversluis

  • @NicolajHansen-bi7bk
    @NicolajHansen-bi7bk ปีที่แล้ว

    Did anyone had a problem where the retarded add could only be shown once, then you had to restart app to see it again. Anyone have a fix for this? The problem is only on IOS

  • @chandrasekharpatra6317
    @chandrasekharpatra6317 3 ปีที่แล้ว

    Hey Herald...This is great...I am also a Xamarin developer...How much we can earn by monetizing our app ?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +2

      That’s hard to say :) it depends on multiple factors like who the target audience of you app is, how long their sessions are, how much ads you’re showing etc.

    • @chandrasekharpatra6317
      @chandrasekharpatra6317 3 ปีที่แล้ว

      @@jfversluis Thanks....Dear Gerald....how to protect or encrypt sqlite database in xamarin forms....and how to use root checker in xamarin forms....can u plz help on these two things....Thanks

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      @@chandrasekharpatra6317 For the root detection you might be able to use this: github.com/nmilcoff/BreachDetector
      The encryption of the database I don't have any experience with that at the moment, sorry!

  • @philippedoumet6073
    @philippedoumet6073 3 ปีที่แล้ว

    Thanks :))

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Hope it helped!

    • @philippedoumet6073
      @philippedoumet6073 3 ปีที่แล้ว +1

      @@jfversluis I'll try it now and let you know

    • @philippedoumet6073
      @philippedoumet6073 3 ปีที่แล้ว

      @@jfversluis Actually, it did not worked... when I download the nuget package it is showing an error...

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Probably need to check the minimum requirements!

    • @philippedoumet6073
      @philippedoumet6073 3 ปีที่แล้ว

      @@jfversluis yeah i think that i must update my visual studio

  • @ralph7503
    @ralph7503 ปีที่แล้ว

    Does this work for MAUI as well?

    • @jfversluis
      @jfversluis  ปีที่แล้ว +1

      There is a .NET MAUI version available

    • @shiruogamingtv312
      @shiruogamingtv312 ปีที่แล้ว

      @@jfversluis I tried it but for the iOS it is a messed up chaos, especially the 260 maxlength character permission when building the iOS app for testing so I just quit the MAUI project and started it over in Xamarin

    • @ralph7503
      @ralph7503 ปีที่แล้ว

      @@jfversluis I got it working after changing my directories to a shorter location, Jesus Christ I was going crazy why this wasn't working.

  • @Tronex2009
    @Tronex2009 2 ปีที่แล้ว

    Well well well... and now you could make an update showing how to monetize a .NET MAUI app, right?

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Well, well, well. I guess I could, but it would be 90% the same! That's the great thing about .NET MAUI

    • @Tronex2009
      @Tronex2009 2 ปีที่แล้ว

      Since it's about the last 10% (because currently there is no NuGet package for Admob supporting MAUI yet), this would be a quicktip video then... :D Imagine people being able to monetize their MAUI apps right from when it goes GA...

  • @LobsterHarry
    @LobsterHarry 3 ปีที่แล้ว

    Now I make you responsible for all the future spam I will get !!! ;-)

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Hahaha sorry! 😬

  • @SponsorElite
    @SponsorElite 2 ปีที่แล้ว

    Damn its not working for maui :D

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      Nope! Plugins need to be updated to work with .NET MAUI

    • @davidblaine9795
      @davidblaine9795 2 ปีที่แล้ว

      @@jfversluis the developer is already working on it

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      @@davidblaine9795 perfect, thanks for letting me know!

  • @RenegadeVile
    @RenegadeVile 3 ปีที่แล้ว

    If only app monitizations practices weren't so terribly toxic and abused.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      With great power comes great responsibility....

  • @futcalculator1708
    @futcalculator1708 3 ปีที่แล้ว

    the start is so cringe...

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +2

      So cringe that it’s good?

    • @futcalculator1708
      @futcalculator1708 3 ปีที่แล้ว

      @@jfversluis Lets hope so!

    • @john93562
      @john93562 2 ปีที่แล้ว

      haha, it's actually really great. Thank you Gerald for the awesome videos!

  • @poraddd
    @poraddd ปีที่แล้ว

    anyone got filthy rich?

  • @davidblaine9795
    @davidblaine9795 2 ปีที่แล้ว

    For anyone having the issue with "Targeting S+ requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE..." (API 31 Android 12), install this NuGet Package: Xamarin.AndroidX.Work.Runtime 2.7.0

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      Thanks for sharing!