question

AppyNation Ltd. avatar image
AppyNation Ltd. asked

[Unity iOS] Exception when listener not added

It turns out that if you don't add a particular listener then you can get an exception. I.e. I didn't add the ad expanded listener and when the banner is clicked I get this: KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[com.amazon.mas.cpt.ads.IDelegator]].get_Item (System.String key) [0x00000] in :0 at com.amazon.mas.cpt.ads.AmazonMobileAdsImpl.FireEvent (System.String jsonMessage) [0x00000] in :0 at com.amazon.mas.cpt.ads.AmazonMobileAdsImpl+AmazonMobileAdsBase.UnityFireEvent (System.String jsonMessage) [0x00000] in :0 Surely it should be optional whether to add a particular listener or not?
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

justin avatar image
justin answered
Hi AppyNation, Thanks for sharing this. Have you tried pulling the latest version of the Mobile Ads SDK? This should have been fixed in the latest version.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AppyNation Ltd. avatar image
AppyNation Ltd. answered
I'm using the Dec 8 SDK. According to the sticky this is the latest one. https://forums.developer.amazon.com/forums/ann.jspa?annID=77 When I look at your SDK page there's no indication what date it was updated last, and in the Unity section there are no version numbers at all next to AmazonMobileAds. How do I know what version I'm currently using, and whether a newer version is available? https://developer.amazon.com/public/resources/development-tools/sdk Unity/ -- AmazonGameCircle/ -- AmazonGameCircle.unitypackage version 2.5.2 resources/ -- GameCircle-In-Game-Logos/ -- image-masks/ -- AmazonInAppPurchasing/ -- 2.0/ version 2.0 AmazonIapV2.unitypackage version 2.0.1 PreviousVersions/ -- 1.0/ version 1.0 AmazonIAP.unitypackage -- AmazonMobileAds/ -- AmazonMobileAds.unitypackage -- You don't make it easy for developers!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AppyNation Ltd. avatar image
AppyNation Ltd. answered
Yet again you don't reply.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.