feat: 初始化工程
This commit is contained in:
17
.agents/bak-skills/uniapp-ad/examples/ad-types/banner.md
Normal file
17
.agents/bak-skills/uniapp-ad/examples/ad-types/banner.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Banner 广告
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 示例
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<ad unit-id="YOUR_AD_UNIT_ID" ad-type="banner"></ad>
|
||||
</template>
|
||||
```
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
@@ -0,0 +1,18 @@
|
||||
# 插屏广告
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 示例
|
||||
|
||||
```javascript
|
||||
const interstitial = uni.createInterstitialAd({
|
||||
adUnitId: 'YOUR_AD_UNIT_ID'
|
||||
})
|
||||
interstitial.show()
|
||||
```
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
14
.agents/bak-skills/uniapp-ad/examples/ad-types/native.md
Normal file
14
.agents/bak-skills/uniapp-ad/examples/ad-types/native.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 原生广告
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 说明
|
||||
|
||||
- 原生广告需结合广告位与样式进行自定义渲染
|
||||
- 注意广告标识与合规要求
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
@@ -0,0 +1,18 @@
|
||||
# 激励视频广告
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 示例
|
||||
|
||||
```javascript
|
||||
const rewarded = uni.createRewardedVideoAd({
|
||||
adUnitId: 'YOUR_AD_UNIT_ID'
|
||||
})
|
||||
rewarded.show()
|
||||
```
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
20
.agents/bak-skills/uniapp-ad/examples/guide/intro.md
Normal file
20
.agents/bak-skills/uniapp-ad/examples/guide/intro.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# uni-ad 接入概览
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 适用场景
|
||||
|
||||
- 在 uni-app 中进行广告变现
|
||||
- 需要集成 banner、插屏、激励视频等广告类型
|
||||
|
||||
## 基本流程
|
||||
|
||||
1. 开通 uni-ad
|
||||
2. 获取广告位 ID
|
||||
3. 在页面中引入广告组件或 API
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
14
.agents/bak-skills/uniapp-ad/examples/integration/config.md
Normal file
14
.agents/bak-skills/uniapp-ad/examples/integration/config.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 广告位配置
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 配置要点
|
||||
|
||||
- 在平台配置广告位 ID
|
||||
- 根据平台选择合适广告类型
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
23
.agents/bak-skills/uniapp-ad/examples/integration/events.md
Normal file
23
.agents/bak-skills/uniapp-ad/examples/integration/events.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 广告事件处理
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 示例
|
||||
|
||||
```javascript
|
||||
rewarded.onLoad(() => {
|
||||
console.log('广告加载成功')
|
||||
})
|
||||
rewarded.onError(err => {
|
||||
console.error('广告加载失败', err)
|
||||
})
|
||||
rewarded.onClose(res => {
|
||||
console.log('广告关闭', res)
|
||||
})
|
||||
```
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
Reference in New Issue
Block a user