google-admob

Admob Pro Blank Box(white box) Ad IOS

旧巷老猫 提交于 2019-12-13 03:32:18
问题 I m using Admob Pro plugin for ios mobile app using ionic . I m getting a white box instead of Ad. There is no errors in the log while showing the Ad. Here is my code this.admob.createBanner({ adId: bannerId, adSize:'SMART_BANNER', height: 100, autoShow: false, isTesting: false position: this.admob.AD_POSITION.BOTTOM_CENTER , }) return this.admob.showBanner(8); Plugins used cordova-plugin-admobpro 2.31.1 "AdMob Plugin Pro" Please help me out 回答1: Try to change your banner id to test id:

Exact dimensions of “not enough space” given for needs & has dp using Admob

两盒软妹~` 提交于 2019-12-11 18:57:41
问题 I tried setting the left & right padding margins to 0 per Not enough space to show ad (AdMob) Error: W/Ads: Not enough space to show ad. Needs 411x49 dp, but only has 411x49 dp. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); MobileAds.initialize(this, String.valueOf(R.string.ad_app_id)); mAdView = findViewById(R.id.adView); AdRequest.Builder b = new AdRequest.Builder(); b.addTestDevice((AdRequest

Adding React-Native-Admob in React-Native

[亡魂溺海] 提交于 2019-12-11 15:43:08
问题 I am trying to add React-Native-Admob 2.0.0-beta.5 into React-Native v0.55.4 for Android. compileSdkVersion =26 buildToolsVersion ="27.0.3" targetSdkVersion = 26 supportLibVersion = "26.1.0" minSdkVersion = 18 And React-Native-Admob has compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { minSdkVersion 16 targetSdkVersion 22 } And when i Compile the error Exception occur The SDK Build Tools revision (23.0.1) is too low for project ':react-native-admob'. Minimum required is 25.0.0 I

Layout encourages accidental clicks - interstitial ads - admob

回眸只為那壹抹淺笑 提交于 2019-12-11 14:04:57
问题 So basically I got an email this morning saying that Interstitial ads that load unexpectedly while a user is viewing the app’s content. Basically The app loads ads on view-pager swipe(after the 4th swipe/click) and on selection of menu drawer(after the 3rd click) and on opening news content, what do I need to do to avoid this situation 回答1: I am very careful not to break Admob's rules, because once you are banned you are banned for a long time. Admob have tons of info on this - see https:/

React native Admob Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException:

假装没事ソ 提交于 2019-12-11 10:44:06
问题 Before, my app work fine. Today I rebuild and it show error java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: I search and find solution is add my admob id in AndroidManifest.xml and I add it and rebuild, but it show same error. How I can fix it? 回答1: Add this line in your project AndroidManifest.xml, inside 'application' tag <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="

how i can hide/eecrypt AdMob Ad Units in android

家住魔仙堡 提交于 2019-12-08 04:39:24
问题 I was wondering how i can hide Ad Mob Ad Units in my android source code, In case some one downloaded my app from Google and did a reverse engineering on it. let say this is my ad mob ad unit (Banner) ca-app-pub-3940256099942544/6300978111 I have seen how Using engines like Unity to develop games just hides ad units i guess it encrypts it or something, I don't know. if u know please let me know. 来源: https://stackoverflow.com/questions/43561534/how-i-can-hide-eecrypt-admob-ad-units-in-android

Android: Getting user's location using Admob's Consent SDK

家住魔仙堡 提交于 2019-12-06 10:26:39
问题 I have an issue with AdMob's new 'Consent SDK'; the integration guide says to put the following into onCreate ... public class MainActivity extends Activity { ... @Override protected void onCreate(Bundle savedInstanceState) { ... ConsentInformation consentInformation = ConsentInformation.getInstance(context); String[] publisherIds = {"pub-xxxxxxxxxxxxxxxx"}; consentInformation.requestConsentInfoUpdate(publisherIds, new ConsentInfoUpdateListener() { @Override public void onConsentInfoUpdated

How to check Current SDK version of Google AdMob iOS?

扶醉桌前 提交于 2019-12-06 08:53:23
问题 Google has Changed some Policy under which the ads displayed under SDK version 7.0 will not display ads any more, Actually i don't know which version SDK i m using. Please help me to get out of this. 回答1: pragma mark GADRequest implementation - (GADRequest *)request { GADRequest *request = [GADRequest request]; NSLog(@"Received ad successfully %@ " , [GADRequest sdkVersion] ); request.testDevices = @[ kGADSimulatorID ]; return request; } Implement the above code in your iOS Project And Check

Android: Getting user's location using Admob's Consent SDK

久未见 提交于 2019-12-04 12:54:51
I have an issue with AdMob's new 'Consent SDK' ; the integration guide says to put the following into onCreate ... public class MainActivity extends Activity { ... @Override protected void onCreate(Bundle savedInstanceState) { ... ConsentInformation consentInformation = ConsentInformation.getInstance(context); String[] publisherIds = {"pub-xxxxxxxxxxxxxxxx"}; consentInformation.requestConsentInfoUpdate(publisherIds, new ConsentInfoUpdateListener() { @Override public void onConsentInfoUpdated(ConsentStatus consentStatus) { // User's consent status successfully updated. } @Override public void

Gradle conflict when using admob 15.0.0 with the lastest support library

家住魔仙堡 提交于 2019-12-04 04:25:32
I am using 'com.google.android.gms:play-services-ads:12.0.1'. and android support version 27.1.1. when I try to upgrade my ads library to the latest (15.0.0) I get an error saying that I must use the same version specification. See image below. Is there a way to use the latest version for both the supportLibraries and the play-services-ads ? Note that this problem does not exist when i use the play-services-ads version 12.0.1 You can try overriding the conflicted support library by adding the support library to your dependencies block: implementation 'com.android.support:customtabs:27.1.1'