Is banner ads prefetching (caching) possible?

1,722 views
Skip to first unread message

Vasiliy Korchagin

unread,
Jul 24, 2019, 5:15:52 AM7/24/19
to Google Mobile Ads SDK Developers
Greetings to all!

When i received bannerView after request my app freezes slightly - for this reason I want to use prefetching (caching).

1) It is possible to apply banner ads prefetching (caching)? I want to make several requests [bannerView loadRequest:[self gadRequest]] at once (3 times, for example) and store all received GADBannerView. And in next time if it will be necessary to display a screen with banner ads I will use cached objects instead of a making new loadRequest.

2) If I use ads mediation, will the prefetching (caching) rules change (depends on specific ads network)?

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 24, 2019, 6:51:51 AM7/24/19
to bacc...@gmail.com, google-adm...@googlegroups.com
Hi Vasiliy,

Thank you for reaching out. 

With regard to your concern, I'm afraid prefetching/caching on banner ads is not supported. The only way to achieve this (Native+banner ad) is through Native advance ads by following to this guide. You can also take a look at our sample apps as a reference. However, please not that the Native advance ads is in closed beta and is only available to selected publishers. While we hope to make this feature available to all publishers in the future, we don't currently have a timeline for doing so. That said, if you don't have a designated Technical Account Manager, then I suggest that you keep an eye on our blog for any future updates.

Regards,
Teejay Pimentel 
Mobile Ads SDK Team

ref:_00D1U1174p._5001UEGEYf:ref

Vasiliy Korchagin

unread,
Jul 24, 2019, 8:43:15 AM7/24/19
to Google Mobile Ads SDK Developers
Thank you for response.

To clarify: I understand that Google SDK doesn't support caching banner ads. I need to use Banner ads, not Native Advanced Ads.
Right now I can call loadRequest several times at once (3 times) and save received GADBannerViews, but show just first of them. Other GADBannerViews will be saved somehow and shown to a user later. So it's possible technically.
The question is if it's allowed to do such requests to get banner ads without displaying ads at once? If yes, will it work with Admob mediation?

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 25, 2019, 1:37:55 AM7/25/19
to bacc...@gmail.com, google-adm...@googlegroups.com
Hi Visiliy,

Thank you for your clarification. 

With regard to your implementation, technically the solution that you mentioned is possible. However, we cannot comment if this is permissible or not base on policies. You may reach out to our AdMob Product Support Team through the AdMob Help Center or view these article for relevant information.  In addition, you may check this sample implementation which seems to be the same behavior that you want to achieve.

Liran Barsisa

unread,
Jul 25, 2023, 3:46:18 AM7/25/23
to Google Mobile Ads SDK Developers

Any news about this?
There should be a way to preload ads of all types (AdView, native ads, etc...) , no matter where we are in code (even inside a service), so that we could show them later when the time comes to use actual UI, whether it's in Activity or Fragment or even a floating UI (using SAW permission).

Mobile Ads SDK Forum Advisor

unread,
Jul 25, 2023, 6:33:25 AM7/25/23
to lbl...@gmail.com, google-adm...@googlegroups.com
Hi Liran,

If you're looking for a way to preload banner ads, then we would recommend checking out our sample banner recyclerView app (https://github.com/googleads/googleads-mobile-android-examples/tree/main/java/advanced/BannerRecyclerViewExample/app) that load banner ads as preloading for reference in your application.
 
This message is in relation to case "ref:_00D1U1174p._5001UEGEYf:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


 

Liran Barsisa

unread,
Jul 25, 2023, 7:23:31 AM7/25/23
to Google Mobile Ads SDK Developers

No, this isn't an example of general preloading as I've described. It's still in the same Activity. 
An example of preloading would be outside of the Activity that it's being used, using Application as the Context parameter because fetching data from the Internet doesn't require UI-related classes, including any kind of UI container such as Activity.

Mobile Ads SDK Forum Advisor

unread,
Jul 25, 2023, 1:12:14 PM7/25/23
to lbl...@gmail.com, google-adm...@googlegroups.com

Hi Liran,

Thank you for your response.

Can you confirm if you're referring to your opened thread (https://groups.google.com/g/google-admob-ads-sdk/c/gX4f-VISpIM/m/aFoSbIn5AwAJ?utm_medium=email&utm_source=footer) to us? If yes, kindly continue the conversation on that thread as we already shared it to the wider team and they are currently handling it. We already saw that our wider team has created a feature request for this. Moving forward, kindly respond to your existing thread. 

Liran Barsisa

unread,
Jul 25, 2023, 2:04:52 PM7/25/23
to Google Mobile Ads SDK Developers
ok
Reply all
Reply to author
Forward
0 new messages