Cross-Platform Ads for iOS+Android+WP8.1/10?

Hi,

Is there a way to use ads (specifically, rewarded video ads) in the 3 platforms?
(not just iOS or just Android, but iOS+Android+WinPhone)

I'm looking for a way to add rewarded ads to my game, but:
1. I can't find a working example for WinPhone.
2. As weird as it may sound, it seems that there is nothing cross-platform when it comes to ads.

I know how to use ads in Windows Phone, but the idea is to work as cross-platform as possible for the 3 platforms at once.

Thanks in advance.

Best Answers

Answers

  • angerurothangeruroth USMember

    Thanks Illedan:
    The FermiContainer seems very interesting, not just for this, although I was trying to avoid separate implementations.
    Anyway, it seems that the only option is to do something like that.

    Thanks Jan:
    At first I was thinking about using banners and a "remove ads" option, but then I found the Unity Ads Survery whitepaper and, after some research, the conclusion was that most people playing puzzle games don't want to pay money but are willing to see video ads, so finally I'll try selling packages of levels using rewarded video ads.
    But I was really suprised about the implementation nightmare, because you can use AdMob, or AdBuddiz, or others, but only for iOS and Android, and even for those the examples I found are different for each platform, so I thought I was looking at it the wrong way.

    I'll keep looking for info about how to implement video ads, but if you find time at the office to bring some light it would be really awesome.

    Thanks again!

  • BrianAustinBrianAustin AUMember ✭✭
    edited November 2016

    I've just done the android version. its a bit laggy in emulator, good on device.
    dont forget to sort your usings out and also add the adbuddiz dll to your references. install Fermicontainer.

    in Mainactivity

    using Hjerpbakk.FermiContainer;

    add a static variable to get the Activity into your CacheAds

    public static Activity current;

    in Mainactivity OnCreate()

            current = this;
            global::Xamarin.Forms.Forms.Init(this, bundle);  this lines already there..
            FermiContainer.DefaultInstance.Register<IAdBuddiz, AndroidAdBuddiz>();
            FermiContainer.DefaultInstance.Resolve<IAdBuddiz>().Init();
    

    android interface instance

    [assembly: Xamarin.Forms.Dependency(typeof(AndroidAdBuddiz))]
    namespace a.Droid
    {
        class AndroidAdBuddiz : IAdBuddiz
        {
            public AndroidAdBuddiz ()
            {
    
            }
            public void Init()
            {
            AdBuddizHandler.Instance.SetPublisherKey("your key");
            AdBuddizHandler.Instance.CacheAds(MainActivity.current);
            }
            public void ShowAd()
            {
                if (AdBuddizHandler.Instance.IsReadyToShowAd)
                {
                    AdBuddizHandler.Instance.ShowAd();
                }
            }
        }
    }
    

    in AndroidManifest.xml

    add an activity to the application tag

                <application android:label="yourGame">
                     <activity android:name="com.purplebrain.adbuddiz.sdk.AdBuddizActivity"
                            android:theme="@android:style/Theme.Translucent" />
                   </application>
    

    Thanks Erik for the pattern :)

  • batmacibatmaci DEMember ✭✭✭✭✭

    Does addBudiz work for UWP as well? beside AdDuplex have you guys found any other possibility? How about Microsoft SDK?

  • Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭
    edited March 2018

    Orther choise https://www.youtube.com/watch?v=CbCR0smKysY

    Using Microsoft Advertising for UWP and Google Admob for Android, iOS.

Sign In or Register to comment.