admob

iAd didFailToReceiveAdWithError not working sometimes, displays white box

杀马特。学长 韩版系。学妹 提交于 2019-12-24 17:42:45
问题 I'm using Swift and SpriteKit, and everything is made inside my GameViewController and GameScene. This is all code concerning the ads inside my GameViewController: class GameViewController: UIViewController, ADBannerViewDelegate, GADBannerViewDelegate { var adBannerView: ADBannerView! var gadBannerView: GADBannerView! var bannerDisplayed = false var bannerNow = "iAd" override func viewDidLoad() { super.viewDidLoad() if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene { //

Admob pods do not work after firebase integration

自古美人都是妖i 提交于 2019-12-24 17:21:50
问题 As you may be aware of it, Google now switch to Firebase instead of Google Analytics. So I tried to integrate it to my current working project. Admob is also integrated to my project with Pods. I have followed Google's document and created a new pod and re-install with firebase. After it , now my project does not build. Here is error Use of unresolved identifiers "GADBannerView" 回答1: Try switching your imports to just: @import GoogleMobileAds; Everything should work as it was before, but

AdMob error: Didn't find class “com.google.ads.AdView”

柔情痞子 提交于 2019-12-24 17:19:04
问题 So I'm on Android Studio v 0.3.6 and I'm having problems with Google Play Services. I was already using the Admob jar in my project but I had to update it so I tried to add them via the instructions. My project compiles fine however when I try to run an activity I get the following error: Didn't find class "com.google.ads.AdView" on path: /data/app/com.mre. example-1. apk See the full error output here Relevant portion of my build.gradle: apply plugin: 'android' dependencies { compile 'com

AdMob error: Didn't find class “com.google.ads.AdView”

倾然丶 夕夏残阳落幕 提交于 2019-12-24 17:18:33
问题 So I'm on Android Studio v 0.3.6 and I'm having problems with Google Play Services. I was already using the Admob jar in my project but I had to update it so I tried to add them via the instructions. My project compiles fine however when I try to run an activity I get the following error: Didn't find class "com.google.ads.AdView" on path: /data/app/com.mre. example-1. apk See the full error output here Relevant portion of my build.gradle: apply plugin: 'android' dependencies { compile 'com

ADMOb not working

喜你入骨 提交于 2019-12-24 16:42:22
问题 Manifest file is <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation" /> </application> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> Activity class has this - AdView adView = new AdView(this, AdSize.BANNER, "xxxxxxxxxxx"); // Lookup your LinearLayout assuming it’s been given // the attribute android:id="@+id/mainLayout" LinearLayout layout =

ADMOb not working

大城市里の小女人 提交于 2019-12-24 16:42:11
问题 Manifest file is <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation" /> </application> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> Activity class has this - AdView adView = new AdView(this, AdSize.BANNER, "xxxxxxxxxxx"); // Lookup your LinearLayout assuming it’s been given // the attribute android:id="@+id/mainLayout" LinearLayout layout =

Using interstitials from Admob in a Libgdx game for Android, it's slow when dismissing it

喜你入骨 提交于 2019-12-24 14:18:03
问题 I've been using interstitials from Admob with my libgdx game for Android and my problem is that when I dismiss it after it was shown, it takes quite some time to give the control back to my game (around 4-5 seconds, which is not good at all). I don't know why it does that. Also, when I just leave my game (pressing the Home button) and then come back to it, it also takes around the same time. Maybe it has something to do with the opengl context loss.. 回答1: Run the ad call on a separate UI

AdView failed to instantiate

。_饼干妹妹 提交于 2019-12-24 14:15:19
问题 I want to include an admob banner in my application and I got this weird error. Any help is deeply appreciated. Here is the xml code <com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="bottom" ads:adUnitId="..." ads:adSize="BANNER" /> In the activity, I wrote the following code adview = (AdView)findViewById(R.id.adView); adview.setVisibility(View.VISIBLE); AdRequest re = new AdRequest(); adview.loadAd(re);

Ads SMART_BANNER aren't always loaded in landscape orientation

不想你离开。 提交于 2019-12-24 14:07:42
问题 It works ok for portrait orientation 100%, onAdLoaded is always called and Ad appears But in landscape orientation they are loaded very rarely, onAdFailedToLoad is usually called I mean what the point of using SMART_BANNER if it's loaded very rarely in landscape mode? My code (I always re-create AdView and request new ad when orientation changes) Manifest android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout" XML Activity Layout <?xml version="1

Because Admob interstitial ads won't display?

耗尽温柔 提交于 2019-12-24 13:52:31
问题 What is the error?Because admob interstital ads won't display? public class MainActivity extends Activity implements AdListener { private InterstitialAd interstitial; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Create the interstitial interstitial = new InterstitialAd(this, "ca-app-pub-6xxxxxxxx/xxxxxx"); // Create ad request AdRequest adRequest = new AdRequest(); // Begin loading your interstitial interstitial.loadAd(adRequest); //