In my application I have been noticing that the mrecs sometimes appear in the wrong position on Samsung devices. I am attaching 2 pictures to illustrate the problem. In both casesI am placing the mrec on the exact same position 452x306(that's the position in DP). The device is the same.
What is happening in one of the pictures is that samsung is downscaling the app to a resolution of 1920x1200 (the default device resolution is 2560x1600). In both the downscaled and upscaled version the dp we are placing the mrec is the same. But in the downscaled version the mrec is positioned wrongly. Since the calculation of the mrec is happening in DP shouldn't it appear on the same position on both cases?
This is a super serious issue for us because these wrong calculations can lead to the mrec hiding UI elements and flag our app.
Any input/ideas welcome.
I am also attaching the logs of the native display metrics of each case in case they help somehow:
Display metrics for unchanged resolution:
03-14 13:02:44.977 D/[DISP] (18183): DisplayMetrics
03-14 13:02:44.977 D/[DISP] (18183): density: 2.125
03-14 13:02:44.977 D/[DISP] (18183): densityDpi: 340
03-14 13:02:44.977 D/[DISP] (18183): scaledDensity: 2.125
03-14 13:02:44.977 D/[DISP] (18183): widthPixels: 2560
03-14 13:02:44.977 D/[DISP] (18183): heightPixels: 1498
03-14 13:02:44.977 D/[DISP] (18183): xdpi: 274.594
03-14 13:02:44.977 D/[DISP] (18183): ydpi: 275.525
Display metrics for downscaled resolution:
03-14 13:24:55.327 D/[DISP] (31856): DisplayMetrics
03-14 13:24:55.327 D/[DISP] (31856): density: 1.59375
03-14 13:24:55.327 D/[DISP] (31856): densityDpi: 255
03-14 13:24:55.327 D/[DISP] (31856): scaledDensity: 1.59375
03-14 13:24:55.327 D/[DISP] (31856): widthPixels: 1920
03-14 13:24:55.328 D/[DISP] (31856): heightPixels: 1124
03-14 13:24:55.328 D/[DISP] (31856): xdpi: 206.0
03-14 13:24:55.328 D/[DISP] (31856): ydpi: 207.0


If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:
1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002YlpmiQAB&entry.80707362=000976852. Fill out all fields, and attach your file(s).
3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
|
||||||