question

newuser-50b77915-c55a-4e0d-8b4c-ba0bfb7d3f0a avatar image

com.amazon.device.ads.Size com.amazon.device.ads.Position.getSize()

Hello,

i'm trying to add the amazon ads into a recyclerview. But sometimes the app crashed with this error:

com.amazon.device.ads.Size com.amazon.device.ads.Position.getSize()

Maybe it is not possible to add amazon banner to a recyclerview? I just want to add the banner once and show it every 20 items.

Thank you

mobile adssdk
10 |5000

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

1 Answer

Ross@Amazon avatar image
Ross@Amazon answered

The issue is most likely being caused due to there not being enough space inside of the RecyclerView for the ads to fit. Make sure that the size of the RecyclerView is larger than the ad size that you are requesting.

10 |5000

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