-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sergey Korney
committed
Mar 15, 2024
1 parent
b35ad3e
commit ab7d393
Showing
8 changed files
with
75 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ise/attribution/module/advertising/parameters/GoogleAdvertisingPersonalizationProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.affise.attribution.module.advertising.parameters | ||
|
||
import com.affise.attribution.module.advertising.advertising.AdvertisingIdManager | ||
import com.affise.attribution.parameters.ProviderType | ||
import com.affise.attribution.parameters.base.BooleanPropertyProvider | ||
|
||
/** | ||
* Provider for parameter [ProviderType.AD_PERSONALIZATION] | ||
* | ||
* provides google advertising personalization | ||
* | ||
* @property advertisingIdManager manager to fetch advertising id personalization | ||
*/ | ||
class GoogleAdvertisingPersonalizationProvider( | ||
private val advertisingIdManager: AdvertisingIdManager | ||
) : BooleanPropertyProvider() { | ||
|
||
override val order: Float = 31.5f | ||
override val key: ProviderType = ProviderType.AD_PERSONALIZATION | ||
|
||
override fun provide(): Boolean = advertisingIdManager.getAdPersonalization() | ||
} |