Performance issue on NativeExpressAdView
See original GitHub issueI’ve got performance issue when rendering NativeExpressAdView.
Here are some informations:
Version: com.google.firebase:firebase-ads:9.0.2
I used this sample app: https://github.com/googleads/googleads-mobile-android-examples/tree/master/admob/NativeExpressExample and change a bit to log the render time:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
NativeExpressAdView adView = (NativeExpressAdView) findViewById(R.id.adView);
long beginTime = System.currentTimeMillis();
adView.loadAd(new AdRequest.Builder().build());
long endTime = System.currentTimeMillis();
Log.e(getClass().getSimpleName(), "loadAds time:" + (endTime - beginTime));
}
}
The logcat says the time when adView.loadAd(new AdRequest.Builder().build());
runs is 400-500ms, it’s not acceptable.
Please help me to fix this issue. Thanks
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
[NativeAd] Performance issue of NativeExpressAdView
Hi,. While integrating NativeExpressAdView, one performance issue was encountered. Version : com.google.firebase:firebase-ads:9.6.1. Following ...
Read more >admob::NativeExpressAdView Class Reference - Firebase
Each NativeExpressAdView object corresponds to a single AdMob Native Express ad placement. There are methods to load an ad, move it, show it...
Read more >NativeExpressAdView java.lang.IndexOutOfBoundsException ...
Your problem is that mRecyclerViewItems is a zero based array/collection. ... final NativeExpressAdView adView = (NativeExpressAdView) ...
Read more >SDK Migration | Android - Google Developers
Adaptive banners provide superior performance and more flexibility in ... Settings , NativeExpressAdView , NativeAppInstallAd , NativeContentAd , and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
runs is 400-500ms Loading in the list is more Carlton
Marking this as obsolete as Native Express is now deprecated. Further, any issues with other formats experiencing similar delays are a part of the Google Mobile Ads SDK behavior and not the examples themselves, so this isn’t the right venue for this issue.
The slow ad loading itself is acknowledged, and is being addressed as part of a larger internal cleanup of the SDK. I’m unable to provide a timeline on when that will drop though. The target keeps moving.
For further updates and inquiries on this issue, please reach out to the Google Mobile Ads SDK developer forum.