Developer documentation
for tags, SDKs and the API
Six pages cover the whole setup. Copy the snippet, paste the file, check the report. When something is account-specific, the page says so.
Common tasks
Getting started
3 pagesSet up your Worksly account end to end: create inventory, pick an integration path, turn on demand, verify traffic, and get paid.
Updated Nov 12, 2026Publish correct ads.txt and app-ads.txt lines for Worksly, read a sellers.json entry, and validate your files so demand is not silently lost.
Updated Oct 20, 2026How the Worksly tag and SDK read TCF 2.2 consent strings and Google Consent Mode signals, and how to set up defaults and testing.
Updated Nov 24, 2026Web
1 pagesApps
1 pagesReporting
1 pagesNothing in the docs matches that search. Try the FAQ or ask us.
The path by surface
Inventory registered, authorization file published, tag or SDK placed, ad server connected, traffic verified: the same five moves on each surface. Pick yours and the steps adjust.
- Ads.txt access at the domain root
- GAM order and line-item permissions
- Prebid.js 8 or newer, if you run a wrapper
- Ads.txt access at the domain root
- A CMP registered on the IAB TCF list
- Placement IDs from the dashboard
- A registered CTV app ID
- App-ads.txt at the developer domain
- SSAI-capable stream packaging
- App ID and placement IDs from the dashboard
- Xcode with Swift Package Manager
- A CMP SDK for EEA and UK traffic
- App ID and placement IDs from the dashboard
- Gradle project on API 21 or newer
- Your no-ad fallback path
What each environment needs
Minimum versions and the component you install, in one table. Anything older than these floors needs an upgrade before the tag or SDK goes in.
| Environment | Floor | You install | Guide |
|---|---|---|---|
| Prebid.js | 8 or newer | Wrapper build with the worksly bidder module | Prebid + GAM |
| Google Ad Manager | Line-item permissions in your network | Line-item templates, the three hb_ keys, one dedicated order | Prebid + GAM |
| AMP | Current amp-ad runtime | Fast Fetch tag per slot | Integrations |
| WordPress | Current WordPress release | Worksly plugin from the directory | Getting started |
| iOS | iOS 14 or newer | WorkslySDK via Swift Package Manager or CocoaPods | SDK quick start |
| Android | API 21 or newer | com.worksly:sdk from Gradle | SDK quick start |
| Unity | Both native SDKs underneath | Worksly Unity package, rewarded and interstitial from one prefab | SDK quick start |
| React Native | Both native SDKs underneath | Native module over iOS and Android, one API for both | SDK quick start |
| Flutter | Both native SDKs underneath | Plugin with widgets for each ad format | SDK quick start |
The three SDKs ship in test mode by default: test creatives confirm the wiring, and test traffic stays out of monetization reports until you turn the flag off.
API keys and tokens
Reporting calls authenticate with a bearer token you generate in the dashboard. It carries full read access to your reporting, so it lives and moves like a password.
curl -s "https://api.worksly.io/v2/report?from=2026-11-01&to=2026-11-07&groupBy=deal,placement&metrics=revenue,impressions,ecpm,fillRate" \
-H "Authorization: Bearer YOUR_API_TOKEN"Error codes and loss reasons
HTTP statuses tell you whether the request itself succeeded, and bid loss reasons tell you why an impression paid nothing. Both are stable, so alerts built on them keep working.
| Signal | Kind | Meaning | What to do |
|---|---|---|---|
| 400 | HTTP status | Malformed parameters, the body names the offending one | Fix the named parameter and resend |
| 401 | HTTP status | Missing or revoked token | Rotate it under Settings → API tokens |
| 429 | HTTP status | More than 60 requests per minute on one token | Honor the Retry-After header instead of a fixed timer |
| 5xx | HTTP status | Failed on the Worksly side | Retry with backoff |
| belowFloor | Bid loss reason | A bid arrived but fell under your floor | Recheck floors after a week of live bid data |
| insufficientBid | Bid loss reason | No bid reached the clearing price | Check that a GAM line item covers the bid's price bucket |
| timeout | Bid loss reason | The buyer answered too late | Review the wrapper timeout budget |
| noDemand | Bid loss reason | No eligible buyer was targeted for the impression | Widen eligible demand or expect it in long-tail geos |
Loss reason codes mirror the dashboard. Cursors stay valid while the query is unchanged, so paginated pulls reassemble cleanly on your side. Full reference: the Reporting API page.
Ask the engineer
who wrote the page
The people who build the product answer support tickets.