interstitial

Using AdMob interstitial ads in iOS game applications and Swift

六眼飞鱼酱① 提交于 2019-12-24 06:37:12
问题 Okay, I've spent days now doing this. I've gone through admob's tutorials, youtube, stack exchange, everything and I cannot find a solution to my problem. I'm trying to implement admob's interstitial ads into my iOS game application. The code compiles, builds, runs, the game is played, but ads will not show up. This is my GameViewController.swift import UIKit import SpriteKit import GoogleMobileAds class GameViewController: UIViewController, GADInterstitialDelegate { //AD STUFF---------------

How to automatically close admob interstitial ad if users click the Android home button?

 ̄綄美尐妖づ 提交于 2019-12-24 02:14:51
问题 I was using the interstitial ad from Admob in my android app. The interstitialAd.show() is called at certain events of the app. Everything worked fine but one annoying use case with the ad. If users click HOME while the ad is displaying or the ad activity (i.e. users click the ad) is active, the ad or the ad activity will be displayed after switching back to the app. I would prefer that the app is displayed (i.e. the main activity is at the top of the activity stack) since it looked confusing

Interstitial Ad's Listener's onAdLoaded() won't run

谁都会走 提交于 2019-12-24 00:06:14
问题 interstitial.setAdListener(new AdListener(){ public void onAdLoaded(){ display(); } }); I tried with the debugger, the 1st line was run, but the second line was simply not run. This is how I initialize the ad in the onCreate method: interstitial = new InterstitialAd(this); interstitial.setAdUnitId("******************************"); AdRequest adRequest = new AdRequest.Builder().build(); interstitial.loadAd(adRequest); and InterstitialAd interstitial; outside of the method inside the class. The

Submission of new app with iAds

﹥>﹥吖頭↗ 提交于 2019-12-23 22:54:13
问题 I am developing my first mobile application and hope to submit it to Apple soon for approval. I have incorporated iAd banners and interstitials in my app. But I am confused about the future of iAds and it's application to app publishers/developers. Apple announced (Jan 15, 2016): iAd App Network will be Discontinued The iAd App Network will be discontinued as of June 30, 2016. Although we are no longer accepting new apps into the network, advertising campaigns may continue to run and you can

Interstitial ad with admob at gameOverScene

不问归期 提交于 2019-12-23 04:29:47
问题 I have searched the internet high and low for direction regarding adding an interstitial admob ad at the game over scene with SpriteKit when using swift. The google documentation still uses Obj-C. What I have gathered so far is that I need to initialize the ad in the viewController and then call it from the game over scene? Any advice would be greatly appreciated. 回答1: Updated solution I set in the view controller in the viewdidload NSNotificationCenter.defaultCenter().addObserver(self,

Interstitial ad with admob at gameOverScene

為{幸葍}努か 提交于 2019-12-23 04:29:10
问题 I have searched the internet high and low for direction regarding adding an interstitial admob ad at the game over scene with SpriteKit when using swift. The google documentation still uses Obj-C. What I have gathered so far is that I need to initialize the ad in the viewController and then call it from the game over scene? Any advice would be greatly appreciated. 回答1: Updated solution I set in the view controller in the viewdidload NSNotificationCenter.defaultCenter().addObserver(self,

How to show interstitial ads?

你离开我真会死。 提交于 2019-12-23 02:28:29
问题 How to show interstitial ads? @Override protected void onCreate(Bundle savedInstanceState) { //Log.v("SDL", "onCreate()"); super.onCreate(savedInstanceState); setContentView(R.layout.main); interstitial = new InterstitialAd(this); interstitial.setAdUnitId("ca-app-pub-2188258702xxxxxxxxxxx"); AdRequest adRequest = new AdRequest.Builder() .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) .addTestDevice("XXXXXXXXXXXXX") .build(); interstitial.loadAd(adRequest); // So we can call stuff from static

interstitialAd - iOS 8 beta 5 does not provide X close button in simulator

馋奶兔 提交于 2019-12-23 02:22:16
问题 I have a problem with interstitial ads from Apple. I'm doing my first app in swift, which I want to put on App store, as soon as it will be possible. But when I rewrite code for interstitial ads from obejctive-c to swift, I am able to show up the ad, but i does not have X close buuton, so I can not close it. I have not found anywher, taht I should place this button on my own, it should be there by default. I am using this functions: (I also have to say, that I'm using sprite kit, so my view

How to call admob interstitial ad using swift, spritekit and xcode?

一曲冷凌霜 提交于 2019-12-21 19:59:13
问题 I've been looking all over for an answer to this and I've found lots of examples in objective C (google developer docs, etc.) and some answers in swift, but not using spritekit, and being a novice, I just haven't been able to bridge the gaps in these tutorials to put it all together for my project. Honestly, I don't really care if the ad is called on app launch, or game over, I'd just be happy being able to call the ad period, though I guess on game launch is preferred. Pretty sure I've got

iOS 7 iAd interstitial ads can not be closed by user

只愿长相守 提交于 2019-12-21 05:47:07
问题 when i display interstitial ads with [interstitial presentFromViewController:self]; i get the warning that this method is deprecated in iOS 7. But it still works fine! When i display the ad view with [self requestInterstitialAdPresentation]; [interstitial presentInView:self.view]; i get no warning and the ad is loading but there is no (X) in the ad that the user can close the ad. Do somebody knows how to fix this? 回答1: hey there this is the troublemaker [interstitial presentInView:self.view];