Just after I released this wrapper, Amazon changed their SDK function prototypes for the listeners. That change broke the wrapper. See post #20 in this thread for a modified version of the wrapper.
Hello,
I have attached a zip archive with a wrapper library for the Amazon Ads SDK. The zip archive includes the wrapper source code in Java, the compiled library 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. 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. I renamed it 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 AmznAd.jar and AmznAd.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.
I have tested this wrapper for two Amazon ad sizes, 320x50 and 300x250.
When you look at the wrapper Java source code and find major errors, please upload the fixes to this forum.
Barry.
Hello,
I have attached a zip archive with a wrapper library for the Amazon Ads SDK. The zip archive includes the wrapper source code in Java, the compiled library 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. 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. I renamed it 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 AmznAd.jar and AmznAd.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.
I have tested this wrapper for two Amazon ad sizes, 320x50 and 300x250.
When you look at the wrapper Java source code and find major errors, please upload the fixes to this forum.
Barry.
Attachments
Last edited: