Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tapadn 接入文档修改 #1267

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions cn/docs/sdk/tap-adn/tds-tapad.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ dependencies {
implementation "com.android.support:support-v4:28.0.0"
implementation "com.github.bumptech.glide:glide:4.9.0"
implementation 'com.android.support:recyclerview-v7:28.0.0'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.huawei.com/repo'
// implementation 'com.huawei.hms:ads-identifier:3.4.62.300'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.hihonor.com/repo'
// implementation 'com.hihonor.mcs:ads-identifier:1.0.3.300'
// 加入的依赖库-结束
// highlight-end
// 下面这行是 Unity 的 mainTemplate.gradle 自带的,帮助定位插入位置
Expand All @@ -111,8 +119,8 @@ dependencies {
:::tip
**TapADN SDK 从 3.16.3.10 版本开始更新了 glide 的依赖,glide 版本从 4.0.0 更新到了 4.9.0。**
:::
<CodeBlock className="groovy">
{`repositories{
```groovy
repositories{
flatDir{
dirs 'src/main/libs'
}
Expand All @@ -128,9 +136,17 @@ dependencies {
implementation "com.android.support:support-v4:28.0.0"
implementation "com.github.bumptech.glide:glide:4.9.0"
implementation 'com.android.support:recyclerview-v7:28.0.0'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.huawei.com/repo'
// implementation 'com.huawei.hms:ads-identifier:3.4.62.300'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.hihonor.com/repo'
// implementation 'com.hihonor.mcs:ads-identifier:1.0.3.300'
// ...
}`}
</CodeBlock>
}
```

</>

Expand Down Expand Up @@ -1999,16 +2015,3 @@ sign = fmt.Sprintf("%x", sha256.Sum256(trans_id:SecurityKey))
|**10007**| Request AdSpace Miss | |
|**10008**| Request AdSpace Not Match| |
|**10009**| Request Invalid DeviceId | |


## OAID 接入指南
产生接口冲突时需要配置
```
configurations {
all {
exclude group: 'com.huawei.hms', module: 'ads-identifier'
exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
}
}
```
或者指定华为和荣耀厂商提供的 oaid sdk 接入版本,详情参考 [HmsCore OAID](https://developer.huawei.com/consumer/cn/doc/HMSCore-Guides/identifier-service-obtaining-oaid-sdk-0000001050064988), [Honor Developers](https://developer.honor.com/cn/docs/11030/guides/get-oaid-guide)
35 changes: 20 additions & 15 deletions cn/versioned_docs/version-v3/sdk/tap-adn/tds-tapad.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ dependencies {
implementation "com.android.support:support-v4:28.0.0"
implementation "com.github.bumptech.glide:glide:4.9.0"
implementation 'com.android.support:recyclerview-v7:28.0.0'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.huawei.com/repo'
// implementation 'com.huawei.hms:ads-identifier:3.4.62.300'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.hihonor.com/repo'
// implementation 'com.hihonor.mcs:ads-identifier:1.0.3.300'
// 加入的依赖库-结束
// highlight-end
// 下面这行是 Unity 的 mainTemplate.gradle 自带的,帮助定位插入位置
Expand All @@ -111,8 +119,8 @@ dependencies {
:::tip
**TapADN SDK 从 3.16.3.10 版本开始更新了 glide 的依赖,glide 版本从 4.0.0 更新到了 4.9.0。**
:::
<CodeBlock className="groovy">
{`repositories{
```groovy
repositories{
flatDir{
dirs 'src/main/libs'
}
Expand All @@ -128,9 +136,17 @@ dependencies {
implementation "com.android.support:support-v4:28.0.0"
implementation "com.github.bumptech.glide:glide:4.9.0"
implementation 'com.android.support:recyclerview-v7:28.0.0'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.huawei.com/repo'
// implementation 'com.huawei.hms:ads-identifier:3.4.62.300'

// 如果引入了 oaid sdk 则不需要引入下述依赖
// 需要新增 maven 'https://developer.hihonor.com/repo'
// implementation 'com.hihonor.mcs:ads-identifier:1.0.3.300'
// ...
}`}
</CodeBlock>
}
```

</>

Expand Down Expand Up @@ -2000,14 +2016,3 @@ sign = fmt.Sprintf("%x", sha256.Sum256(trans_id:SecurityKey))
|**10008**| Request AdSpace Not Match| |
|**10009**| Request Invalid DeviceId | |

## OAID 接入指南
产生接口冲突时需要配置
```
configurations {
all {
exclude group: 'com.huawei.hms', module: 'ads-identifier'
exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
}
}
```
或者指定华为和荣耀厂商提供的 oaid sdk 接入版本,详情参考 [HmsCore OAID](https://developer.huawei.com/consumer/cn/doc/HMSCore-Guides/identifier-service-obtaining-oaid-sdk-0000001050064988), [Honor Developers](https://developer.honor.com/cn/docs/11030/guides/get-oaid-guide)
Loading