Import the UnityAds library
Import the UnityAds library to start using the Unity Ads SDK APIs.
Read time 1 minuteLast updated 2 months ago
To access the Unity Ads SDK APIs in an Android project, import the package. This enables direct use of the Unity Ads SDK classes, functions, and listeners in your app.
com.unity3d.adsWithout 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.
import com.unity3d.ads