private void Update()
        {
            interstitialUI.Update();
            rewardedVideoUI.Update();

            // Check if ads were removed.
            bool   adRemoved        = Advertising.IsAdRemoved();
            string adRemovedMessage = adRemoved ? "Ads were removed" : "Ads are enabled";

            demoUtils.DisplayBool(isAdRemovedInfo, !adRemoved, adRemovedMessage);

            // Check if the Advertising.AutoLoadAdsMode value was updated somewhere else.
            if (lastAutoLoadMode != Advertising.AutoAdLoadingMode)
            {
                autoLoadModeDropdown.value = (int)Advertising.AutoAdLoadingMode;
                lastAutoLoadMode           = Advertising.AutoAdLoadingMode;
            }
        }
        protected void SetupAutoLoadModeDropdown()
        {
            List <Dropdown.OptionData> options = new List <Dropdown.OptionData>();

            foreach (AutoAdLoadingMode mode in Enum.GetValues(typeof(AutoAdLoadingMode)))
            {
                options.Add(new Dropdown.OptionData(mode.ToString()));
            }
            autoLoadModeDropdown.ClearOptions();
            autoLoadModeDropdown.AddOptions(options);

            autoLoadModeDropdown.value = (int)Advertising.AutoAdLoadingMode;

            autoLoadModeDropdown.onValueChanged.AddListener(mode =>
            {
                Advertising.AutoAdLoadingMode = (AutoAdLoadingMode)mode;
                lastAutoLoadMode = (AutoAdLoadingMode)mode;
            });
        }