English
3.4.10+ support
On WeChat MiniApp, there are 2 ad types:
The difference between the two is:
uni-ad has a lower application threshold and is more friendly to start-ups; WeChat application traffic masters need to live more than 1,000 small programs per day
uni-ad can monetize a whole set of codes, including app, web, WeChat applet; wx ads only support WeChat applet
Both support banners/feeds, incentive videos, and interstitials. wx ad supports one more open screen ad
There are highs and lows, different small programs have different cpm, and developers need to test and compare
Compared with WeChat's own traffic main advertisement, uni-ad developers can apply for a relatively shorter settlement cycle and advance payment service. Scan the code and add enterprise WeChat consultation.
uni-ad has built-in security protection strategies to reduce the risk of ads being brushed
3.6.8+ 支持激励视频服务器安全回调,详情
服务器回调用于业务系统判断是否提供奖励给观看广告的用户。配置服务器回调后,当用户成功看完广告时,uniCloud服务器会访问配置的云函数,通知用户完成观看激励视频。 Relatively speaking, server callbacks will be more secure
uni-ad is applied by the developer on the DCloud website uniad.dcloud.net.cn, and the developer bills and settles with DCloud; while the wx ad is applied for in the background of the WeChat applet, Invoicing and settlement between developers and WeChat
Both use the same components during development, such as the <ad>
component and the <ad-rewarded-video>
component, but the component attribute of uni-ad is adpid (abbreviation for ad slot id), WeChat small The component property of a program is unit-id.
<ad adpid=""></ad>
in the appropriate position on the front-end pageNote: The WeChat applet platform does not provide test advertising space for the time being. You can also preview the advertising effect during the development period. The effect of the real machine shall prevail.
详细开发文档地址:https://uniapp.dcloud.net.cn/uni-ad/ad-component.html
详细开发文档地址:https://uniapp.dcloud.net.cn/uni-ad/ad-rewarded-video.html
详细开发文档地址:https://uniapp.dcloud.net.cn/uni-ad/ad-interstitial.html
<ad>
(banner/feed), <ad-rewarded-video>
(rewarded video), <ad-interstitial>
(interstitial) are the built-in 3 ads of the uni-app
framework components.
The <ad>
component supports both uni-ad
ads and wx ads, while the other 2 ad components only support uni-ad ads. Developing rewarded videos and interstitials for wx ads needs to go through js api instead of components.
Both adpid and unit-id can be written on the <ad>
component, the differences are as follows:
<ad adpid=""></ad>
, uni-ad ads (uni-app version 3.4.10+)<ad unit-id=""></ad>
, wx ad, unit-id needs to be applied in the WeChat applet backgroundadpid
and unit-id
can be set at the same time. The priority of adpid
is higher than unit-id
. If uni-ad
is not activated or the network fails, it will switch to wx advertisement. There will be a 3-second interval in this process.
example: If you want to use only WeChat advertisements on WeChat, you can use conditional compilation to use uni-ad in App or Web, as follows
<!-- #ifdef MP-WEIXIN -->
<ad unit-id=""></ad>
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<ad adpid=""></ad>
<!-- #endif -->
Apply for plugins through the following two options
Run HBuilderX to the WeChat developer tool, and the link to apply for the plug-in will be output in the developer tool debugging console of WeChat. After clicking, the application confirmation box will pop up, and then click the OK
button
登陆微信公众平台 https://mp.weixin.qq.com/,点击左侧栏 设置
,然后找到顶部页签 第三方设置
,向下滚动屏幕到 插件管理
,
点击 添加插件
按钮,搜索 uni-ad
和 珊瑚运营平台
并添加