question

Dmitry Kornyakov avatar image
Dmitry Kornyakov asked

Amazon Ads with Marmalade

Is it possible to integrate the Ads within Marmalade application as an extension? Has anyone tried? I'm getting the following error: 03-21 17:17:43.790: D/AmazonMobileAds AdBridge(26764): Default ad listener called - Ad Failed to Load. Error code: REQUEST_ERROR, Error Message: Can't load an ad because resources cannot be read. Make sure the 'R' class has not been obfuscated. Marmalade creates it's own R.java with different ID's when deploying for android, it appears to be the reason for this error, but I can't figure any possible workarounds. Message was edited by: lightbasic
mobile ads
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi lightbasic, Thanks for showing interest in Mobile Ads. Unfortunately, Mobile Ads will not work if R file does not have the same name as your package or if it's obfuscated. It's explained in the end of below documentation https://developer.amazon.com/sdk/mobileads/event-tracking-and-errors.html So, if Marmalade framework writes it's own R file which does not have the same name as of your package then Mobile Ads would throw "REQUEST_ERROR" in runtime.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dmitry Kornyakov avatar image
Dmitry Kornyakov answered
After decompilation of classes.dex there is really no R.class inside. Thanks.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Thanks for the reply. Hope this thread will help other developers who are using cross platform framework like "Marmalade".
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.