-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yml
More file actions
274 lines (274 loc) · 6.65 KB
/
openapi.yml
File metadata and controls
274 lines (274 loc) · 6.65 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
openapi: 3.1.0
info:
title: Google Ad Manager API
description: >-
The Google Ad Manager API provides programmatic access to manage Ad Manager
data including networks, ad units, companies, orders, placements, line items,
creatives, reports, and targeting configurations.
version: v1
contact:
name: Google
url: https://developers.google.com/ad-manager/api/start
license:
name: Google APIs Terms of Service
url: https://developers.google.com/terms
servers:
- url: https://admanager.googleapis.com
description: Ad Manager API server
paths:
/v1/networks:
get:
summary: Google Ad Manager List networks
description: Lists networks accessible by the current user.
operationId: listNetworks
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListNetworksResponse'
tags:
- Networks
/v1/{parent}/adUnits:
get:
summary: Google Ad Manager List ad units
description: Lists ad units in the specified network.
operationId: listAdUnits
parameters:
- name: parent
in: path
required: true
schema:
type: string
- name: pageSize
in: query
schema:
type: integer
- name: pageToken
in: query
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListAdUnitsResponse'
tags:
- adUnits
/v1/{parent}/orders:
get:
summary: Google Ad Manager List orders
description: Lists orders in the specified network.
operationId: listOrders
parameters:
- name: parent
in: path
required: true
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListOrdersResponse'
tags:
- Orders
/v1/{parent}/companies:
get:
summary: Google Ad Manager List companies
description: Lists companies in the specified network.
operationId: listCompanies
parameters:
- name: parent
in: path
required: true
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListCompaniesResponse'
tags:
- Companies
/v1/{parent}/reports:run:
post:
summary: Google Ad Manager Run a report
description: Initiates the running of a report asynchronously.
operationId: runReport
parameters:
- name: parent
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RunReportRequest'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Operation'
tags:
- Reports:run
components:
schemas:
Network:
type: object
properties:
name:
type: string
displayName:
type: string
networkCode:
type: string
propertyCode:
type: string
timeZone:
type: string
currencyCode:
type: string
ListNetworksResponse:
type: object
properties:
networks:
type: array
items:
$ref: '#/components/schemas/Network'
AdUnit:
type: object
properties:
name:
type: string
adUnitId:
type: string
displayName:
type: string
adUnitCode:
type: string
parentAdUnit:
type: string
status:
type: string
enum:
- ACTIVE
- INACTIVE
- ARCHIVED
ListAdUnitsResponse:
type: object
properties:
adUnits:
type: array
items:
$ref: '#/components/schemas/AdUnit'
nextPageToken:
type: string
Order:
type: object
properties:
name:
type: string
orderId:
type: string
displayName:
type: string
advertiser:
type: string
status:
type: string
ListOrdersResponse:
type: object
properties:
orders:
type: array
items:
$ref: '#/components/schemas/Order'
nextPageToken:
type: string
Company:
type: object
properties:
name:
type: string
companyId:
type: string
displayName:
type: string
type:
type: string
enum:
- ADVERTISER
- AGENCY
- HOUSE_ADVERTISER
- HOUSE_AGENCY
ListCompaniesResponse:
type: object
properties:
companies:
type: array
items:
$ref: '#/components/schemas/Company'
nextPageToken:
type: string
RunReportRequest:
type: object
properties:
reportDefinition:
type: object
properties:
dimensions:
type: array
items:
type: string
metrics:
type: array
items:
type: string
dateRange:
type: object
properties:
startDate:
type: string
format: date
endDate:
type: string
format: date
Operation:
type: object
properties:
name:
type: string
done:
type: boolean
result:
type: object
securitySchemes:
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/admanager: Manage Ad Manager data
security:
- oauth2:
- https://www.googleapis.com/auth/admanager
tags:
- name: adUnits
- name: Companies
- name: Networks
- name: Orders
- name: Reports:run