[Flutter][Native Ad] setting requestCustomMuteThisAd and customControlsRequested doesn't work

46 views
Skip to first unread message

Beshoi

unread,
Apr 1, 2024, 2:03:42 AM4/1/24
to Google Mobile Ads SDK Developers
Hi, I am integrating flutter full page native video ads into my platform. I wanted to overlay my own mute and play/pause experience to have the ad more integrated within the platform; however, setting the custom controls properties to true doesn't change anything. Additionally using the "MobileAds.instance.setAppMuted(true);" to toggle mute on an Ad also doesn't change the ad mute state...

Any idea on what additional properties I need to update in the code below to make the experience work?

Sample add
Screenshot 2024-03-30 at 9.34.52 AM.png


Ad setup:
_nativeAd = NativeAd(
adUnitId: _adUnitId,
factoryId: "myNativeAdFactory",
nativeAdOptions: NativeAdOptions(
adChoicesPlacement: AdChoicesPlacement.bottomRightCorner,
mediaAspectRatio: MediaAspectRatio.any, //portrait, any
requestCustomMuteThisAd: true,
videoOptions: VideoOptions(
clickToExpandRequested: false,
customControlsRequested: true,
)),
listener: NativeAdListener(onAdLoaded: (ad) {
Logger.instance.info(message: '$NativeAd loaded.');
setState(() {
_nativeAdIsLoaded = true;
});
}, onAdFailedToLoad: (ad, error) {
// Dispose the ad here to free resources.
Logger.instance.warn(message: '$NativeAd failed to load: $error');
ad.dispose();
}, onAdImpression: (ad) {
Logger.instance.info(message: '$NativeAd impression achieved.');
}, onAdClosed: (ad) {
Logger.instance.debug(message: '$NativeAd ad closed.');
}),
request: const AdRequest(),
)..load();

Mobile Ads SDK Forum Advisor

unread,
Apr 1, 2024, 1:02:48 PM4/1/24
to bge...@tokd.co, google-adm...@googlegroups.com
Hi,

I see that you have already raised this concern on another thread with the subject 'requestCustomMuteThisAd and customControlsRequested not working', and we have already responded to this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02s0N5z:ref" (ADR-00229398)

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages