question

AppyNation Ltd. avatar image
AppyNation Ltd. asked

Unity plugin files have identical file paths for iOS and Android

I don't understand why the Unity packages for iOS and Android have identical file paths for AmazonAds.cs and AmazonAdListener.cs? The files are different for each platform yet have the same path (Plugins/Amazon). What is the suggested workaround to use both in a project? Was it believed that developers would not have Unity projects targetting both iOS and Android?
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.

AppyNation Ltd. avatar image
AppyNation Ltd. answered
I should just add that the class names are identical too which is also a problem.
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
Another issue is that the AmazonAdListener uses Invoke() to call the actions which assumes that handlers have been setup for every action. If this is not the case then a null reference exception occurs. Something like this might be better: if(BannerAdExpanded!=null) BannerAdExpanded(message);
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 ApplyNation, Could you please share what version of Mobile Ads you're using? The latest version can be found in the Amazon Mobile App SDK found here: https://developer.amazon.com/public/resources/development-tools/sdk Implementing Mobile Ads in Unity: https://developer.amazon.com/public/apis/earn/mobile-ads/unity/implementing-mobile-ads-with-the-mobile-ads-plugin-for-unity Methods and events (with sample code at the bottom): https://developer.amazon.com/public/apis/earn/mobile-ads/unity/mobile-ads-plugin-methods-and-events-for-unity Thanks, Justin
10 |5000

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