Skip to content

Google module

Provides the odm_info value from Google’s On-Device Conversion Measurement SDK on iOS.

  • AffiseModules.GOOGLE = "Google" (src/module/AffiseModules.ts:15)
  • iOS only — backed by the native AffiseModule/Google subspec. 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()).

Since 1.7.16 the module ships as its own npm package, affise-attribution-module-google (iOS). Install it next to the core library:

Terminal window
npm install affise-attribution-lib
npm install affise-attribution-module-google

The 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.

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.

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().

  • Module status to query whether the module started successfully.