AppsFlyerAdobeExtension 6.13.1

AppsFlyerAdobeExtension 6.13.1

由以下人员维护:Maxim ShoustinBenjamin WeinsteinAndrii HahanJonathan WesfieldMoris GatenoPaz Lavi



 
依赖
AppsFlyerFramework= 6.13.1
ACPCore>= 0
 

  • 作者
  • AppsFlyer

appsflyer-adobe-mobile-ios-extension

Version

🛠为了提供最佳支持,我们恳请您将任何问题提交至 [email protected]

提交问题时,请指定您的 AppsFlyer 注册(账户)电子邮件,您的应用 ID,生产步骤,日志,代码片段以及任何其他相关信息。

目录

此插件为以下构建

  • iOS AppsFlyer SDK 版本 6.10.1

📲 将SDK添加到您的项目中

请将以下内容添加到您应用的Podfile文件中

pod 'AppsFlyerAdobeExtension', '6.10.1'

🚀 初始化SDK

在您的Application类中注册AppsFlyer扩展,与Adobe SDK初始化代码一起注册

...
#import "AppsFlyerAdobeExtension/AppsFlyerAdobeExtension.h"

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [ACPCore configureWithAppId:@"Key"];
    ...
    [AppsFlyerAdobeExtension registerExtension];
    ...
    
    [AppsFlyerAdobeExtension registerCallbacks:^(NSDictionary *dictionary) {
        NSLog(@"[AppsFlyerAdobeExtension] Received callback: %@", dictionary);
        if([[dictionary objectForKey:@"callback_type"] isEqualToString:@"onConversionDataReceived"]){
            if([[dictionary objectForKey:@"is_first_launch"] boolValue] == YES){
                NSString* af_status = [dictionary objectForKey:@"af_status"];
                if([af_status isEqualToString:@"Non-organic"]){
                    NSLog(@"this is first launch and a non organic install!");
                }
            }
        } else if([[dictionary objectForKey:@"callback_type"] isEqualToString:@"onAppOpenAttribution"]) {
            NSLog(@"onAppOpenAttribution Received");
        }
     }];

    [AppsFlyerAdobeExtension callbacksErrorHandler:^(NSError *error) {
          NSLog(@"[AppsFlyerAdobeExtension] Error receivng callback: %@" , error);
      }];
    
    return YES;
}

除了添加初始化代码外,还需要在启发生命周期控制台中设置相关设置。

设置 描述
AppsFlyer iOS应用程序ID 您的iTunes 应用ID(仅iOS需要)
AppsFlyer Dev Key 由AppsFlyer提供的您的应用devKey(必需)
绑定应用程序内事件 将Adobe事件绑定到AppsFlyer应用程序内事件。有关更多信息,请参阅此处的文档。
发送归因数据 从AppsFlyer SDK向Adobe发送转换数据。此功能对于数据元素是必需的。
调试模式 调试模式 - 仅测试时设置为true
等待ECID 一旦启用,SDK初始化将延迟,直到设置Experience Cloud ID。

注意事项:对于发送归因数据,如果您只与允许与第三方工具共享用户级别数据的广告网络合作,请使用此功能。

📖 指南

📑 API

查看此插件可用的完整API

📂 数据元素

请在此查看可用的数据元素。

Swift 示例

在此查看 Swift 示例