MobileAds.registerCustomTabsSession not working

89 views
Skip to first unread message

陈义宏

unread,
Jul 1, 2025, 1:01:07 PMJul 1
to Google Mobile Ads SDK Developers
I have configured the ApplicationId in the Manifest, initialized MobileAds, and used MobileAds.registerCustomTabsSession() to create a CustomTabsSession. However, it doesn't work like MobileAds.registerWebView() where AdMob mediates AdSense ads in H5 content. According to the logs, registerCustomTabsSession might not be taking effect at all. I've followed the documentation at https://developers.google.com/admob/android/browser/custom-tabs for configuration. Could you provide a demo implementation or more detailed documentation to resolve this issue?

Mobile Ads SDK Forum Advisor

unread,
Jul 1, 2025, 3:12:53 PMJul 1
to chenyihon...@gmail.com, google-adm...@googlegroups.com

Hi chenyihong,

Thank you for contacting the Mobile Ads SDK Support team.

I hope you have followed the implementation to optimize custom tabs. Kindly double check the Prerequisites to work the implementation as expected.  As of now since this is a beta version I can see only optimize custom tabs documentation and Google Android samples do not have this functionality yet implemented. Within your Chrome Custom Tabs implementation, modify the code in the onCustomTabsServiceConnected() callback. Replace newSession() with MobileAds.registerCustomTabsSession().

// Warm up the browser process.
customTabsClient?.warmup(0L)
// Create a new browser session using the Google Mobile Ads SDK.
customTabsSession = MobileAds.registerCustomTabsSession(
 th...@MainActivity.applicationContext,
client,
// Checks the "Digital Asset Link" to connect the postMessage channel.
ORIGIN,
// Optional parameter to receive the delegated callbacks.
customTabsCallback
 )

If this doesn't work, kindly provide the below details privately so that we can check your implementation, debug to find the root cause and may provide the solution:

  • app ID & ad unit ID
  • Mobile Ads SDK version being used
  • Charles logs
  • Sample project that reproduces the issue and has custom tabs implemented

You can provide the following details via reply privately to the author option or below link.

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=500Ht00001rgsbSIAQ&entry.80707362=00316664

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.

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-07-01 19:11:47Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rgsbS:ref" (ADR-00316664)



Mobile Ads SDK Forum Advisor

unread,
Jul 11, 2025, 10:36:03 AMJul 11
to chenyihon...@gmail.com, google-adm...@googlegroups.com

Hi,

As of now no update on this. But I will intimate you once I receive any. Meanwhile, your patience is important.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-07-11 14:34:46Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rgsbS:ref" (ADR-00316664)



陈义宏

unread,
Jul 13, 2025, 11:56:41 PMJul 13
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com
Ok, I will wait,Thanks.

Mobile Ads SDK Forum Advisor <mobile...@forumsupport.google> 于2025年7月11日周五 22:34写道:

郑小飞

unread,
Aug 29, 2025, 9:24:08 AM (6 days ago) Aug 29
to Google Mobile Ads SDK Developers
I will continue to follow up on this issue. Please let me know if there is any progress.

Mobile Ads SDK Forum Advisor

unread,
Aug 29, 2025, 11:52:19 AM (6 days ago) Aug 29
to xiaofei...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

Currently there is no update at this time. Once we receive any updates, we will intimate you. Meanwhile, your patience is important.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-08-29 15:51:15Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rgsbS:ref" (ADR-00316664)



Reply all
Reply to author
Forward
0 new messages