Mopub: Which mediated network is serving my ads? - android

Let's say I have integrated Mopub with Facebook Audience Network (FAN), Flurry, Inmobi. Now, I want to find out which network is actually serving the ads because maybe I want to serve Flurry's ads with a slightly different layout compared to FAN). How do I determine on my users side which ads he is seeing?
From the mopub docs : https://github.com/mopub/mopub-android-sdk/wiki/Native-Ads-Integration, it seems pretty linear in that we can only create one sort of layout for our native ads and we have to stick to that type of layout. What happens if for example, we want to serve videos ads from FAN and static image ads from Flurry?

They are two separate integrations effectively - Native and banner ads. Each has a different custom events (adapter) implementation and you will need to use that appropriately.
Since the Mopub sdk and the custom event implementations are both open source, you can modify them to put in appropriate checks (or logs) to determine the ad network source. It is likely that the ad response from Mopub will contain the serving network's name (I don't recall fully as it's been a time since I mucked around in their ad response0

Related

Is it possible to display the same banner ad throughout an app in Android?

Is there a way to display the same banner ad throughout my Android application using different activities?
It's almost impossible, bro!
Your banner is controller by Ads Providers. Unless they provide customizing to configure ads like you said. As all providers I knew, there's none support that.

How to use AdMob Ad Mediation in Android App?

Hi I have used Firebase SDK to integrate AdMob in my Android App. Ads are working fine in my App. Now I want to enable Ad Mediation. I know how to add third party Ad networks in AdMob portal.
Confusion is that do I need to add/change specific code in Android App also? Do I need to change the banner ad code implemented in App? Or Firebase SDK will handle automatically and will show third party ads on same banner? Please help.
You should not need to change your banner code. You do need to compile the SDKs for the networks you want to mediate, plus their adapters into your app, though. The Mobile Ads SDK (firebase-ads, since you're using Firebase on Android) will use those SDKs through the adapters, and put the ads into the AdView you're already using. You don't need to write any additional Java code, though.
We have a mediation guide to help, as well as a video tutorial, if you're interested. There's also a directory that can point you to the SDKs and adapters.

What is the difference between Admob Native Express and Native Advanced Ads

What is the difference between Admob Native Express and Native Advanced Ads?
Are there separate Ad ids for Native express or native advanced ads, i have seen that native advanced use 2 ids , one of Ad id and other is App id but express needs one
Native Express ads are similar to banners in that they're rectangular ads that you can drop into a layout and size how you like. The key difference is that you, the publisher, can control the ad's presentation details (things like image sizes, fonts, colors, and so on) by uploading a CSS template for your ad unit. AdMob will combine that template with advertiser assets like icons, images, and text, and display the result in a NativeExpressAdView. This approach minimizes the amount of Java code needed for Native Ads Express, while helping publishers display ads that look natural in their app.
Native Ads Advanced is a format in which ad assets are presented to users via UI components that are native to the platform. They're shown using the same types of views with which you're already building your layouts, and can be formatted to match the visual design of the user experience in which they live. In coding terms, this means that when a native ad loads, your app will receive a NativeAd object that contains its assets, and the app (rather than the SDK) is then responsible for displaying them.
There are two system-defined formats for native ads: app install and content. App install ads are represented by NativeAppInstallAd, and content ads are represented by NativeContentAd. These objects contain the assets for the native ad. You also have the option of defining your own custom native formats, in which case the ads are represented by NativeCustomTemplateAd.
Native Ads Advanced is a format in which ad assets are presented to users via UI components that are native to the platform. They're shown using the same types of views with which you're already building your layouts, and can be formatted to match the visual design of the user experience in which they live. In coding terms, this means that when a native ad loads, your app will receive a NativeAd object that contains its assets, and the app (rather than the SDK) is then responsible for displaying them. There are two system-defined formats for native ads: app install and content. App install ads are represented by NativeAppInstallAd, and content ads are represented by NativeContentAd. These objects contain the assets for the native ad.

Do we need to use different DFP unit id's for android and ios

Do we need to use different DFP unit id's for android and ios when we use Admob sdk?
Can we use DFP in blackberry for showing ads? I have used DFP in sencha project so the id used in that project will work for iphone and android do we need any changes?
There is no need of different ad unit id's for android and ios. The problem i faced was the ad is not showing in India. Geotargeting must be set for an ad, while creating. So when you request for an ad from a location which set for the ad, it will display.

How to display VAST ads in my android app?

I would like to display video Ads in my app based on VAST. Can anybody please guide me on how to do that ?
You can use any VAST ad supporting advertising SDK for showing VAST video ads.
OR
You can parse the VAST response in you application then you can play the video link in Android native video player.
In this case you also have to fire all VAST ad tracking events.
I know it's an old question, but for anyone looking at it lately - THIS is a nice VAST container by Nexage. Integration is super easy and it works pretty good, the only drawback is that it's adding a huge library to your project (unnecessary huge), which might be a problem for big projects hitting the DEXOPT limit problem.
Daily Motion Client https://github.com/dailymotion/vast-client-js
IMHO, it's easiest way to parse VAST response. Add the parser to html and implement simple video player with data that provides parser. Show result html page in WebView, also you can use javascript interface to pass parameters from Java to javascript in html.
Google Interactive Media Ad https://developers.google.com/interactive-media-ads/docs/sdks/android/?hl=ru it's difficult to integrate the sdk to show only vast ad without content.
Nexage VAST SDK https://github.com/nexage/sourcekit-vast-android
(has huge library for validation, but source is opened and it's easy to change this to the javax.xml.validation.Validator)
They can request ad by network tag, shows loaded ad and track users actions.
It is called c2s integration (client to server).

Categories

Resources