Display banner using API
Step 1: Request Ad
GET /request
You can display banners using the ad
of result
field in the received data from the response. Since the banner is returned in HTML format, you can directly render it in web projects. In other platforms, you can utilize a WebView.
Please refer to the REST API.
Parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
unit | STRING | YES | Ad unit ID |
uid | STRING | Recommended | Provide a value to uniquely identify the user. |
pf | STRING | Recommended | |
lcl | STRING | Recommended |
Response:
Name | Type | Mandatory | Description |
---|---|---|---|
code | INT | YES | |
msg | STRING | YES | Adrop Error Code Message |
result | STRING | YES |
Ad data
Name | Type | Mandatory | Description |
---|---|---|---|
format | STRING | YES | |
unit | STRING | YES | Ad unit ID |
w | INT | YES | Width |
h | INT | YES | Height |
ad | STRING | YES |
Example
Please replace your Unit ID. You can also use test_unit_id instead of your own.
Last updated