ads

AdMob request fail

半世苍凉 提交于 2019-12-23 04:50:27
问题 I'm running an app with AdMob ads. It works nicely, but sometimes the server can't serve an ad, so I thought about serving my own ads (plain images served from my own server). Is there any way to set a callback to the AdRequest so if the request fails, the callback is called? 回答1: You're looking for AdMob's AdListener: public interface AdListener { public void onReceiveAd(Ad ad); public void onFailedToReceiveAd(Ad ad, AdRequest.ErrorCode error); public void onPresentScreen(Ad ad); public void

Not able to show native ads of Mopub in android application

杀马特。学长 韩版系。学妹 提交于 2019-12-23 03:11:28
问题 I have integarted with Mopub for displaying ads in my android application. I am able to display bannner and interstitial ads but not native ads, layout file code, <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/note_title

how to add ads to android app without overlapping with my content

非 Y 不嫁゛ 提交于 2019-12-22 13:58:57
问题 I am adding ads to my app (This is my first time) but it always overlap with my content (i.e. it is shown over my content). My xml is: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidsam="http://schemas.android.com/apk/res/com.jameselsey" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:layout_width="fill_parent" android:id="@+id/home

Is there an api for youtube ads?

戏子无情 提交于 2019-12-22 10:16:23
问题 I'm looking for a way to manage ads on youtube api. Is there a way for that? I found only adwords api. Can it be used for ytb ads? 回答1: Yes, you can use AdWords API for Youtube Ads. 回答2: There's currently no API to create ADs on Youtube. Adwords API does not allow you to create Video Campaigns, so the above answer is incorrect. 来源: https://stackoverflow.com/questions/36243986/is-there-an-api-for-youtube-ads

Mobclix Ads not showing in android

拈花ヽ惹草 提交于 2019-12-22 09:46:59
问题 I read the official docs and tried to integrate MobClix Ads in my App but I am not getting any Ads. AdMobActivity.java import com.mobclix.android.sdk.MobclixMMABannerXLAdView; import android.app.Activity; import android.os.Bundle; public class MobclixDemo extends Activity { private MobclixMMABannerXLAdView adview_banner=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); adview_banner = (MobclixMMABannerXLAdView)

AdMob Ads Not Showing

删除回忆录丶 提交于 2019-12-22 09:39:32
问题 So, I implemented AdMob ads with the Play Services SDK. I've done everything 'by the book', but the ads won't show. If I set the AdView background to white, it shows the white space but not the Ad. I'm using Fragments, but I'm putting the AdView in the activity_main.xml (although in the fragments I've set a margin of 60dp at the bottom) Here's my onCreate code (with the actual code and the 'testing' code) @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

What would you advise between iAd and adSense [closed]

China☆狼群 提交于 2019-12-22 08:03:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm thinking about including an add in my app. What advertising programme would you recommend me between iAd and adSense ? Thanks, 回答1: This topic has been covered quite a few times before. It depends on what you want in the end. With iAd, the eCPM is high but the fill rate is low especially out of the US. On

How do I create a passback tag from a URL?

两盒软妹~` 提交于 2019-12-22 03:56:40
问题 I have a couple of ad networks that have been able to integrate a passback URL (requested when a paid ad impression is not available) but one ad network can only accept a passback script tag, which I don't have. The passback script needs to load the contents of a URL (a 728x90 image or flash banner) into itself (it also needs to execute the Javascript that it loads). Can anyone help me construct a passback script tag? I tried this: <SCRIPT language="Javascript"> // loads within itself, in the

How do I create a passback tag from a URL?

≯℡__Kan透↙ 提交于 2019-12-22 03:56:35
问题 I have a couple of ad networks that have been able to integrate a passback URL (requested when a paid ad impression is not available) but one ad network can only accept a passback script tag, which I don't have. The passback script needs to load the contents of a URL (a 728x90 image or flash banner) into itself (it also needs to execute the Javascript that it loads). Can anyone help me construct a passback script tag? I tried this: <SCRIPT language="Javascript"> // loads within itself, in the

How to find the final destination (url) of an ad (programmatically)

百般思念 提交于 2019-12-21 20:53:27
问题 This may be trivial, or not, but I'm working on a piece of software that will verify the "end of the line" domain for ads displayed through my web application. Ideally, I have a list of domains I do not want to serve ads from (let's say Norton.com is one of them) but most ad networks serve ads via shortened, and cryptic, URLs (adsrv.com), that eventually redirect to Norton.com. So the question is: has any one built, or have an idea of how to build, a scraper-like tool that will return the