Hello! I tried to find the solution but I couldn’t. I will put the part of the code here and the error so you can see it.
// Start is called before the first frame update
void Start()
{
#if UNITY_ANDROID
string appId = "ca-app-pub-3048425902510720~4367588141"; //your admob app id
#elif UNITY_IPHONE
string appId = "ca-app-pub-3940256099942544~1458002511";
#else
string appId = "unexpected_platform";
#endif
// Initialize the Google Mobile Ads SDK.
MobileAds.Initialize(appId);
RequestRewardedAd();
RequestInterstitial();
RequestBanner();
ShowBanner();
}
Error is:
Assets\Managers\AdmobManager\Admob.cs(91,30): error CS1503: Argument 1: cannot convert from 'string' to 'System.Action<GoogleMobileAds.Api.InitializationStatus>'
Line 91 is: MobileAds.Initialize(appId);