AppLovin / AppLovin-MAX-SDK-iOS

84 stars 69 forks source link

Ad Unit ID is invalid or disabled. #316

Closed gerchicov-vg closed 1 month ago

gerchicov-vg commented 1 month ago

MAX SDK Version

12.2.1

Device/Platform Info

any iPhone, any iOS 16+

Current Behavior

No ad is shown. The app crashes due to error: "Ad Unit ID ... is invalid or disabled. Please make sure to use an Ad Unit ID from the MAX dashboard that is enabled and configured for the current application. For more information, see https://dash.applovin.com/documentation/mediation/max/get-started-with-max#step-2:-create-an-ad-unit"

Expected Behavior

No response

How to Reproduce

Changed bundle id to another one (to run on a device) and ran "release" build.

Additional Info

No response

Lorenzo45 commented 1 month ago

Hi @gerchicov-vg, if you update to SDK 12.3.0+ the app will no longer crash in this scenario. Instead, our SDK will call the didFailToLoadAdForAdUnitIdentifier: withError: callback with a detailed error message.

Note that the bundle ID must match the bundle ID that is configured for that ad unit in the AppLovin dashboard for ads to load.