Fluid ads not working on Android

824 views
Skip to first unread message

Max Metral

unread,
May 4, 2022, 6:21:10 PM5/4/22
to Google Mobile Ads SDK Developers
Lots of people have reported this bug, but we are blocked from releasing a very popular app because of it. Fluid ads do not work on Android, and come back with the wrong width/height. They typically come back with size "350_20_mb", but that isn't the intended size of the creative (thus it gets cut off). There does not appear to be any way to reconstruct the proper height for the containing view, and standard layout settings, as described in the docs, do not work. Does anyone know why this would be? And in order for me to do a better job fixing it, is the source code for the underlying SDK available somewhere? 




Mobile Ads SDK Forum Advisor

unread,
May 5, 2022, 1:46:15 PM5/5/22
to m...@pyralis.com, google-adm...@googlegroups.com

Hello Max,

 

Can you verify if your app is giving a width to the fluid ads? According to this guide, you need to specify a width for your ad, so that we can calculate a height.

 

You can also send us a Charles log for us to investigate.

 

Regards,

Chris


 

ref:_00D1U1174p._5004Q2aQc9g:ref

Max Metral

unread,
May 5, 2022, 11:29:43 PM5/5/22
to Google Mobile Ads SDK Developers
I can verify that I am getting HTML back from the ad request. These headers are a bit weird:

x-afma-ad-size:320x50
x-afma-ad-slot-size:320x50

Max Metral

unread,
May 6, 2022, 1:18:12 PM5/6/22
to Google Mobile Ads SDK Developers
Is the source code for the underlying SDK available? It would make debugging a lot easier. One thing I know - AdSize is returning the wrong thing on Android. The library that works doesn't USE AdSize, it just lets some internal layout logic (that I can't see) do the work. But all the other libraries set the view size based on the AdSize returned, and since the AdSize is lying, they fail.

Max Metral

unread,
May 6, 2022, 2:23:50 PM5/6/22
to Google Mobile Ads SDK Developers
I think the problem may be related to usage in React Native in some very non-trivial way.


But this would be trivially fixed if the Google SDK returned the proper size. So the question is how do we fix that, or do ads just not work in React Native?

Mobile Ads SDK Forum Advisor

unread,
May 6, 2022, 6:19:09 PM5/6/22
to m...@pyralis.com, google-adm...@googlegroups.com

Hi Max,

 

Google Mobile Ads SDK currently doesn’t support React Native, so publishers need to build their own wrappers (or use those provided in open source projects) to use the SDK in React Native.

 

Can you verify if you are setting the width of the fluid ad before requesting it as described here? A Charles log would also be helpful.

Max Metral

unread,
May 6, 2022, 11:58:17 PM5/6/22
to Google Mobile Ads SDK Developers
I understand that the SDK doesn't support it directly, but there are a number of wrappers already out there (that seem to all suffer from this problem), and I think with the current behavior of the SDK, it is actually not POSSIBLE to build a wrapper that will work with fluid ads. The core issue is that the layout infrastructure in React Native is different, in a way that I don't yet fully understand but has to do with the timing of layout operations. And given that I see no ACTUAL documentation for how the layout process works for fluid ads in the Google Mobile Ads SDK, and given that the SDK code is obfuscated and not available for debugging, I can't figure out how. On iOS, there is an event fired when the size of a fluid ad changes/is available, and that provides the opportunity to do layout as necessary. On Android, that event is not fired, and the size reported in onAdLoaded is incorrect, or at least premature and thus not useful.

What would be most helpful is some description of how, when the fluid ad is returned by the server, an optimal height is computed and when. The React Native code base is *significantly* larger than the Mobile Ads SDK, and the reasons for the layout differences in React Native are almost certainly important and correct. So the most likely (and simplest) change is to have the Android Ads SDK provide the information that it clearly already knows to the containing app so it can perform the necessary layout.

Mobile Ads SDK Forum Advisor

unread,
May 10, 2022, 11:39:29 AM5/10/22
to m...@pyralis.com, google-adm...@googlegroups.com

Hi Max,

Max Metral

unread,
May 10, 2022, 1:42:32 PM5/10/22
to Google Mobile Ads SDK Developers
I can get a log now, can you tell me if there's anything in there that is considered sensitive that I should redact? I will look it over, but if there are some obvious things to look for that'd be appreciated.

Mobile Ads SDK Forum Advisor

unread,
May 10, 2022, 2:40:13 PM5/10/22
to m...@pyralis.com, google-adm...@googlegroups.com
Hi Max,

There is nothing we'd consider sensitive that you'd need to redact. If there's information you'd like to redact that's not a problem.

Max Metral

unread,
May 10, 2022, 3:04:25 PM5/10/22
to Google Mobile Ads SDK Developers
https://pubads.g.doubleclick.net/gampad/ads?submodel=sdk_gphone64_arm64&android_app_volume=1&disable_ml=false&format=320x50_mb&omid_v=a.1.3.3-google_20200416&is_nonagon=true&android_app_muted=false&am=0&dv=213806100&gl=US&hl=en&js=afma-sdk-a-v213806999.212910000.1&lv=212910700&ms=CpgEC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H2gc&rm=2&sp=false&coh=true&riv=5&vnm=1.0&u_sd=2.75&request_id=212724239&fluid=height&render_in_browser=false&target_api=31&carrier=310260&request_pkg=com.matejdr.admanager.BannerAdView&app_open_version=2&is_sidewinder=0&fbs_aeid=5137208402801002507&fbs_aiid=d7a95293aa83b0e90958e0515613f478&seq_num=1&is_gbid=false&eid=318496669%2C318486317%2C318491267%2C318481003%2C318483611%2C318484497%2C318484801%2C318492497%2C318495098%2C318500151%2C318501236%2C318475418%2C318502505%2C318501444&_c_csdk_npa_o=false&guci=0.0.0.0.0.0.0.0&adtest=on&sdk_apis=7%2C8&omid_p=Google%2Fafma-sdk-a-v213806999.212910000.1&cap=m&u_w=393&u_h=803&msid=com.fluidads&an=1.android.com.fluidads&_package_name=com.fluidads&u_audio=4&net=wi&u_so=p&adk=3669017861&preqs_in_session=0&support_transparent_background=true&preqs=0&time_in_session=0&output=html&region=mobile_app&u_tz=-240&url=1.android.com.fluidads.adsenseformobileapps.com&gdfp_req=1&markup=html&m_ast=afmajs&impl=ifr&iu=**REDACTED**&sz=320x50&correlator=1586261722694804&gsb=wi&ogsb=wi&apm_app_id=ca-app-pub-9939518381636264~1092563270&apm_app_type=2&lite=0&caps=inlineVideo_interactiveVideo_mraid1_mraid2_mraid3_sdkVideo_exo3_th_autoplay_mediation_scroll_av_av_transparentBackground_sdkAdmobApiForAds_di_sfv_dinm_dim_nav_navc_dinmo_ipdof_gls_gcache_demuxedGcache_xSeconds&bisch=false&blev=1&canm=true&mv=1801.com.android.vending&heap_free=13287624&heap_max=201326592&heap_total=29761256&wv_count=0&rdps=100&blockAutoClicks=true&trt=0&cust_params=excl_cat&includeDoritos=true&includeCookies=true&rdidl=36&idtypel=4&attokl=352&is_latl=-1&blob=ABPQqLGmqbhcQpfQw8DeoqauwfzUTl-awp_nkvhSfTm6q4pJrIsSNrNkwDD2VEWOtcqQxOyGS1_uIiNlg5hD7uiwjDBZiI4t1jHc4hgbj-oBGrnXwEVlZ1loB3syNx5l9WiLDwS7OLqEgzrZBBT33VIF-UKAxSx7vOKBNOTrZXSAh_iVAABkMkhWp79gkZVb3WWpQN21oBBJ2gUMMr3nXW9HGnFtEHd6z8WDC3VnR0gA6xWhO6O_CQtQtBm-4TeibQpqdni2zYIqi4BsZZ47A6r-2xwkppc8mDWs4ZF1ETEDX43M1cbQj_vVZ8v2MKL0ANcR5_Hx0JOjz0qaqXWSAZ3CREUavYCXxdSjQoRPX62u3_DGTYcBKqYR11iTtpwGcW6j-I0dc-DfHAg7EMmD4w7WP2qvzwcDSZwd_tDr5eP29RH0DdGLu1Yyx4Yo-xMlL59xeuZXHGep2EAlMypo_oRBVDFS3pJcPTn1NfHuYNSJlQjrxuKxdyOVEhF-ngeABMxbX1dLxTves2t2lbcXWRsL9M4Y1ry6qEPKqQ1Nr0fanrAR9BTMeOPplrdIFtY1UqKHjYkkdBQlwDPIzKuOUK3PYQf_R8iC-m9QaukfSnQSpq7u5RXkIpklFHlf1CKZmwwSlvBEaS8e3mxqqgon7aGQa7PgHId8om7fmxyTrBP2az3WmQqHLzL_C0YW6ZbIcRmZLvHezTLmxPhGXJua6P8s75MAWyesltYywMATcKkigBFZSDUnoektNT5dV5fXp98yHnkaQ8LRRF29PD_WmwEogN20xh470r86xyAe&et=170&tcar=243&jsv=sdk_20190107_RC02-production-sdk_20220502_RC00&urll=3862

accept-encoding:gzip
connection:Keep-Alive
cookie:IDE=AHWqTUk8ZkqtPVC4Br-oxYQaQJqF4kgVF9kp5Rorgh8eQHVOQM3Qf9rjlSJSqGVPZyc
user-agent:Mozilla/5.0 (Linux; Android 12; sdk_gphone64_arm64 Build/SE1A.220203.002.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36 (Mobile; afma-sdk-a-v214218053.214218053.0)

RESPONSE
200 OK
alt-svc:h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
cache-control:no-cache, must-revalidate
content-encoding:gzip
content-type:text/html; charset=UTF-8
cross-origin-resource-policy:cross-origin
date:Tue, 10 May 2022 17:56:30 GMT
expires:Fri, 01 Jan 1990 00:00:00 GMT
google-mediationgroup-id:-2
google-mediationtag-id:-2
p3p:policyref="https://googleads.g.doubleclick.net/pagead/gcn_p3p_.xml", CP="CURa ADMa DEVa TAIo PSAo PSDo OUR IND UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"
pragma:no-cache
server:cafe
timing-allow-origin:*
transfer-encoding:chunked
x-afma-ad-size:320x50
x-afma-ad-slot-size:320x50
x-afma-auto-collect-location:true
x-afma-auto-protection-configuration:{"enable_protection":true,"reporting_urls":["https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps\u0026event=auto-protection\u0026type=prevented-creative-action\u0026qid=CJrEgNvA1fcCFZIKaAgd8z4OqQ\u0026creatives=crid0:138391023725,agcid0:0,ctype0:31,ctid0:11948786,cuid0:0,lp0:https://adclick.g.doubleclick.net/pcs/click%3Fxai%3DAKAOjstdfc2RSQHbNrjbOa8FdJbJCh9y9K6sZKEprZtlUHFQgxWAaPHkXKtOSMXhae7tdoU2sRQ1Pn5rMR3JxnRO8A1UAKWH4xXck_fSoRBkOvpcQpG4Hc_T_Wo1tEkvqObCFpogdmVTaa1X7-lmkIZYkfKEh2i2tux-wmsCwHh_Rul1FInd13_YHECYdNfRTXDASFrvaPE8kN_h9aS0lYeO9AGWikSTe2tkfmkxUrA2SgErTzNF8Ha4enlRuE1BNRA2uJQsqBaSDUlwixc2qt1wQuPSCyCi25wDzaipZgZQdzhu8Dbtvd206rnz1tyQXlR1bQx9fk8xpln0Ut25pi-OtLT1Rca6dDiExexaB15QKfjH57sGUQeL1Vv2WWAeUrc-ORnzVQ%26sai%3DAMfl-YTMzJED7vP4JYOCikTTqU6rOlpk2xbBocMRja2RZImqUrlmwTvrNa4QmdRHAL9UIwgbqKo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SnRiMkpwYkdWaGNIQnpMbU52YlNfQUFnTGdBZ0RxQWk4dk1UQXlOVFEzT1M5allTMXdkV0l0T1RZek5ESTROalV3TVRjM05UQTROUzlOYjJKcGJHVmZVazVmVkdWemRQZ0NfTkVlZ0FNQmtBUGdBNWdENEFPb0F3SGdCQUhTQlFZUV84ZmpyeGFRQmdHZ0JoX1lCZ0tvQl9QUkc2Z0hsdGdicUFlcW03RUNxQWZmbjdFQzJBY0E0QWNmMGdnSENJQmhFQUVZSGRnSUFvQUtCWmdMQVlBTUFkQVZBZmdXQVlBWEFR\u0026debugDialog=AppID%3Dcom.fluidads%26Creatives%3D138391023725%26Lineitems%3D6005777407\u0026navigationURL={NAVIGATION_URL}"],"reporting_url":"https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps\u0026event=auto-protection\u0026type=prevented-creative-action\u0026qid=CJrEgNvA1fcCFZIKaAgd8z4OqQ\u0026creatives=crid0:138391023725,agcid0:0,ctype0:31,ctid0:11948786,cuid0:0,lp0:https://adclick.g.doubleclick.net/pcs/click%3Fxai%3DAKAOjstdfc2RSQHbNrjbOa8FdJbJCh9y9K6sZKEprZtlUHFQgxWAaPHkXKtOSMXhae7tdoU2sRQ1Pn5rMR3JxnRO8A1UAKWH4xXck_fSoRBkOvpcQpG4Hc_T_Wo1tEkvqObCFpogdmVTaa1X7-lmkIZYkfKEh2i2tux-wmsCwHh_Rul1FInd13_YHECYdNfRTXDASFrvaPE8kN_h9aS0lYeO9AGWikSTe2tkfmkxUrA2SgErTzNF8Ha4enlRuE1BNRA2uJQsqBaSDUlwixc2qt1wQuPSCyCi25wDzaipZgZQdzhu8Dbtvd206rnz1tyQXlR1bQx9fk8xpln0Ut25pi-OtLT1Rca6dDiExexaB15QKfjH57sGUQeL1Vv2WWAeUrc-ORnzVQ%26sai%3DAMfl-YTMzJED7vP4JYOCikTTqU6rOlpk2xbBocMRja2RZImqUrlmwTvrNa4QmdRHAL9UIwgbqKoS1VYlOwReccJTN5ZUCO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pMbU52YlNfQUFnTGdBZ0RxQWk4dk1UQXlOVFEzT1M5allTMXdkV0l0T1RZek5ESTROalV3TVRjM05UQTROUzlOYjJKcGJHVmZVazVmVkdWemRQZ0NfTkVlZ0FNQmtBUGdBNWdENEFPb0F3SGdCQUhTQlFZUV84ZmpyeGFRQmdHZ0JoX1lCZ0tvQl9QUkc2Z0hsdGdicUFlcW03RUNxQWZmbjdFQzJBY0E0QWNmMGdnSENJQmhFQUVZSGRnSUFvQUtCWmdMQVlBTUFkQVZBZmdXQVlBWEFR\u0026debugDialog=AppID%3Dcom.fluidads%26Creatives%3D138391023725%26Lineitems%3D6005777407\u0026navigationURL={NAVIGATION_URL}"}
x-afma-backend-query-id:CJrEgNvA1fcCFZIKaAgd8z4OqQ
x-afma-content-url-opted-out:true
x-afma-content-vertical-opted-out:true
x-afma-debug-dialog:AppID=com.fluidads&Creatives=138391023725&Lineitems=6005777407
x-afma-debug-signals:{"backend_query_id":"CJrEgNvA1fcCFZIKaAgd8z4OqQ","yield_group_ids":[]}
x-afma-enable-omid:true
x-afma-fluid:height
x-afma-gws-query-id:Tqd6YoS6B5qXNdOaiKAP
x-afma-omid-settings:{"media_type":0}
x-afma-on-device-brand-safety-opted-out:true
x-afma-safe-browsing:{"click_string":"BA_bMTqd6YprlCJKVoPMP8_24yAqKwvybRgAAABABIP2jjAM4AVjt4P3FgwRgyZbuiISk7A-IAQGyAS8xLmFuZHJvaWQuY29tLmZsdWlkYWRzLmFkc2Vuc2Vmb3Jtb2JpbGVhcHBzLmNvbboBCWdmcF9pbWFnZcgBCdoBN2h0dHA6Ly8xLmFuZHJvaWQuY29tLmZsdWlkYWRzLmFkc2Vuc2Vmb3Jtb2JpbGVhcHBzLmNvbS_AAgLgAgDqAi8vMTAyNTQ3OS9jYS1wdWItOTYzNDI4NjUwMTc3NTA4NS9Nb2JpbGVfUk5fVGVzdPgC_NEegAMBkAPgA5gD4AOoAwHgBAHSBQYQ_8fjrxaQBgGgBh_YBgKoB_PRG6gHltgbqAeqm7ECqAffn7EC2AcA4Acf0ggHCIBhEAEYHdgIAoAKBZgLAYAMAdAVAfgWAYAXAQ","report_url":"https://sb-ssl.google.com/safebrowsing/clientreport/malware","screenshot_enabled":false,"non_malicious_reporting_enabled":false,"rendered_ad_enabled":false,"header_to_scrub":["cookie"],"protection_enabled":true,"malicious_reporting_enabled":true,"allowed_headers":["referer"],"webview_permissions":[]}
x-afma-test-request:true
x-afma-use-displayed-impression:true
x-afma-use-https:false
x-content-type-options:nosniff
x-xss-protection:0


<!DOCTYPE html>
<html>

<head>
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script>var jscVersion = 'r20220509';</script>

...more stuff....

Mobile Ads SDK Forum Advisor

unread,
May 12, 2022, 6:32:01 AM5/12/22
to m...@pyralis.com, google-adm...@googlegroups.com

Hi Max,

I work along with Chris. Let me share this to the rest of the team to further investigate this. Rest assured that one of our team will reach out to you.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2aQc9g:ref

Mobile Ads SDK Forum Advisor

unread,
May 13, 2022, 2:09:18 AM5/13/22
to google-adm...@googlegroups.com, m...@pyralis.com

Hi Max, 

 

My name is Nick and I am looking into this 'not working fluid ad'. Could you please provide me with the following if possible?

  • Your Publisher Id.
  • The affected AdUnit Ids.
  • A detailed description of what went wrong, (what exactly is not working?).
  • A picture or video of the issue.
  •  A charles log of the request.

I will let you know what I find on my end shortly, but the above information will help.

 

Thanks,

Nick



ref:_00D1U1174p._5004Q2aQc9g:ref

Max Metral

unread,
Aug 26, 2022, 10:07:57 AM8/26/22
to Google Mobile Ads SDK Developers
I'd like to revive this ancient thread. We are using the OpenWrap SDK in front of the Google SDK. The problem is that we can't determine whether an ad is fluid or not. And thus we can't display it properly. The flow is like so:

- React Native sets a width on the view, and we set that width on the AdManagerAdView.
- We call loadAd and get some ad back
- In the ad received handler, we ask for the creative size. We get 320x50, regardless of whether it's fluid or not
- To accommodate fluid ads, we dig the view hierarchy, find the web view, and ask it how tall the content is
- We set the height on the React Native view to the specified height

That sorta kinda works, but (a) is super gross and (b) will also leave the width for non-fluid ads as full screen, which causes the google view to stretch the ad. We were told at one point by someone at Google that there was no intent to fix this bug (where iOS provides the right size, but Android does not). I don't see how we can possibly display ads correctly without this information, or without Google/OpenWrap sizing the internal views appropriately.

Mobile Ads SDK Forum Advisor

unread,
Aug 29, 2022, 1:40:22 PM8/29/22
to m...@pyralis.com, google-adm...@googlegroups.com

Hi Max,

 

Can you point me to which specific Google APIs you are using (via the OpenWrap SDK). Example code of how the OpenWrap SDK is using the Google APIs would also be appreciated. These specifics will help me formulate the feature request.

Max Metral

unread,
Sep 7, 2022, 9:25:30 AM9/7/22
to Google Mobile Ads SDK Developers
This bug describes the problem well: https://github.com/Freddixx/react-native-ad-manager/pull/7

Mobile Ads SDK Forum Advisor

unread,
Sep 7, 2022, 11:52:28 AM9/7/22
to m...@pyralis.com, google-adm...@googlegroups.com

Thanks Max,

 

I will include these details in the feature request.

Reply all
Reply to author
Forward
0 new messages