How to get video ads using admob in Android? When I tried everything seems to be working fine however I am getting a full screen image not a video.
You don't have control over what type of content is sent for an interstitial. It is up to the ad network. I suspect you are unlikely to receive video ads unless you have a very high number of requests.
Related
I'm new to android. I'm building an app for playing and downloading audio from firebase.
So far my app is working fine, but i want to know if my ads placements in the app are okay or not.
In my activity i have two buttons, one for playing and another button for downloading.
I dont want to disturb a user with interstitial ads when he's/she's playing and listening music, and thus, only banner ad placed on the bottom of the activity_layout will be shown the whole time music is playing.
I also placed an interstitial ad which will be shown only a few seconds after a user press a download button.
So far, Both of my ads are working fine. I want to know if this is okay or not ?
Yes, you can use both Ads in the same activity, go a head with your approach.
Just required the information and your views.
Can we implement pre-roll video ads before streaming a live video in our created android apps like youtube. Does google provide such service.
As i checked in admod, here we can get 3 types of ads - banner, interstitial and rewarded video.
But does it provide pre-roll video ads which i can play in the video player of my app before playing the video.
No, there is no API for YouTube ads.
You can build something similar with AdMob though. Just show the ads before playing the video.
I am able to video Facebook interstitial image ads successfully but app crashes with video sound and blank screen while displaying video interstitial ad.
I mean sometimes I am unable to video the video but I can hear the sound and then app crashes immediately.
Try clearing cache from the app in app settings this trick might work.
I'm using the YouTubePlayerFragment to show YouTube videos on Android and the ads that are associated with them, but I have observed some wierd behaviour.
It used to work fine on several devices (ads appeared) but not on others : the video player would work fine to play/pause video, but ads would never appear.
Today, after building and debugging the same code, I noticed that the ads that used to appear on my device do not appear anymore! And my code hasn't changed...
Do you have any idea what this could be linked to? Could this be linked to the developer API key I am using for development (limited number of requests for a certain device)?
Cheers
It is not in the control of developer whether the ads have to be shown or not. It is in control of the content owner of that video, developer is just using the API to fetch the video. This issue is not related to the device or YouTube API or the API key.
If you are the content owner of the YouTube videos that are been displayed on your YouTube Player via YouTubePlayerFragment then one thing you could have done is to upload copies in your own account, and then ensured that your account was set up with monetization turned off, then that would prevent ads from showing during playback. It's up to you to work out that arrangement/permission with the original videos' owners. But since you have not mentioned any of this I am assuming its just the behavior that is intermittent. You will be able to see ads after a while.
So, this is an extremely bad bug for my app.
I have an app that basically relies on videos to autoplay, but the YouTube API wont let you autoplay if they randomly choose to inject an ad first in the video.
I have tried lots of workarounds and eventually I found a half solution, that sort of works. If I detect no sound playing after some interval, I keep trying other videos... which then at some point wont have ads.
Does anyone know of a way to autoplay videos through the YouTube API when ads appear first?