Documentation

Development

User Acquisition

Monetization

Industry

Unity Ads Monetization

SDK 4.20.0

Supported
​

Android API reference

Unity Ads Monetization

SDK 4.20.0

Supported
​

Android developer guides
​
​
Android developer guides
  • Android SDK integration guide
  • Unity Ads privacy guide
  • Unity Ads SDK troubleshooting guide
  • Android developer API references
  1. Unity Ads SDK Android developer monetization
  2. Unity Ads SDK integration guide for Android 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 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.
import com.unity3d.ads
import com.unity3d.ads;

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
    ​
    ​