[Native ad] Ensure that the whitespace (or background image) is not clickable

156 views
Skip to first unread message

wanm...@gmail.com

unread,
Jul 6, 2023, 11:33:15 AM7/6/23
to Google Mobile Ads SDK Developers
Hi, 

As the policy page says, Ensure that the whitespace (or background image) is not clickable.

What I want to confirm is: 

If I want to show NativeAdView which only contains headline,  and set the width of TextView to be match_parent.

There are two cases:

1. The headlines are long enough and there is no white space, Click the ad will take you to the app or browser. 

2. The headlines are short and there are a lot white spaces. Click the white space also takes you to the app or browser. 

Is it illegal to set the width of TextView be match_parent in this case?


Message has been deleted
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Jul 7, 2023, 5:52:14 AM7/7/23
to koipo...@gmail.com, wanm...@gmail.com, google-adm...@googlegroups.com
Hello everyone,

Thank you for reaching out to us.

We don't recommend using match_parent to the width of TextView in this context as it may create a clickable blank space if the text is not long enough. An alternative would be putting a non clickable View beside the TextView and setting this to match_parent to avoid the clickable blank space.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2msGJg:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages