ads

Admob in-house ads not showing

偶尔善良 提交于 2019-12-06 01:00:59
问题 I have set up an in-house campaign under the Admob platform. This campaign is live for almost 3 days, but I get no impressions. The ad in question is a banner. I have set up the mediation eCMP lower than the ad but still is not showing. Any help will be appreciated. Thanks in advance! 回答1: I have found the solution, you need to update your billing information from AdWords in order to serve in-house ads. 回答2: Another common problem, if random AdMob ads are showing instead of Direct Sold/In

AdMob Ads Not Showing

被刻印的时光 ゝ 提交于 2019-12-05 20:57:21
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(savedInstanceState); setContentView(R.layout.activity_main); final DrawerLayout drawer = (DrawerLayout

Mobclix Ads not showing in android

拈花ヽ惹草 提交于 2019-12-05 19:53: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) findViewById(R.id.banner_adview); adview_banner.getAd(); } } also i have added MobClix adView in XML

How to test Admob in real device if without Ad unit id

杀马特。学长 韩版系。学妹 提交于 2019-12-05 19:39:35
I am trying to use Google mobile ads, how can I test my application if I do not have AdUnitId which you have to pay to get? can I test it on real device? You dont have to pay to open admob account. But, if you still want to test without an account, add your device ID to the adrequest, and you will see demo ads. UPDATE: Creating an admob account is free. However, you can use these dummy adunit IDS for testing: Banner : ca-app-pub-3940256099942544/6300978111 Source Interstitial: ca-app-pub-3940256099942544/1033173712 Source You can also add emulator and actual device ids for testing: AdView

AdvertisingIdClient getAdvertisingIdInfo hangs forever

戏子无情 提交于 2019-12-05 16:57:33
问题 I'm trying to get advertising ID from Google Play services API. Here is a sample code: ... import com.google.android.gms.ads.identifier.AdvertisingIdClient; import com.google.android.gms.common.GooglePlayServicesNotAvailableException; import com.google.android.gms.common.GooglePlayServicesRepairableException; ... public class MyActivity extends Activity { @Override protected void onStart() { super.onStart(); Thread thr = new Thread(new Runnable() { @Override public void run() { try { Context

Using ExitAPI in a HTML5 ad banner with parameters

可紊 提交于 2019-12-05 15:48:37
I have created a banner for Adwords, using HTML5 with a form element, which accepts few inputs, like your preffered color, type, etc. The whole banner is not clickable, only the submit button, which I achieved by adding "onclick="ExitApi.exit()"" to the button. All of this works fine, but now my question is, how flexible is this ExitApi? Whenever I click the submit button, I want to append the generated parameters to the final url, which is set through AdWords. Using the adwords preview I can see that during the redirect the last parameter is 'adurl' which contains my final destination.

AdMob in all my view controllers?

回眸只為那壹抹淺笑 提交于 2019-12-05 10:23:56
I have implemented AdMob & everything seems to work, But i wonderd, how can i put the banner in all of my view controllers? For now, i have the banner only on the RootViewController. I have total of 4 view controllers. Thanks. What you want here is a GADBannerView singleton of sorts. You can probably create a wrapping class to act as a singleton for your adView, so something like: @interface GADMasterViewController : UIViewController { GADBannerView *adBanner_; BOOL didCloseWebsiteView_; BOOL isLoaded_; id currentDelegate_; } And just make sure that GADMasterViewController always returns a

why does apple devices play html5 videos in its own player?

∥☆過路亽.° 提交于 2019-12-05 08:36:05
I tried different html players and used html5 video tag. However apple devices (ipod touch 4, iphone 4, ipad) shows html5 videos in its own player . My main goal is to show overlay adverts on video. I decided to hide/show div with the help of absolute positioning and z-index. It worked for browsers in my PC, however couldn't manage in apple devices. In order to show advert on apple devices, firstly I need to use my own html5 player, not apple's default video player. Is my approach possible or are there any workarounds? Any ideas will be highly appreciated. Thanks, editted There is an attribute

FATAL EXCEPTION: GoogleApiHandler

假如想象 提交于 2019-12-05 08:32:48
In my project i'm using the monetization service(Vungle/AppLovin). When I'm trying to load an ad, i get this exception E/AndroidRuntime: FATAL EXCEPTION: GoogleApiHandler Process: kz.ikar, PID: 3673 java.lang.NoSuchMethodError: No virtual method setChannelId(Ljava/lang/String;)Landroid/support/v4/app/NotificationCompat$Builder; in class Landroid/support/v4/app/NotificationCompat$Builder; or its super classes (declaration of 'android.support.v4.app.NotificationCompat$Builder' appears in /data/app/kz.ikar-2oCl4DY4J8w7wP-jirbYvA==/split_lib_dependencies_apk.apk) at com.google.android.gms.common

Javascript ads in Angular templates

浪子不回头ぞ 提交于 2019-12-05 05:24:48
I'm trying to render a Javascript ad in my Angular template but it will not show up. I've found some solutions when they append the Javascript to the head tag but I want the ad to be placed in my Html (inside body). Here is a Plunker: https://plnkr.co/edit/WHhQ95gS5HKSphmmirio Here is a simple plain Html example that works. <html> <head> </head> <body> <div class="ad"> <script src="http://media.affiliatelounge.com/data/nordicbet/ad_js/display_88.js?ad=ad_793270_88.html&size=300x250&clicktag=http://record.affiliatelounge.com/_sVuSoFFh4LK58VwA2IUESrKVVrME-Gsw/1&media=108786&campaign=1"></script>