Flutter Native Ad preload

251 views
Skip to first unread message

Quân Lê

unread,
Dec 7, 2023, 4:20:03 AM12/7/23
to Google Mobile Ads SDK Developers
I want to preload the native ad before displaying it for the appropriate placement in a variety of layouts. However, currently when starting loading native ads I have to pre-specify the NativeAdFactory with the corresponding layout. Is there another way I can preload native ads and show them to relevant placements later?

Mobile Ads SDK Forum Advisor

unread,
Dec 7, 2023, 8:42:09 AM12/7/23
to backv...@gmail.com, google-adm...@googlegroups.com

Hi Quân,

Thank you for contacting the Mobile Ads SDK support team.

By reviewing your concern, I understand that you are asking for prefetching technique in flutter native ads.

As per checking in our documentation for native ads, applications displaying native ads are free to request them in advance of when they'll actually be displayed. In many cases, this is the recommended practice. An app displaying a list of items with native ads mixed in, for example, can load native ads for the whole list, knowing that some will be shown only after the user scrolls the view and some may not be displayed at all.

Kindly note, that while prefetching ads is a great technique, it's important that it should not keep old ads around too long without displaying them. Any ad objects that have been held for longer than an hour without being displayed should be discarded and replaced with new ads from a new request. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02qX8aF:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team

 



Reply all
Reply to author
Forward
0 new messages