unity 2020.1 upgrade error UnityAdsSettings

#if UNITY_2020_1_OR_NEWER && (UNITY_IOS || UNITY_ANDROID || UNITY_EDITOR)
            if (testMode == false && UnityAdsSettings.testMode)
            {
                Debug.Log("Unity Ads is initializing in test mode since test mode is enabled in Service Window.");
            }
            s_Platform.Initialize(gameId, UnityAdsSettings.testMode || testMode, enablePerPlacementLoad);
#else
            s_Platform.Initialize(gameId, testMode, enablePerPlacementLoad);
#endif
        }

error occurs at above code.

message is

Library\PackageCache\com.unity.ads@3.4.7\Runtime\Advertisement\Advertisement.cs(79,38): error CS0103: The name ‘UnityAdsSettings’ does not exist in the current context

How to resolve this?

It could be that package is no longer supported, or else has been renamed. I suggest you begin your investigation with the documentation for that particular package.