AdMob & Facebook Audience - ERR_CLEARTEXT_NOT_ALLOWED error

373 views
Skip to first unread message

Patrick Frei

unread,
Jun 9, 2019, 2:22:26 PM6/9/19
to Google Mobile Ads SDK Developers
Hi support,

I'm using AdMob together with Facebook Audience Network SDK ("Mediation"). I've followed your integration guide on: https://developers.google.com/admob/android/mediation/facebook

Then, I've noticed that some ads from Facebook show the following error: ERR_CLEARTEXT_NOT_ALLOWED

This issue can be solved by using the following guide: 

I'd suggest to mention this Facebook guide in your AdMob Integration guide. So, developers are aware of that issue.

Best regards,
Patrick

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 9, 2019, 11:48:57 PM6/9/19
to pa_...@bluewin.ch, google-adm...@googlegroups.com
Hi Patrick,

Thank you for reaching out to us.

I will be forwarding your insights to the rest of the team so that we can update the documentation accordingly. In the meantime, you may follow our blog and our release notes for future updates.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

ref:_00D1U1174p._5001UBmNXg:ref

Patrick Frei

unread,
Jun 10, 2019, 8:29:59 AM6/10/19
to google-adm...@googlegroups.com
Hi Ziv Yves,

Thank you!

Just an additional information: Although Facebook mentions in the guide that white-listing "localhost" / "127.0.0.1" is sufficient, their guide doesn't seem fully applicable for AdMob with Facebook Audience Network mediation. I could only get it work by adding the following to the network_security_config.xml:

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
   
<base-config cleartextTrafficPermitted="true" />
</network-security-config>


I know that this isn't really elegant as it allows all cleartext traffic, but at the moment, it seems to be the only solution to get rid of the error message.

Best regards,
Patrick

Junya Motohashi

unread,
Nov 4, 2022, 5:30:28 AM11/4/22
to Google Mobile Ads SDK Developers

Hi Ziv Yves,

I found that this issue has not been solved yet.

I sometimes meet ERR_CLEARTEXT_NOT_ALLOWED when I tap the ads from Meta(Facebook).

How can I deal with this?


Regards,

Motohashi


2019年6月10日月曜日 21:29:59 UTC+9 pa_...@bluewin.ch:

Mobile Ads SDK Forum Advisor

unread,
Nov 7, 2022, 1:10:36 AM11/7/22
to junya.m...@dely.jp, google-adm...@googlegroups.com

Hi Junya,

 

Thank you for reaching out to us.

 

Can you provide us privately the following information below for us further check if this is still related to the previous thread you've referenced. You can provide the following details via Reply privately to author option or directly provide it to the link below.

 

  • SDK version
  • Mediation Meta Audience Network (previously Facebook) version
  • App ID
  • Screenshot of the error

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=5004Q00002g0874QAA&entry.80707362=00156206

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
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2g0874:ref

Junya Motohashi

unread,
Nov 7, 2022, 2:45:20 AM11/7/22
to Google Mobile Ads SDK Developers
Hi Pamela,

Thank you for your reply.

I've just sent you following information via form link.

Regards,
Motohashi

2022年11月7日月曜日 15:10:36 UTC+9 mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Nov 7, 2022, 10:59:04 PM11/7/22
to junya.m...@dely.jp, google-adm...@googlegroups.com

Hi Motohashi,

 

Thank you for providing the requested details.

 

Since this is specific to the mediation network of Meta(Facebook), can you confirm if the previous solution from the previous publisher doesn't solve the error you've encounter? If upon trying that still returns you this error, can you provide as a copy of a Charles log (see instruction here) privately capturing the error "ERR_CLEARTEXT_NOT_ALLOWED". You can provide the following details via Reply privately to author option or directly provide it to the link below.

Junya Motohashi

unread,
Nov 14, 2022, 9:33:35 PM11/14/22
to Google Mobile Ads SDK Developers

Hi Pamela.


Thank you for your reply.


I confirmed that this solution could solve the error.

However, it enables app to allow all the http communications which can be a security hole.


> Since this is specific to the mediation network of Meta(Facebook),

OK, I would like to share this issue with Meta SDK Forum too.


Regards,

Motohashi

2022年11月8日火曜日 12:59:04 UTC+9 mobileadssdk:

Mobile Ads SDK Forum Advisor

unread,
Nov 15, 2022, 2:08:50 AM11/15/22
to junya.m...@dely.jp, google-adm...@googlegroups.com

Hi Junya,

 

Thank you for confirming this. I've raised this to the wider team for the update in our documentation if there is a possible workaround for this error in the mediation network of Meta(Facebook). In the meantime, you can keep an eye on our release notes or blog for future updates regarding this.

Reply all
Reply to author
Forward
0 new messages