Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the medium-sized native ad I created from the Applovin panel behaving like match_parent? #674

Open
omeratesss opened this issue Jun 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@omeratesss
Copy link

omeratesss commented Jun 12, 2024

MAX SDK Version

12.5.0

Device/Platform Info

Xiaomi 13 lite - android 14

Current Behavior

I created a medium-sized native ad from the Applovin panel. Then, I integrated this native ad into my project using Jetpack Compose. I saw the test ads, but I couldn't see them in the desired size. I couldn't see them in the 300x250 size as specified in the documentation.

Note: I previously suspected the AndroidView object, but I tested it with two different scenarios.
1 - I displayed native ads of the same size with Admost and Admob and got the correct result.
2- I created the TextView object found in the Android XML within the AndroidView and saw it on the screen as wrap_content.

Expected Behavior

The native ad object should come from the Applovin SDK in a 300x250 size. I shouldn't have to hard code and restrict it to my view with the size.

How to Reproduce

-Medium native ad was created in Applovin Panel.

  • this Native ad, Application was implemented with Jetpack compose.

Additional Info

Example of image with bug->
AndroidView( modifier = Modifier .fillMaxWidth() .wrapContentHeight(), factory = { nativeAd!! }, )

applovin-bug
``
Must-have image->
AndroidView( modifier = Modifier .fillMaxWidth() .height(250.sdp), factory = { nativeAd!! }, )

hardcoded

I will attach the relevant files below. I didn't create a sample project because I didn't write any additional code.
ResultActivity.kt.zip

@omeratesss omeratesss added the bug Something isn't working label Jun 12, 2024
@omeratesss omeratesss changed the title Why does Native Ad size behave like Match_parent? Why is the medium-sized native ad I created from the Applovin panel behaving like match_parent? Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant