Documentation Index
Fetch the complete documentation index at: https://docs.adrop.io/llms.txt
Use this file to discover all available pages before exploring further.
Error Code Reference
| Code | Constant | Message | Description |
|---|---|---|---|
0 | OK | OK | Success |
4000 | ERROR_CODE_INVALID_UNIT | Invalid unit | Invalid ad unit ID |
4001 | ERROR_CODE_AD_INACTIVE | Ad inactive | No active ad campaigns |
4002 | ERROR_CODE_AD_NO_FILL | No fill | No matching ads available |
4003 | ERROR_CODE_INVALID_PARAMS | Invalid params | Invalid parameters |
Detailed Error Descriptions
ERROR_CODE_INVALID_UNIT (4000)
Cause: Requested with a non-existent or deactivated ad unit ID. Solutions:- Verify the ad unit ID is correct in the console
- Check that the ad unit is in active status
- Ensure no whitespace or special characters were included when copying
ERROR_CODE_AD_INACTIVE (4001)
Cause: No active ad campaigns for the specified ad unit. Solutions:- Verify campaigns are running in the console
- Check campaign schedule (start/end dates)
- Ensure campaign budget is not exhausted
ERROR_CODE_AD_NO_FILL (4002)
Cause: Unable to find ads matching the targeting criteria. Solutions:- Check if targeting settings are too restrictive
- Implement retry logic (exponential backoff recommended)
- Prepare fallback content
ERROR_CODE_INVALID_PARAMS (4003)
Cause: Request parameters are malformed. Solutions:- Verify required parameter (
unit) is included - Check that parameter values are in correct format
- Ensure no typos in parameter names
| Parameter | Required | Valid Examples |
|---|---|---|
unit | Required | AD_UNIT_123 |
pf | Recommended | android, ios, web |
lcl | Recommended | ko_KR, en_US |
theme | Optional | light, dark |
Error Handling Best Practices
1. Handle Errors Based on Code
2. Prepare Fallback Content
3. Monitoring and Logging
HTTP Status Codes
The REST API also returns standard HTTP status codes.| HTTP Status | Description |
|---|---|
200 | Request successful (check response body for error code) |
401 | Authentication failed (verify App Key) |
500 | Internal server error |
Related Documentation
REST API Overview
Basic API usage
Targeting Settings
Configure targeting parameters