react中定时器的应用_在离子React电容器应用中实施admob
react中定时器的应用
This post is done on a special request from one of our readers. If you have more requests, let me know in the comments.
这篇文章是应一位读者的特殊要求完成的。 如果您有更多要求,请在评论中告诉我。
In this post, you will learn how to implement AdMob functionality, i.e. Google advertisements, in Ionic React Capacitor apps. We will implement this in a simple Ionic App and test on the iOS simulator and Android device.
在本文中,您将学习如何在Ionic React Capacitor应用程序中实现AdMob功能,即Google广告。 我们将在一个简单的Ionic App中实现此功能,并在iOS模拟器和Android设备上进行测试。
什么是Admob? (What is Admob?)
As we all know, advertisements are the major source of income for all tech giants like Google, Facebook, Twitter etc. Google ads are one of the most popular ads out there, and the mobile version of Google ads is what they call AdMob.
众所周知,广告是所有科技巨头(例如Google,Facebook,Twitter等)的主要收入来源。Google广告是目前最受欢迎的广告之一,而移动版的Google广告被称为AdMob。
AdMob广告类型 (Type of AdMob ads)
Banner: A basic ad format that appears at the top & bottom of the device screen.
标语 :出现在设备屏幕顶部和底部的基本广告格式。
Interstitial: Full-page ads appear at natural breaks & transitions, such as level completion. Supports video content.
插页式 :整页广告会在自然休息和过渡(例如关卡完成)时出现。 支持视频内容。
Rewarded: Full page Ads reward users for watching short videos and interacting with playable ads and surveys. Good for monetizing free-to-play users. Supports video content.
奖励 : 整页广告奖励观看短视频并与可播放的广告和调查进行互动的用户。 适用于通过免费游戏用户获利。 支持视频内容。
Native: Customizable ad format that matches the look & feel of your app. Ads appear inline with app content. Supports video content. For now, Native ads are only possible in Native apps, not in hybrid apps like the ones based on Ionic or React Native.
原生 :与您的应用外观相匹配的可自定义广告格式。 广告与应用程序内容内联显示。 支持视频内容。 目前,原生广告只能在原生应用中使用,而不能在基于Ionic或React Native的混合应用中使用。
Let us look at the underlying frameworks for this post. If you are conversant with Ionic and Capacitor, skip these sections and go to the code segment of the post.
让我们看一下这篇文章的底层框架。 如果您熟悉Ionic和Capacitor,请跳过这些部分,然后转到文章的代码段。
免责声明 (Disclaimer)
Since this post is a mix of three frameworks, it is possible you landed here by mistake. If you are looking for AdMob login in
由于这篇文章是三个框架的混合,因此您可能会误入这里。 如果您正在寻找AdMob登录
React Native — Please check this post
React Native —请检查这篇文章
- Ionic React (Capacitor) apps — Continue reading
react中定时器的应用_在离子React电容器应用中实施admob相关推荐
- react中使用构建缓存_完整的React课程:如何使用React构建聊天室应用
react中使用构建缓存 In this video course, you'll learn React by building a chat room app. 在本视频课程中,您将通过构建聊天室 ...
- react中创建一个组件_如何使用React和MomentJS创建一个Countdown组件
react中创建一个组件 Recently I had to create a Countdown for one of my other projects, and I thought that i ...
- react中使用构建缓存_如何使用React构建Chatbot
react中使用构建缓存 My philosophy is simple. To become good at something, you need to do it a lot. 我的哲学很简单. ...
- react.js做小程序_如何使用React.js构建现代的聊天应用程序
react.js做小程序 In this tutorial, I will guide you to build your own group chat application using React ...
- react引入多个图片_重新引入React:v16之后的每个React更新都已揭开神秘面纱。
react引入多个图片 In this article (and accompanying book), unlike any you may have come across before, I w ...
- 谈谈对java中分层的理解_让我们谈谈网页设计中的卡片设计
谈谈对java中分层的理解 "I want a card", this is the first demand point that the customer said in th ...
- react避免子组件渲染_如何与React一起使用正确的方法来避免一些常见的陷阱
react避免子组件渲染 One thing I hear quite often is "Let's go for Redux" in our new React app. It ...
- qt中实现左右分割线_一种快速刷新richedit中内嵌动画的方法的实现
在IM中使用动画表情是一种非常有趣的方式,然而选择一种合适的方式来实现却并不容易. 一般来说,除了自己去实现一个富文本控件,目前主要的解决方案有3种: 1.使用浏览器做容器. 2.使用QT提供的Ric ...
- 在matlab中怎么录制音频_怎么录制淘宝页面中的视频?简单方法,轻松搞定
原标题:怎么录制淘宝页面中的视频?简单方法,轻松搞定 怎么录制淘宝页面中的视频?当前足不出户,大家就可以在很多的电商平台购买到自己心仪的商品.这其中商机也就产生了,如果不太想上班,或者说想要自己当老板 ...
- 在抽象类中可以没有抽象方法_是否可以在最终课程中使用抽象方法?
在抽象类中可以没有抽象方法 这是最近在Java开发人员工作面试的电话面试中向我的一位读者提出的有趣的Java核心问题之一. 即使他知道你 无法用Java将抽象类定型为final ,他对方法的措辞感到困 ...
最新文章
- 诺基亚Lumia 800生产背后的故事——萨罗工厂[多图]
- 深入Garbage First垃圾收集器(三)G1中的垃圾收集
- Laravel 向视图传递变量的3种方法
- AB1601之iic驱动改造
- Java tree set_Java TreeSet tailSet()方法
- 【原理+实战+视频+源码】docker权限参数
- SQLyog备份与还原数据库
- c++运动学正反解 ros_朔州智能【机器人关节臂】哪家强
- 哈希集合——hashSet
- 文件与Base64的互转
- 网络计算机信号属于什么信号,数字信号
- 一文介绍解银行卡验证api接口详情
- Java一个汉字占几个字节(详解与原理)(转载)
- 2021湖北省技能高考成绩查询,刚刚!湖北高考查分及志愿填报时间公布!
- java用接口求立方体表面积_Java练习 SDUT-3337_计算长方体、四棱锥的表面积和体积...
- Centos 修改镜像源为阿里云
- 如何关闭计算机服务检测,交互式服务检测老是弹出来?Win7系统交互式服务检测怎么关闭方法...
- 能量英语(一)之激情英语
- BUUCTF-刷题记录-8
- 【降维打击】希尔伯特曲线
热门文章
- 语音交互的基本概念和设计实践
- 『TensorFlow』SSD源码学习_其五:TFR数据读取数据预处理
- android 画圆形 bitmap,在android中画圆形图片的几种办法
- addClass()方法
- 和我一步步部署 kubernetes 集群
- Chapter 8 Part-of-Speech Tagging
- Jupyter Notebook中使用conda配置的Python虚拟环境
- NFS挂载问题:mount.nfs: access denied by server while mounting 192.168.1.100:/home/rootfs
- 飘扬的旗帜!shader 编程实战!Cocos Creator!
- 基于蓝牙的车载OBD系统
- react中使用构建缓存_完整的React课程:如何使用React构建聊天室应用