Easy Amazon Ads: iOS ad support incoming
Over the past few days I’ve been working on implementing the new Amazon iOS ads into Easy Amazon Ads for Unity.
Things have been going fairly well and all the important stuff that’s present in the Android version into the iOS version.
Both Android and iOS use the same EasyAmazonAdsManager class with only one minor change. For iOS, the screen orientation needs to be passed in when creating a banner. Unity’s Input.DeviceOrienation and Screen.Orientation properties both return the current screen orientation, which is not necessarily the orientation that the app is supposed to be running at. If the orientation isn’t supplied, then the plugin will default to using portrait and write a warning into the log. If your app uses an automatic screen orientation then you’ll need to call ShowBanner() from your app whenever the screen orientation changes. Android will ignore the orientation value.
I’ve also implemented a version of Android’s auto-banner size option, which Amazon haven’t bothered with for iOS. The plugin will save you time by trying to pick a banner size to suit the device it is running on. You can override this and pick whichever size you’d like.
The only real problem I’ve had is that I can’t test interstitials. The code is in, but Amazon always responds with no fill. I’ve enabled logging and the request is definitely being sent to Amazon with testing enabled, so I should be seeing a result. There’s probably a back-end bug at Amazon that is applying the region restrictions to test requests – we don’t have access to real interstitials here in Australia. I’ve contacted Amazon, so it’s just a case of waiting until they provide a solution.
Hopefully it’ll be ready for release in the next day or so.