菜单

预定义事件

 

变现广告展示事件

 

App 内变现广告展示时,报送该事件,用于进行广告展示及变现收入分析。

- (void)trackAdImpressionWithAttributes:(SEAdImpressionEventAttribute *)attribute;
(各聚合平台调用示例参见: 调用示例

SEAdImpressionEventAttribute 类参数说明:

参数名称 参数含义 参数类型 是否必传
adNetworkPlatform 变现平台,前面为应传值,后面为平台名称
csj:穿山甲国内版
pangle:穿山甲国际版
tencent:腾讯优量汇
baidu:百度百青藤
kuaishou:快手
oppo:OPPO
vivo:vivo
mi:小米
huawei:华为
applovin:Applovin
sigmob:Sigmob
mintegral:Mintegral
oneway:OneWay
vungle:Vungle
facebook:Facebook
admob:AdMob
unity:UnityAds
is:IronSource
adtiming:AdTiming
klein:游可赢
fyber:Fyber(DT Exchange)
chartboost:Chartboost
adcolony:Adcolony
inmobi:Inmobi
bigo:BIGO
NSString
adType 展示广告的类型
1:激励视频
2:开屏
3:插屏
4:全屏视频
5:Banner
6:信息流
7:短视频信息流
8:大横幅
9:视频贴片
10:中等尺寸横幅
0:其它
NSInteger
adNetworkAppID 变现平台的应用 ID NSString
adNetworkPlacementID 变现平台的变现广告位 ID NSString
mediationPlatform 聚合平台标识,常见聚合平台枚举如下,若您使用的聚合平台不在如下枚举值,您可以自定义命名,并控制字符数在32位。没有聚合平台标识,请设置为 "custom"。
max
ironsource
admob
hyperbid
topon
cas
Tradplus
Tobid
NSString
ecpm 广告ECPM(广告千次展现的变现收入,0或负值表示没传),单位:元 double
currency 展示收益的货币种类,遵循《ISO 4217国际标准》如 CNY、USD NSString
rendered 广告是否渲染成功,具体枚举值如下:
例如:成功时,只需要传入 YES
YES:成功
NO:失败
如果不需要统计该指标,请传 YES
BOOL
customProperties 自定义属性说明见目录:4.自定义属性 NSDictionary

 

调用示例:

SEAdImpressionEventAttribute *attribute = [[SEAdImpressionEventAttribute alloc] init];
attribute.adNetworkPlatform = @"csj";
attribute.adType = 1;
attribute.adNetworkAppID = @"test_adNetworkAppID";
attribute.adNetworkPlacementID = @"test_adNetworkPlacementID";
attribute.mediationPlatform = @"custom";
attribute.currency = @"USD";
attribute.ecpm = 13.14;
attribute.rendered = YES;
attribute.customProperties = @{
    @"Key1": @"Value1",
    @"Key2": @"Value2"
};
[[SolarEngineSDK sharedInstance] trackAdImpressionWithAttributes:attribute];
 

 

变现广告点击事件

 

App 内变现广告点击时,报送该事件,用于进行广告点击数据分析。

- (void)trackAdClickWithAttributes:(SEAdClickEventAttribute *)attribute;
 

SEAdClickEventAttribute 类参数介绍:

参数名称 参数含义 参数类型 是否必传
adNetworkPlatform 变现平台,前面为应传值,后面为平台名称
csj:穿山甲国内版
pangle:穿山甲国际版
tencent:腾讯优量汇
baidu:百度百青藤
kuaishou:快手
oppo:OPPO
vivo:vivo
mi:小米
huawei:华为
applovin:Applovin
sigmob:Sigmob
mintegral:Mintegral
oneway:OneWay
vungle:Vungle
facebook:Facebook
admob:AdMob
unity:UnityAds
is:IronSource
adtiming:AdTiming
klein:游可赢
fyber:Fyber(DT Exchange)
chartboost:Chartboost
adcolony:Adcolony
inmobi:Inmobi
NSString
adType 展示广告的类型,
1:激励视频
2:开屏
3:插屏
4:全屏视频
5:Banner
6:信息流
7:短视频信息流
8:大横幅
9:视频贴片
0:其它
NSInteger
adNetworkPlacementID 变现平台的变现广告位 ID NSString
mediationPlatform 聚合平台标识,常见聚合平台枚举如下,若您使用的聚合平台不在如下枚举值,您可以自定义命名,并控制字符数在32位。没有聚合平台标识,请设置为 "custom"。
max
ironsource
admob
hyperbid
topon
cas
Tradplus
Tobid
NSString
customProperties 自定义属性说明见目录:4.自定义属性 NSDictionary

调用示例:

SEAdClickEventAttribute *attribute = [[SEAdClickEventAttribute alloc] init];
attribute.adNetworkPlatform = @"csj";
attribute.adType = 1;
attribute.adNetworkPlacementID = @"广告位id";
attribute.mediationPlatform = @"custom";
attribute.customProperties = @{
    @"Key1": @"Value1",
    @"Key2": @"Value2"
};
[[SolarEngineSDK sharedInstance] trackAdClickWithAttributes:attribute];
 

 

应用内购买事件

 

App 内付费购买时,报送该事件,用于进行购买及内购收入分析。

- (void)trackIAPWithAttributes:(SEIAPEventAttribute *)attribute;
 

SEIAPEventAttribute 类参数说明:

参数名称 参数含义 参数类型 是否必传
orderId 本次购买由系统生成的订单 ID NSString 否,不超过 128 字符,投放网易有道、豆瓣时必填
payAmount 本次购买支付的金额,单位:元 double
currencyType 支付的货币类型,遵循《ISO 4217国际标准》,如 CNY、USD NSString
payType 支付方式:如 alipay、weixin、applepay、paypal 等 NSString
productID 购买商品的ID NSString
productName 商品名称 NSString
productCount 购买商品的数量 NSInteger
payStatus 支付状态
例如:成功时,传入 SolarEngineIAPSuccess
SolarEngineIAPSuccess:成功
SolarEngineIAPFail:失败
SolarEngineIAPRestored:恢复
SolarEngineIAPStatus
failReason 支付失败的原因 NSString
customProperties 自定义属性说明见目录:4.自定义属性 NSDictionary

注:支付失败原因 failReason 参数仅在 payStatus 参数为 SolarEngineIAPFail 支付失败时才会传入,其他状态传""即可。

调用示例:

SEIAPEventAttribute *attribute = [[SEIAPEventAttribute alloc] init];
attribute.productID = @"test_productID";
attribute.productName = @"test_productName";
attribute.productCount = 1234;
attribute.orderId = @"test_orderID";
attribute.payAmount = 123456;
attribute.currencyType = @"CNY";
attribute.payType = SEIAPEventPayTypeWeixin;
attribute.payStatus = SolarEngineIAPSuccess;
attribute.failReason = @"test_failReason";
attribute.customProperties = @{
    @"Key1": @"Value1",
    @"Key2": @"Value2"
};
[[SolarEngineSDK sharedInstance] trackIAPWithAttributes:attribute];
 

 

自归因安装事件

 

增加归因安装事件,支持统计归因数据,满足客户使用三方归因或者自归因之后的结果数据回传到自定义分析,上报时机支持开发者自定义触发。

自归因事件的 _event_name 为 _appAttr。

/// 上报归因事件
/// @param attribute SEAppAttrEventAttribute 实例
- (void)trackAppAttrWithAttributes:(SEAppAttrEventAttribute *)attribute;

 

参数相关:

参数名称 参数含义 参数类型 是否必传
adNetwork 投放广告的渠道 ID,需要与ROI分析匹配 NSString
subChannel 投放广告的子渠道 NSString
adAccountID 投放广告的投放账号 ID NSString
adAccountName 投放广告的投放账号名称 NSString
adCampaignID 投放广告的广告计划 ID NSString
adCampaignName 投放广告的广告计划名称 NSString
adOfferID 投放广告的广告单元 ID NSString
adOfferName 投放广告的广告单元名称 NSString
adCreativeID 投放广告的广告创意 ID NSString
adCreativeName 投放广告的广告创意名称 NSString
attributionPlatform 监测平台 NSString
customProperties 开发者传入的自定义属性说明见目录:4.自定义属性 NSDictionary

 

示例代码:

SEAppAttrEventAttribute *attribute = [[SEAppAttrEventAttribute alloc] init];
attribute.adNetwork = @"adNetwork";
attribute.subChannel = @"subChannel";
attribute.adAccountID = @"adAccountID";
attribute.adAccountName = @"adAcco目录:4.自定义属性untName";
attribute.adCampaignID = @"adCampaignID";
attribute.adCampaignName = @"adCampaignName";
attribute.adOfferID = @"adOfferID";
attribute.adOfferName = @"adOfferName";
attribute.adCreativeID = @"adCreativeID";
attribute.adCreativeName = @"adCreativeName";
attribute.attributionPlatform = @"attributionPlatform";
attribute.customProperties = @{
    @"name": @"Tom",
    @"age" : @18
};
[[SolarEngineSDK sharedInstance] trackAppAttrWithAttributes:attribute];
 

 

订单事件

 

用于进行订单数据分析。

- (void)trackOrderWithAttributes:(SEOrderEventAttribute *)attribute;
 

SEOrderEventAttribute 类参数介绍:

参数名称 参数含义 参数类型 是否必传
orderID 订单 ID NSString 否,不超过 128 字符,投放网易有道、豆瓣时必填
payAmount 订单金额,单位:元 double
currencyType 展示货币类型,遵循《ISO 4217国际标准》,如 CNY、USD NSString
payType 支付方式:如 alipay、weixin、applepay、paypal 等 NSString 否,不超过 32 字符
status 订单状态 NSString
customProperties 自定义属性说明见目录:4.自定义属性 NSDictionary

 

调用示例:

SEOrderEventAttribute *attribute = [[SEOrderEventAttribute alloc] init];
attribute.orderID = @"1000000";
attribute.payAmount = 3.14;
attribute.currencyType = @"CNY";
attribute.payType = @"aliPay";
attribute.status = @"success";
attribute.customProperties = @{
    @"Key1": @"Value1",
    @"Key2": @"Value2"
};
[[SolarEngineSDK sharedInstance] trackOrderWithAttributes:attribute];
 

 

注册事件

 

App 内用户注册时,报送该事件,用于进行用户注册数据分析。

- (void)trackRegisterWithAttributes:(SERegisterEventAttribute *)attribute;

SERegisterEventAttribute 类参数介绍:

参数名称 参数含义 参数类型 是否必传
registerType 注册类型如 "WeChat"、"QQ" 等自定义值 NSString 是,不超过 32 字符
registerStatus 注册状态 如 "success" NSString
customProperties 自定义属性说明见目录:4.自定义属性 NSDictionary

 

调用示例:

SERegisterEventAttribute *attribute = [[SERegisterEventAttribute alloc] init];
attribute.registerType = @"WeChat";
attribute.registerStatus = @"success";
attribute.customProperties = @{
    @"Key1": @"Value1",
    @"Key2": @"Value2"
};
[[SolarEngineSDK sharedInstance] trackRegisterWithAttributes:attribute];
 

 

登录事件

 

App 内用户登录时,报送该事件,用于进行用户登录数据分析。

- (void)trackLoginWithAttributes:(SELoginEventAttribute *)attribute;

SELoginEventAttribute 类参数介绍:

参数名称 参数含义 参数类型 是否必传
loginType 登录类型如 "WeChat"、"QQ" 等自定义值 NSString 是,不超过 32 字符
loginStatus 登录状态 如 "success" NSString
customProperties 自定义属性说明见目录:4.自定义属性 NSDictionary

 

调用示例:

SELoginEventAttribute *attribute = [[SELoginEventAttribute alloc] init];
attribute.loginType = @"WeChat";
attribute.loginStatus = @"success";
attribute.customProperties = @{
    @"Key1": @"Value1",
    @"Key2": @"Value2"
};
[[SolarEngineSDK sharedInstance] trackLoginWithAttributes:attribute];
最近修改: 2025-05-20Powered by