Documentation

Development

User Acquisition

Monetization

Industry

Unity Ads Monetization

SDK 4.20.0

Supported
​

iOS API reference - Swift

iOS API reference - Objective-C

Unity Ads Monetization

SDK 4.20.0

Supported
​

iOS developer guides
​
​
iOS developer guides
  • iOS SDK integration guide
  • Unity Ads privacy guide
  • Unity Ads SDK troubleshooting guide
  • iOS developer API references - Swift
  • iOS developer API references - Objective-C
  1. Unity Ads SDK iOS developer monetization
  2. Unity Ads SDK integration guide for iOS developers

Import the UnityAds library

Import the UnityAds library to start using the Unity Ads SDK APIs.
Read time 1 minute
Last updated a month ago

To access Unity Ads SDK APIs in an iOS project, import the
UnityAds.h
library. This enables direct use of the Unity Ads SDK classes, functions, interfaces, and listeners in your app code.
Without 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
#import <UnityAds/UnityAds.h>

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page
    ​
    ​