admob

Android Google AdMob 广告接入示例

僤鯓⒐⒋嵵緔 提交于 2020-01-29 07:08:10
Android Google AdMob 广告接入示例 [TOC] 首先请大家放心,虽然 Google搜索等服务被qiang了,但是 广告服务国内还是可以用的,真是普天同庆啊~~~噗! 其实这篇文章也只是记录我接入 AdMob 的过程,更具体的其实 Google 官方给的更详细(配图和视频还有GitHub 的demo 示例等),所以不想看官方(毕竟大部分英文)的可以看我写的,如果已经看了官方或者有了解了可以重点看我** 加粗 **的地方,方便你快速找到你想要的信息。 Google 官方引导: https://firebase.google.com/docs/admob/?hl=zh-cn 0. 什么是 AdMob ? AdMob by Google 是一种移动广告平台,借助该平台您可从您的应用中获得可观的收入。将 AdMob 与 Firebase Analytics 相结合,您不仅可得到更多的应用使用量数据,而且可以提升分析能力。无需更改现有 AdMob 配置,Firebase 便可与 AdMob 集成在一起。 1. AdMob 广告的类型 ? 总共分四种。 分别为: Banner(横幅广告) 、 Interstitial(插页广告) 、 Rewarded Video(应用内购买广告) 、 Native(原生广告) 。 Banner(横幅广告):最常见的

GADBannerViewDelegate doesn't fire adViewDidReceiveAd in Swift

你。 提交于 2020-01-25 12:05:11
问题 I use GADBannerView in another class that named Tools. But adViewDidReceiveAd delegate method doesn't fire in Tools class. What can I do? class Tools: NSObject, GADBannerViewDelegate { var viewController: UIViewController! func showAds(viewController: UIViewController) -> Void { self.viewController = viewController let request: GADRequest = GADRequest() request.testDevices = [kGADSimulatorID] let bannerView = GADBannerView(adSize: kGADAdSizeSmartBannerPortrait) bannerView.delegate = self

Rewarded video from AdMob in Unity - loading so slow

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-25 09:39:05
问题 Previously I used Unity Ads to display interstitial and rewarded ads in my game made with unity but now I'm switching to Google Ads (AdMob). I read documentation from here and next from here and everything seems like it's working, but kinda slow. I have 3 scenes: Main Menu Game Shop I need to display rewarded ads in Game and Shop scenes. In the Game scene, the user has the ability to watch an ad to continue where he dies. He have only 5 sec to do that. If he doesn't watch an ad, then he has

Can't get AdMob Plugin Pro to work with Cordova in Visual Studio 2017 for my Android app

廉价感情. 提交于 2020-01-25 08:22:08
问题 I'm having a lot of trouble getting this to work, and there doesn't seem to be much here using VS. The current build error is: Attribute application@appComponentFactory value= (androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). I've tried everything suggested here, including creating a gradle

Admob Native Advanced Not Clickable

萝らか妹 提交于 2020-01-25 07:24:52
问题 I have created a custom View Class that inherits from GADNativeContentAdView Class. When I receive an advertisement and the delegate is called, I fill my custom view with the data as shown below. Everything looks fine but the problem is that it is not clickable at all. I tried to set the actionbutton userinteraction to false, but still won't work. I also tried to register using following: -(void)registerAdView:(UIView *)adView clickableAssetViews:(NSDictionary *)clickableAssetViews

Do I need to keep AdMob ad unit IDs in a safe place?

最后都变了- 提交于 2020-01-25 06:49:08
问题 I wanted to ask where should I keep my AdMob ad unit IDs? Is it wrong to keep it in the strings.xml inside my Android Project? And what happens if someone gets my ad unit IDs? 回答1: You can keep ad unit ID in string.xml or in activity same results, but if someone get your ad unit ID he may do sabotage Here more details from admob about sabotage and how to prevent it https://support.google.com/admob/answer/7062933 ...... Also they suggest to make Authorized Sellers for Apps (app-ads.txt)

Admob ads not appear in footer of UITableView when keyboard is shown

為{幸葍}努か 提交于 2020-01-23 05:57:31
问题 I use this to show Admob ads on the footer of UITableView: - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { GADBannerView *sampleView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner]; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { sampleView.hidden=true; } sampleView.adUnitID = @"myID"; sampleView.rootViewController = self; [sampleView loadRequest:[GADRequest request]]; return sampleView; } - (CGFloat)tableView:(UITableView *

Issues With Adwhirl(Admob+Inmobi+..)

落花浮王杯 提交于 2020-01-22 16:00:28
问题 With AdWhirl I got these Exceptions... I Couldn't found Wrong from my Side... Could anyone Suggest on this.. FATAL EXCEPTION: main E/AndroidRuntime( 279): java.lang.NullPointerException E/AndroidRuntime( 279): at android.webkit.WebView.requestFocus(WebView.java:6081) E/AndroidRuntime( 279): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) E/AndroidRuntime( 279): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) E/AndroidRuntime( 279): at android.view

Issues With Adwhirl(Admob+Inmobi+..)

℡╲_俬逩灬. 提交于 2020-01-22 16:00:08
问题 With AdWhirl I got these Exceptions... I Couldn't found Wrong from my Side... Could anyone Suggest on this.. FATAL EXCEPTION: main E/AndroidRuntime( 279): java.lang.NullPointerException E/AndroidRuntime( 279): at android.webkit.WebView.requestFocus(WebView.java:6081) E/AndroidRuntime( 279): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) E/AndroidRuntime( 279): at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) E/AndroidRuntime( 279): at android.view

Xcode and Unity missing library 'lGoogleUtilities'

一世执手 提交于 2020-01-22 02:26:26
问题 I am working on an App that is made with Unity and I have to build it in Xcode to get it in the App store. Now I'm running into a problem here. I am getting this error: library not found for -lGoogleUtilities However, when I build the app in debug mode and test it on my iPad, there aren't any troubles. But when I try to build it for TestFlight (Toolbar -> Product -> Archive) that error occurs. I've followed this tutorial to get it working in debug mode (because I had that error there too