Menu

Predefined Events

1. Ad Impression

Automatically reported when displaying ads within the app, which is essential for ROI analysis and monetization-related metrics in user analysis. (Event Name:  "_appImp")

Parameter description:

      Please report the corresponding parameters from Mediation to SolarEngine following Impression-level-revenue-integration.

ParameterDescriptionTypeRequired
ad_platformMonetization platform (Value: platform name)
csj: 穿山甲 China Mainland version
pangle: 穿山甲 International version
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
chartboost: Chartboost
adcolony: Adcolony
Stringyes
ad_typeAd types:
1:Rewarded Video
2:Splash
3:Interstitial
4:Fullscreen Video
5:Banner
6:Native
7:Native Video
8:Banner (MPU)
9:Instream Video
10:MREC
0:Other
Intyes
ad_appidThe App ID on monetization platforms.Stringno
ad_idAd Unit ID on monetization platforms.Stringyes
mediation_platformMediation platforms commonly used:
max
ironsource
admob
hyperbid
topon
cas
Tradplus
Tobid

If your mediation platform is not on the list, you can name it yourself, only that the name cannot exceed 32 characters.
Send "custom" if no mediation platform is used.
Stringyes
ad_ecpm=revenue of 1,000 ad impressions
(0 or negative values are invalid.)
(Mininum Unit: USD dollar)
doubleyes
currency_typeRevenue Currency Type (following ISO 4217)Stringyes
is_renderedWhether the ad is rendered successfully.
YES: success
NO: Failed.
If you do not need to pass in this indicator, please pass YES.
Booleanyes
customProperties/Dictionaryno

Sample Code

let properties = {
		adPlatform:"csj",
		adType:1,
		adAppId:"App ID",
		adId:"Ad Unit ID",
		mediationPlatform:"custom",
		adEcpm: 13.14,
		currencyType: "USD",
		isRendered:true,
		customProperties:{
			test_key1:"1",
			test_key2:2,
		}
	}
solarengine.trackAdImpression(properties);

2. In-App Purchase

       Automatically reported when in-app purchase is made. (Event Name: "_appPur")

Parameters:

ParameterDescriptionTypeRequired
order_idThe order ID generated by the system for this purchaseStringno
pay_amountThe amount paid for this purchase (Unit: e.g. USD, CNY, etc.)doubleyes
currency_typeThe currency type of payment (following ISO 4217)Stringyes
pay_typePayment methods, such as alipay, weixin, applepay, paypal, etc.Stringno
product_idPurchased item IDStringno
product_namePurchased item nameStringno
product_numQuantity of items purchasedIntno
paystatusPayment status
1: successful
2: failed
SEConstant_IAP_PayStatusyes
fail_reasonReason for payment failureStringno
customProperties/Dictionaryno

Note:

       The fail_reason parameter is only be passed in when the PayStatus parameter is fail. For other statuses, simply pass "".

Sample Code

let properties = {
		orderId:"se_demo_007",
		payAmount:6.99,
		currencyType:"CNY",
		payType:"weixin",
		productId:"se_demo_00001",
		productName: "se_demo_name",
		productNum: 1,
		payStatus: 1,
		failReason:"test_failReason",
		customProperties:{
			test_key1:"1",
			test_key2:2,
		}
	}
solarengine.trackPurchase(properties);	
// You can choose not to set customProperties. 
// Please do not report custom properties starting with "_", otherwise SDK will abandon its value by default.

3. Ad Click

       Call trackAdClick to report in-app ad click events (Event Name: "_appClick") :

Parameters:

ParameterDescriptionTypeRequired
ad_platformMonetization platforms, for example (value: name),
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
chartboost:Chartboost
adcolony:Adcolony
Stringyes
ad_typeAd types, for example (value: explanation),
1:Rewarded Video Ads
2:Splash Ads
3:Interstitial Ads
4:Full Screen Videos
5:Banner Ads
6:In-Feed Ads
7:Native Video Ads
8:Playable Ads
9:Pre-movie Ads
0:Other
intyes
ad_idAd unit ID on monetization platforms.Stringyes
mediation_platformMediation platforms commonly used:
max
ironsource
admob
hyperbid
topon
cas
Tradplus
Tobid

If your mediation platform is not on the list, you can name it yourself, only that the name cannot exceed 32 characters.
Send "custom" if no mediation platform is used.
Stringyes
customProperties/Dictionaryno

Sample Code

let properties = {
		adPlatform:"mtg",
		adType: 2,
		adId: "Ad Unit ID",
		mediationPlatform: "custom",
		customProperties:{
			test_key1:"1",
			test_key2:2,
		}
solarengine.trackAdClick(properties);	
// You can choose not to set customProperties. 
// Please do not report custom properties starting with "_", otherwise SDK will abandon its value by default.

4. Registration

Call trackRegister to report the registration event (Event Name: "_appReg"):

Parameters:

ParameterDescriptionTypeRequired
register_typeRegistration types such as "WeChat", "QQ" and other custom valuesStringYes
register_statusRegistration status such as "success"StringNo
customPropertiesCustom PropertiesDictionaryNo

Sample Code

let properties = {
		registerType:"WeChat",
		registerStatus:"success",
		customProperties:{
			test_key1:"1",
			test_key2:2,
		}
	}
solarengine.trackRegister(properties);	
// You can choose not to set customProperties. 
// Please do not report custom properties starting with "_", otherwise SDK will abandon its value by default.

5. Login

Call trackLogin to report the login event (Event Name: "_appLogin") :

Parameters:

ParameterDescription TypeRequired
login_typeLogin type such as "WeChat", "QQ" and other custom valuesStringYes
login_statusLogin status such as "success"StringNo
customPropertiesCustom PropertiesDictionaryNo

Sample Code

let properties = {
		registerType:"WeChat",
		registerStatus:"success",
		customProperties:{
			test_key1:"1",
			test_key2:2,
		}
	}
solarengine.trackRegister(properties);	
// You can choose not to set customProperties. 
// Please do not report custom properties starting with "_", otherwise SDK will abandon its value by default.

6. In-App Order

Call trackOrder to report in-app order event (Event Name: "_appOrder") :

Parameters:

ParameterDescriptionTypeRequired
order_idOrder IDStringNo
pay_amountThe payment amount of the order (Unit: e.g. USD, CNY, etc.)doubleYes
currency_typeThe currency type of the order (following ISO 4217)StringYes
pay_typePayment methods, such as alipay, weixin, applepay, paypal, etc.StringNo
statusOrder StatusStringYes
customPropertiesCustom PropertiesDictionaryNo

Sample Code

let properties = {
		orderId: "订单ID",
		payAmount: 15.6,
		currencyType:"USD",
		payType: "aliPay",
		status: "success",
		customProperties:{
			test_key1:"1",
			test_key2:2,
		}
	}
solarengine.trackOrder(properties);	
// You can choose not to set customProperties. 
// Please do not report custom properties starting with "_", otherwise SDK will abandon its value by default.

7.  Self-Reported Attribution Results

Enables the reporting of attribution results data from a third-party or self-attribution platform to SolarEngine. The timing of reporting can be customized by developers. (Event Name: "_appAttr")

Parameters:

ParameterDescriptionTypeRequired
ad_networkChannel ID (should match the channel ID in ROI analysis)Stringyes
sub_channelSub-channels for advertisingStringno
ad_account_idAd account ID for advertisingStringno
ad_account_nameAd account name for advertisingStringno
ad_campaign_idAd campaign ID for advertisingStringno
ad_campaign_nameAd campaign name for advertisingStringno
ad_offer_idAd offer ID for advertisingStringno
ad_offer_nameAd offer name for advertisingStringno
ad_creative_idAd creative ID for advertisingStringno
ad_creative_nameAd creative name for advertisingStringno
attribution_platformMonitoring PlatformStringyes
customPropertiesCustom PropertiesDictionaryno

Sample Code

let properties = {
		adNetwork: "adNetwork",
		subChannel: "subChannel",
		adAccountId:  "adAccountId",
		adAccountName:  "adAccountName",
		adCampaignId:  "adCampaignId",
		adCampaignName:  "adCampaignName",
		adOfferId:  "adOfferId",
		adOfferName:  "adOfferName",
		adCreativeId: "adCreativeId",
		adCreativeName:  "adCreativeName",
		attributionPlatform: "attributionPlatform",
		customProperties:{
			test_key1:"1",
			test_key2:2,
		}
	}
solarengine.trackAppAttr(properties);	


Previous
Preset Events
Next
Custom Events
Last modified: 2025-09-23Powered by