Googleオンデバイス コンバージョン測定(ODM)を使用すると、ユーザーのプライバシーを保護しながら測定精度を高め、Google iOSアプリで配信される広告を対応するアプリのインストールに紐づけることができます。このアプローチにより、個々のユーザー、デバイス、アプリが広告主やGoogleによって識別されなくなります。
Googleオンデバイス コンバージョン測定を有効化するには、Podfile
内のアプリのターゲットに以下のdependencyを追加する必要があります。
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release,}
def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end
File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do use_frameworks!
pod 'Adjust/AdjustGoogleOdm' pod 'GoogleAdsOnDeviceConversion', '2.0.0'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) target 'RunnerTests' do inherit! :search_paths endend
post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) endend
アプリ起動時間のキャプチャ
オンデバイス コンバージョン測定を使用して正確なアトリビューションを行うための最も重要な要素の1つは、アプリの起動時間をできるだけ正確に記録することです。Adjust SDKは初期化のプロセス中にこれを自動的に処理します。そのため、アプリ起動のできるだけ早い段階で initSdk
メソッドを呼び出すことが重要です。
Adjust SDKの起動を遅らせる必要がある場合でも、initSdk
メソッドを速やかに呼び出し、初回セッションの遅延機能を使用して、SDKの実際の起動をアプリのロジックと調整することを強くお勧めします。