Skip to content

Google module

Enum: AffiseModules.Google (Runtime/Modules/AffiseModules.cs:13). The PascalCase wire name "Google" is returned by AffiseModules.Module() (Runtime/Modules/AffiseModules.cs:36).

Provides the odm_info value from Google’s On-Device Conversion Measurement SDK, surfaced through ProviderType.ODM_INFO.

  • Installed via the native CocoaPods dependency AffiseModule/Google (README iOS Podfile README.md:347). The Unity iOS post-processor (Editor/Build/Modules/ModulesIOSPostProcessBuild.cs:1) wires this up on build.
  • The actual conversion measurement runs in the native iOS module; the Unity C# layer is a thin wrapper.

The Unity package ships a small C# wrapper:

  • public class GoogleModule : AffiseModule, IAffiseGoogleApi (Runtime/Module/Google/GoogleModule.cs:6) — Start() is a no-op stub.
  • public interface IAffiseGoogleApi : IAffiseModuleApi (Runtime/Module/Google/IAffiseGoogleApi.cs:6).
  • public interface IAffiseModuleGoogleApi : IAffiseGoogleApi, IAffiseHasModule (Runtime/Module/Google/IAffiseModuleGoogleApi.cs:5).

It is exposed through Affise.Module.Google (typed IAffiseModuleGoogleApi, Runtime/Module/Attribution/AffiseAttributionModule.cs:27,37):

// Check whether the Google module is linked
bool installed = Affise.Module.Google.HasModule();

The module exposes no methods beyond HasModule() — once linked, odm_info is collected automatically by the native layer.

ODM_INFOodm_info (Runtime/Parameters/ProviderType.cs:112, mapped at :235). See Device info for the full provider map.