Skip to content

Commit

Permalink
tapadn 接入文档修改 (#1269)
Browse files Browse the repository at this point in the history
Co-authored-by: wangping <[email protected]>
  • Loading branch information
estelle1995 and wangping authored Nov 13, 2024
1 parent 137537e commit 4979b00
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 32 deletions.
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)

0 comments on commit 4979b00

Please sign in to comment.