-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpartner-api.yaml
More file actions
10647 lines (10354 loc) · 335 KB
/
partner-api.yaml
File metadata and controls
10647 lines (10354 loc) · 335 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Trillboards Partner API
version: 1.1.0
description: |
API for partner integrations with Trillboards digital advertising platform.
Use this API to integrate ads into your vending machines, kiosks, digital signage,
and other display devices. Partners receive competitive revenue share on all impressions.
## Authentication
Most endpoints require API key authentication using Bearer token:
```
Authorization: Bearer trb_partner_xxxxx
```
API keys are generated during partner registration and should be stored securely.
## Rate Limits
All endpoints return rate limit headers:
- `X-RateLimit-Limit`: Maximum requests allowed per window
- `X-RateLimit-Remaining`: Requests remaining in current window
- `X-RateLimit-Reset`: Unix timestamp when window resets
- `RateLimit-Policy`: IETF draft-7 format policy string
Rate limits by endpoint type:
| Endpoint Type | Limit | Window |
|--------------|-------|--------|
| Registration | 5 | 1 hour |
| Authenticated API | 1000 | 1 minute |
| Ad serving | 100 | 1 minute |
| Impressions | 500 | 1 minute |
| Programmatic events | 300 | 1 minute |
| Batch impressions | 100 | 1 minute |
| Heartbeat | 60 | 1 minute |
| Venue intelligence | 100 | 1 minute |
| Audience intelligence | 100 | 1 minute |
| Bulk device operations | 20 | 1 minute |
Exceeding rate limits returns HTTP 429 with a `Retry-After` header.
## Quick Start
**Option A: New Partner Registration**
1. Register as a partner via `POST /register` (returns API key)
2. Register your devices
3. Load the `embed_url` in your device's WebView or use `/device/{id}/ads` in custom UI
4. Impressions are tracked automatically
**Option B: Existing Earner Upgrade**
If you already have a Trillboards earner account:
1. Call `POST https://api.trillboards.com/v2/earner/upgrade-to-partner` with your user JWT
2. Receive your Partner API key (one-time display - save it!)
3. Your existing screens remain visible alongside new API-registered screens
## SDK
Install the official TypeScript SDK for type-safe integration:
```
npm install @trillboards/ads-sdk
```
The SDK provides 4 entry points:
- `@trillboards/ads-sdk` — Core browser SDK with ad player, events, and caching
- `@trillboards/ads-sdk/react` — React hooks and components (TrillboardsProvider, TrillboardsAdSlot)
- `@trillboards/ads-sdk/react-native` — React Native WebView wrapper
- `@trillboards/ads-sdk/server` — Node.js PartnerClient with audience, analytics, auctions, creatives
Full documentation: https://trillboards.com/developers/partner-sdk
contact:
name: Trillboards Developer Support
email: developers@trillboards.com
url: https://trillboards.com/developers
license:
name: Proprietary
url: https://trillboards.com/terms-of-service
servers:
- url: https://api.trillboards.com/v1/partner
description: Production API
- url: http://localhost:4004/v1/partner
description: Local development
tags:
- name: Partners
description: Partner account management
- name: Devices
description: Device registration and management
- name: Ads
description: Ad serving endpoints
- name: Impressions
description: Impression tracking
- name: Analytics
description: Analytics and reporting
- name: CMS
description: Content management for partner screens
- name: Webhooks
description: Webhook subscriptions for real-time event notifications
- name: Dashboard
description: Dashboard overview and screen-level analytics
- name: Earnings
description: Earnings, transactions, and payout management
- name: Team
description: Team member management for partner organizations
- name: VAST Integration
description: |
Direct VAST integration endpoints for partners who want to fetch ads directly from Google Ad Manager.
This is the recommended approach for enterprise partners with existing video players.
Partners cache the VAST config, build URLs client-side, and report impressions in batch.
**Architecture:** Trillboards provides config + tracking only. Partners fetch VAST directly from Google.
- name: Batch Tracking
description: |
High-volume impression tracking with cryptographic proof generation.
Designed for partners with 10,000+ screens who need efficient batch reporting.
Each impression receives an Ed25519 signature for third-party verification.
- name: Fleet Management
description: |
Fleet-wide device management for partners with large screen networks.
Push commands, update settings, and view analytics across your entire fleet.
Supports filtering by venue type, country, and specific screen IDs.
- name: Stripe Connect
description: |
Stripe Connect integration for partner payouts.
Create a Stripe Connect account, complete onboarding, and receive payouts
directly to your bank account. Minimum payout is $5.00.
- name: Connect Dashboard
description: |
SDK partner dashboard API for earnings, screen health, and analytics.
Provides pre-aggregated data optimized for embedding in partner dashboards.
- name: Venue Intelligence
description: |
Real-world venue intelligence from CTV audience sensing.
Access foot traffic patterns, atmosphere data, nearby venues, and network-wide trends.
Data is aggregated from on-device face detection, audio analysis, and environmental sensors.
- name: Audience Intelligence
description: |
Advanced audience analytics including live data, heatmaps, lookalike screens, and predictions.
Some endpoints require Developer or Enterprise tier access.
x-beta: true
- name: Audience Segments
description: |
Custom audience segment targeting for programmatic campaigns.
Create segments based on demographics, venue type, geography, and audience behavior.
Match segments to screens and generate targeted VAST tags.
**Requires Enterprise tier.**
x-beta: true
- name: Intent Catalog
description: |
Intent-based pricing catalog for audience purchase intent signals.
Browse intent categories and get real-time intent pricing for screens
based on live audience signals (speech, emotion, behavior).
x-beta: true
- name: Sandbox
description: |
Testing tools for partner API integration.
Create sandbox screens, generate test events, and validate webhook integrations
without affecting production data. Sandbox data expires after 24 hours.
x-beta: true
- name: Usage
description: API usage tracking, rate limit status, and usage dashboards
- name: Events
description: |
Server-Sent Events (SSE) for real-time event streaming.
Subscribe to live events from your screens including audience updates,
device status changes, and impression notifications.
Maximum 5 concurrent SSE connections per partner.
- name: Network Config
description: White-label network configuration for content preferences, waterfall settings, and branding
- name: Billing
description: |
Usage-based billing and credit management.
Trillboards uses a pay-per-use model with generous free tiers. No subscriptions required.
When free tier limits are exceeded, endpoints return 402 Payment Required until billing
is set up via Stripe. Credits can be purchased at volume discounts.
- name: Agent Registration
description: |
Self-service registration for AI agents and automated systems.
Agents can register without human intervention, receive an API key and sandbox screens,
and begin making API calls immediately within free tier limits.
paths:
/register:
post:
tags:
- Partners
summary: Register a new partner
description: |
Register as a new partner to receive an API key.
Partners are auto-activated for instant onboarding.
**Important:** The API key is only shown once in the response. Store it securely!
operationId: registerPartner
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- slug
- contact_email
properties:
name:
type: string
description: Company or partner name
example: Acme Vending Co
slug:
type: string
description: URL-safe identifier (lowercase, no spaces)
example: acmevending
contact_email:
type: string
format: email
example: developer@example.com
contact_name:
type: string
example: Jane Developer
partner_type:
type: string
enum: [vending_machine, kiosk, digital_signage, retail_display, other]
default: other
revenue_share_percent:
type: number
description: Partner's revenue share percentage (negotiated per partner)
minimum: 0
maximum: 100
allowed_domains:
type: array
items:
type: string
description: Whitelist of allowed referrer domains
responses:
'201':
description: Partner registered successfully
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: Partner registered successfully. API key shown once - save it securely.
data:
type: object
properties:
partner_id:
type: string
example: 507f1f77bcf86cd799439011
slug:
type: string
example: acmevending
api_key:
type: string
description: Store this securely - only shown once!
example: trb_partner_a1b2c3d4e5f6g7h8i9j0
status:
type: string
enum: [pending, active]
example: active
revenue_share_percent:
type: number
example: 80
portal_access:
type: object
description: Optional portal onboarding details for the partner owner account
properties:
user_id:
type: string
email:
type: string
format: email
new_account:
type: boolean
portal_url:
type: string
example: "https://trillboards.com/earner"
portal_auth_url:
type: string
example: "https://trillboards.com/earner/auth"
claim_required:
type: boolean
claim_request_endpoint:
type: string
example: "/v1/user/claim/request"
claim_verify_endpoint:
type: string
example: "/v1/user/claim/verify"
claim_complete_endpoint:
type: string
example: "/v1/user/claim/complete"
message:
type: string
example: "An earner portal account has been created. Check your email to set your password."
'400':
$ref: '#/components/responses/BadRequest'
'409':
description: Partner slug already exists
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/info:
get:
tags:
- Partners
summary: Get partner info
description: Retrieve information about the authenticated partner
operationId: getPartnerInfo
security:
- BearerAuth: []
responses:
'200':
description: Partner info retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/Partner'
'401':
$ref: '#/components/responses/Unauthorized'
/device:
post:
tags:
- Devices
summary: Register a device
description: |
Register a new device or update an existing one.
If a device with the same `device_id` already exists, it will be updated.
The response includes an `embed_url` that should be loaded in your device's WebView.
operationId: registerDevice
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- device_id
properties:
device_id:
type: string
description: Your internal device identifier
example: machine-001
device_type:
type: string
enum: [vending_machine, kiosk, tablet, display, other]
default: other
name:
type: string
description: Friendly name for the device
example: Mall of America - Floor 2
description:
type: string
description: Screen or venue description for enrichment
photo_url:
type: string
format: uri
description: Photo URL for enrichment context
photos:
type: array
description: Optional additional photos for enrichment
items:
type: object
properties:
url:
type: string
format: uri
type:
type: string
description: photo type (context, close, angle, other)
display:
type: object
properties:
width:
type: integer
example: 1920
height:
type: integer
example: 1080
orientation:
type: string
enum: [landscape, portrait]
default: landscape
ppi:
type: number
description: Pixels per inch
location:
type: object
properties:
lat:
type: number
format: double
example: 44.8537
lng:
type: number
format: double
example: -93.2428
address:
type: string
example: 60 E Broadway, Bloomington, MN
venue_type:
type: string
enum: [mall, airport, retail, restaurant, office, gym, hospital, school, other]
venue_name:
type: string
example: Mall of America
country:
type: string
example: US
state:
type: string
example: MN
city:
type: string
example: Bloomington
zip:
type: string
example: 55425
timezone:
type: string
example: America/Chicago
venue:
type: object
description: Venue classification details (optional). Subcategory is free text and may be auto-enriched by AI.
properties:
category:
type: string
enum: [retail, restaurant, bar, cafe, hotel, office, gym, hospital, school, mall, airport, gas_station, convenience_store, laundromat, salon, auto_shop, other]
example: retail
subcategory:
type: string
description: Free text subcategory (may be auto-enriched by AI)
environment_type:
type: string
enum: [indoor, outdoor, semi_outdoor, transit]
example: indoor
placement_type:
type: string
enum: [digital_signage, point_of_sale, waiting_area, window_display, kiosk, other]
example: digital_signage
business_name:
type: string
context_notes:
type: string
placement:
type: object
description: Physical placement details (optional)
properties:
mounting_type:
type: string
enum: [wall, ceiling, tabletop, window, stand, freestanding, other, unknown]
example: wall
orientation:
type: string
enum: [landscape, portrait]
example: landscape
viewing_distance_ft:
type: number
example: 8
height_from_floor_ft:
type: number
example: 5
custom_metadata:
type: object
description: Any additional metadata for your records
responses:
'201':
description: Device registered
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
example: Device registered
data:
type: object
properties:
device_id:
type: string
description: Our internal device ID
external_device_id:
type: string
description: Your device ID
fingerprint:
type: string
description: Device fingerprint for SDK
status:
type: string
screen_id:
type: string
description: Linked screen ID
embed_url:
type: string
description: Load this URL in your WebView
enrichment_status:
type: string
description: Enrichment completion state
example:
success: true
message: "Device registered"
data:
device_id: "6507a1b2c3d4e5f6g7h8i9j0"
external_device_id: "machine-001"
fingerprint: "P_a1b2c3d4e5f6g7h8"
screen_id: "6507a1b2c3d4e5f6g7h8aa11"
status: "active"
embed_url: "https://screen.trillboards.com?fp=P_a1b2c3d4e5f6g7h8"
enrichment_status: "pending"
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/device/{deviceId}:
get:
tags:
- Devices
summary: Get device info
operationId: getDevice
security:
- BearerAuth: []
parameters:
- name: deviceId
in: path
required: true
description: Device ID, fingerprint, or external device ID
schema:
type: string
responses:
'200':
description: Device info
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/Device'
'404':
$ref: '#/components/responses/NotFound'
patch:
tags:
- Devices
summary: Update device metadata
description: |
Partially update device metadata. Only provided fields are updated.
Changes propagate to the linked screen record.
If location changes, venue enrichment is re-triggered.
operationId: updateDevice
security:
- BearerAuth: []
parameters:
- name: deviceId
in: path
required: true
description: Device ID, fingerprint, or external device ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Friendly name for the device
description:
type: string
description: Screen or venue description
photo_url:
type: string
format: uri
photos:
type: array
items:
type: object
properties:
url:
type: string
format: uri
type:
type: string
display:
type: object
properties:
width:
type: integer
height:
type: integer
orientation:
type: string
enum: [landscape, portrait]
ppi:
type: number
location:
type: object
properties:
lat:
type: number
format: double
lng:
type: number
format: double
address:
type: string
country:
type: string
state:
type: string
city:
type: string
zip:
type: string
timezone:
type: string
venue:
type: object
properties:
category:
type: string
enum: [retail, restaurant, bar, cafe, hotel, office, gym, hospital, school, mall, airport, gas_station, convenience_store, laundromat, salon, auto_shop, other]
subcategory:
type: string
environment_type:
type: string
enum: [indoor, outdoor, semi_outdoor, transit]
placement_type:
type: string
enum: [digital_signage, point_of_sale, waiting_area, window_display, kiosk, other]
business_name:
type: string
context_notes:
type: string
placement:
type: object
properties:
mounting_type:
type: string
enum: [wall, ceiling, tabletop, window, stand, freestanding, other, unknown]
orientation:
type: string
enum: [landscape, portrait]
viewing_distance_ft:
type: number
height_from_floor_ft:
type: number
custom_metadata:
type: object
description: Any additional metadata for your records
responses:
'200':
description: Device updated
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
example: Device updated
data:
$ref: '#/components/schemas/Device'
'404':
$ref: '#/components/responses/NotFound'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
delete:
tags:
- Devices
summary: Delete a device
description: Soft-delete a device. It will no longer receive ads.
operationId: deleteDevice
security:
- BearerAuth: []
parameters:
- name: deviceId
in: path
required: true
schema:
type: string
responses:
'200':
description: Device deleted
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
example: Device deleted
'404':
$ref: '#/components/responses/NotFound'
/devices:
get:
tags:
- Devices
summary: List all devices
operationId: listDevices
security:
- BearerAuth: []
parameters:
- name: status
in: query
schema:
type: string
enum: [pending, active, offline, suspended]
- name: limit
in: query
schema:
type: integer
default: 100
maximum: 500
- name: offset
in: query
schema:
type: integer
default: 0
responses:
'200':
description: Device list
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
devices:
type: array
items:
$ref: '#/components/schemas/DeviceSummary'
total:
type: integer
limit:
type: integer
offset:
type: integer
/devices/batch:
post:
tags:
- Devices
summary: Bulk register devices
description: |
Register up to 100 devices in a single request.
Each device must include `device_id`. Optional `defaults` are applied to every device.
operationId: registerDevicesBatch
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- devices
properties:
devices:
type: array
maxItems: 100
items:
type: object
required:
- device_id
properties:
device_id:
type: string
name:
type: string
device_type:
type: string
display:
type: object
location:
type: object
venue:
type: object
placement:
type: object
defaults:
type: object
description: Default fields applied to each device
responses:
'200':
description: Batch processed
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
summary:
type: object
properties:
total:
type: integer
created:
type: integer
updated:
type: integer
failed:
type: integer
devices:
type: array
items:
type: object
properties:
device_id:
type: string
trillboard_id:
type: string
screen_id:
type: string
fingerprint:
type: string
status:
type: string
errors:
type: array
items:
type: object
properties:
device_id:
type: string
error:
type: string
status:
type: string
/device/{deviceId}/ads:
get:
tags:
- Ads
summary: Get ads for device
description: |
**SDK Endpoint** - Returns ads for the specified device.
This endpoint is called by the Trillboards Lite SDK. It supports ETag caching
to minimize bandwidth usage.
If header bidding is enabled for the screen, the response includes
`header_bidding_settings` with a VAST tag URL for programmatic playback.
No authentication required - device is identified by fingerprint or external device ID.
operationId: getAdsForDevice
parameters:
- name: deviceId
in: path
required: true
description: Device fingerprint or external device ID
schema:
type: string
- name: If-None-Match
in: header
description: ETag from previous response for caching
schema:
type: string
- name: slot_w
in: query
description: Actual render slot width in pixels (player truth)
schema:
type: integer
- name: slot_h
in: query
description: Actual render slot height in pixels (player truth)
schema:
type: integer
- name: orientation
in: query
description: Slot orientation (portrait or landscape)
schema:
type: string
enum: [portrait, landscape]
- name: muted
in: query
description: Whether player is muted (true/false or 1/0)
schema:
type: boolean
- name: autoplay
in: query
description: Whether autoplay is allowed (true/false or 1/0)
schema:
type: boolean
- name: ua
in: query
description: |
Runtime user agent string from the WebView/browser. Used for CTV device
detection when stored device metadata is missing. Enables correct dth
(device type hint) in VAST tags — e.g., Fire TV Silk WebView UA triggers
dth=4 (CTV) instead of defaulting to dth=2 (desktop).
schema:
type: string
example: "Mozilla/5.0 (Linux; Android 9; AFTKA Build/PS7629) AppleWebKit/537.36 Silk/3.23"
responses:
'200':
description: Ads list
headers:
ETag:
description: Use in If-None-Match for caching
schema:
type: string
example: '"abc123def456"'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
ads:
type: array
items:
$ref: '#/components/schemas/Ad'
settings:
$ref: '#/components/schemas/AdSettings'
header_bidding_settings:
$ref: '#/components/schemas/HeaderBiddingSettings'
cache_until:
type: string
format: date-time
screen_id:
type: string
screen_orientation:
type: string
enum: [portrait, landscape]
screen_dimensions:
type: object
properties:
width:
type: integer
height:
type: integer
orientation:
type: string