Skip to content

Commit

Permalink
tapadn 接入文档修改
Browse files Browse the repository at this point in the history
  • Loading branch information
wangping committed Nov 11, 2024
1 parent a934984 commit ac1e0f6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 25 deletions.
29 changes: 16 additions & 13 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 Down Expand Up @@ -128,6 +136,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'
// ...
}`}
</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)
29 changes: 17 additions & 12 deletions cn/versioned_docs/version-v3/sdk/tap-adn/tds-tapad.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_position: 3
---


import MultiLang from '/src/docComponents/MultiLang';
import MuxltiLang from '/src/docComponents/MultiLang';
import CodeBlock from '@theme/CodeBlock';
import v3SDKVersions from '/src/docComponents/v3SDKVersions';
import { Conditional } from "/src/docComponents/conditional";
Expand Down 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 Down Expand Up @@ -128,6 +136,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'
// ...
}`}
</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)

0 comments on commit ac1e0f6

Please sign in to comment.