> For the complete documentation index, see [llms.txt](https://docs.blueseasx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blueseasx.com/ios/test-and-error-handling.md).

# Test & Error Handling

### Test

Log in BlueSea’s console, navigate to Integration > Test Device IDs. Add the GAID/IDFA, use the live app id and placement ids to request ads for integration validation.

<img src="/files/ZtGUDgn1lk36AfRvGvbX" alt="" height="291" width="725">

### **Error Code**

**Initialization Phase Error Codes**

<table data-header-hidden><thead><tr><th width="197.9140625"></th><th></th></tr></thead><tbody><tr><td><strong>code</strong></td><td><strong>message</strong></td></tr><tr><td>10000</td><td>SDK failed to initialize due to missing appid</td></tr><tr><td>10001</td><td>SDK failed to initialize due to no context</td></tr><tr><td>10002</td><td>getToken failed because sdk hasn’t been initialized</td></tr><tr><td>10003</td><td>getToken failed because sdk failed to initialize</td></tr><tr><td>10004</td><td>failed to generate token</td></tr></tbody></table>

**Ad Request Related Error Codes**

<table data-header-hidden data-search="false"><thead><tr><th width="210.625"></th><th></th></tr></thead><tbody><tr><td><strong>code</strong></td><td><strong>message</strong></td></tr><tr><td>1</td><td>Ad load success</td></tr><tr><td>100</td><td>The app bundle is invalid</td></tr><tr><td>101</td><td>The app id is invalid</td></tr><tr><td>102</td><td>The app status is paused</td></tr><tr><td>103</td><td>App id isn’t consistent with bundle id </td></tr><tr><td>110</td><td>Invalid pid</td></tr><tr><td>111</td><td>The pid status is invalid</td></tr><tr><td>112</td><td>The ad type isn’t consistent with pid</td></tr><tr><td>20000</td><td>Placement id shall not be empty</td></tr><tr><td>20001</td><td>Load failed because sdk hasn't been initialized</td></tr><tr><td>20002</td><td>App is inactive, please check your app setup</td></tr><tr><td>20003～20034</td><td>No ad fill</td></tr><tr><td>20035</td><td>Load failed because of coppa restriction</td></tr><tr><td>20036</td><td>Server bidding adm parse failed</td></tr><tr><td>20037</td><td>The pid isn’t consistent with the server bidding pid</td></tr></tbody></table>

**Ad Display Related Error Codes**

<table data-header-hidden data-search="false"><thead><tr><th width="167.4296875"></th><th></th></tr></thead><tbody><tr><td><strong>code</strong></td><td><strong>message</strong></td></tr><tr><td>30000</td><td>Activity creation error.</td></tr><tr><td>30001</td><td>The ad is expired</td></tr><tr><td>30002</td><td>The ad is destroyed</td></tr><tr><td>30003</td><td>NativeAdView cannot be null.</td></tr><tr><td>30004</td><td>Illegal operation</td></tr><tr><td>30005</td><td>show activity is null</td></tr><tr><td>30006</td><td>This ad cannot be shown repeatedly.</td></tr><tr><td>30007</td><td>This ad cannot be open</td></tr></tbody></table>

<br>

<br>
