admob

Android app size increased after adding admob ads using google-play-services_lib

限于喜欢 提交于 2019-12-19 02:49:42
问题 I'm gonna publishing my app in two versions, both paid and free (with AdMob ads). The two versions are exactly identical except for the google-play-service_lib that i use in the free version for AdMob services. The final apk sizes after using proguard are: 1.301.435 bytes for paid version 1.946.634 bytes for ads version In free version i show interstitial ads only. Here's my proguard settings relative to the google-play-service_lib -keep class * extends java.util.ListResourceBundle {

Admob account showing big difference in matched requests and impression due to ad preloading

眉间皱痕 提交于 2019-12-18 18:38:11
问题 Admob account showing big difference in matched requests and impression in interstitial ads as shown in the picture. (The last two rows). I think this happens due to ad preloading. My question is, this big difference cause any black mark to my admob account? And is there any possible ways to decrease this gap due to preloading. 回答1: This is normal and you are right: it happens because you are preloading interstitials. A good benchmark for impressions is something near 50% of the requests. The

AdMob not loading ads in ionic/angular app

寵の児 提交于 2019-12-18 16:56:25
问题 I'm having some problems getting ads to work. I can't rap my brain around why it isn't working. I have the following plugins installed: com.google.playservices 19.0.0 "Google Play Services for Android" com.rjfun.cordova.plugin.admob 2.1.7 "AdMob" I've have used this tutorial: https://blog.nraboy.com/2014/06/using-admob-ionicframework/1 This is my code in the apps.js: .run(function ($ionicPlatform) { $ionicPlatform.ready(function () { // Hide the accessory bar by default (remove this to show

How to avoid Admob blocking the UI thread

我与影子孤独终老i 提交于 2019-12-18 15:09:26
问题 I have detected some of my activities are blocked at the launch. So I wrote that code in a new project: public class LayoutTestActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); long now = System.currentTimeMillis(); new AdView(this, AdSize.BANNER, "MY_ID"); Log.e("Admob Test","The UI was blocked "+(System.currentTimeMillis()-now)+"ms"); } } And the result is that the first creation of an

Android - AdView missing required XML attribute 'adSize'

点点圈 提交于 2019-12-18 14:45:50
问题 My head almost exploded today because the entire day I tried to solve the problem with my AdView from AdMob. I'm getting an error mentioned in the title. I googled through 3 pages but nothing. Same error whatever I do. This is my XML file: <?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:background="#FFF" android:orientation="vertical" > <ImageView

Use Google advertising to monetize PhoneGap app (built with PhoneGap Build)

穿精又带淫゛_ 提交于 2019-12-18 11:54:11
问题 On AdMob, there's no option for HTML5 apps anymore, and on AdSense, mobile apps (even those based on webview, explicitly mentioned) are banned. How can I use Google advertising to monetize PhoneGap app (built with PhoneGap Build)? 回答1: AdMob plugin was not available in PhoneGap Build before, as the old policy did not allow binary files submitted. But now, they made a great change to their policy (http://phonegap.com/blog/2014/12/09/phonegap-build-new-features/), and now allow you to use the

How to call admob Interstitial ad from android webview JavascriptInterface

旧时模样 提交于 2019-12-18 07:22:56
问题 I was facing problem for calling android Admob interstitial from webview. I could not get any proper solution. Finally I figured out the solution to call the interstitial for javascript. Look into the below answer. 回答1: Solution for the above problem Import all the required packages. public class MainActivity extends AppCompatActivity { WebView myWevView; public InterstitialAd mInterstitialAd; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Admob banner and interstitial ads not loading on launcher activity

浪尽此生 提交于 2019-12-18 06:43:13
问题 The first time when I load my app the banner ad and the full screen interstitial ad does not load. Every other time when i hit that (or any other) Activity the ads load fine. This leads me to believe that its not a fill issue. Also i am not using any mediation, just the standard Admob network. Below is the code i use to load the banner ad AdView bannerAdView = (AdView)this.findViewById(R.id.adView); if (Settings.SHOW_ADS) { AdRequest adRequestBanner = new AdRequest.Builder().build();

Admob ad not showing up in emulator or phone

此生再无相见时 提交于 2019-12-18 06:17:05
问题 I am trying to place Admob ads in my app, and I followed all the instructions but it's not working. AdView adView = new AdView(this, AdSize.BANNER, "My_ID"); RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); lp.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE); flashCardPage.addView(adView, lp); adView.loadAd(new AdRequest()); My manifest file contains the activty tag and the two

Admob ad not showing up in emulator or phone

风格不统一 提交于 2019-12-18 06:17:04
问题 I am trying to place Admob ads in my app, and I followed all the instructions but it's not working. AdView adView = new AdView(this, AdSize.BANNER, "My_ID"); RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); lp.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE); flashCardPage.addView(adView, lp); adView.loadAd(new AdRequest()); My manifest file contains the activty tag and the two