コード例 #1
0
#pragma warning restore 649
        #endregion

        /// <summary>
        /// Initialize new <see cref="IMediationManager"/> and save to <see cref="MobileAds.manager"/> field.
        /// Can be called for different identifiers to create different managers.
        /// </summary>
        /// <exception cref="NotSupportedException">Not supported platform. Allowed Android, iOS and Editor only</exception>
        /// <exception cref="ArgumentNullException">Manager ID are not found</exception>
        public IMediationManager Initialize()
        {
            if (string.IsNullOrEmpty(targetId))
            {
                WithManagerIdAtIndex(0);
            }
            return(CASFactory.CreateManager(this));
        }