admob

Set gravity for LinearLayout programmatically

橙三吉。 提交于 2020-01-02 03:23:08
问题 I have followed an instruction for making new AdMob plugin for Unity. Ads show up correctly, but I have problem with bottom position. They show up at top of the screen. I have set gravity to bottom (for FrameLayout) but banner ads again show up at the top of screen. I dont have any .xml file with LinearLayout/FrameLayout tags. Here is all code: public class playads { private String adUnitID = "ca-app-pub-9578188175087140/5483276313"; private Activity activity; //Store the android main

How to show admob ads vertical in landscape mode? (Android)

寵の児 提交于 2020-01-01 19:35:40
问题 I want to show the admob ads like the following. My game is locked in landscape mode, and I want to show the ads vertically. I used the XML layout to placed my ads. 回答1: To do this, you would have to create a custom View that extends the AdMob View, then override the onDraw() method. Because there is no source code available for the AdMob View (that I know of), however, this may be impossible. If you had the source of the AdMob onDraw() method, it could be simply an issue of swapping the x

Adding AdMob Ad to RelativeLayout

偶尔善良 提交于 2020-01-01 17:11:02
问题 I have my app completely done. I want to add my admob ad to the bottom of my screen. I have the jar file imported and all that. I just cannot figure out how to get the ad at the bottom of the screen then what I need in the .java/main.xml/manifest.xml I tried a few tutorials but just got a force close. 回答1: Have you found the following site from Admob? http://code.google.com/mobile/ads/docs/android/fundamentals.html This is a really good guide on how to integrate the sdk. It explains what must

Adding AdMob Ad to RelativeLayout

会有一股神秘感。 提交于 2020-01-01 17:10:04
问题 I have my app completely done. I want to add my admob ad to the bottom of my screen. I have the jar file imported and all that. I just cannot figure out how to get the ad at the bottom of the screen then what I need in the .java/main.xml/manifest.xml I tried a few tutorials but just got a force close. 回答1: Have you found the following site from Admob? http://code.google.com/mobile/ads/docs/android/fundamentals.html This is a really good guide on how to integrate the sdk. It explains what must

admob test ads appearing

倖福魔咒の 提交于 2020-01-01 17:05:13
问题 I released my Android app two days ago, using admob advertising. I used my personal phone as the test phone, but took out the test mode code before releasing it. My admob status is active and I get requests and impressions on the report, but whenever I try to use the app on my personal phone i only get "test ads". I don't know why. I looked through the code of my app and can't find anything amiss. And i did delete the test version of the app and then download the released version from the

Admob mediation - publisher ID vs Mediation ID

会有一股神秘感。 提交于 2020-01-01 14:22:48
问题 I want to know what is the right paradigm for Admob mediation. so far, I've got a normal AdView banner. this is how think it should work: onFailedToReceiveAd - catch this event which mean admob cannot supply ads. create new AdView banner with the mediation id and make it VISIBLE so, is this the best practice? create two banners. one with the "regular" publisher ID and the other one, with the mediation ID 回答1: The correct approach is: Create a banner with a Mediation ID. When configuring that

AdMob ads not showing in iOS

冷暖自知 提交于 2020-01-01 11:55:29
问题 AdMob ads are not showing for iOS builds in the last couple of days. It used to work and I didn't change anything. iOS - 9.3.5 IDE - NetBeans 8.0.2 CodenameOne Plugin - 3.5.2 OS - Windows 7 回答1: Google deprecated the old admob library and discontinued it. We need to update to the latest version for ads to keep working. We plan on updating the cn1lib within the near future, I'm assuming that is the implementation you are referring to. 回答2: AdMob ads are not showing because for iOS 9 http URL’s

Admob ads not showing up

随声附和 提交于 2020-01-01 04:49:05
问题 I am trying to implement Admob in Android and I am seeing requests coming into AdMob. However, I am not seeing the Admob ads being displayed on the Android screen in the emulator and my Android test phones as well. As stated before, I can see the requests coming into my AdMob account. However, the content is not being shown. Is there something that needs to be enabled in my account, the main.xml, AndroidManifest.xml, or in the loading of the application? My application configuration and code

Google Ads MediaView not correctly resizing height to wrap_content when displaying image

孤街醉人 提交于 2020-01-01 04:38:05
问题 I got an email from AdMob today saying: Change to native ads policy: Native ads will require MediaView to render the video or main image asset. In an effort to help you deliver a better ad experience more easily, beginning October 29th, native ads will require MediaView to render the video or main image asset. Ad units not compliant by this date will stop serving ads, which could impact your ad revenue. I tried this out in my Android app, removing the separate handling of images with

Interestial Ads Not Showing on Live Android Device for Game Build in Unity 4.6

橙三吉。 提交于 2019-12-31 05:37:27
问题 I am using Unity Version ==> 4.6.0 Admob Version ==> Google Mobile Ads Unity Plugin v3.1.3 I am using below code to show interstitial ads. public const string adsIdAndroid = "ca-app-pub-3940256099942544/1033173712"; public void RequestInterstitial() { try { if (!AdsFlag) { Debug.Log("Requested Interstitial"); // Initialize an InterstitialAd. interstitial = new InterstitialAd(adsIdAndroid); // Create an empty ad request. AdRequest request = new AdRequest.Builder().Build(); // Load the