question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance issue on NativeExpressAdView

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cgpllxcommented, Jan 22, 2017

runs is 400-500ms Loading in the list is more Carlton

0reactions
ericleichcommented, Mar 2, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >
Bountysource
Performance issue on NativeExpressAdView.
Read more >
SDK Migration | Android - Google Developers
Adaptive banners provide superior performance and more flexibility in ... Settings , NativeExpressAdView , NativeAppInstallAd , NativeContentAd , and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found