admob

admob banner live ad not showing but test showing

瘦欲@ 提交于 2020-01-21 07:19:43
问题 MainActivity code: MobileAds.initialize(this, getResources().getString(R.string.app_id)); mAdView = findViewById(R.id.adView); mAdView.setVisibility(View.VISIBLE); AdRequest adRequest = new AdRequest.Builder().build(); mAdView.loadAd(adRequest); main_activity.xml file <com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/adView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" ads

Difference between DEVICE_ID_EMULATOR and TEST_EMULATOR when testing Admob on mobile phone

做~自己de王妃 提交于 2020-01-21 05:45:28
问题 What is the difference between using TEST_EMULATOR and DEVICE_ID_EMULATOR? I want to test the admob ad system on my mobile phones, NOT on an emulator on the PC. AdRequest ad = new AdRequest.Builder(). .addTestDevice(com.google.ads.AdRequest.TEST_EMULATOR). .addTestDevice("YOUR_HASHED_DEVICE_ID"). .build(); AdRequest ad = new AdRequest.Builder(). .addTestDevice(com.google.ads.AdRequest.DEVICE_ID_EMULATOR). .addTestDevice("YOUR_HASHED_DEVICE_ID"). .build(); 回答1: The difference is that com

Ads Mob Sdk updation in eclipse

自作多情 提交于 2020-01-17 07:17:11
问题 I just received email from Google that on 17th oct on-wards they will stop displaying ads as the methods got deprecated.I also studied about it on some links as follows :- https://firebase.google.com/docs/admob/android/quick-start https://github.com/googleads/googleads-mobile-android-examples The above is GitHub link , the sample provided by Google with new SDK , as that is for android -studio , as my applications are already in market from past 2 years. So Do I need to migrate my whole

Admob live ads not appearing in libgdx application - Failed to load ad: 0

扶醉桌前 提交于 2020-01-17 06:10:09
问题 I'm currently working on a libgdx andriod app using eclipse luna and attempting to display a banner ad through admob. My app is running fine and displaying the test banner ads with no issues. When I remove my phone as a test device to receive live ads I get this error in logcat: There was a problem getting an ad response. ErrorCode: 0 Failed to load ad: 0 I've tested my app on a Galaxy Note 4 and a Samsung S5 both running android version 6.0.1. There are no custom ROMs or ad blockers on

Admob live ads not appearing in libgdx application - Failed to load ad: 0

北慕城南 提交于 2020-01-17 06:10:06
问题 I'm currently working on a libgdx andriod app using eclipse luna and attempting to display a banner ad through admob. My app is running fine and displaying the test banner ads with no issues. When I remove my phone as a test device to receive live ads I get this error in logcat: There was a problem getting an ad response. ErrorCode: 0 Failed to load ad: 0 I've tested my app on a Galaxy Note 4 and a Samsung S5 both running android version 6.0.1. There are no custom ROMs or ad blockers on

AdRequest Builder cannot be resolved to a type

本小妞迷上赌 提交于 2020-01-17 02:52:05
问题 I finished developing a game for Android using a slightly modified version of the framework at http://www.kilobolt.com/unit-4-android-game-development.html. Then I followed this tutorial:https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start and successfully added an ad but not on my main activity as this framework does not have a .xml file for the main activity (surface view in pure java code). However, I want ads to appear on the main activity too since that contains 95

AdMob SDK for windows 8

断了今生、忘了曾经 提交于 2020-01-17 01:00:31
问题 Google's AdMob page(Monetize your app) says the following: Cross platform AdMob connects you with millions of advertisers looking to reach users across platforms, including Android, iOS and Windows 8 . I have searched extensively, but failed to find the SDK for Windows 8. Could anyone provide a pointer? 回答1: The Android SDK is at https://developers.google.com/mobile-ads-sdk/download#downloadplay There is no SDK specific to Windows8. SDK is dependent upon target dev platform, iOS, Android,

Admob ads showing in emulator but not in real device

馋奶兔 提交于 2020-01-16 03:25:09
问题 I have integrated admob in my app but the ads showed up in emulator but when i tried in real device it's not showing up. For integration i have added below code in AndroidManifest.xml <!-- Internet Permissions --> <uses-permission android:name="android.permission.INTERNET" /> <!-- Network State Permissions --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- Google Play service --> <meta-data android:name="com.google.android.gms.version" android:value="@integer

admob adsize for ad height

自作多情 提交于 2020-01-15 09:13:42
问题 I am aware of the different values that the admob size can take for example 'BANNER' which is 320 x 50, however I have seen in some apps that the ad has been made smaller, in particular squashed in height. I have tried using other values instead of 'BANNER' for adsize but it does not work. How can I make a admob banner with a lower height than 50? THanks! 回答1: you will never get an admob banner below 50px. If you try to put it in a layout below 50px it will register an error (check your

admob adsize for ad height

淺唱寂寞╮ 提交于 2020-01-15 09:13:39
问题 I am aware of the different values that the admob size can take for example 'BANNER' which is 320 x 50, however I have seen in some apps that the ad has been made smaller, in particular squashed in height. I have tried using other values instead of 'BANNER' for adsize but it does not work. How can I make a admob banner with a lower height than 50? THanks! 回答1: you will never get an admob banner below 50px. If you try to put it in a layout below 50px it will register an error (check your