This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Unity.Services.Core; | |
using Unity.Services.Mediation; | |
using UnityEngine; | |
namespace Unity.Example | |
{ | |
public class InterstitialAdExample : MonoBehaviour | |
{ | |
private IInterstitialAd _ad; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// PostBuildStep.cs | |
#if UNITY_IOS | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
using System.IO; | |
public class PostBuildStep { | |
// IDFA取得のためのトラッキング許可の説明文をセットします: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// UnityAdsSampleScript.cs | |
/// Created by Yasuyuki Kamata on 9 Feb 2021 | |
/// Copyright © 2021 Yasuyuki Kamata. Licensed under MIT License | |
using System.Collections; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Advertisements; | |
public class UnityAdsSampleScript : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// UnityAdsExample.cs | |
/// Created by Yasuyuki Kamata on 31 Aug 2020 | |
/// Copyright © 2020 Yasuyuki Kamata. Licensed under MIT License | |
/// | |
/// <summary> | |
/// Unity Ads Example using Advertisements namespace | |
/// (Unity Ads SDK 3.4.x or later) | |
/// </summary> | |
using System; | |
using UnityEngine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.RemoteConfig; | |
public class RemoteConfigExample : MonoBehaviour { | |
/// <summary> | |
/// Userアトリビュート用の構造体 | |
/// </summary> | |
public struct userAttributes { | |
// カスタムUserアトリビュート用の変数を宣言する | |
public bool expansionFlag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// UnityAdsExample.cs | |
/// Created by Yasuyuki Kamata on 31 Mar 2020 | |
/// Copyright © 2020 Yasuyuki Kamata. Licensed under MIT License | |
/// | |
/// <summary> | |
/// Unity Ads Example using Advertisements namespace | |
/// (Unity Ads SDK 3.4.x or later) | |
/// </summary> | |
using UnityEngine; | |
using UnityEngine.Advertisements; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class DisableAnalyticsAtRuntime : MonoBehaviour | |
{ | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
public static void OnRuntimeMethodLoad() | |
{ | |
UnityEngine.Analytics.Analytics.enabled = false; | |
UnityEngine.Analytics.Analytics.deviceStatsEnabled = false; | |
UnityEngine.Analytics.Analytics.limitUserTracking = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using UnityEngine.Monetization; | |
public class MonetizationVideoExample : MonoBehaviour | |
{ | |
public bool testMode; | |
public string appleAppStoreGameId = "3289755"; | |
public string googlePlayStoreGameId = "3289754"; | |
public string placementId = "rewardedVideo"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using UnityEngine.Advertisements; | |
public class LoadExample : MonoBehaviour, IUnityAdsListener | |
{ | |
public bool testMode; | |
public string appleAppStoreGameId = "INPUT YOUR GAME ID"; | |
public string googlePlayStoreGameId = "INPUT YOUR GAME ID"; | |
public string placementId = "rewardedVideo"; |
NewerOlder