Google module
Purpose
Section titled “Purpose”Provides the odm_info value from Google’s On-Device Conversion Measurement SDK on iOS.
Module constant
Section titled “Module constant”AffiseModules.GOOGLE = "Google"(src/module/AffiseModules.ts:15)
Platform notes
Section titled “Platform notes”- iOS only — backed by the native
AffiseModule/Googlesubspec. There is no Android equivalent. - No dedicated JS accessor on
Affise.module; use the constant with module gating (setDisableModules) and presence checks (Affise.module.getModulesInstalled()).
Installation
Section titled “Installation”Since 1.7.16 the module ships as its own npm package, affise-attribution-module-google (iOS). Install it next to the core library:
npm install affise-attribution-libnpm install affise-attribution-module-googleThe package only pulls in the native dependency (AffiseModule/Google at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Run pod install and rebuild the iOS app after installing.
Manual native alternative
Section titled “Manual native alternative”Instead of the npm package you can add the subspec to your Podfile yourself. The README’s “Modules → Manual Native” iOS Podfile example does not list this subspec, but it works the same way as the others:
pod 'AffiseModule/Google', '1.7.16'This pulls in Google’s GoogleAdsOnDeviceConversion SDK. See the iOS Google module page for native details.
Providers contributed
Section titled “Providers contributed”ProviderType.ODM_INFO = "odm_info" (src/parameters/ProviderType.ts:93). Unlike AD_SERVICE_ATTRIBUTION / PUSHTOKEN_SERVICE, ODM_INFO is declared in the TypeScript ProviderType enum, so it is exposed to React Native consumers via Affise.getProviders().
See also
Section titled “See also”- Module status to query whether the module started successfully.