void Awake() { Chartboost.init("5491d1220d6025231a23cfda", "3be619ad7ab8d1fd083fbb36cd91cb7a12c3dca2", "5491d1220d6025231a23cfda", "3be619ad7ab8d1fd083fbb36cd91cb7a12c3dca2buy", true); AdBuddizBinding.SetAndroidPublisherKey("3af7f480-c341-42c0-a7e7-5375f984acb0"); //chave do Android AdBuddizBinding.SetIOSPublisherKey("201a0277-0e68-47d2-9cc0-f39f6cb56e30"); //chave do iOS }
void Start() // Init SDK on app start { AdBuddizBinding.SetLogLevel(AdBuddizBinding.ABLogLevel.Info); // log level AdBuddizBinding.SetAndroidPublisherKey("TEST_PUBLISHER_KEY_ANDROID"); // replace with your Android app publisher key AdBuddizBinding.SetIOSPublisherKey("TEST_PUBLISHER_KEY_IOS"); // replace with your iOS app publisher key AdBuddizBinding.SetTestModeActive(); // to delete before submitting to store AdBuddizBinding.CacheAds(); // start caching ads }
// Use this for initialization void Start() { if (!PlayerPrefs.HasKey("notificationImpact")) { PlayerPrefs.SetInt("notificationImpact", 1); } if (!PlayerPrefs.HasKey("notificationBefore")) { PlayerPrefs.SetInt("notificationImpact", 5); } refreshListFleet(); #if UNITY_IPHONE UnityEngine.iOS.NotificationServices.CancelAllLocalNotifications(); AdBuddizBinding.SetIOSPublisherKey("67ae8096-ed6f-4887-a78e-83435733ecfb"); AdBuddizBinding.CacheAds(); #endif #if UNITY_ANDROID NotificationManager.CancelAll(); //AdBuddizBinding.SetIOSPublisherKey("67ae8096-ed6f-4887-a78e-83435733ecfb"); //AdBuddizBinding.CacheAds(); #endif }