<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nielsentest.mywikis.net/w/index.php?action=history&amp;feed=atom&amp;title=APP_SDK_Event_Codes</id>
	<title>APP SDK Event Codes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nielsentest.mywikis.net/w/index.php?action=history&amp;feed=atom&amp;title=APP_SDK_Event_Codes"/>
	<link rel="alternate" type="text/html" href="https://nielsentest.mywikis.net/w/index.php?title=APP_SDK_Event_Codes&amp;action=history"/>
	<updated>2026-04-13T17:57:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://nielsentest.mywikis.net/w/index.php?title=APP_SDK_Event_Codes&amp;diff=1912&amp;oldid=prev</id>
		<title>Admin at 01:14, 7 November 2017</title>
		<link rel="alternate" type="text/html" href="https://nielsentest.mywikis.net/w/index.php?title=APP_SDK_Event_Codes&amp;diff=1912&amp;oldid=prev"/>
		<updated>2017-11-07T01:14:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:14, 7 November 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|DCR &amp;amp; DTVR}} &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Breadcrumb|DCR Video APP SDK}}  &lt;/del&gt;{{CurrentBreadcrumb}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|DCR &amp;amp; DTVR}} {{CurrentBreadcrumb}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Digital]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Digital]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Event and Error Handling =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Event and Error Handling =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://nielsentest.mywikis.net/w/index.php?title=APP_SDK_Event_Codes&amp;diff=1911&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|DCR &amp; DTVR}} {{Breadcrumb|DCR Video APP SDK}}  {{CurrentBreadcrumb}} Category:Digital = Event and Error Handling = == i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nielsentest.mywikis.net/w/index.php?title=APP_SDK_Event_Codes&amp;diff=1911&amp;oldid=prev"/>
		<updated>2017-11-07T01:14:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|DCR &amp;amp; DTVR}} {{Breadcrumb|DCR Video APP SDK}}  {{CurrentBreadcrumb}} &lt;a href=&quot;/wiki/Category:Digital&quot; title=&quot;Category:Digital&quot;&gt;Category:Digital&lt;/a&gt; = Event and Error Handling = == i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|DCR &amp;amp; DTVR}} {{Breadcrumb|DCR Video APP SDK}}  {{CurrentBreadcrumb}}&lt;br /&gt;
[[Category:Digital]]&lt;br /&gt;
= Event and Error Handling =&lt;br /&gt;
== iOS Event &amp;amp; Error Codes ==&lt;br /&gt;
An enumeration with predefined App SDK event state transition codes.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objective-c&amp;quot;&amp;gt;&lt;br /&gt;
typedef NS_ENUM(unsigned int, AppApiEventCode)&lt;br /&gt;
{&lt;br /&gt;
     AppApiStartup = 2001,&lt;br /&gt;
     AppApiShutdown = 2002,&lt;br /&gt;
}AppApiEventCode;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== App SDK Event Codes ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Event Code !! Event Name !! Event Description&lt;br /&gt;
|-&lt;br /&gt;
| 2001 || AppApiStartup || App SDK has initialized successfully. It will happen only after App SDK has received a valid config file&lt;br /&gt;
|-&lt;br /&gt;
| 2002 || AppApiShutdown || App SDK is shutting down. It will happen just before App SDK is destroyed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== AppApiErrorCode ===&lt;br /&gt;
iOS contains two types of error codes, 1-15 and 1001-1009.&lt;br /&gt;
&lt;br /&gt;
For, 1-15, an enumeration with predefined error codes which the App SDK object can generate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objective-c&amp;quot;&amp;gt;typedef NS_ENUM(unsigned int, LogCode) {&lt;br /&gt;
    LogCodeFailedParseStartInfo, // 1.&lt;br /&gt;
    LogCodeFailedParseMetadata, // 2.&lt;br /&gt;
    LogCodeFailedProcessID3, // 3.&lt;br /&gt;
    LogCodeFailedReceiveConfig, // 4.&lt;br /&gt;
    LogCodeFailedParseConfig, // 5.&lt;br /&gt;
    LogCodeFailedStartProcessor, // 6.&lt;br /&gt;
    LogCodeFailedCreateUrl, // 7.&lt;br /&gt;
    LogCodeFailedCreateRequest, // 8.&lt;br /&gt;
    LogCodeFailedSendHttpRequest, // 9.&lt;br /&gt;
    LogCodeFailedSendPing, // 10.&lt;br /&gt;
    LogCodeFailedSendTSV, // 11.&lt;br /&gt;
    LogCodeFailedSendStationRequest, // 12.&lt;br /&gt;
    LogCodeFailedAccessDatabase, // 13.&lt;br /&gt;
    LogCodeException, // 14.&lt;br /&gt;
    LogCodeInvalidPlayheadPosition, // 15.&lt;br /&gt;
};&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For, 1001-1009, an enumeration with predefined error codes which the App SDK object can generate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;objective-c&amp;quot;&amp;gt;&lt;br /&gt;
typedef NS_ENUM(unsigned int, AppApiErrorCode)&lt;br /&gt;
{&lt;br /&gt;
   AppApiNetworkConnectionFailure = 1001,&lt;br /&gt;
   AppApiFileWriteFailure = 1002,&lt;br /&gt;
   AppApiFileReadFailure = 1003,&lt;br /&gt;
   AppApiEmptyValue = 1004,&lt;br /&gt;
   AppApiEmptyAppName = 1005,&lt;br /&gt;
   AppApiEmptyAppVersion = 1006,&lt;br /&gt;
   AppApiEmptyAppId = 1007,&lt;br /&gt;
   AppApiAnExceptionOccured = 1008,&lt;br /&gt;
   AppApiUnknownExceptionOccured = 1009&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Android App SDK Error Codes ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Error Code !! Error Name !! Error Description&lt;br /&gt;
|-&lt;br /&gt;
| 1 || LogCodeFailedParseStartInfo || Failed to parse the play() JSON string&lt;br /&gt;
|-&lt;br /&gt;
| 2 || LogCodeFailedParseMetadata || Failed to parse the loadMetadata() JSON string&lt;br /&gt;
|-&lt;br /&gt;
| 3 || LogCodeFailedProcessID3 || Failed to process ID3 data on a data processor&lt;br /&gt;
|-&lt;br /&gt;
| 4 || LogCodeFailedReceiveConfig || Failed to receive configuration file from Census&lt;br /&gt;
|-&lt;br /&gt;
| 5 || LogCodeFailedParseConfig || Failed to parse the config file JSON string&lt;br /&gt;
|-&lt;br /&gt;
| 6 || LogCodeFailedStartProcessor || Failed to create SDK processor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LogCodeFailedCreateUrl || Failed to generate URL due to missing mandatory parameter&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LogCodeFailedCreateRequest || Failed to create request in HTTP client&lt;br /&gt;
|-&lt;br /&gt;
| 9 || LogCodeFailedSendHttpRequest || Failed sending HTTP or HTTPS request&lt;br /&gt;
|-&lt;br /&gt;
| 10 || LogCodeFailedSendPing || Failed to send ping&lt;br /&gt;
|-&lt;br /&gt;
| 11 || LogCodeFailedSendTSV || Failed to send TSV request&lt;br /&gt;
|-&lt;br /&gt;
| 12 || LogCodeFailedSendStationRequest || Failed to send StationId request&lt;br /&gt;
|-&lt;br /&gt;
| 13 || LogCodeFailedAccessDatabase || Failed to read/write from/to database table&lt;br /&gt;
|-&lt;br /&gt;
| 14 || LogCodeException || Any exception handled by SDK code&lt;br /&gt;
|-&lt;br /&gt;
| 15 || LogCodeInvalidPlayheadPosition || Invalid playhead position&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Error Code !! Error Name !! Error Description&lt;br /&gt;
|-&lt;br /&gt;
| 1001 || AppApiNetworkConnectionFailure || App SDK Could not connect to server&lt;br /&gt;
|-&lt;br /&gt;
| 1002 || AppApiFileWriteFailure || App SDK Could not write to file&lt;br /&gt;
|-&lt;br /&gt;
| 1003 || AppApiFileReadFailure || App SDK Could not read data from file&lt;br /&gt;
|-&lt;br /&gt;
| 1004 || AppApiEmptyValue || Empty value Found.&lt;br /&gt;
|-&lt;br /&gt;
| 1005 || AppApiEmptyAppName || Cannot initialize SDK Object without an AppName(Player Name)&lt;br /&gt;
|-&lt;br /&gt;
| 1006 || AppApiEmptyAppVersion || Cannot initialize API Object without an AppVersion&lt;br /&gt;
|-&lt;br /&gt;
| 1007 || AppApiEmptyAppId || Cannot initialize API Object without an AppId&lt;br /&gt;
|-&lt;br /&gt;
| 1008 || AppApiAnExceptionOccured || Exception occurred&lt;br /&gt;
|-&lt;br /&gt;
| 1009 || AppApiUnknownExceptionOccured || Unknown exception occurred&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== App SDK Event Codes ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Event Code !! Event Name !! Event Description&lt;br /&gt;
|-&lt;br /&gt;
| 2000 || EVENT_INITIATE || App SDK is initiated. It will happen as soon as the App SDK is initialized&lt;br /&gt;
|-&lt;br /&gt;
| 2001 || EVENT_STARTUP || App SDK has started up. It will happen only after App SDK has received a valid config file. This is the location in the code to acquire the value of [[userOptOutURLString()]].&lt;br /&gt;
|-&lt;br /&gt;
| 2002 || EVENT_SHUTDOWN || App SDK is shutting down. It will happen just before App SDK is destroyed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== App SDK Error Codes ===&lt;br /&gt;
Constants with predefined error codes which the AppSdk object can generate.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Error Code !! Error Name !! Description !! Behavior&lt;br /&gt;
|-&lt;br /&gt;
| 1001 || ERROR_FAILED_CREATE_URL_STRING || Failed generating ping string due to error on parsing || Include last error message from URL parser&lt;br /&gt;
|-&lt;br /&gt;
| 1002 || ERROR_FAILED_RECEIVE_CONFIG || Failed to receive configuration file from Census || On 5th time, it will log event and keep requesting config 10 min apart&lt;br /&gt;
|-&lt;br /&gt;
| 1003 || ERROR_FAILED_PARSING_CONFIG || Failed parsing the config file JSON string || Include json error number/short message from iOS or Android&lt;br /&gt;
|-&lt;br /&gt;
| 1004 || ERROR_FAILED_PARSING_PLAY || Failed parsing the play() JSON string || Include JSON error number/short message from iOS or Android&lt;br /&gt;
|-&lt;br /&gt;
| 1005 || ERROR_FAILED_PARSING_METADATA || Failed parsing the play() JSON string || Include JSON error number/short message from iOS or Android&lt;br /&gt;
|-&lt;br /&gt;
| 1006 || ERROR_FAILED_GENERATING_PING || Failed creating ping before adding it to the UPLOAD table) || Include ping nol_url index, cadence to identify ping&lt;br /&gt;
|-&lt;br /&gt;
| 1007 || ERROR_FAILED_PROCESSOR_START || Failed starting data processor thread. Normally, that means a product || Include processor that failed to start&lt;br /&gt;
|-&lt;br /&gt;
| 1008 || ERROR_FAILED_PROCESS_ID3 || Failed processing data on a data processor. Normally, that means the input to a product || Include processor and data that failed to process (ID3 tag on a MTVR impression, for example)&lt;br /&gt;
|-&lt;br /&gt;
| 1009 || ERROR_FAILED_HTTP_SEND || Failed sending HTTP or HTTPS requests || Include HTTP error number&lt;br /&gt;
|-&lt;br /&gt;
| 1010 || ERROR_FAILED_SENDING_PING || Failed sending pings (on ANDROID, the ping on the UPLOAD table) || Include ping up to 80 char from the end&lt;br /&gt;
|-&lt;br /&gt;
| 1011 || ERROR_FAILED_SENDING_TSV || Failed sending TSV requests || Include TSV request message&lt;br /&gt;
|-&lt;br /&gt;
| 1012 || ERROR_FAILED_SENDING_STATION_ID || Failed sending Station ID requests || Include Station ID request message&lt;br /&gt;
|-&lt;br /&gt;
| 1013 || ERROR_FAILED_ACCESSING_DB || Failed read/write from/to database table || Include SQL statement and data and SQLite error number/message&lt;br /&gt;
|-&lt;br /&gt;
| 1014 || ERROR_CHANGED_DEVICE_ID || Device ID changed ||&lt;br /&gt;
|-&lt;br /&gt;
| 1015 || ERROR_CHANGED_NUID || NUID changed ||&lt;br /&gt;
|-&lt;br /&gt;
| 1016 || ERROR_SDK_NOT_INITIALIZED || App SDK initialization failed ||&lt;br /&gt;
|-&lt;br /&gt;
| 1017 || ERROR_FAILED_SDK_SUSPEND || App SDK failed to suspend activities ||&lt;br /&gt;
|-&lt;br /&gt;
| 1018 || ERROR_INVALID_PARAMETERS || App SDK invalid parameters ||&lt;br /&gt;
|-&lt;br /&gt;
| 1019 || ERROR_INVALID_STATE || App SDK called in incorrect state ||&lt;br /&gt;
|-&lt;br /&gt;
| 1020 || ERROR_FAILED_PROCESS_PLAYHEAD || App SDK failed processing playhead position ||&lt;br /&gt;
|-&lt;br /&gt;
| 1021 || ERROR_FAILED_PROCESS_METADATA || App SDK failed processing not-null, syntax valid JSON metadada ||&lt;br /&gt;
|-&lt;br /&gt;
| 1022 || ERROR_FAILED_PROCESS_STOP || App SDK failed processing stop ||&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>