|
JubeatPlus 3.9.11
|
The applilink advert SDK's advert-analytics core. More...
#include <AnalysisNetworkCore.h>


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. | |
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.
| + (void) clearDAU |
Clear the persisted daily-active-user measurement date.
Removes the ApplilinkAnalysis.dauMeasurementDate key from NSUserDefaults and synchronises.
| + (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.
| + (BOOL) getInitalizeFlg |
Whether the analytics-initialisation marker has been persisted.
The selector preserves the binary's Initalize misspelling.
YES when the ApplilinkAnalysis.initialize key exists in NSUserDefaults. | + (BOOL) getSendDauFlg |
Whether daily-active-user measurement has already been sent today.
YES when the persisted ApplilinkAnalysis.dauMeasurementDate is the same calendar day as now, or later. | + (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.
| url | The appli identifier sent as ua_appli_id. |
| env | The SDK environment, persisted to NSUserDefaults. |
| callback | The completion callback, invoked only when the envelope is unsuccessful. |
| + (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.
| appliId | The appli identifier sent as ua_appli_id. |
| env | The SDK environment, persisted to NSUserDefaults. |
| callback | The completion callback, invoked with the URL string or nil. |
| + (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.
| + (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.
| adType | The advert-type string. |
| adModel | The advert-model string. |
| adLocation | The advert-location identifier. |
| impressionId | The impression identifier. |
| appliIdTo | The destination advert application identifier. |
| creativeId | The advert creative identifier. |
| displayNumber | The advert display-number string. |
| incentiveType | The incentive-type string. |
| installFlg | The install-flag string. |
| movieStatus | The movie-status code, sent as the status parameter. |
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| adType | The advert-type string. |
| adModel | The advert-model string. |
| adLocation | The advert-location identifier. |
| impressionId | The impression identifier. |
| appliIdTo | The destination advert application identifier. |
| creativeId | The advert creative identifier. |
| displayNumber | The advert display-number string. |
| incentiveType | The incentive-type string. |
| installFlg | The install-flag string. |
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| actionType | The analytics action-type code (1 for initialisation, 2 for DAU, 3 for a result, or 14 for a user-identifier registration). |
| resultId | The optional result identifier, sent when non-empty. |
| uesrId | The optional user identifier, URL-encoded before sending. |
| finishedBlock | The block invoked with the server response on success. |
| failedBlock | The block invoked with the request and error on failure. |
| callback | The completion callback invoked with an error when a parameter is missing. |
| + (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).
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| resultId | The result identifier. |
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| adType | The advert-type string. |
| adModel | The advert-model string. |
| adLocation | The advert-location identifier. |
| impressionId | The impression identifier. |
| appliIdList | The advert application identifiers. |
| creativeIdList | The advert creative identifiers. |
| incentiveTypeList | The incentive-type strings. |
| installFlgList | The install-flag strings. |
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| callback | The completion callback invoked with an error, or nil on success. |
| + (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.
| callback | The completion callback invoked with an error, or nil on success. |