admob

How to use adMob and (google map api)google play service together?

这一生的挚爱 提交于 2019-12-13 04:24:37
问题 I have an app on the market with adMod banner, and now I am trying to add some Google Maps api to my application. I know how to handle adMobs library or Google Maps api separately. But when I try to run the app with adMob and Google Maps api (Google Play service), it seems they have a collision or something like that. Or google-play-services.jar and GoogleAdMobAdsSdk.jar have the same class name for AdMob. Maybe due to that reason I am getting multiple .dex files. My error on my console is:

Why does an Admob banner ad doesn't show to me? [Android, libGDX]

最后都变了- 提交于 2019-12-13 03:12:06
问题 I have a problem: I've installed an Admob ad banner in my app and when I'm using this command to builder: builder.addTestDevice( "0277F42DBB49E3FD56F9EFFE3C4380B4" ) Everything works (I mean, I see banner with similar text "congrats, bla-bla-bla, etc". But. In published game, which of course has disabled this line (addTestDevice) it doesn't show. Manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hypeofpipe

Showing admob interstitial in non-activity class

99封情书 提交于 2019-12-13 02:56:47
问题 In my game, I have a class which constructs the Gameview and allows the user to play various levels till he want. Now I want to show an admob interstitial when the level is over. This class GameView.java has method to start the game initially which is invoked from the main activity. The admob interstitial code requires activity instance as the first argument. So I passed an instance of main activity (using this keyword) to the play method of GameView but I get the following exception on

admob for version 1.6

风格不统一 提交于 2019-12-13 02:46:47
问题 I have a admob project that works great when the android version in project properties is set to 2.3. But When I try to set on 1.6 then it complaints in the android manifest at this lines <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /> 回答1: I'd guess that you need to check which tags are supported in that SDK version. See here. See that uiMode was added in SDK 8 and screenSize

Is it good practice to clear the cache files generated by AdMob in Android?

☆樱花仙子☆ 提交于 2019-12-13 02:46:39
问题 I have integrated AdMob in my Android app. I noticed the app taking up more and more storage space in a folder called app_webview generated by AdMob inside the app data folder. Should I clear the contents of this folder on each app exit ? 回答1: Should I clear the contents of this folder on each app exit ? Why would you want to do that? Admob does this to provide better and speedy ad serving. And I'm sure the amount it is caching is within tolerable limits. Clearing that much space on the user

why AdMob don't show every time a ad?

十年热恋 提交于 2019-12-13 02:42:39
问题 I have correctly insert my AdMob banner yesterday but it has never work since now. I have seen for the first time my ad but now it doesn't again... Someone know why? 回答1: It is probably because of the fill rate. You can use AdSense to help backfill ads when AdMod does not have any available. 来源: https://stackoverflow.com/questions/6975028/why-admob-dont-show-every-time-a-ad

iOS simulator linker command failed

﹥>﹥吖頭↗ 提交于 2019-12-13 02:37:34
问题 I am trying to launch my iOS app on the simulator but it does not work. Running the app on the phone works normally though. It has something to do with my admon integration. Before the simulator was running smoothly. I am using Xcode 6.1. I added all required frameworks: AdSupport AudioToolbox AVFoundation CoreGraphics CoreTelephony EventKit EventKitUI MessageUI StoreKit SystemConfiguration as well as libGoogleAdMobAds.a The error I get is: ld: warning: ignoring file /Users/XXXXXXX/Documents

Smart banner container view won't resize

别等时光非礼了梦想. 提交于 2019-12-13 01:29:14
问题 Given the following layout for a content view of a main activity <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".CordovaApp" tools:ignore="MergeRootFrame" > <LinearLayout android:id="@+id/layout_main" android:layout_width="match_parent"

Application crashes because it takes too much memory?

て烟熏妆下的殇ゞ 提交于 2019-12-13 01:28:16
问题 I am about to finish my Application and recently I encountered a problem that I can't fix. My application is contained of 5 layouts, and 1 activity for each layout, 5 layouts. Now ever since I added ads to my Application, my application stated taking enormous size on ram memory and after switching few layouts it crashes. My App size is 10.8mb but on phone it takes up to 75mb of Ram memory. Here is the warning I get from logcat: http://prntscr.com/2naqr8 Here is Logcat when Application crashes

Publisher ID vs. MY_AD_UNIT_ID, AdMob, Android

ぃ、小莉子 提交于 2019-12-12 21:25:12
问题 i am confused. I created my AdMob account, with Publisher Id: pub-2fffdddcccyyyxxx I didn't add my app to AdMob yet, I would only test how it works I have been follow: https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals?hl=en#android I added: AdRequest adRequest = new AdRequest(); adRequest.addTestDevice(AdRequest.TEST_EMULATOR); adRequest.addTestDevice("F08D35F3334039343254AD3A83ED11B5"); adView.loadAd(adRequest); Now, I really don't know what is MY_AD_UNIT_ID from https:/