googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.34k stars 1.09k forks source link

Cannot access constructor 'InterstitialAd()' here due its protection level #3129

Closed aykanugur closed 5 months ago

aykanugur commented 5 months ago

Step 0: Are you in the right place?

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

Please share a downloadable sample project that reproduces the bug, if available. This greatly helps us to diagnose and fix the issue faster.

i tried to add ads in my game but when i tried to access to InterstitialAd constructor i get this error : Cannot access constructor 'InterstitialAd()' here due its protection level.

Relevant Code: private InterstitialAd _interstitialAd = new InterstitialAd(Id);

// TODO(you): code here to reproduce the problem