Amazon Ads Plugin Launched!

I should add that we absolutely NEED to know whether an advert has been successfully loaded or not, so that we can fallback to another provider when Amazon don’t have an advert available for us. I suspect that the majority of devs who have planned out their monetization use more than one ad provider for this very reason. 

This is why the callback is an essential part of the library. 

I’ve just gone into the sample code, and I can see that the listener is now the second argument to amazonads.init(), after the table of parameters, e.g:

amazonAds.init({licenseKey = "XXXXX-XXXXX-XXXXX-XXXXX", testMode = true}, amazonAdListener)

whereas in the documentation it’s still listed as one of the parameters that go into the table itself:

amazonAds.init({licenseKey = "XXXXX-XXXXX-XXXXX-XXXXX", testMode = true, listener=amazonAdListener})

I’m just about to test it out now, and I’ll let people know if it works or not. If it does, then you need to update the documentation again.

OK I’ve tested it out and it does work when the callback is given as a separate argument, so the docs should really be updated.

@deleurapps

With regards to the appkey:

a) I don’t see it mentioned anywhere in your documentation, though I may have overlooked it somewhere.

b ) What do we do for google play applications, since they can show amazon ads too?

The same will apply to iOS once that is ready, speaking of which do you have any idea when that will be ready? Now that the interstitials are working, it would be great to get the iOS ones in ASAP so that we can maximise the Amazon promo.

Interstitials are working great!  :stuck_out_tongue:

@corona1634

Thanks for spotting the documentation error, I’m fixing it now.

In regards to the appKey, I’m fixing that in the documentation as well. 

In order to get your app key, you just have to register your application here: https://developer.amazon.com/myapps.html

Then, that app key can be used for any store, not just amazon. It is just a way for amazon ads to identify your application.

@ingemar sorry, I’m not exactly sure what’s happening, I contacted Gremlin Interactive, as they are responsible for managing the store.

Ok so if I have released “My Great Game” on Amazon already, and have an application key from that, I can use the same application key for “My Great Game” on Google Play?

yep, you initialize amazon ads in “My Great Game” with the same application key for all stores/platforms

I’ve noticed that I only seem to get generic “download the amazon app” adverts, even thought I’ve initialised the plugin and set testMode = false.

Do I need to do something else on the Amazon console to activate “real” adverts?

not exactly sure, maybe check out the amazon developer website to see if theres an option there?

I can’t see anything at all on there, tbh I find the Amazon docs leave a lot to be desired.  

There doesn’t seem to be any settings to toggle test mode on/off either.

@corona1634 I just took a look at the amazon website and it turns out you actually do have to register separate appKeys for different platforms. It’s available on this page: https://developer.amazon.com/ma/apps/mobile-ads-apps.html

But I believe, it’s the same for Amazon store and Google play

Ok that’s fine, I’ve set up a separate key for iOS (for when the plugin is ready for that). Do you have an ETA for when that will be?

a couple of days. Hopefully before august starts.

That would be great! We have a much higher number of iOS users so this will really help us maximise our revenue.

I am tryting to get amazonAds interstitials to work 

I am using testMode = true in my init function, so ideally I should get a test ad when calling _ amazonAd_lib.show{size=“interstitial” } _
But when I try to load the interstitial, the listener is called with the following params : 

{ isError = true, name = "failed", provider = "amazonAds", response = "Code: NO\_FILL, Message: Server Message: no results. Try again in 10 seconds" }

Why aren’t test ads being loaded? 
Are test ads available only for specific countries as well? 

 

Does that happen consistently? Do banner ads ever display? Do interstitial ads ever display? Does it work in testMode = false?

In my experience the test ads sometimes don’t load either because they are downloaded from the sever just like normal ads. So if there is a slow connection or something the ads might not show.

I get the “no fill” message a lot. I’d say about 50% of my calls resulted in that, but that’s with test mode turned off.
When I don’t get that error, I only ever get the “download the Amazon app” interstitial, so perhaps they just have a terrible fill rate?

So these are my results 
When testMode == true, 
     banner ads display successfully 4 out of 5 times 

     interstitials never display (they get the error mentioned above)
When testMode == false, 

     neither banner ads, not interstitial ads displays 

I am testing from India, so it is not really surprising that “live ads” are not available for my country. 
But the problem is  I never received test interstitial ads…