question

Kris B avatar image
Kris B asked

Ad size not being recognized

I want to have all of my ads using the 320x50 size, regardless if it's being used on a phone or table. It doesn't seem that the attribute is being recognized though. When my phone is in portrait mode the ads look to be 320x50, but in landscape mode they are huge, same with viewing them on a tablet. I think the sizes are automatically being set based on the screen size, and the "adSize" attribute is being ignored. This is the layout code I'm using: From my research, I think the issue is using " http://schemas.android.com/apk/res-auto" for the namespace. I guess if I use this, then the amazon:adSize attribute won't work because it is a custom attribute: http://stackoverflow.com/questions/17911731/amazon-ads-xml-layout/17911926 I should using " http://schemas.android.com/apk/res/ ". However, my apps are a little unique in that the layout above is in a library project and not in the main application project. So I'm not sure what to use for the package name. I tried using the library project's name, but the IDE threw and error saying "adSize" cannot be found. I tried using the name of the application, and didn't get the error, but the adSize was still being ignored. Any help would be appreciated.
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.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Kris, Can you try following thing? xmlns:Amazon=" http://schemas.android.com/apk/lib/ " ....... ........... Let us know the result?
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.