Easy Amazon Ads 1.3.2: Amazon's API bug
Well, it turns out I was right. Version 5.4.146 of the Amazon’s API was broken.
Back when 5.4.146 was released, I updated Easy Amazon Ads and tested it. At this point I discovered that closing an interstitial with the X button would stop the app loading any more interstitials for the duration of the session.
Basically, the bug meant that if you weren’t using Easy Amazon Ads, and you updated to 146 yourself, then your app would appear to work, but would only show one interstitial per session. Quite a few people have probably been wondering why interstitial ad revenue has been down for the past month.
The bug meant that I couldn’t release any further updates the Easy Amazon Ads without feedback from Amazon. Unfortunately, Amazon’s support service is glacially slow and I had to get through a round of proving I wasn’t an idiot, before I moved to the next level of building a demonstration APK to prove I wasn’t crazy.
Weeks passed and they finally released 5.4.192, which included the following fix (from the release notes)
Addressed a race condition in which dismissing an interstitial ad using the native close button would sometimes put the ad into an abnormal state.
What’s new in 1.3.2
- iOS 8 is supported.
- Amazon deprecated the CollapseAd method, so I’ve removed it from the plugin.
- Amazon deprecated the target age for ads, so I’ve removed it as well.
- You now need to include EventKit and EventKitUI libraries when building.
I should also mention that I had a lot of trouble building the test app with the latest Unity, on the first attempt. Somehow, Unity added an empty “plugin.c” file to the XCode project during the build, which forced the Objective C code to compile as plain C. It reported loads of errors and that Framework.h was broken. After messing with it for a while, I eventually deleted the first build attempt and the second try worked without issue. I have no idea what happened, so if you see this sort of issue, then I’d suggest creating a clean build.