iOS App crashes for Applovin ads

398 views
Skip to first unread message

iOS Developer

unread,
Jan 24, 2025, 4:49:38 AM1/24/25
to Google Mobile Ads SDK Developers
Hi,

I have used the Google Mobile Ads SDK to load and display ads from AppLovin in my iOS App, To integrate i have followed guide:

so far it was showing App lovin ads, but since yesterday morning the App is crashing whenever an interstitial Ad request is made and AppLovin ad is received.

The error log:
AppLovinAdapter: AppLovin adapter collecting signals.
AppLovinAdapter: AppLovin adapter version: 13.0.1.0
AppLovinAdapter: AppLovin SDK version: 13.0.1
[AppLovinSdk] DEBUG [ALSdk] Setting plugin version: 13.0.1.0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unknown ad size: '

[AppLovinSdk] DEBUG [ALHealthEventsReporter] crash reported with code 200 and extra parameters {
    "top_main_method" = "NSInvalidArgumentException Unknown ad size: ";
}


I am loading an Interstitial Ad, there is no option to set Ad size, but app crashes with error - Unknown ad size.

I have updated to latest sdks too.

Additional Info:
GoogleMobileAds SDK - 11.11.0

Please help!

Thanks,


Luis Gualandi

unread,
Jan 24, 2025, 8:15:38 AM1/24/25
to Google Mobile Ads SDK Developers
That started happening with me yesterday also when loading interstitial ads. Just a couple days ago I was testing applovin ads on the same device and it didnt happen
Applovin adapter 13.0.1.0
GMA 11.13.0

Log:


*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unknown ad size: '
*** First throw call stack:
(0x1835315ec 0x180aad244 0x18367e6e0 0x103e134e0 0x103edf64c 0x103e0c2b4 0x10ad58178 0x10ad5977c 0x10af77b58 0x18b2b6248 0x18b2b7fa8 0x18b2c6a34 0x18b2c664c 0x18357dbbc 0x18357a1b0 0x1835cc274 0x1d07454c0 0x18611277c 0x185d38e64 0x10abac140 0x10056812c 0x1a97a0de8)
Uncaught exception: NSInvalidArgumentException: Unknown ad size:
(
0   CoreFoundation                      0x00000001835315f8 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 185848
1   libobjc.A.dylib                     0x0000000180aad244 objc_exception_throw + 88
2   CoreFoundation                      0x000000018367e6e0 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 1550048
3   AppLovinSDK                         0x0000000103e134e0 +[ALAdSize adSizeFromString:] + 276
4   AppLovinSDK                         0x0000000103edf64c +[ALUtils zoneFromFullAdResponse:withSDK:] + 92
5   AppLovinSDK                         0x0000000103e0c2b4 -[ALAdService loadNextAdForAdToken:andNotify:] + 800
6   UnityFramework                      0x000000010ad58178 -[GADMRTBAdapterAppLovinInterstitialRenderer loadAd] + 348
7   UnityFramework                      0x000000010ad5977c -[GADMediationAdapterAppLovin loadInterstitialForAdConfiguration:completionHandler:] + 168
8   UnityFramework                      0x000000010af77b58 GAD_GADRTBMediationInterstitialAdRenderer_arm64_11_13_0 + 1344
9   libdispatch.dylib                   0x000000018b2b6248 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 8776
10  libdispatch.dylib                   0x000000018b2b7fa8 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 16296
11  libdispatch.dylib                   0x000000018b2c6a34 8CE3AFB9-6D84-3446-8FD4-E5F798D98403 + 76340
12  libdispatch.dylib                   0x000000018b2c664c _dispatch_main_queue_callback_4CF + 44
13  CoreFoundation                      0x000000018357dbbc 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 498620
14  CoreFoundation                      0x000000018357a1b0 6A60BE13-E657-3BEC-A9AC-BA239AE29862 + 483760
15  CoreFoundation                      0x00000001835cc274 CFRunLoopRunSpecific + 588
16  GraphicsServices                    0x00000001d07454c0 GSEventRunModal + 164
17  UIKitCore                           0x000000018611277c F80C6EE4-50CA-346F-90EB-BB3DA9817503 + 4122492
18  UIKitCore                           0x0000000185d38e64 UIApplicationMain + 340
19  UnityFramework                      0x000000010abac140 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 92
20  WordMaster                          0x000000010056812c main + 60
21  dyld                                0x00000001a97a0de8 4EB7459F-E237-38CE-8240-3F3E2E1CE5AB + 196072
)
libc++abi: terminating due to uncaught exception of type NSException

Mobile Ads SDK Forum Advisor

unread,
Jan 24, 2025, 9:19:42 AM1/24/25
to iosdevel...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK support team.

It’s always advisable to use the latest version to prevent conflicts, so ensure you’ve integrated the most recent version

I successfully integrated appLovin  version 13.0.1.0 into our Google sample application and tested. It performed as expected. Could you provide your sample project where the issue occurs?

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb. Kindly follow using the steps below:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002vGyGVQA0&entry.80707362=00285750

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGyGV:ref" (ADR-00285750)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 

 

Luis Gualandi

unread,
Jan 24, 2025, 10:04:55 AM1/24/25
to Google Mobile Ads SDK Developers

Additional info: It might be happening on test mode devices only. I made a test and was able to load an Applovin interstitial ad with test mode off, switched the device back to test mode on Admob console and it started throwing the error again. With test mode the error occurs by either setting single ad source on the inspector or by waiting for applovin to be selected in bidding

Mobile Ads SDK Forum Advisor

unread,
Jan 24, 2025, 12:38:00 PM1/24/25
to luis_muss...@hotmail.com, google-adm...@googlegroups.com
Hi,

As stated in earlier mail, kindly provide us your sample project where the issue can be observed. Once received your sample project we would be checking your implementation and share it with wider team for further assistance.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

iOS Developer

unread,
Jan 27, 2025, 5:27:25 AM1/27/25
to Google Mobile Ads SDK Developers
Hi,

Last night, we paused the device for Test Ads, and after that, I didn't encounter any crashes. Everything seems to be working fine now.

It looks like the issue started after adding my device as a Test Device on the dashboard.

Thanks for your help anyway!

iOS Developer

unread,
Jan 27, 2025, 5:31:59 AM1/27/25
to Google Mobile Ads SDK Developers
Hi,

Last night, we paused the device for Test Ads, and after that, I didn't encounter any crashes. Everything seems to be working fine now.

It looks like the issue started after adding my device as a Test Device on the dashboard.

Thanks for your help anyway!


Luis Gualandi

unread,
Jan 30, 2025, 8:32:09 AM1/30/25
to Google Mobile Ads SDK Developers
Yes, this is happening on test mode only and also it seems to be on Applovin's side. I opened an issue on their github and they said they're looking into it but yet no resolution
Reply all
Reply to author
Forward
0 new messages