Skip to main content

Unity FAQs

Integration Issues

Q: Which Unity versions are supported?

Yodo1 MAS supports Unity 2019.4 and above.

Q: How do I resolve Android build issues in Unity?

Common solutions include:

  • Ensure Gradle version compatibility
  • Check Android SDK/NDK versions
  • Verify minimum Android API level is set to 21 or higher
  • Remove existing ad networks before integration
  • Verify Android resolver settings
  • For "Duplicate Class" errors, use the recommended custom build settings

Q: How do I resolve iOS build issues in Unity?

Common solutions include:

  • Use CocoaPods integration
  • Verify Xcode project settings
  • Check for framework conflicts
  • Ensure proper iOS resolver settings
  • For iOS 14+, properly configure ATT requirements

Ad Implementation

Q: Why are ads not showing in the Unity Editor?

Ads only work on actual devices. The Unity Editor is supported only for test ads in recent SDK versions.

Q: How do I implement rewarded ads properly?

Use the following pattern:

Yodo1U3dMas.SetRewardedAdListener((Yodo1U3dAdEvent adEvent, Yodo1U3dAdError error) => {
switch (adEvent)
{
case Yodo1U3dAdEvent.AdClosed:
Debug.Log("Rewarded ad closed");
break;
case Yodo1U3dAdEvent.AdReward:
Debug.Log("Rewarded ad completed, give reward");
break;
}
});

Q: How do I handle game audio during ads?

The SDK can automatically handle audio pausing. Make sure to:

  • Enable auto-pause in the SDK settings
  • Implement proper audio resume logic after ads close
  • Test on both Android and iOS as behavior may differ

Testing Issues

Q: How do I test ads during development?

Follow these steps:

  • Enable test mode in the MAS dashboard
  • Add your test device ID to the dashboard
  • Use test ads for integration verification
  • Verify privacy settings are properly configured
  • Check that your App Key and AdMob ID are correct

Q: Why am I seeing build errors with ExternalDependencyManager?

Common solutions:

  • Update to the latest EDM4U version
  • Clear the Library folder and rebuild
  • Check for conflicts with other plugins using EDM4U
  • Verify all required dependencies are properly resolved