Advertising module
Installation
Section titled “Installation”Artifact: com.affise:module-advertising (module-advertising/build.gradle:53).
implementation("com.affise:module-advertising:1.7.8")Purpose
Section titled “Purpose”For module
Advertisingto send GAID (Google Advertising ID). Usescom.google.android.gms:play-services-ads-identifier.
Entry class: AdvertisingModule : AffiseModule(), AdvertisingApi (module-advertising/src/main/java/com/affise/attribution/module/advertising/AdvertisingModule.kt:16).
Public API: AdvertisingApi.getAdvertisingId(): String? (attribution/src/main/java/com/affise/attribution/modules/advertising/AdvertisingApi.kt:5-7).
Typical usage via Affise.getProviders():
val gaid = Affise.getProviders()[ProviderType.GAID_ADID] as? StringAdditional dependencies
Section titled “Additional dependencies”module-advertising/build.gradle:38:
implementation "com.google.android.gms:play-services-ads-identifier:18.2.0"No extra AndroidManifest.xml additions beyond the core attribution module.
ProviderType values contributed
Section titled “ProviderType values contributed”AdvertisingModule.kt:48-56: GAID_ADID, GAID_ADID_MD5, AD_PERSONALIZATION, plus empty-string placeholders for ADID, ALTSTR_ADID, FIREOS_ADID, COLOROS_ADID.
See Device info for the full provider map.