Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.Advertisements;
- public class UnityAdsInitialize : MonoBehaviour
- {
- #if UNITY_ANDROID
- string gameId = "3445968";
- #elif UNITY_IOS
- string gameId = "3445969";
- #endif
- bool testMode = true;
- void Start()
- {
- // Initialize the Ads service:
- Advertisement.Initialize(gameId, testMode);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment