admob

AdMob request fail

半世苍凉 提交于 2019-12-23 04:50:27
问题 I'm running an app with AdMob ads. It works nicely, but sometimes the server can't serve an ad, so I thought about serving my own ads (plain images served from my own server). Is there any way to set a callback to the AdRequest so if the request fails, the callback is called? 回答1: You're looking for AdMob's AdListener: public interface AdListener { public void onReceiveAd(Ad ad); public void onFailedToReceiveAd(Ad ad, AdRequest.ErrorCode error); public void onPresentScreen(Ad ad); public void

How to show Admob in SurfaceView

六眼飞鱼酱① 提交于 2019-12-23 04:45:42
问题 I try to show Admob on my SurfaceView. I use framework from book beginning android games from Mario Zechner In framework there is a class (AndroidFastRenderView extends SurfaceView implements Runnable) and in that class there is line canvas.drawBitmap(framebuffer, null, dstRect, null); where framebuffer is Bitmap where is all drawn in game. In that framework there is a class (AndroidGame extends Activity) where is line setContentView(renderView); Here renderView is AndroidFastRenderView that

Unity3d Admob rewarded video ads

我的未来我决定 提交于 2019-12-23 04:32:29
问题 I'm having troubles showing the rewarded video ad from admob plugin in Unity3d. First of all this is my script: using GoogleMobileAds.Api; using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class AdManager : MonoBehaviour { private RewardBasedVideoAd rewardBasedVideo; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void RequestRewardBasedVideo() { #if UNITY_EDITOR string adUnitId =

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 add admob with webview

浪尽此生 提交于 2019-12-23 03:59:11
问题 This webviews already blocks popups it only accept particular url here it is www.google.com other urls will not open on webview i have tried some methods to implement admob but the application didnot work is thier anyway to use admob in the bottom of the app i have tryed this and its not working Getting admob and webview working together package zippy.zippytest; import android.app.DownloadManager; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap;

Un-linking Firebase App from AdMob App

匆匆过客 提交于 2019-12-23 03:16:10
问题 I have a project/app in Firebase which is currently linked to it's corresponding AdMob app. Unfortunately, a series of bizarre events has led to my AdMob account being inaccessible. My AdSense account is fine. (Actually, my AdMob account is still working it's just that I can't log into it). AdSense/AdMob support have advised me that I need to delete my AdMob/AdSense accounts and then set up other accounts under a new email address. However, in order to delete my AdMob account, I need to first

Un-linking Firebase App from AdMob App

旧街凉风 提交于 2019-12-23 03:16:03
问题 I have a project/app in Firebase which is currently linked to it's corresponding AdMob app. Unfortunately, a series of bizarre events has led to my AdMob account being inaccessible. My AdSense account is fine. (Actually, my AdMob account is still working it's just that I can't log into it). AdSense/AdMob support have advised me that I need to delete my AdMob/AdSense accounts and then set up other accounts under a new email address. However, in order to delete my AdMob account, I need to first

Android Admob ads services update

ぐ巨炮叔叔 提交于 2019-12-23 02:52:36
问题 I recently have received an email update that AdMob will stop serving ads on 17 Oct 2016 to the SDK versions listed in this link https://firebase.google.com/docs/admob/android-legacy-release-notes and has to be amended to one included in this link https://firebase.google.com/docs/admob/release-notes#android I am currently using Android Eclipse and was generating ads by the library GooglePlayServices, with codes as follows: Code: Question: How could I check the GooglePlayServices library

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