AdMob for Unity pluging - SetApplicationMuted(bool muted)

1,000 views
Skip to first unread message

Eneko Egiluz

unread,
Sep 6, 2018, 2:53:54 AM9/6/18
to Google Mobile Ads SDK Developers
Hi,
I´m trying to control my video ads to start muted or not depending on my AudioManager current status. It´s simple, if the user set the game to be muted, all video ads showing should be muted by default, if not, videos are played with normal volume level.
After initializing the AdMob system [MobileAds.Initialize(admobAppID);] I´m using [MobileAds.SetApplicationMuted(bool muted)] each time the user modifies muted value in the game. But it doesn´t seem to work at all... videos (both in rewarded ads and interstitial) are always shown with full volume. Is out there any other way to do this?

Thank you.

mobileadssdk-a...@google.com

unread,
Sep 6, 2018, 7:18:55 AM9/6/18
to Eneko Egiluz, Google Mobile Ads SDK Developers
Hi Eneko,

Thank you for reaching out to us regarding this.

I tested this with our HelloWorld example app and I was able to reproduce the behavior described with the generated Android build but not with the iOS build. That said, I will raise this to the rest of the team and we'll get back in this thread for any feedback.

In the meantime, you can try to set the volume to 0 by using MobileAds.SetApplicationVolume(0.0f). I tested this with the sample app and it is working on my end. Could you try it as well on your end?

Regards,
Ivan Bautista
Mobile Ads SDK Team



--

---
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-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/e3f36dd8-37d2-4aca-ab0d-6f9efddcfb68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Markus Wiederkehr

unread,
Sep 10, 2018, 8:48:25 AM9/10/18
to Google Mobile Ads SDK Developers
Unless it has been fixed recently setAppMuted does not work, see https://groups.google.com/d/msg/google-admob-ads-sdk/_1Arx9XY9ac/hFrhdftxCAAJ

Neither does setAppVolume(0).

mobileadssdk-a...@google.com

unread,
Sep 11, 2018, 3:40:11 AM9/11/18
to Markus Wiederkehr, Google Mobile Ads SDK Developers
Hi Markus,

Please note that the team is now actively investigating on this. Rest assured that we will get back to this thread for any official updates.

On the other hand, I tested with our sample apps (native AndroidUnity) and I was able to verify that the issue is reproducible when using setAppMuted alone, however, the MobileAds.setAppVolume(0.0f) for Android SDK and MobileAds.SetApplicationVolume(0.0f) for the Unity plugin are working. Could you test on your end with our sample apps and see if you can replicate the behavior using setAppVolume()?

Regards,
Ivan Bautista
Mobile Ads SDK Team


--

---
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-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

mobileadssdk-a...@google.com

unread,
Oct 23, 2018, 10:39:31 AM10/23/18
to Markus Wiederkehr, Google Mobile Ads SDK Developers
Hi everyone,

The fix is already in place for both Android and IOS builds. 

That said, I tested with our sample app and sample Ad Unit Ids and I confirmed that the MobileAds.SetApplicationMuted(true) and MobileAds.SetApplicationVolume(0.0f) are working on my end.

Could you test it on your end and share with us the results?

Regards,
Ivan Bautista
Mobile Ads SDK Team



On 09/11/18 15:40:02 mobileadssdk-a...@google.com wrote:
Hi Markus,

Please note that the team is now actively investigating on this. Rest assured that we will get back to this thread for any official updates.

On the other hand, I tested with our sample apps (native AndroidUnity) and I was able to verify that the issue is reproducible when using setAppMuted alone, however, the MobileAds.setAppVolume(0.0f) for Android SDK and MobileAds.SetApplicationVolume(0.0f) for the Unity plugin are working. Could you test on your end with our sample apps and see if you can replicate the behavior using setAppVolume()?

Regards,
Ivan Bautista
Mobile Ads SDK Team



On 09/10/18 20:48:25 markus.w...@gmail.com wrote:
Unless it has been fixed recently setAppMuted does not work, see https://groups.google.com/d/msg/google-admob-ads-sdk/_1Arx9XY9ac/hFrhdftxCAAJ

Neither does setAppVolume(0).

On Thursday, September 6, 2018 at 8:53:54 AM UTC+2, Eneko Egiluz wrote:
Hi,
I´m trying to control my video ads to start muted or not depending on my AudioManager current status. It´s simple, if the user set the game to be muted, all video ads showing should be muted by default, if not, videos are played with normal volume level.
After initializing the AdMob system [MobileAds.Initialize(admobAppID);] I´m using [MobileAds.SetApplicationMuted(bool muted)] each time the user modifies muted value in the game. But it doesn´t seem to work at all... videos (both in rewarded ads and interstitial) are always shown with full volume. Is out there any other way to do this?

Thank you.

--

---
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-sdk+unsubscrib...@googlegroups.com.

Alex

unread,
Jan 17, 2022, 5:31:42 PM1/17/22
to Google Mobile Ads SDK Developers
The issue stil exist.
I tried both "MobileAds.SetApplicationMuted(true) and MobileAds.SetApplicationVolume(0.0f)" and they doesn't allow me to mute the interstital or video ads.
Google Mobile Ads Unity Plugin Version 6.1.0 and admob mediation with some networks.

вторник, 23 октября 2018 г. в 17:39:31 UTC+3, mobileadssdk-a...@google.com:

Alex

unread,
Jan 17, 2022, 6:09:15 PM1/17/22
to Google Mobile Ads SDK Developers
Tried  Google Mobile Ads Unity Plugin Version 6.1.2 and methods still don't work.

вторник, 18 января 2022 г. в 00:31:42 UTC+2, Alex:

Mobile Ads SDK Forum Advisor

unread,
Jan 18, 2022, 1:05:43 AM1/18/22
to mrsh...@gmail.com, google-adm...@googlegroups.com
Hi Alex,

Would it be possible for you to provide a screen recording of the behavior? Once provided, I could then share this to the rest of the team for further investigation.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2VMn7c:ref
Message has been deleted

Alex

unread,
Jan 18, 2022, 10:20:00 AM1/18/22
to Google Mobile Ads SDK Developers
Hi Teejay,

I made more tests. Admob videos volume works, as for now.
But all other videos coming via Admob Mediation have sound everytime.
I thought I can control them as they come through Admob Medation(MobileAds), but I can't.
So how is this possible?

Regards,
Alex.

вторник, 18 января 2022 г. в 08:05:43 UTC+2, mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Jan 18, 2022, 10:50:02 AM1/18/22
to mrsh...@gmail.com, google-adm...@googlegroups.com

Hi Alex,

Thank you for your response.

I'm a colleague of Teejay and will be assisting you on this. We requested a sample video of non working behavior for us to provide it to the rest of the team to proceed in the investigation. In addition to that, can you confirm if it is both happening in Android and iOS? If yes, is there a specific device and versions where this is happening? Can you provide us with your sample APK or sample project file, and what mediation network you're using on this? You can send it via Reply privately to author option or send it directly to mobileads...@gmail.com. Kindly inform us on this thread if you sent it directly to the email provided.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2VMn7c:ref

Alex

unread,
Jan 18, 2022, 11:43:04 AM1/18/22
to Google Mobile Ads SDK Developers
Hi,

I sent you mail with the sample AAB build.
Ad networks which come with help of Admob mediation:
- UnityAds Version 3.0.0
- FAN Version 3.6.0
- AppLovin Version 5.1.3
- IronSource Version 2.1.4

Regards,
Alex.

вторник, 18 января 2022 г. в 17:50:02 UTC+2, mobileadssdk:

Alex

unread,
Jan 18, 2022, 12:40:04 PM1/18/22
to Google Mobile Ads SDK Developers
Resent with an APK file instead of AAB.

вторник, 18 января 2022 г. в 18:43:04 UTC+2, Alex:

Mobile Ads SDK Forum Advisor

unread,
Jan 19, 2022, 2:40:01 AM1/19/22
to mrsh...@gmail.com, google-adm...@googlegroups.com
Hi Alex,

As per checking, it seems that your message didn't went through. Could you kindly send it once again? Also, please include the link of this forum thread, we could have a reference for checking.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2VMn7c:ref

Mobile Ads SDK Forum Advisor

unread,
Jan 20, 2022, 2:10:04 AM1/20/22
to google-adm...@googlegroups.com, mrsh...@gmail.com
Hi Alex,

We downloaded your APK, and we're getting a INSTALL_FAILED_NO_MATCHING_ABIS upon installing it into the emulator through ADB command. With this, would it be possible for you to provide a project (or at least a test project) and a screen recording capturing the reported behavior instead? Rest assured that this will not be shared externally and will be used for investigation purposes only. You may send it via Reply to author option. Once provided, I'll raising this to the rest of the team for further investigation.

Alex

unread,
Jan 20, 2022, 10:54:09 AM1/20/22
to Google Mobile Ads SDK Developers

Hi Teejay,

upon "googling" the first link(https://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk) to the stackoverflow tells us that:
"INSTALL_FAILED_NO_MATCHING_ABIS is when you are trying to install an app that has native libraries and it doesn't have a native library for your cpu architecture. For example if you compiled an app for armv7 and are trying to install it on an emulator that uses the Intel architecture instead it will not work."

So you can't install APK on that architecture. Why you just can't try the build on the device and see that the "mute" option doesn't work?

Regards,
Alex.
четверг, 20 января 2022 г. в 09:10:04 UTC+2, mobileadssdk:

Alex

unread,
Feb 24, 2022, 10:01:49 AM2/24/22
to Google Mobile Ads SDK Developers
Hello,

Do you have any estimation or news regarding the issue?

четверг, 20 января 2022 г. в 17:54:09 UTC+2, Alex:

Mobile Ads SDK Forum Advisor

unread,
Feb 28, 2022, 5:08:10 AM2/28/22
to mrsh...@gmail.com, google-adm...@googlegroups.com

Hi Alex,

Thank you for patiently waiting.

Upon checking, the team is still investigating this. I've followed up this again with them for any updates. We will provide it to you once we have more information.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 

 

ref:_00D1U1174p._5004Q2VMn7c:ref

Mobile Ads SDK Forum Advisor

unread,
Mar 23, 2022, 12:34:13 PM3/23/22
to google-adm...@googlegroups.com, mrsh...@gmail.com

Hi Alex,

 

My name is Nick and I will be helping you with the Android audio issue. I was unable to replicate this problem on my Android device. That said, I reason this might be an order of operations problem, I recommend waiting until after initialization to invoke SetApplicationMuted and SetApplicationVolume. See the attached code below:

private void HandleInitCompleteAction(InitializationStatus initstatus)
    {
        // Callbacks from GoogleMobileAds are not guaranteed to be called on
        // main thread.
        // In this example we use MobileAdsEventExecutor to schedule these calls on
        // the next Update() loop.
        MobileAdsEventExecutor.ExecuteInUpdate(() =>
        {
            statusText.text = "Initialization complete";
            MobileAds.SetApplicationMuted(true);
            MobileAds.SetApplicationVolume(0);
            RequestBannerAd();
        });
    }
If you have any more questions, let us know.

-Nick

 



ref:_00D1U1174p._5004Q2VMn7c:ref

Alex

unread,
Mar 23, 2022, 12:48:45 PM3/23/22
to Google Mobile Ads SDK Developers
Hi Nick,

You wanted to say, that you can mute the ads with the help of a button? That can't be true.
I tested behaviour on several devices and the behaviour doesn't work. Also I have many bad reviews in Google Play regarding this issue.
If you still want to say, that you can change mute status of the ad with help of a button, please, make a video.

Regarding your code. As you can see in my example, the ads are loaded and after that you can use buttons in order to mute the video ad. Don't you think that ads are initialised as far as they are on the screen?! So my code works after initialisation complete.

And the last(but not the least) you spent 2 months!! in order to check the code and/or to check the provided sample?!

среда, 23 марта 2022 г. в 18:34:13 UTC+2, mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Mar 23, 2022, 1:44:41 PM3/23/22
to mrsh...@gmail.com, google-adm...@googlegroups.com

Hi Alex,

 

I was unable to replicate this issue with either the provided apk or the HelloWorld sample. In order to diagnose this further, can I get a logcat / network trace of a session where this error occurs. You can read this guide to understand how to setup network tracing.

 

Thanks,

Nick



ref:_00D1U1174p._5004Q2VMn7c:ref
Reply all
Reply to author
Forward
0 new messages