App Open Ad Black Background

472 views
Skip to first unread message

Taimur Afridi

unread,
Apr 17, 2023, 1:55:47 AM4/17/23
to Google Mobile Ads SDK Developers
Hey, how to change app open add transparent to black background? im making a unity game application so there i will need this, can someone help me?

Mobile Ads SDK Forum Advisor

unread,
Apr 17, 2023, 7:09:07 AM4/17/23
to taimu...@gmail.com, google-adm...@googlegroups.com
Hello Taimur,

Thank you for reaching out to us.

Based on our documents (https://developers.google.com/admob/unity/app-open), I'm afraid there is no means to make app open ad transparent to black background As the SDK controls the appearance of this ad. A substitute may be to use native ads (https://developers.google.com/admob/unity/native). You may imitate the behavior of an app open ad to a certain degree using this but with the benefit of being able to control the appearance of the ad. If you have further concerns or inquiries, feel free to reach back to us.

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2kWFNU:ref

Taimur Afridi

unread,
May 5, 2023, 6:48:16 AM5/5/23
to Google Mobile Ads SDK Developers
hey i have been encounter a problem of crash for 2 months continously i don't know the exact solution i have tried different method but none of them would make it solve. Can you guyz tell me the crash reason why it is occur what is the exact solution.
below is the crash logs



android.view.ViewGroup.offsetRectBetweenParentAndChild

java.lang.Error

Exception java.lang.Error: FATAL EXCEPTION [main]
Unity version     : 2020.3.19f1
Device model      : Xiaomi 2201117TL
Device fingerprint: Redmi/spes_global/spes:11/RKQ1.211001.001/V13.0.16.0.RGCMIXM:user/release-keys
Build Type        : Release
Scripting Backend : IL2CPP
ABI               : arm64-v8a
Strip Engine Code : true

Caused by: java.lang.IllegalArgumentException: parameter must be a descendant of this view
  at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6364)
  at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6293)
  at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4629)
  at android.view.ViewRootImpl.draw (ViewRootImpl.java:4168)
  at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:4010)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3268)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2079)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8546)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1077)
  at android.view.Choreographer.doCallbacks (Choreographer.java:897)
  at android.view.Choreographer.doFrame (Choreographer.java:826)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1062)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8163)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:656)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:967)

On Mon, 17 Apr 2023, 10:56 am Taimur Afridi, <taimu...@gmail.com> wrote:
Hey, how to change app open add transparent to black background? im making a unity game application so there i will need this, can someone help me?

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/693f1ea7-02a9-4c9e-ac58-1ec25a379aefn%40googlegroups.com.

medioblogger

unread,
May 5, 2023, 8:09:16 AM5/5/23
to Google Mobile Ads SDK Developers
Hi

The crash "Caused by: java.lang.IllegalArgumentException: parameter must be a descendant of this view" is cover in this conversation: 

And in this github link: 

Is the biggest bug in the Unity plugin and lot of people are waiting for the fix for more than 5 months.

Mobile Ads SDK Forum Advisor

unread,
May 5, 2023, 10:04:37 AM5/5/23
to mediob...@gmail.com, google-adm...@googlegroups.com
Hello,


Thank you for reaching out to us.

For us to properly troubleshoot your issue, kindly provide us the following information below privately:
  • Sample App
  • Steps to replicate
  • App ID
  • SDK Version
  • Complete Stack Trace Error
  • Device name and versions affected
You can provide the following details via reply privately to author option or directly provide it to the link below.

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=5004Q00002lAemNQAS&entry.80707362=00177630

2. 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.

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2lAgBx:ref

medioblogger

unread,
May 5, 2023, 10:17:33 AM5/5/23
to Google Mobile Ads SDK Developers
Hi 

I already replied adding stacktraces in the conversation that I mentioned before and as already I say, the only way to reproduce this crash is with real ads in production, whatever the code is used for this plugin is irrelevant. It seem to be a bug in the native side of the Android SDK, as the bug is reproducible in Android, Unity and React-Native (unofficial, but they fixed already in the latest version). 

According to forums and the fix of the React-Native plugin one solution could be to add "AdView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS)" to the Banner Adview.

If you need more stacktraces or more info reply me. Please, fix this bug. Thank you.

Trefle Game

unread,
May 8, 2023, 12:39:14 AM5/8/23
to Google Mobile Ads SDK Developers
Hi Google Developers,

This bug is very difficult to replicate and very difficult to find as per some other developer said. You may even can't replicate it by sample project as it could happen 10 times within 1000 trials in specific devices (e.g. moto e60 or Xiaomi 11).
The quick fix is to add "AdView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS)" to the Banner Adview.
Or please add public access to the banner adview for the Unity Plugin for next release.

This is the highest priority of all bug fixes and features as this bug has been there for more than 9 months affecting most of the Admob Unity developers
and in our case, more than 10,000 players per game are suffering from this issue.

Please treat it as the high priority and the fix is an easy fix.
Otherwise we may be forced to use other mediation platforms.

Thank you very very very much...

crash list.png 

Mobile Ads SDK Forum Advisor

unread,
May 8, 2023, 2:22:46 AM5/8/23
to bill...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for the clarification.

Before we can proceed with the investigation, kindly provide us SDK Version used and Complete Stack Trace Error. You can provide the following details via reply privately to author option or directly provide it to the link below.
Reply all
Reply to author
Forward
0 new messages