Import the UnityAds library to start using the Unity Ads SDK APIs.
阅读时间1 分钟最后更新于 3 天前
To access the Unity Ads SDK APIs in an Android project, import the
com.unity3d.ads
package. This enables direct use of the Unity Ads SDK classes, functions, and listeners in your app.Without this import, you can’t implement ad content in your app, such as rewarded or non-rewarded video, interstitial, or banner ads.Include the following import in every file where you need to use Unity Ads SDK functionality.