Comments (13)
What error(s) are you getting? Are you using the NativeExpressRecyclerView example app (but replacing Native Express ads with content ads)?
from googleads-mobile-android-examples.
Was able to reproduce the "failed to load native ad" error with the Native Advanced example. Will take a look to see what is going on and will get back to. Thank you for reporting this issue!
from googleads-mobile-android-examples.
@temrich Hi, no I'm using the "NativeAdvancedExample" demo, https://github.com/googleads/googleads-mobile-android-examples/tree/master/admob/NativeAdvancedExample .
This demo uses both, install and content ads. Thanks for your response
from googleads-mobile-android-examples.
Hi, I was able to reproduce this error using the Android Emulator, but was not able to reproduce on an actual device.
I also used the NativeAdvancedExample app. Can you please let me know if you are able to reproduce on an actual device?
from googleads-mobile-android-examples.
@temrich hi, sorry for the late response, wasn't able comment don't know why, the answer is yes, I'm almost always testing with real devices, on this issue I was testing on a Nexus 6 and a Moto G 3th, and on both had the same issue, sometimes it works, but most of them don't.
from googleads-mobile-android-examples.
Hi David,
I tested the AdMob Native Advanced example app on both a Nexus 6 (6.0.1) and Moto G (4.4.4) and was able to successfully get app install and content ads to load. Are you using the test ad unit IDs in the example or are you using your own? Any chance you can provide a logcat where you are able to reproduce the issue?
from googleads-mobile-android-examples.
Hi ,
I have same problem on Android Emulator and LG device .
the error on Emulator:
Requires 10084000 but found 6774480
W/Ads: Received error HTTP response code: 403
W/Ads: There was a problem getting an ad response. ErrorCode: 0
W/Ads: Failed to load ad: 0
W/EGL_emulation: eglSurfaceAttrib not implemented
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7feb80987e00, error=EGL_SUCCESS
from googleads-mobile-android-examples.
W/Ads: Received error HTTP response code: 403
indicates that the server rejected the ad request. One reason for this is the ad unit ID is either not a native ads ad unit ID, or the account it's coming from is not enabled for native ads advanced.
I just checked and the Android guide is incorrectly pointing to an iOS ad unit. But the sample app has a working Android ad unit. So can you try with ca-app-pub-3940256099942544/2247696110
and see if that resolves the issue?
from googleads-mobile-android-examples.
@ericleich Thanks for great response . i tast RewardedVideo Ads in Androidstudio and use this ad unit ID ca-app-pub-5920324855307233/4458481507
, after read your comment test this id ca-app-pub-3940256099942544/2247696110
but the problem is not solve :( .
the error is :
02-01 22:00:57.230 2169-2169/com.google.ads.rewardedvideoexample I/Ads: Starting ad request. 02-01 22:00:59.800 2169-4169/com.google.ads.rewardedvideoexample W/Ads: Received error HTTP response code: 403 02-01 22:00:59.800 2169-4169/com.google.ads.rewardedvideoexample W/Ads: There was a problem getting an ad response. ErrorCode: 0 02-01 22:00:59.800 2169-2169/com.google.ads.rewardedvideoexample W/Ads: Failed to load ad: 0 02-01 22:00:59.860 2169-2316/com.google.ads.rewardedvideoexample W/EGL_emulation: eglSurfaceAttrib not implemented 02-01 22:00:59.860 2169-2316/com.google.ads.rewardedvideoexample W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f625a7d03c0, error=EGL_SUCCESS
from googleads-mobile-android-examples.
Hey @n4554,
Thanks for the logs. I can see now that you're trying to do rewarded video, not native ads like the other folks on this issue. So the ad unit I recommended is not applicable.
There are 3 things you'll need to do to get rewarded video:
- Your ad unit,
ca-app-pub-5920324855307233/4458481507
appears to be an "Interstitial" ad unit on an "iOS" app in the front-end for your account. You'll want to create a different ad unit in your Android app with type "Rewarded Interstitial". - AdMob only supports rewarded video via mediation right now, so to get ads you would need to configure another ad network library to serve ads. You can check here to see which ad networks support rewarded video and here for general instructions on how to get that ad network SDK + adapter library into your project. When you download an adapter, there should also be a README explaining some specific steps for that network.
- Once you integrate the 3rd party adapter and SDK into your app, modify your ad unit's mediation settings to add the network you integrated. You'll need to supply credentials from that network (which means having an account with them and creating an ad unit on their account).
This may all seem overwhelming if you haven't done it before. If the rewarded video format isn't applicable for your app (i.e. you don't have an incentive for the user for watching an ad), you may choose to implement regular Interstitial Ads instead. AdMob does serve interstitial ads directly, so the steps are much more straightforward. Also, the Interstitial Example will run out of the box if you want to test it out.
from googleads-mobile-android-examples.
@ericleich
Thanks again for your guidance .
from googleads-mobile-android-examples.
No problem, let me know if you have more questions.
from googleads-mobile-android-examples.
Native advance ads not loading by change their ads id with their own id, any idea?
from googleads-mobile-android-examples.
Related Issues (20)
- Ad unit doesn't match format in AppOpenExample HOT 4
- Add unity sample HOT 2
- Disruptive ads HOT 1
- App Open Ad stuck, no way to continue HOT 2
- User Messaging Platform UMP Disgraceful idea HOT 1
- pub-8858695525081255
- errorCode=3,errMsg=“No fill.” HOT 8
- Cash app
- AppOpenAds doesn't load for the first time on the splash screen. HOT 2
- [Urgent Error] BannerRecyclerView has Loading and Destroy Error! HOT 2
- Confused !!! There is two types of codes about initialize MobileAds and load ads in different example projects HOT 2
- BannerRecyclerViewExample low ad impression rate! HOT 4
- Native Advanced Example Fails To Load Ad HOT 1
- Maikus31
- Android TV doesn't show banner ads, error code 2, Network error HOT 1
- Getting Error code 3 'No Fill' even when I'm using test ad units HOT 1
- Compose multiplatform support HOT 2
- Can I initialize MobileAds in both main-processes and sub-processes? HOT 2
- after view Second Reward ads is complete i got this error "Invalid event ID: null" HOT 2
- Admob Crash: Parameter must be a descendant of this view HOT 4
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 googleads-mobile-android-examples.