JubeatPlus 3.9.11
Loading...
Searching...
No Matches
AnalysisNetworkCore Class Reference

The applilink advert SDK's advert-analytics core. More...

#include <AnalysisNetworkCore.h>

Inheritance diagram for AnalysisNetworkCore:
Collaboration diagram for AnalysisNetworkCore:

Class Methods

(void) + postInitalizeWithCallback:
 Post the install/initialisation registration if it has not yet succeeded.
(void) + postDAUWithCallback:
 Post the daily-active-user measurement if it has not yet been sent today.
(void) + postAnalysisDataWithResultId:callback:
 Post a result registration for the given result identifier.
(void) + postSetUserIDWithCallback:
 Post the user-identifier registration.
(void) + postAnalysisDataWithActionType:resultId:uesrId:finishedBlock:failedBlock:callback:
 Post a generic analytics action to the server.
(void) + postAnalysisDeviceDataWithActionType:
 Post a device-data registration (a user-identifier action, type 14).
(void) + postAnalysisDataWithCallback:
 Post the queued advert-analysis data to the analytics server.
(void) + openExternalWebBrowserCore:env:callback:
 Query the advert sync status and, when instructed, open the sync URL in the browser.
(void) + openWebBrowserWithSyncUrl
 Request the sync URL and open it in the external browser.
(void) + openWebBrowserWithAppliIdCore:env:callback:
 Request the browser URL for one application identifier and hand it to the callback.
(void) + postAnalysisListRegistWithAdType:adModel:adLocation:impressionId:appliIdList:creativeIdList:incentiveTypeList:installFlgList:callback:
 Register an impression list for the displayed adverts.
(void) + postAnalysisClickRegistWithAdType:adModel:adLocation:impressionId:appliIdTo:creativeId:displayNumber:incentiveType:installFlg:callback:
 Register a click for a displayed advert.
(void) + postAnalysisClickMovieWithAdType:adModel:adLocation:impressionId:appliIdTo:creativeId:displayNumber:incentiveType:installFlg:movieStatus:callback:
 Register a click for an advert movie.
(BOOL) + getInitalizeFlg
 Whether the analytics-initialisation marker has been persisted.
(BOOL) + getSendDauFlg
 Whether daily-active-user measurement has already been sent today.
(void) + clearInitalize
 Clear the persisted analytics-initialisation marker.
(void) + clearDAU
 Clear the persisted daily-active-user measurement date.

Detailed Description

The applilink advert SDK's advert-analytics core.

All members are class methods; the class holds no state of its own and persists its markers to NSUserDefaults.

Method Documentation

◆ clearDAU

+ (void) clearDAU

Clear the persisted daily-active-user measurement date.

Removes the ApplilinkAnalysis.dauMeasurementDate key from NSUserDefaults and synchronises.

Ghidra address:
0x23cdd4

◆ clearInitalize

+ (void) clearInitalize

Clear the persisted analytics-initialisation marker.

Removes the ApplilinkAnalysis.initialize key from NSUserDefaults and synchronises. The selector preserves the binary's Initalize misspelling.

Ghidra address:
0x23cd40

◆ getInitalizeFlg

+ (BOOL) getInitalizeFlg

Whether the analytics-initialisation marker has been persisted.

The selector preserves the binary's Initalize misspelling.

Returns
YES when the ApplilinkAnalysis.initialize key exists in NSUserDefaults.
Ghidra address:
0x23c914

◆ getSendDauFlg

+ (BOOL) getSendDauFlg

Whether daily-active-user measurement has already been sent today.

Returns
YES when the persisted ApplilinkAnalysis.dauMeasurementDate is the same calendar day as now, or later.
Ghidra address:
0x23c990

◆ openExternalWebBrowserCore:env:callback:

+ (void) openExternalWebBrowserCore: (nullable NSString *) url
env: (nullable NSString *) env
callback: (nullable ApplilinkAnalysisCallback) callback 

Query the advert sync status and, when instructed, open the sync URL in the browser.

Posts a GET to /analysis/app/getSyncStatus.php carrying the appli identifier and stores the env under ApplilinkNetwork.env. On a successful response whose browser flag is set, the browser conversion is applied (opening the sync URL and persisting the conversion markers). The callback is invoked only on the error path.

Parameters
urlThe appli identifier sent as ua_appli_id.
envThe SDK environment, persisted to NSUserDefaults.
callbackThe completion callback, invoked only when the envelope is unsuccessful.
Ghidra address:
0x23a2fc

◆ openWebBrowserWithAppliIdCore:env:callback:

+ (void) openWebBrowserWithAppliIdCore: (nullable NSString *) appliId
env: (nullable NSString *) env
callback: (nullable ApplilinkAnalysisCallback) callback 

Request the browser URL for one application identifier and hand it to the callback.

Posts a GET to /analysis/app/getSyncUrl.php carrying the appli identifier and stores the env under ApplilinkNetwork.env. The callback receives the server's url string on success, or nil on any failure.

Parameters
appliIdThe appli identifier sent as ua_appli_id.
envThe SDK environment, persisted to NSUserDefaults.
callbackThe completion callback, invoked with the URL string or nil.
Ghidra address:
0x23b04c

◆ openWebBrowserWithSyncUrl

+ (void) openWebBrowserWithSyncUrl

Request the sync URL and open it in the external browser.

Posts a GET to /analysis/app/getSyncUrl.php carrying the UDID and advertising identifier; the empty global response blocks open the returned URL with UIApplication. Takes no arguments.

Ghidra address:
0x23aca0
Ghidra address:
0x23aee0
Ghidra address:
0x23b048

◆ postAnalysisClickMovieWithAdType:adModel:adLocation:impressionId:appliIdTo:creativeId:displayNumber:incentiveType:installFlg:movieStatus:callback:

+ (void) postAnalysisClickMovieWithAdType: (nullable NSString *) adType
adModel: (nullable NSString *) adModel
adLocation: (nullable NSString *) adLocation
impressionId: (nullable NSString *) impressionId
appliIdTo: (nullable NSString *) appliIdTo
creativeId: (nullable NSString *) creativeId
displayNumber: (nullable NSString *) displayNumber
incentiveType: (nullable NSString *) incentiveType
installFlg: (nullable NSString *) installFlg
movieStatus: (int) movieStatus
callback: (nullable ApplilinkAnalysisCallback) callback 

Register a click for an advert movie.

Posts to /analysis/movie/regist.php. Behaves like the click registration with the same missing-parameter guards, and additionally sends movieStatus under the status key, formatted with d.

Parameters
adTypeThe advert-type string.
adModelThe advert-model string.
adLocationThe advert-location identifier.
impressionIdThe impression identifier.
appliIdToThe destination advert application identifier.
creativeIdThe advert creative identifier.
displayNumberThe advert display-number string.
incentiveTypeThe incentive-type string.
installFlgThe install-flag string.
movieStatusThe movie-status code, sent as the status parameter.
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x23c21c

◆ postAnalysisClickRegistWithAdType:adModel:adLocation:impressionId:appliIdTo:creativeId:displayNumber:incentiveType:installFlg:callback:

+ (void) postAnalysisClickRegistWithAdType: (nullable NSString *) adType
adModel: (nullable NSString *) adModel
adLocation: (nullable NSString *) adLocation
impressionId: (nullable NSString *) impressionId
appliIdTo: (nullable NSString *) appliIdTo
creativeId: (nullable NSString *) creativeId
displayNumber: (nullable NSString *) displayNumber
incentiveType: (nullable NSString *) incentiveType
installFlg: (nullable NSString *) installFlg
callback: (nullable ApplilinkAnalysisCallback) callback 

Register a click for a displayed advert.

Posts to /analysis/click/regist.php. When any of adLocation, impressionId, appliIdTo, creativeId, displayNumber, incentiveType, or installFlg is nil the callback is invoked with error code 1001.

Parameters
adTypeThe advert-type string.
adModelThe advert-model string.
adLocationThe advert-location identifier.
impressionIdThe impression identifier.
appliIdToThe destination advert application identifier.
creativeIdThe advert creative identifier.
displayNumberThe advert display-number string.
incentiveTypeThe incentive-type string.
installFlgThe install-flag string.
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x23bb68

◆ postAnalysisDataWithActionType:resultId:uesrId:finishedBlock:failedBlock:callback:

+ (void) postAnalysisDataWithActionType: (int) actionType
resultId: (nullable NSString *) resultId
uesrId: (nullable NSString *) uesrId
finishedBlock: (nullable ApplilinkWebAPIFinishedBlock) finishedBlock
failedBlock: (nullable ApplilinkWebAPIFailedBlock) failedBlock
callback: (nullable ApplilinkAnalysisCallback) callback 

Post a generic analytics action to the server.

Builds the request parameters (action type, optional result and user identifiers, and the UDID source), merges the user-agent parameters, and posts them to /analysis/regist.php. The selector preserves the binary's uesrId misspelling.

Parameters
actionTypeThe analytics action-type code (1 for initialisation, 2 for DAU, 3 for a result, or 14 for a user-identifier registration).
resultIdThe optional result identifier, sent when non-empty.
uesrIdThe optional user identifier, URL-encoded before sending.
finishedBlockThe block invoked with the server response on success.
failedBlockThe block invoked with the request and error on failure.
callbackThe completion callback invoked with an error when a parameter is missing.
Ghidra address:
0x239c58

◆ postAnalysisDataWithCallback:

+ (void) postAnalysisDataWithCallback: (nullable ApplilinkAnalysisCallback) callback

Post the queued advert-analysis data to the analytics server.

Runs the install/initialisation registration and then the daily-active-user measurement in sequence. The callback receives the initialisation error when one occurred, otherwise the DAU error (or nil when both succeeded).

Parameters
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x23cb28

◆ postAnalysisDataWithResultId:callback:

+ (void) postAnalysisDataWithResultId: (nullable NSString *) resultId
callback: (nullable ApplilinkAnalysisCallback) callback 

Post a result registration for the given result identifier.

When resultId is nil, the callback is invoked with error code 1001. Otherwise a result action (type 3) is posted for the current ApplilinkConsts userId.

Parameters
resultIdThe result identifier.
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x2395bc

◆ postAnalysisDeviceDataWithActionType:

+ (void) postAnalysisDeviceDataWithActionType: (nullable ApplilinkAnalysisCallback) callback

Post a device-data registration (a user-identifier action, type 14).

Despite the ActionType: selector keyword, the sole argument is the completion callback: the binary posts a fixed action type of 14 and forwards the block as the success/failure callback.

Parameters
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x23a040

◆ postAnalysisListRegistWithAdType:adModel:adLocation:impressionId:appliIdList:creativeIdList:incentiveTypeList:installFlgList:callback:

+ (void) postAnalysisListRegistWithAdType: (nullable NSString *) adType
adModel: (nullable NSString *) adModel
adLocation: (nullable NSString *) adLocation
impressionId: (nullable NSString *) impressionId
appliIdList: (nullable NSArray *) appliIdList
creativeIdList: (nullable NSArray *) creativeIdList
incentiveTypeList: (nullable NSArray *) incentiveTypeList
installFlgList: (nullable NSArray *) installFlgList
callback: (nullable ApplilinkAnalysisCallback) callback 

Register an impression list for the displayed adverts.

Posts to /analysis/list/regist.php. When adLocation or impressionId is nil the callback is invoked with error code 1001. The four list parameters are only sent when all of them are non-empty.

Parameters
adTypeThe advert-type string.
adModelThe advert-model string.
adLocationThe advert-location identifier.
impressionIdThe impression identifier.
appliIdListThe advert application identifiers.
creativeIdListThe advert creative identifiers.
incentiveTypeListThe incentive-type strings.
installFlgListThe install-flag strings.
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x23b540

◆ postDAUWithCallback:

+ (void) postDAUWithCallback: (nullable ApplilinkAnalysisCallback) callback

Post the daily-active-user measurement if it has not yet been sent today.

When getSendDauFlg is already set, the callback is invoked immediately with nil. Otherwise a DAU action (type 2) is posted for the current ApplilinkConsts userId, capturing the current date; on success the ApplilinkAnalysis.dauMeasurementDate marker is persisted.

Parameters
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x239194

◆ postInitalizeWithCallback:

+ (void) postInitalizeWithCallback: (nullable ApplilinkAnalysisCallback) callback

Post the install/initialisation registration if it has not yet succeeded.

When getInitalizeFlg is already set, the callback is invoked immediately with nil. Otherwise an initialisation action (type 1) is posted, capturing the current date; on success the ApplilinkAnalysis.initialize marker is persisted. The selector preserves the binary's Initalize misspelling.

Parameters
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x238d98

◆ postSetUserIDWithCallback:

+ (void) postSetUserIDWithCallback: (nullable ApplilinkAnalysisCallback) callback

Post the user-identifier registration.

When ApplilinkConsts userId is nil, the callback is invoked with error code 1001. Otherwise a user-identifier action (type 14) is posted.

Parameters
callbackThe completion callback invoked with an error, or nil on success.
Ghidra address:
0x239918

The documentation for this class was generated from the following files: