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 Unity Ads SDK APIs in an iOS project, import the library. This enables direct use of the Unity Ads SDK classes, functions, interfaces, and listeners in your app code.
UnityAds.hWithout this import, you can’t implement ad content in your app, such as rewarded, interstitial, or banner ads.
Include the following import in every file where you need to use Unity Ads SDK API functionality.
import UnityAds