Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery White
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Data Recovery White
Commits
bf2e8dd9
Commit
bf2e8dd9
authored
Jul 16, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
f6bca85e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
AdMaxInit.kt
app/src/main/java/com/base/datarecovery/ads/max/AdMaxInit.kt
+5
-5
ConfigHelper.kt
app/src/main/java/com/base/datarecovery/help/ConfigHelper.kt
+3
-3
No files found.
app/src/main/java/com/base/datarecovery/ads/max/AdMaxInit.kt
View file @
bf2e8dd9
...
@@ -18,7 +18,7 @@ object AdMaxInit {
...
@@ -18,7 +18,7 @@ object AdMaxInit {
fun
Context
.
initAdMax
()
{
fun
Context
.
initAdMax
()
{
// If you want to test your own AppLovin SDK key, change the value here and update the package name in the build.gradle
// If you want to test your own AppLovin SDK key, change the value here and update the package name in the build.gradle
val
YOUR_SDK_KEY
=
"
05TMDQ5tZabpXQ45_UTbmEGNUtVAzSTzT6KmWQc5_CuWdzccS4DCITZoL3yIWUG3bbq60QC_d4WF28tUC4gVTF
"
val
YOUR_SDK_KEY
=
"
GGPreND6SRmCt1zJgn5faiLGD8c2PVGPLgPpSg7cHanVTud1DhtuI9MmteTqlEviaJ57WnxW68kQDaATJ5z3cW
"
val
executor
=
Executors
.
newSingleThreadExecutor
();
val
executor
=
Executors
.
newSingleThreadExecutor
();
executor
.
execute
{
executor
.
execute
{
...
@@ -27,10 +27,10 @@ object AdMaxInit {
...
@@ -27,10 +27,10 @@ object AdMaxInit {
initConfigBuilder
.
mediationProvider
=
AppLovinMediationProvider
.
MAX
initConfigBuilder
.
mediationProvider
=
AppLovinMediationProvider
.
MAX
// Enable test mode by default for the current device. Cannot be run on the main thread.
// Enable test mode by default for the current device. Cannot be run on the main thread.
val
currentGaid
=
AdvertisingIdClient
.
getAdvertisingIdInfo
(
this
).
id
//
val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
if
(
currentGaid
!=
null
)
{
//
if (currentGaid != null) {
initConfigBuilder
.
testDeviceAdvertisingIds
=
Collections
.
singletonList
(
currentGaid
)
//
initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
}
//
}
// Initialize the AppLovin SDK
// Initialize the AppLovin SDK
val
sdk
=
AppLovinSdk
.
getInstance
(
this
)
val
sdk
=
AppLovinSdk
.
getInstance
(
this
)
...
...
app/src/main/java/com/base/datarecovery/help/ConfigHelper.kt
View file @
bf2e8dd9
...
@@ -19,9 +19,9 @@ object ConfigHelper {
...
@@ -19,9 +19,9 @@ object ConfigHelper {
const
val
openAdmobId
=
"/6499/example/app-open"
const
val
openAdmobId
=
"/6499/example/app-open"
//max广告id
//max广告id
const
val
interAdMaxId
=
"
a
"
const
val
interAdMaxId
=
"
bda3ff6e90dcf1e6
"
const
val
nativeAdMaxId
=
"
b
"
const
val
nativeAdMaxId
=
"
92b665b1d235b7b8
"
const
val
openAdMaxId
=
"
c
"
const
val
openAdMaxId
=
"
a4e07d8b8295856d
"
//一定展示大图广告
//一定展示大图广告
var
mustShowNativeAd
:
Boolean
=
false
var
mustShowNativeAd
:
Boolean
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment