Google module
Coordinates
Section titled “Coordinates”- CocoaPods subspec:
pod 'AffiseModule/Google', '1.7.8'—AffiseModule.podspec:42-45. - SwiftPM product:
AffiseModuleGoogle—Package.swift:16, target atPackage.swift:58-66. - External dependency: Google’s On-Device Conversion Measurement SDK.
- CocoaPods:
GoogleAdsOnDeviceConversion(AffiseModule.podspec:44). The umbrella pod is now built as a static framework (s.static_framework = true,AffiseModule.podspec:25). - SwiftPM:
google-ads-on-device-conversion-ios-sdkfrom3.0.0(Package.swift:26).swift-tools-versionwas raised to5.9for this release.
- CocoaPods:
Purpose
Section titled “Purpose”From the README:
Provides
odm_infovalue from Google On-Device Conversion Measurement SDK.
— README.md:372.
Public API
Section titled “Public API”@objc(AffiseGoogleModule)public final class GoogleModule: AffiseModule— AffiseModule/Google/Classes/GoogleModule.swift:4-5.
Overrides the base AffiseModule surface:
start()—GoogleModule.swift:15providers()—GoogleModule.swift:34
The module is automatically started by the SDK core when linked; no manual start is required.
Check whether the module is present:
Affise.Module.Google.hasModule()— README.md:377. AffiseModules.Google is the corresponding enum case (AffiseAttributionLib/Classes/modules/AffiseModules.swift:9).
How it works
Section titled “How it works”On start, GoogleOdmUseCaseImpl seeds Google’s ConversionManager with the app’s first-open date (from the core FirstAppOpenUseCase) and calls fetchAggregateConversionInfo(for: .installation), caching the returned value. That value is exposed through the OdmInfoProvider (a StringPropertyProvider keyed to ProviderType.ODM_INFO).
AffiseModule/Google/Classes/usecase/GoogleOdmUseCaseImpl.swiftAffiseModule/Google/Classes/parameters/OdmInfoProvider.swift
ProviderType contribution
Section titled “ProviderType contribution”ODM_INFO → odm_info (AffiseAttributionLib/Classes/parameters/ProviderType.swift:108, mapped at :225). See Device info for the full provider map.