This error is typically caused by one of two issues:
- You are building for a platform that is not supported by Unity Ads
- You have not imported the Unity Ads package into your project yet.
To resolve the problem:
- Ensure that you have installed Unity Ads by using the Package Manager
- Ensure that you have selected iOS or Android as a build target (File > Build Settings).
- If you are building your Project for an unsupported platform, you can add a UNITY_ADS conditional define that allows you to build with Unity Ads without affecting other platforms.
If you continue to see this error after trying these suggestions, open a support ticket by emailing unityads-support@unity3d.com. For more information, see the documentation on Conditional Compilation.
Comments
4 comments
I did all those things and I still get that error, but only when I try to build.
Hi Matt,
I am sorry that this is happening.
Please, can you submit a support ticket to unityads-support@unity3d.com?
Thank you.
Kind Regards
Claire
may be it's too late to answer but, it can be solved by following these steps:
-close unity (save your project)
-go to project settings folder under the your project directory
- delete these two files 1. UnityAdsSettings.assets 2. UnityConnectionSettings.assets
-now re-open your project and turn on unity ads under services, you will not see the error again.
it does not work for me. do you have other solution?
Article is closed for comments.