Request: allow to set adChoices location when binding the NativeAd to NativeAdView, not when loading

46 views
Skip to first unread message

Liran Barsisa

unread,
Aug 24, 2024, 5:31:21 AM8/24/24
to Google Mobile Ads SDK Developers
As we decide about the layout to use after the ad is loaded and we know where we put it, it doesn't make sense that we will need to decide about the adChoices location way before, in the loading phase.

AdChoices should be set when we bind the data to the UI that we've chosen. 
The UI is chosen not during loading time, but when we know the size, position and configuration of the Activity/Fragment that contains the ad, including the ad itself.
Only then we also choose the layout of the ad.
For example, if the ad has a portrait media, we would choose some layout for it, and if there isn't much width or height for the ad, we would choose different layouts for those cases too.

Sadly, it seems to be the situation, as we have control of the location only on one of the corners, and only in loading time:
https://developers.google.com/ad-manager/mobile-ads-sdk/android/native/options#adchoices_position_controls

Trying to set it by ourselves using the next API doesn't seem to do anything:

UI decisions shouldn't be forced to be done during loading phase. Loading phase might be cached for later use, too. Or used when the configuration changed and the new layout might not look nice with the decisions done during loading phase.

Please change this. Have the API of setting the AdChoicesView working, and also have the choice of which corner to set it be available during binding time, and not during loading time which doesn't make sense.
Reply all
Reply to author
Forward
0 new messages