Exemple #1
0
 //protected
 protected override bool DoAdapterInit(SDKConfig config, SDKAdapterConfig adapterConfig)
 {
     m_Config = adapterConfig as FacebookAdsConfig;
     if (m_Config.isDebugMode)
     {
         AdSettings.AddTestDevice("6275f42bceb568babc15c283a4b9de8b");
     }
     return(true);
 }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            AdSettings.AddTestDevice("767abfa11a47905b3664bea003979b22");

            SetContentView(Resource.Layout.main_activity);

            FindViewById <Button>(Resource.Id.buttonBannerAd).Click += (sender, e) =>
                                                                       StartActivity(typeof(BannerAdActivity));

            FindViewById <Button>(Resource.Id.buttonInterstitialAd).Click += (sender, e) =>
                                                                             StartActivity(typeof(InterstitialAdActivity));

            FindViewById <Button>(Resource.Id.buttonNativeAd).Click += (sender, e) =>
                                                                       StartActivity(typeof(NativeAdActivity));
        }
    void Awake()
    {
        instance = this;
        if (init == false)
        {
            init = true;
#if BLACK_FACEBOOK
            if (Application.isEditor == false)
            {
                FB.Init(OnInitComplete, OnHideUnity);
            }
#endif
        }

        if (Application.isEditor == false)
        {
            foreach (var deviceId in PlatformInterface.instance.config.FacebookAdsTestDeviceIdList)
            {
                AdSettings.AddTestDevice(deviceId);
            }
        }
    }
Exemple #4
0
 public static void AddTestDevices()
 {
     AdSettings.LogLevel = AdLogLevel.Log;
     AdSettings.ClearTestDevices();
     AdSettings.AddTestDevice("Hash_Device");
 }
Exemple #5
0
 public static void AddTestDevices()
 {
     AdSettings.LogLevel = AdLogLevel.Log;
     AdSettings.ClearTestDevices();
     AdSettings.AddTestDevice("e8ce6015a7efafb41de74ab35bc0674c38e58304");
 }