Note: As of Sept. 2020 this library is 6 years old. I've been informed that it no longer works correctly.
Hello,
Amazon modified their SDK and changed the function prototypes for their listeners. The change broke my original wrapper.
Amazon added interstitial ads to their SDK. This wrapper does not handle the interstitial ad type, although within the Amazon SDK there is a sample showing how to handle interstitial ads. I have included the eclipse project source code for this wrapper. A new wrapper could be created using this wrapper as a guide.
I have attached a zip archive to this post with my new wrapper library. The zip archive includes the wrapper source code in Java, the compiled wrapper jar and XML files, and a small test B4A application.
I based the wrapper on source code uploaded by Erel several years ago for the Admob wrapper merged with the Amazon SimpleExample found in the SDK. I used the Simple Library Compiler (SLC) to compile.
You will need to get an Amazon developer account, it's free, and an app ID. I just created a dummy test app entry to get the ID.
https://developer.amazon.com/public/
You also need to download the Amazon Ad SDK. The jar file you need is buried deep within the SDK. I tested with the latest version, amazon-ads-5.3.22.jar. I renamed the jar to to amazon-ads.jar by removing the version number from the jar file name.
https://developer.amazon.com/public/resources/development-tools/sdk
The Amazon-ads.jar is buried in the SDK download. You have to open the SDK archive and extract amazon-ads-xxxx.jar library.
This jar (amazon-ads.jar) along with my AmznAd2.jar and AmznAd2.xml files from the attached zip archive should be placed in your B4A Additional Libraries directory. Your Amazon App ID needs to be entered in the B4A file at source code line 25.
In this new version of the wrapper I call the Amazon ad object AmznAd2 (instead of AmznAd).
I have tested this wrapper for two Amazon ad sizes, 320x50 and 600x90.
I edited the example app using the new version 3.80 of B4A.
If you look at the wrapper Java source code and find major errors, please upload the fixes to this forum.
Barry.