Comments (4)
Yes, it is recommended to create a new one at a time, as in the demo.
from hms-ads-demo-java.
I updated my code today and the ads are showing correctly on the phone. but i'm not sur if it's the correct way to avoid the message : An ad cannot be displayed repeatedly for one request
Please have a look https://github.com/AmiriOS2019/myfiles2/blob/main/MyActivity.java
from hms-ads-demo-java.
Look at the code and I think your problem can be solved.
But, I don't think it's handled right here, why did you destory ad just loaded?
from hms-ads-demo-java.
Thank you ttljtw for your remark. I put it first like on the demo code link, but after seeing the documentation I noticed that I should destroy the native ad after displaying it, so I move it after adScrollView.addView(nativeView);
but what I don't understand, why the value of nativeAd is not null after i have destroyed it
from hms-ads-demo-java.
Related Issues (20)
- No banner ad is shown with "Ad failed to load with error code 3" message HOT 11
- Adding keywords breaks the JSON HOT 3
- 原生广告控件,不再显示该广告按钮无法显示 HOT 2
- InstreamAdsLoader compatible with ExoPlayer? HOT 2
- ad failed to load error code 2 HOT 1
- Ad failed with error code 0 - onAdFailed error code 499 HOT 13
- Ad load failed with error code: 3 HOT 7
- Ads error code: 0 HOT 1
- Ad load failed with error code: 3 for Splash Ad HOT 2
- Ads are available only on huawei phones? HOT 1
- Can we test Huawei Ads on Samsung Device? HOT 1
- ad error code is 3 .自定义广告位请求成功,没有返回广告。 HOT 1
- Banner ad doesn't work in android library HOT 1
- from where i get the id ads? HOT 1
- APK link for the Ads Demo HOT 2
- Can screenshots be added to the Readme page? HOT 2
- Error code 2 HOT 2
- No banner ad is shown with "Ad failed to load with error code 0" message HOT 6
- 有没有办法获取真实广告而不是Test广告? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hms-ads-demo-java.