OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.adexchangebuyer.v1_4; | 3 library googleapis.adexchangebuyer.v1_4; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client adexchangebuyer/v1.4'; | 15 const core.String USER_AGENT = 'dart-api-client adexchangebuyer/v1.4'; |
16 | 16 |
17 /** | 17 /// Accesses your bidding-account information, submits creatives for |
18 * Accesses your bidding-account information, submits creatives for validation, | 18 /// validation, finds available direct deals, and retrieves performance |
19 * finds available direct deals, and retrieves performance reports. | 19 /// reports. |
20 */ | |
21 class AdexchangebuyerApi { | 20 class AdexchangebuyerApi { |
22 /** Manage your Ad Exchange buyer account configuration */ | 21 /// Manage your Ad Exchange buyer account configuration |
23 static const AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchang
e.buyer"; | 22 static const AdexchangeBuyerScope = |
24 | 23 "https://www.googleapis.com/auth/adexchange.buyer"; |
25 | 24 |
26 final commons.ApiRequester _requester; | 25 final commons.ApiRequester _requester; |
27 | 26 |
28 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 27 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
29 BillingInfoResourceApi get billingInfo => new BillingInfoResourceApi(_requeste
r); | 28 BillingInfoResourceApi get billingInfo => |
| 29 new BillingInfoResourceApi(_requester); |
30 BudgetResourceApi get budget => new BudgetResourceApi(_requester); | 30 BudgetResourceApi get budget => new BudgetResourceApi(_requester); |
31 CreativesResourceApi get creatives => new CreativesResourceApi(_requester); | 31 CreativesResourceApi get creatives => new CreativesResourceApi(_requester); |
32 MarketplacedealsResourceApi get marketplacedeals => new MarketplacedealsResour
ceApi(_requester); | 32 MarketplacedealsResourceApi get marketplacedeals => |
33 MarketplacenotesResourceApi get marketplacenotes => new MarketplacenotesResour
ceApi(_requester); | 33 new MarketplacedealsResourceApi(_requester); |
34 MarketplaceprivateauctionResourceApi get marketplaceprivateauction => new Mark
etplaceprivateauctionResourceApi(_requester); | 34 MarketplacenotesResourceApi get marketplacenotes => |
35 PerformanceReportResourceApi get performanceReport => new PerformanceReportRes
ourceApi(_requester); | 35 new MarketplacenotesResourceApi(_requester); |
36 PretargetingConfigResourceApi get pretargetingConfig => new PretargetingConfig
ResourceApi(_requester); | 36 MarketplaceprivateauctionResourceApi get marketplaceprivateauction => |
| 37 new MarketplaceprivateauctionResourceApi(_requester); |
| 38 PerformanceReportResourceApi get performanceReport => |
| 39 new PerformanceReportResourceApi(_requester); |
| 40 PretargetingConfigResourceApi get pretargetingConfig => |
| 41 new PretargetingConfigResourceApi(_requester); |
37 ProductsResourceApi get products => new ProductsResourceApi(_requester); | 42 ProductsResourceApi get products => new ProductsResourceApi(_requester); |
38 ProposalsResourceApi get proposals => new ProposalsResourceApi(_requester); | 43 ProposalsResourceApi get proposals => new ProposalsResourceApi(_requester); |
39 PubprofilesResourceApi get pubprofiles => new PubprofilesResourceApi(_requeste
r); | 44 PubprofilesResourceApi get pubprofiles => |
| 45 new PubprofilesResourceApi(_requester); |
40 | 46 |
41 AdexchangebuyerApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "adexchangebuyer/v1.4/"}) : | 47 AdexchangebuyerApi(http.Client client, |
42 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 48 {core.String rootUrl: "https://www.googleapis.com/", |
| 49 core.String servicePath: "adexchangebuyer/v1.4/"}) |
| 50 : _requester = |
| 51 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
43 } | 52 } |
44 | 53 |
45 | |
46 class AccountsResourceApi { | 54 class AccountsResourceApi { |
47 final commons.ApiRequester _requester; | 55 final commons.ApiRequester _requester; |
48 | 56 |
49 AccountsResourceApi(commons.ApiRequester client) : | 57 AccountsResourceApi(commons.ApiRequester client) : _requester = client; |
50 _requester = client; | |
51 | 58 |
52 /** | 59 /// Gets one account by ID. |
53 * Gets one account by ID. | 60 /// |
54 * | 61 /// Request parameters: |
55 * Request parameters: | 62 /// |
56 * | 63 /// [id] - The account id |
57 * [id] - The account id | 64 /// |
58 * | 65 /// Completes with a [Account]. |
59 * Completes with a [Account]. | 66 /// |
60 * | 67 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
61 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 68 /// an error. |
62 * error. | 69 /// |
63 * | 70 /// If the used [http.Client] completes with an error when making a REST |
64 * If the used [http.Client] completes with an error when making a REST call, | 71 /// call, this method will complete with the same error. |
65 * this method will complete with the same error. | |
66 */ | |
67 async.Future<Account> get(core.int id) { | 72 async.Future<Account> get(core.int id) { |
68 var _url = null; | 73 var _url = null; |
69 var _queryParams = new core.Map(); | 74 var _queryParams = new core.Map(); |
70 var _uploadMedia = null; | 75 var _uploadMedia = null; |
71 var _uploadOptions = null; | 76 var _uploadOptions = null; |
72 var _downloadOptions = commons.DownloadOptions.Metadata; | 77 var _downloadOptions = commons.DownloadOptions.Metadata; |
73 var _body = null; | 78 var _body = null; |
74 | 79 |
75 if (id == null) { | 80 if (id == null) { |
76 throw new core.ArgumentError("Parameter id is required."); | 81 throw new core.ArgumentError("Parameter id is required."); |
77 } | 82 } |
78 | 83 |
79 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); | 84 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
80 | 85 |
81 var _response = _requester.request(_url, | 86 var _response = _requester.request(_url, "GET", |
82 "GET", | 87 body: _body, |
83 body: _body, | 88 queryParams: _queryParams, |
84 queryParams: _queryParams, | 89 uploadOptions: _uploadOptions, |
85 uploadOptions: _uploadOptions, | 90 uploadMedia: _uploadMedia, |
86 uploadMedia: _uploadMedia, | 91 downloadOptions: _downloadOptions); |
87 downloadOptions: _downloadOptions); | |
88 return _response.then((data) => new Account.fromJson(data)); | 92 return _response.then((data) => new Account.fromJson(data)); |
89 } | 93 } |
90 | 94 |
91 /** | 95 /// Retrieves the authenticated user's list of accounts. |
92 * Retrieves the authenticated user's list of accounts. | 96 /// |
93 * | 97 /// Request parameters: |
94 * Request parameters: | 98 /// |
95 * | 99 /// Completes with a [AccountsList]. |
96 * Completes with a [AccountsList]. | 100 /// |
97 * | 101 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
98 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 102 /// an error. |
99 * error. | 103 /// |
100 * | 104 /// If the used [http.Client] completes with an error when making a REST |
101 * If the used [http.Client] completes with an error when making a REST call, | 105 /// call, this method will complete with the same error. |
102 * this method will complete with the same error. | |
103 */ | |
104 async.Future<AccountsList> list() { | 106 async.Future<AccountsList> list() { |
105 var _url = null; | 107 var _url = null; |
106 var _queryParams = new core.Map(); | 108 var _queryParams = new core.Map(); |
107 var _uploadMedia = null; | 109 var _uploadMedia = null; |
108 var _uploadOptions = null; | 110 var _uploadOptions = null; |
109 var _downloadOptions = commons.DownloadOptions.Metadata; | 111 var _downloadOptions = commons.DownloadOptions.Metadata; |
110 var _body = null; | 112 var _body = null; |
111 | 113 |
112 | |
113 _url = 'accounts'; | 114 _url = 'accounts'; |
114 | 115 |
115 var _response = _requester.request(_url, | 116 var _response = _requester.request(_url, "GET", |
116 "GET", | 117 body: _body, |
117 body: _body, | 118 queryParams: _queryParams, |
118 queryParams: _queryParams, | 119 uploadOptions: _uploadOptions, |
119 uploadOptions: _uploadOptions, | 120 uploadMedia: _uploadMedia, |
120 uploadMedia: _uploadMedia, | 121 downloadOptions: _downloadOptions); |
121 downloadOptions: _downloadOptions); | |
122 return _response.then((data) => new AccountsList.fromJson(data)); | 122 return _response.then((data) => new AccountsList.fromJson(data)); |
123 } | 123 } |
124 | 124 |
125 /** | 125 /// Updates an existing account. This method supports patch semantics. |
126 * Updates an existing account. This method supports patch semantics. | 126 /// |
127 * | 127 /// [request] - The metadata request object. |
128 * [request] - The metadata request object. | 128 /// |
129 * | 129 /// Request parameters: |
130 * Request parameters: | 130 /// |
131 * | 131 /// [id] - The account id |
132 * [id] - The account id | 132 /// |
133 * | 133 /// [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie |
134 * [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie | 134 /// matching urls. |
135 * matching urls. | 135 /// |
136 * | 136 /// Completes with a [Account]. |
137 * Completes with a [Account]. | 137 /// |
138 * | 138 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 139 /// an error. |
140 * error. | 140 /// |
141 * | 141 /// If the used [http.Client] completes with an error when making a REST |
142 * If the used [http.Client] completes with an error when making a REST call, | 142 /// call, this method will complete with the same error. |
143 * this method will complete with the same error. | 143 async.Future<Account> patch(Account request, core.int id, |
144 */ | 144 {core.bool confirmUnsafeAccountChange}) { |
145 async.Future<Account> patch(Account request, core.int id, {core.bool confirmUn
safeAccountChange}) { | |
146 var _url = null; | 145 var _url = null; |
147 var _queryParams = new core.Map(); | 146 var _queryParams = new core.Map(); |
148 var _uploadMedia = null; | 147 var _uploadMedia = null; |
149 var _uploadOptions = null; | 148 var _uploadOptions = null; |
150 var _downloadOptions = commons.DownloadOptions.Metadata; | 149 var _downloadOptions = commons.DownloadOptions.Metadata; |
151 var _body = null; | 150 var _body = null; |
152 | 151 |
153 if (request != null) { | 152 if (request != null) { |
154 _body = convert.JSON.encode((request).toJson()); | 153 _body = convert.JSON.encode((request).toJson()); |
155 } | 154 } |
156 if (id == null) { | 155 if (id == null) { |
157 throw new core.ArgumentError("Parameter id is required."); | 156 throw new core.ArgumentError("Parameter id is required."); |
158 } | 157 } |
159 if (confirmUnsafeAccountChange != null) { | 158 if (confirmUnsafeAccountChange != null) { |
160 _queryParams["confirmUnsafeAccountChange"] = ["${confirmUnsafeAccountChang
e}"]; | 159 _queryParams["confirmUnsafeAccountChange"] = [ |
| 160 "${confirmUnsafeAccountChange}" |
| 161 ]; |
161 } | 162 } |
162 | 163 |
163 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); | 164 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
164 | 165 |
165 var _response = _requester.request(_url, | 166 var _response = _requester.request(_url, "PATCH", |
166 "PATCH", | 167 body: _body, |
167 body: _body, | 168 queryParams: _queryParams, |
168 queryParams: _queryParams, | 169 uploadOptions: _uploadOptions, |
169 uploadOptions: _uploadOptions, | 170 uploadMedia: _uploadMedia, |
170 uploadMedia: _uploadMedia, | 171 downloadOptions: _downloadOptions); |
171 downloadOptions: _downloadOptions); | |
172 return _response.then((data) => new Account.fromJson(data)); | 172 return _response.then((data) => new Account.fromJson(data)); |
173 } | 173 } |
174 | 174 |
175 /** | 175 /// Updates an existing account. |
176 * Updates an existing account. | 176 /// |
177 * | 177 /// [request] - The metadata request object. |
178 * [request] - The metadata request object. | 178 /// |
179 * | 179 /// Request parameters: |
180 * Request parameters: | 180 /// |
181 * | 181 /// [id] - The account id |
182 * [id] - The account id | 182 /// |
183 * | 183 /// [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie |
184 * [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie | 184 /// matching urls. |
185 * matching urls. | 185 /// |
186 * | 186 /// Completes with a [Account]. |
187 * Completes with a [Account]. | 187 /// |
188 * | 188 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 189 /// an error. |
190 * error. | 190 /// |
191 * | 191 /// If the used [http.Client] completes with an error when making a REST |
192 * If the used [http.Client] completes with an error when making a REST call, | 192 /// call, this method will complete with the same error. |
193 * this method will complete with the same error. | 193 async.Future<Account> update(Account request, core.int id, |
194 */ | 194 {core.bool confirmUnsafeAccountChange}) { |
195 async.Future<Account> update(Account request, core.int id, {core.bool confirmU
nsafeAccountChange}) { | |
196 var _url = null; | 195 var _url = null; |
197 var _queryParams = new core.Map(); | 196 var _queryParams = new core.Map(); |
198 var _uploadMedia = null; | 197 var _uploadMedia = null; |
199 var _uploadOptions = null; | 198 var _uploadOptions = null; |
200 var _downloadOptions = commons.DownloadOptions.Metadata; | 199 var _downloadOptions = commons.DownloadOptions.Metadata; |
201 var _body = null; | 200 var _body = null; |
202 | 201 |
203 if (request != null) { | 202 if (request != null) { |
204 _body = convert.JSON.encode((request).toJson()); | 203 _body = convert.JSON.encode((request).toJson()); |
205 } | 204 } |
206 if (id == null) { | 205 if (id == null) { |
207 throw new core.ArgumentError("Parameter id is required."); | 206 throw new core.ArgumentError("Parameter id is required."); |
208 } | 207 } |
209 if (confirmUnsafeAccountChange != null) { | 208 if (confirmUnsafeAccountChange != null) { |
210 _queryParams["confirmUnsafeAccountChange"] = ["${confirmUnsafeAccountChang
e}"]; | 209 _queryParams["confirmUnsafeAccountChange"] = [ |
| 210 "${confirmUnsafeAccountChange}" |
| 211 ]; |
211 } | 212 } |
212 | 213 |
213 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); | 214 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); |
214 | 215 |
215 var _response = _requester.request(_url, | 216 var _response = _requester.request(_url, "PUT", |
216 "PUT", | 217 body: _body, |
217 body: _body, | 218 queryParams: _queryParams, |
218 queryParams: _queryParams, | 219 uploadOptions: _uploadOptions, |
219 uploadOptions: _uploadOptions, | 220 uploadMedia: _uploadMedia, |
220 uploadMedia: _uploadMedia, | 221 downloadOptions: _downloadOptions); |
221 downloadOptions: _downloadOptions); | |
222 return _response.then((data) => new Account.fromJson(data)); | 222 return _response.then((data) => new Account.fromJson(data)); |
223 } | 223 } |
224 | |
225 } | 224 } |
226 | 225 |
227 | |
228 class BillingInfoResourceApi { | 226 class BillingInfoResourceApi { |
229 final commons.ApiRequester _requester; | 227 final commons.ApiRequester _requester; |
230 | 228 |
231 BillingInfoResourceApi(commons.ApiRequester client) : | 229 BillingInfoResourceApi(commons.ApiRequester client) : _requester = client; |
232 _requester = client; | |
233 | 230 |
234 /** | 231 /// Returns the billing information for one account specified by account ID. |
235 * Returns the billing information for one account specified by account ID. | 232 /// |
236 * | 233 /// Request parameters: |
237 * Request parameters: | 234 /// |
238 * | 235 /// [accountId] - The account id. |
239 * [accountId] - The account id. | 236 /// |
240 * | 237 /// Completes with a [BillingInfo]. |
241 * Completes with a [BillingInfo]. | 238 /// |
242 * | 239 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
243 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 240 /// an error. |
244 * error. | 241 /// |
245 * | 242 /// If the used [http.Client] completes with an error when making a REST |
246 * If the used [http.Client] completes with an error when making a REST call, | 243 /// call, this method will complete with the same error. |
247 * this method will complete with the same error. | |
248 */ | |
249 async.Future<BillingInfo> get(core.int accountId) { | 244 async.Future<BillingInfo> get(core.int accountId) { |
250 var _url = null; | 245 var _url = null; |
251 var _queryParams = new core.Map(); | 246 var _queryParams = new core.Map(); |
252 var _uploadMedia = null; | 247 var _uploadMedia = null; |
253 var _uploadOptions = null; | 248 var _uploadOptions = null; |
254 var _downloadOptions = commons.DownloadOptions.Metadata; | 249 var _downloadOptions = commons.DownloadOptions.Metadata; |
255 var _body = null; | 250 var _body = null; |
256 | 251 |
257 if (accountId == null) { | 252 if (accountId == null) { |
258 throw new core.ArgumentError("Parameter accountId is required."); | 253 throw new core.ArgumentError("Parameter accountId is required."); |
259 } | 254 } |
260 | 255 |
261 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId'); | 256 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId'); |
262 | 257 |
263 var _response = _requester.request(_url, | 258 var _response = _requester.request(_url, "GET", |
264 "GET", | 259 body: _body, |
265 body: _body, | 260 queryParams: _queryParams, |
266 queryParams: _queryParams, | 261 uploadOptions: _uploadOptions, |
267 uploadOptions: _uploadOptions, | 262 uploadMedia: _uploadMedia, |
268 uploadMedia: _uploadMedia, | 263 downloadOptions: _downloadOptions); |
269 downloadOptions: _downloadOptions); | |
270 return _response.then((data) => new BillingInfo.fromJson(data)); | 264 return _response.then((data) => new BillingInfo.fromJson(data)); |
271 } | 265 } |
272 | 266 |
273 /** | 267 /// Retrieves a list of billing information for all accounts of the |
274 * Retrieves a list of billing information for all accounts of the | 268 /// authenticated user. |
275 * authenticated user. | 269 /// |
276 * | 270 /// Request parameters: |
277 * Request parameters: | 271 /// |
278 * | 272 /// Completes with a [BillingInfoList]. |
279 * Completes with a [BillingInfoList]. | 273 /// |
280 * | 274 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 275 /// an error. |
282 * error. | 276 /// |
283 * | 277 /// If the used [http.Client] completes with an error when making a REST |
284 * If the used [http.Client] completes with an error when making a REST call, | 278 /// call, this method will complete with the same error. |
285 * this method will complete with the same error. | |
286 */ | |
287 async.Future<BillingInfoList> list() { | 279 async.Future<BillingInfoList> list() { |
288 var _url = null; | 280 var _url = null; |
289 var _queryParams = new core.Map(); | 281 var _queryParams = new core.Map(); |
290 var _uploadMedia = null; | 282 var _uploadMedia = null; |
291 var _uploadOptions = null; | 283 var _uploadOptions = null; |
292 var _downloadOptions = commons.DownloadOptions.Metadata; | 284 var _downloadOptions = commons.DownloadOptions.Metadata; |
293 var _body = null; | 285 var _body = null; |
294 | 286 |
295 | |
296 _url = 'billinginfo'; | 287 _url = 'billinginfo'; |
297 | 288 |
298 var _response = _requester.request(_url, | 289 var _response = _requester.request(_url, "GET", |
299 "GET", | 290 body: _body, |
300 body: _body, | 291 queryParams: _queryParams, |
301 queryParams: _queryParams, | 292 uploadOptions: _uploadOptions, |
302 uploadOptions: _uploadOptions, | 293 uploadMedia: _uploadMedia, |
303 uploadMedia: _uploadMedia, | 294 downloadOptions: _downloadOptions); |
304 downloadOptions: _downloadOptions); | |
305 return _response.then((data) => new BillingInfoList.fromJson(data)); | 295 return _response.then((data) => new BillingInfoList.fromJson(data)); |
306 } | 296 } |
307 | |
308 } | 297 } |
309 | 298 |
310 | |
311 class BudgetResourceApi { | 299 class BudgetResourceApi { |
312 final commons.ApiRequester _requester; | 300 final commons.ApiRequester _requester; |
313 | 301 |
314 BudgetResourceApi(commons.ApiRequester client) : | 302 BudgetResourceApi(commons.ApiRequester client) : _requester = client; |
315 _requester = client; | |
316 | 303 |
317 /** | 304 /// Returns the budget information for the adgroup specified by the accountId |
318 * Returns the budget information for the adgroup specified by the accountId | 305 /// and billingId. |
319 * and billingId. | 306 /// |
320 * | 307 /// Request parameters: |
321 * Request parameters: | 308 /// |
322 * | 309 /// [accountId] - The account id to get the budget information for. |
323 * [accountId] - The account id to get the budget information for. | 310 /// |
324 * | 311 /// [billingId] - The billing id to get the budget information for. |
325 * [billingId] - The billing id to get the budget information for. | 312 /// |
326 * | 313 /// Completes with a [Budget]. |
327 * Completes with a [Budget]. | 314 /// |
328 * | 315 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
329 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 316 /// an error. |
330 * error. | 317 /// |
331 * | 318 /// If the used [http.Client] completes with an error when making a REST |
332 * If the used [http.Client] completes with an error when making a REST call, | 319 /// call, this method will complete with the same error. |
333 * this method will complete with the same error. | |
334 */ | |
335 async.Future<Budget> get(core.String accountId, core.String billingId) { | 320 async.Future<Budget> get(core.String accountId, core.String billingId) { |
336 var _url = null; | 321 var _url = null; |
337 var _queryParams = new core.Map(); | 322 var _queryParams = new core.Map(); |
338 var _uploadMedia = null; | 323 var _uploadMedia = null; |
339 var _uploadOptions = null; | 324 var _uploadOptions = null; |
340 var _downloadOptions = commons.DownloadOptions.Metadata; | 325 var _downloadOptions = commons.DownloadOptions.Metadata; |
341 var _body = null; | 326 var _body = null; |
342 | 327 |
343 if (accountId == null) { | 328 if (accountId == null) { |
344 throw new core.ArgumentError("Parameter accountId is required."); | 329 throw new core.ArgumentError("Parameter accountId is required."); |
345 } | 330 } |
346 if (billingId == null) { | 331 if (billingId == null) { |
347 throw new core.ArgumentError("Parameter billingId is required."); | 332 throw new core.ArgumentError("Parameter billingId is required."); |
348 } | 333 } |
349 | 334 |
350 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' +
commons.Escaper.ecapeVariable('$billingId'); | 335 _url = 'billinginfo/' + |
| 336 commons.Escaper.ecapeVariable('$accountId') + |
| 337 '/' + |
| 338 commons.Escaper.ecapeVariable('$billingId'); |
351 | 339 |
352 var _response = _requester.request(_url, | 340 var _response = _requester.request(_url, "GET", |
353 "GET", | 341 body: _body, |
354 body: _body, | 342 queryParams: _queryParams, |
355 queryParams: _queryParams, | 343 uploadOptions: _uploadOptions, |
356 uploadOptions: _uploadOptions, | 344 uploadMedia: _uploadMedia, |
357 uploadMedia: _uploadMedia, | 345 downloadOptions: _downloadOptions); |
358 downloadOptions: _downloadOptions); | |
359 return _response.then((data) => new Budget.fromJson(data)); | 346 return _response.then((data) => new Budget.fromJson(data)); |
360 } | 347 } |
361 | 348 |
362 /** | 349 /// Updates the budget amount for the budget of the adgroup specified by the |
363 * Updates the budget amount for the budget of the adgroup specified by the | 350 /// accountId and billingId, with the budget amount in the request. This |
364 * accountId and billingId, with the budget amount in the request. This method | 351 /// method supports patch semantics. |
365 * supports patch semantics. | 352 /// |
366 * | 353 /// [request] - The metadata request object. |
367 * [request] - The metadata request object. | 354 /// |
368 * | 355 /// Request parameters: |
369 * Request parameters: | 356 /// |
370 * | 357 /// [accountId] - The account id associated with the budget being updated. |
371 * [accountId] - The account id associated with the budget being updated. | 358 /// |
372 * | 359 /// [billingId] - The billing id associated with the budget being updated. |
373 * [billingId] - The billing id associated with the budget being updated. | 360 /// |
374 * | 361 /// Completes with a [Budget]. |
375 * Completes with a [Budget]. | 362 /// |
376 * | 363 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
377 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 364 /// an error. |
378 * error. | 365 /// |
379 * | 366 /// If the used [http.Client] completes with an error when making a REST |
380 * If the used [http.Client] completes with an error when making a REST call, | 367 /// call, this method will complete with the same error. |
381 * this method will complete with the same error. | 368 async.Future<Budget> patch( |
382 */ | 369 Budget request, core.String accountId, core.String billingId) { |
383 async.Future<Budget> patch(Budget request, core.String accountId, core.String
billingId) { | |
384 var _url = null; | 370 var _url = null; |
385 var _queryParams = new core.Map(); | 371 var _queryParams = new core.Map(); |
386 var _uploadMedia = null; | 372 var _uploadMedia = null; |
387 var _uploadOptions = null; | 373 var _uploadOptions = null; |
388 var _downloadOptions = commons.DownloadOptions.Metadata; | 374 var _downloadOptions = commons.DownloadOptions.Metadata; |
389 var _body = null; | 375 var _body = null; |
390 | 376 |
391 if (request != null) { | 377 if (request != null) { |
392 _body = convert.JSON.encode((request).toJson()); | 378 _body = convert.JSON.encode((request).toJson()); |
393 } | 379 } |
394 if (accountId == null) { | 380 if (accountId == null) { |
395 throw new core.ArgumentError("Parameter accountId is required."); | 381 throw new core.ArgumentError("Parameter accountId is required."); |
396 } | 382 } |
397 if (billingId == null) { | 383 if (billingId == null) { |
398 throw new core.ArgumentError("Parameter billingId is required."); | 384 throw new core.ArgumentError("Parameter billingId is required."); |
399 } | 385 } |
400 | 386 |
401 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' +
commons.Escaper.ecapeVariable('$billingId'); | 387 _url = 'billinginfo/' + |
| 388 commons.Escaper.ecapeVariable('$accountId') + |
| 389 '/' + |
| 390 commons.Escaper.ecapeVariable('$billingId'); |
402 | 391 |
403 var _response = _requester.request(_url, | 392 var _response = _requester.request(_url, "PATCH", |
404 "PATCH", | 393 body: _body, |
405 body: _body, | 394 queryParams: _queryParams, |
406 queryParams: _queryParams, | 395 uploadOptions: _uploadOptions, |
407 uploadOptions: _uploadOptions, | 396 uploadMedia: _uploadMedia, |
408 uploadMedia: _uploadMedia, | 397 downloadOptions: _downloadOptions); |
409 downloadOptions: _downloadOptions); | |
410 return _response.then((data) => new Budget.fromJson(data)); | 398 return _response.then((data) => new Budget.fromJson(data)); |
411 } | 399 } |
412 | 400 |
413 /** | 401 /// Updates the budget amount for the budget of the adgroup specified by the |
414 * Updates the budget amount for the budget of the adgroup specified by the | 402 /// accountId and billingId, with the budget amount in the request. |
415 * accountId and billingId, with the budget amount in the request. | 403 /// |
416 * | 404 /// [request] - The metadata request object. |
417 * [request] - The metadata request object. | 405 /// |
418 * | 406 /// Request parameters: |
419 * Request parameters: | 407 /// |
420 * | 408 /// [accountId] - The account id associated with the budget being updated. |
421 * [accountId] - The account id associated with the budget being updated. | 409 /// |
422 * | 410 /// [billingId] - The billing id associated with the budget being updated. |
423 * [billingId] - The billing id associated with the budget being updated. | 411 /// |
424 * | 412 /// Completes with a [Budget]. |
425 * Completes with a [Budget]. | 413 /// |
426 * | 414 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
427 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 415 /// an error. |
428 * error. | 416 /// |
429 * | 417 /// If the used [http.Client] completes with an error when making a REST |
430 * If the used [http.Client] completes with an error when making a REST call, | 418 /// call, this method will complete with the same error. |
431 * this method will complete with the same error. | 419 async.Future<Budget> update( |
432 */ | 420 Budget request, core.String accountId, core.String billingId) { |
433 async.Future<Budget> update(Budget request, core.String accountId, core.String
billingId) { | |
434 var _url = null; | 421 var _url = null; |
435 var _queryParams = new core.Map(); | 422 var _queryParams = new core.Map(); |
436 var _uploadMedia = null; | 423 var _uploadMedia = null; |
437 var _uploadOptions = null; | 424 var _uploadOptions = null; |
438 var _downloadOptions = commons.DownloadOptions.Metadata; | 425 var _downloadOptions = commons.DownloadOptions.Metadata; |
439 var _body = null; | 426 var _body = null; |
440 | 427 |
441 if (request != null) { | 428 if (request != null) { |
442 _body = convert.JSON.encode((request).toJson()); | 429 _body = convert.JSON.encode((request).toJson()); |
443 } | 430 } |
444 if (accountId == null) { | 431 if (accountId == null) { |
445 throw new core.ArgumentError("Parameter accountId is required."); | 432 throw new core.ArgumentError("Parameter accountId is required."); |
446 } | 433 } |
447 if (billingId == null) { | 434 if (billingId == null) { |
448 throw new core.ArgumentError("Parameter billingId is required."); | 435 throw new core.ArgumentError("Parameter billingId is required."); |
449 } | 436 } |
450 | 437 |
451 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' +
commons.Escaper.ecapeVariable('$billingId'); | 438 _url = 'billinginfo/' + |
| 439 commons.Escaper.ecapeVariable('$accountId') + |
| 440 '/' + |
| 441 commons.Escaper.ecapeVariable('$billingId'); |
452 | 442 |
453 var _response = _requester.request(_url, | 443 var _response = _requester.request(_url, "PUT", |
454 "PUT", | 444 body: _body, |
455 body: _body, | 445 queryParams: _queryParams, |
456 queryParams: _queryParams, | 446 uploadOptions: _uploadOptions, |
457 uploadOptions: _uploadOptions, | 447 uploadMedia: _uploadMedia, |
458 uploadMedia: _uploadMedia, | 448 downloadOptions: _downloadOptions); |
459 downloadOptions: _downloadOptions); | |
460 return _response.then((data) => new Budget.fromJson(data)); | 449 return _response.then((data) => new Budget.fromJson(data)); |
461 } | 450 } |
462 | |
463 } | 451 } |
464 | 452 |
465 | |
466 class CreativesResourceApi { | 453 class CreativesResourceApi { |
467 final commons.ApiRequester _requester; | 454 final commons.ApiRequester _requester; |
468 | 455 |
469 CreativesResourceApi(commons.ApiRequester client) : | 456 CreativesResourceApi(commons.ApiRequester client) : _requester = client; |
470 _requester = client; | |
471 | 457 |
472 /** | 458 /// Add a deal id association for the creative. |
473 * Add a deal id association for the creative. | 459 /// |
474 * | 460 /// Request parameters: |
475 * Request parameters: | 461 /// |
476 * | 462 /// [accountId] - The id for the account that will serve this creative. |
477 * [accountId] - The id for the account that will serve this creative. | 463 /// |
478 * | 464 /// [buyerCreativeId] - The buyer-specific id for this creative. |
479 * [buyerCreativeId] - The buyer-specific id for this creative. | 465 /// |
480 * | 466 /// [dealId] - The id of the deal id to associate with this creative. |
481 * [dealId] - The id of the deal id to associate with this creative. | 467 /// |
482 * | 468 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
483 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 469 /// an error. |
484 * error. | 470 /// |
485 * | 471 /// If the used [http.Client] completes with an error when making a REST |
486 * If the used [http.Client] completes with an error when making a REST call, | 472 /// call, this method will complete with the same error. |
487 * this method will complete with the same error. | 473 async.Future addDeal( |
488 */ | 474 core.int accountId, core.String buyerCreativeId, core.String dealId) { |
489 async.Future addDeal(core.int accountId, core.String buyerCreativeId, core.Str
ing dealId) { | |
490 var _url = null; | 475 var _url = null; |
491 var _queryParams = new core.Map(); | 476 var _queryParams = new core.Map(); |
492 var _uploadMedia = null; | 477 var _uploadMedia = null; |
493 var _uploadOptions = null; | 478 var _uploadOptions = null; |
494 var _downloadOptions = commons.DownloadOptions.Metadata; | 479 var _downloadOptions = commons.DownloadOptions.Metadata; |
495 var _body = null; | 480 var _body = null; |
496 | 481 |
497 if (accountId == null) { | 482 if (accountId == null) { |
498 throw new core.ArgumentError("Parameter accountId is required."); | 483 throw new core.ArgumentError("Parameter accountId is required."); |
499 } | 484 } |
500 if (buyerCreativeId == null) { | 485 if (buyerCreativeId == null) { |
501 throw new core.ArgumentError("Parameter buyerCreativeId is required."); | 486 throw new core.ArgumentError("Parameter buyerCreativeId is required."); |
502 } | 487 } |
503 if (dealId == null) { | 488 if (dealId == null) { |
504 throw new core.ArgumentError("Parameter dealId is required."); | 489 throw new core.ArgumentError("Parameter dealId is required."); |
505 } | 490 } |
506 | 491 |
507 _downloadOptions = null; | 492 _downloadOptions = null; |
508 | 493 |
509 _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + co
mmons.Escaper.ecapeVariable('$buyerCreativeId') + '/addDeal/' + commons.Escaper.
ecapeVariable('$dealId'); | 494 _url = 'creatives/' + |
| 495 commons.Escaper.ecapeVariable('$accountId') + |
| 496 '/' + |
| 497 commons.Escaper.ecapeVariable('$buyerCreativeId') + |
| 498 '/addDeal/' + |
| 499 commons.Escaper.ecapeVariable('$dealId'); |
510 | 500 |
511 var _response = _requester.request(_url, | 501 var _response = _requester.request(_url, "POST", |
512 "POST", | 502 body: _body, |
513 body: _body, | 503 queryParams: _queryParams, |
514 queryParams: _queryParams, | 504 uploadOptions: _uploadOptions, |
515 uploadOptions: _uploadOptions, | 505 uploadMedia: _uploadMedia, |
516 uploadMedia: _uploadMedia, | 506 downloadOptions: _downloadOptions); |
517 downloadOptions: _downloadOptions); | |
518 return _response.then((data) => null); | 507 return _response.then((data) => null); |
519 } | 508 } |
520 | 509 |
521 /** | 510 /// Gets the status for a single creative. A creative will be available 30-40 |
522 * Gets the status for a single creative. A creative will be available 30-40 | 511 /// minutes after submission. |
523 * minutes after submission. | 512 /// |
524 * | 513 /// Request parameters: |
525 * Request parameters: | 514 /// |
526 * | 515 /// [accountId] - The id for the account that will serve this creative. |
527 * [accountId] - The id for the account that will serve this creative. | 516 /// |
528 * | 517 /// [buyerCreativeId] - The buyer-specific id for this creative. |
529 * [buyerCreativeId] - The buyer-specific id for this creative. | 518 /// |
530 * | 519 /// Completes with a [Creative]. |
531 * Completes with a [Creative]. | 520 /// |
532 * | 521 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
533 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 522 /// an error. |
534 * error. | 523 /// |
535 * | 524 /// If the used [http.Client] completes with an error when making a REST |
536 * If the used [http.Client] completes with an error when making a REST call, | 525 /// call, this method will complete with the same error. |
537 * this method will complete with the same error. | |
538 */ | |
539 async.Future<Creative> get(core.int accountId, core.String buyerCreativeId) { | 526 async.Future<Creative> get(core.int accountId, core.String buyerCreativeId) { |
540 var _url = null; | 527 var _url = null; |
541 var _queryParams = new core.Map(); | 528 var _queryParams = new core.Map(); |
542 var _uploadMedia = null; | 529 var _uploadMedia = null; |
543 var _uploadOptions = null; | 530 var _uploadOptions = null; |
544 var _downloadOptions = commons.DownloadOptions.Metadata; | 531 var _downloadOptions = commons.DownloadOptions.Metadata; |
545 var _body = null; | 532 var _body = null; |
546 | 533 |
547 if (accountId == null) { | 534 if (accountId == null) { |
548 throw new core.ArgumentError("Parameter accountId is required."); | 535 throw new core.ArgumentError("Parameter accountId is required."); |
549 } | 536 } |
550 if (buyerCreativeId == null) { | 537 if (buyerCreativeId == null) { |
551 throw new core.ArgumentError("Parameter buyerCreativeId is required."); | 538 throw new core.ArgumentError("Parameter buyerCreativeId is required."); |
552 } | 539 } |
553 | 540 |
554 _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + co
mmons.Escaper.ecapeVariable('$buyerCreativeId'); | 541 _url = 'creatives/' + |
| 542 commons.Escaper.ecapeVariable('$accountId') + |
| 543 '/' + |
| 544 commons.Escaper.ecapeVariable('$buyerCreativeId'); |
555 | 545 |
556 var _response = _requester.request(_url, | 546 var _response = _requester.request(_url, "GET", |
557 "GET", | 547 body: _body, |
558 body: _body, | 548 queryParams: _queryParams, |
559 queryParams: _queryParams, | 549 uploadOptions: _uploadOptions, |
560 uploadOptions: _uploadOptions, | 550 uploadMedia: _uploadMedia, |
561 uploadMedia: _uploadMedia, | 551 downloadOptions: _downloadOptions); |
562 downloadOptions: _downloadOptions); | |
563 return _response.then((data) => new Creative.fromJson(data)); | 552 return _response.then((data) => new Creative.fromJson(data)); |
564 } | 553 } |
565 | 554 |
566 /** | 555 /// Submit a new creative. |
567 * Submit a new creative. | 556 /// |
568 * | 557 /// [request] - The metadata request object. |
569 * [request] - The metadata request object. | 558 /// |
570 * | 559 /// Request parameters: |
571 * Request parameters: | 560 /// |
572 * | 561 /// Completes with a [Creative]. |
573 * Completes with a [Creative]. | 562 /// |
574 * | 563 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
575 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 564 /// an error. |
576 * error. | 565 /// |
577 * | 566 /// If the used [http.Client] completes with an error when making a REST |
578 * If the used [http.Client] completes with an error when making a REST call, | 567 /// call, this method will complete with the same error. |
579 * this method will complete with the same error. | |
580 */ | |
581 async.Future<Creative> insert(Creative request) { | 568 async.Future<Creative> insert(Creative request) { |
582 var _url = null; | 569 var _url = null; |
583 var _queryParams = new core.Map(); | 570 var _queryParams = new core.Map(); |
584 var _uploadMedia = null; | 571 var _uploadMedia = null; |
585 var _uploadOptions = null; | 572 var _uploadOptions = null; |
586 var _downloadOptions = commons.DownloadOptions.Metadata; | 573 var _downloadOptions = commons.DownloadOptions.Metadata; |
587 var _body = null; | 574 var _body = null; |
588 | 575 |
589 if (request != null) { | 576 if (request != null) { |
590 _body = convert.JSON.encode((request).toJson()); | 577 _body = convert.JSON.encode((request).toJson()); |
591 } | 578 } |
592 | 579 |
593 _url = 'creatives'; | 580 _url = 'creatives'; |
594 | 581 |
595 var _response = _requester.request(_url, | 582 var _response = _requester.request(_url, "POST", |
596 "POST", | 583 body: _body, |
597 body: _body, | 584 queryParams: _queryParams, |
598 queryParams: _queryParams, | 585 uploadOptions: _uploadOptions, |
599 uploadOptions: _uploadOptions, | 586 uploadMedia: _uploadMedia, |
600 uploadMedia: _uploadMedia, | 587 downloadOptions: _downloadOptions); |
601 downloadOptions: _downloadOptions); | |
602 return _response.then((data) => new Creative.fromJson(data)); | 588 return _response.then((data) => new Creative.fromJson(data)); |
603 } | 589 } |
604 | 590 |
605 /** | 591 /// Retrieves a list of the authenticated user's active creatives. A creative |
606 * Retrieves a list of the authenticated user's active creatives. A creative | 592 /// will be available 30-40 minutes after submission. |
607 * will be available 30-40 minutes after submission. | 593 /// |
608 * | 594 /// Request parameters: |
609 * Request parameters: | 595 /// |
610 * | 596 /// [accountId] - When specified, only creatives for the given account ids |
611 * [accountId] - When specified, only creatives for the given account ids are | 597 /// are returned. |
612 * returned. | 598 /// |
613 * | 599 /// [buyerCreativeId] - When specified, only creatives for the given buyer |
614 * [buyerCreativeId] - When specified, only creatives for the given buyer | 600 /// creative ids are returned. |
615 * creative ids are returned. | 601 /// |
616 * | 602 /// [dealsStatusFilter] - When specified, only creatives having the given |
617 * [dealsStatusFilter] - When specified, only creatives having the given deals | 603 /// deals status are returned. |
618 * status are returned. | 604 /// Possible string values are: |
619 * Possible string values are: | 605 /// - "approved" : Creatives which have been approved for serving on deals. |
620 * - "approved" : Creatives which have been approved for serving on deals. | 606 /// - "conditionally_approved" : Creatives which have been conditionally |
621 * - "conditionally_approved" : Creatives which have been conditionally | 607 /// approved for serving on deals. |
622 * approved for serving on deals. | 608 /// - "disapproved" : Creatives which have been disapproved for serving on |
623 * - "disapproved" : Creatives which have been disapproved for serving on | 609 /// deals. |
624 * deals. | 610 /// - "not_checked" : Creatives whose deals status is not yet checked. |
625 * - "not_checked" : Creatives whose deals status is not yet checked. | 611 /// |
626 * | 612 /// [maxResults] - Maximum number of entries returned on one result page. If |
627 * [maxResults] - Maximum number of entries returned on one result page. If | 613 /// not set, the default is 100. Optional. |
628 * not set, the default is 100. Optional. | 614 /// Value must be between "1" and "1000". |
629 * Value must be between "1" and "1000". | 615 /// |
630 * | 616 /// [openAuctionStatusFilter] - When specified, only creatives having the |
631 * [openAuctionStatusFilter] - When specified, only creatives having the given | 617 /// given open auction status are returned. |
632 * open auction status are returned. | 618 /// Possible string values are: |
633 * Possible string values are: | 619 /// - "approved" : Creatives which have been approved for serving on the open |
634 * - "approved" : Creatives which have been approved for serving on the open | 620 /// auction. |
635 * auction. | 621 /// - "conditionally_approved" : Creatives which have been conditionally |
636 * - "conditionally_approved" : Creatives which have been conditionally | 622 /// approved for serving on the open auction. |
637 * approved for serving on the open auction. | 623 /// - "disapproved" : Creatives which have been disapproved for serving on |
638 * - "disapproved" : Creatives which have been disapproved for serving on the | 624 /// the open auction. |
639 * open auction. | 625 /// - "not_checked" : Creatives whose open auction status is not yet checked. |
640 * - "not_checked" : Creatives whose open auction status is not yet checked. | 626 /// |
641 * | 627 /// [pageToken] - A continuation token, used to page through ad clients. To |
642 * [pageToken] - A continuation token, used to page through ad clients. To | 628 /// retrieve the next page, set this parameter to the value of |
643 * retrieve the next page, set this parameter to the value of "nextPageToken" | 629 /// "nextPageToken" from the previous response. Optional. |
644 * from the previous response. Optional. | 630 /// |
645 * | 631 /// Completes with a [CreativesList]. |
646 * Completes with a [CreativesList]. | 632 /// |
647 * | 633 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 634 /// an error. |
649 * error. | 635 /// |
650 * | 636 /// If the used [http.Client] completes with an error when making a REST |
651 * If the used [http.Client] completes with an error when making a REST call, | 637 /// call, this method will complete with the same error. |
652 * this method will complete with the same error. | 638 async.Future<CreativesList> list( |
653 */ | 639 {core.List<core.int> accountId, |
654 async.Future<CreativesList> list({core.List<core.int> accountId, core.List<cor
e.String> buyerCreativeId, core.String dealsStatusFilter, core.int maxResults, c
ore.String openAuctionStatusFilter, core.String pageToken}) { | 640 core.List<core.String> buyerCreativeId, |
| 641 core.String dealsStatusFilter, |
| 642 core.int maxResults, |
| 643 core.String openAuctionStatusFilter, |
| 644 core.String pageToken}) { |
655 var _url = null; | 645 var _url = null; |
656 var _queryParams = new core.Map(); | 646 var _queryParams = new core.Map(); |
657 var _uploadMedia = null; | 647 var _uploadMedia = null; |
658 var _uploadOptions = null; | 648 var _uploadOptions = null; |
659 var _downloadOptions = commons.DownloadOptions.Metadata; | 649 var _downloadOptions = commons.DownloadOptions.Metadata; |
660 var _body = null; | 650 var _body = null; |
661 | 651 |
662 if (accountId != null) { | 652 if (accountId != null) { |
663 _queryParams["accountId"] = accountId.map((item) => "${item}").toList(); | 653 _queryParams["accountId"] = accountId.map((item) => "${item}").toList(); |
664 } | 654 } |
665 if (buyerCreativeId != null) { | 655 if (buyerCreativeId != null) { |
666 _queryParams["buyerCreativeId"] = buyerCreativeId; | 656 _queryParams["buyerCreativeId"] = buyerCreativeId; |
667 } | 657 } |
668 if (dealsStatusFilter != null) { | 658 if (dealsStatusFilter != null) { |
669 _queryParams["dealsStatusFilter"] = [dealsStatusFilter]; | 659 _queryParams["dealsStatusFilter"] = [dealsStatusFilter]; |
670 } | 660 } |
671 if (maxResults != null) { | 661 if (maxResults != null) { |
672 _queryParams["maxResults"] = ["${maxResults}"]; | 662 _queryParams["maxResults"] = ["${maxResults}"]; |
673 } | 663 } |
674 if (openAuctionStatusFilter != null) { | 664 if (openAuctionStatusFilter != null) { |
675 _queryParams["openAuctionStatusFilter"] = [openAuctionStatusFilter]; | 665 _queryParams["openAuctionStatusFilter"] = [openAuctionStatusFilter]; |
676 } | 666 } |
677 if (pageToken != null) { | 667 if (pageToken != null) { |
678 _queryParams["pageToken"] = [pageToken]; | 668 _queryParams["pageToken"] = [pageToken]; |
679 } | 669 } |
680 | 670 |
681 _url = 'creatives'; | 671 _url = 'creatives'; |
682 | 672 |
683 var _response = _requester.request(_url, | 673 var _response = _requester.request(_url, "GET", |
684 "GET", | 674 body: _body, |
685 body: _body, | 675 queryParams: _queryParams, |
686 queryParams: _queryParams, | 676 uploadOptions: _uploadOptions, |
687 uploadOptions: _uploadOptions, | 677 uploadMedia: _uploadMedia, |
688 uploadMedia: _uploadMedia, | 678 downloadOptions: _downloadOptions); |
689 downloadOptions: _downloadOptions); | |
690 return _response.then((data) => new CreativesList.fromJson(data)); | 679 return _response.then((data) => new CreativesList.fromJson(data)); |
691 } | 680 } |
692 | 681 |
693 /** | 682 /// Lists the external deal ids associated with the creative. |
694 * Lists the external deal ids associated with the creative. | 683 /// |
695 * | 684 /// Request parameters: |
696 * Request parameters: | 685 /// |
697 * | 686 /// [accountId] - The id for the account that will serve this creative. |
698 * [accountId] - The id for the account that will serve this creative. | 687 /// |
699 * | 688 /// [buyerCreativeId] - The buyer-specific id for this creative. |
700 * [buyerCreativeId] - The buyer-specific id for this creative. | 689 /// |
701 * | 690 /// Completes with a [CreativeDealIds]. |
702 * Completes with a [CreativeDealIds]. | 691 /// |
703 * | 692 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
704 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 693 /// an error. |
705 * error. | 694 /// |
706 * | 695 /// If the used [http.Client] completes with an error when making a REST |
707 * If the used [http.Client] completes with an error when making a REST call, | 696 /// call, this method will complete with the same error. |
708 * this method will complete with the same error. | 697 async.Future<CreativeDealIds> listDeals( |
709 */ | 698 core.int accountId, core.String buyerCreativeId) { |
710 async.Future<CreativeDealIds> listDeals(core.int accountId, core.String buyerC
reativeId) { | |
711 var _url = null; | 699 var _url = null; |
712 var _queryParams = new core.Map(); | 700 var _queryParams = new core.Map(); |
713 var _uploadMedia = null; | 701 var _uploadMedia = null; |
714 var _uploadOptions = null; | 702 var _uploadOptions = null; |
715 var _downloadOptions = commons.DownloadOptions.Metadata; | 703 var _downloadOptions = commons.DownloadOptions.Metadata; |
716 var _body = null; | 704 var _body = null; |
717 | 705 |
718 if (accountId == null) { | 706 if (accountId == null) { |
719 throw new core.ArgumentError("Parameter accountId is required."); | 707 throw new core.ArgumentError("Parameter accountId is required."); |
720 } | 708 } |
721 if (buyerCreativeId == null) { | 709 if (buyerCreativeId == null) { |
722 throw new core.ArgumentError("Parameter buyerCreativeId is required."); | 710 throw new core.ArgumentError("Parameter buyerCreativeId is required."); |
723 } | 711 } |
724 | 712 |
725 _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + co
mmons.Escaper.ecapeVariable('$buyerCreativeId') + '/listDeals'; | 713 _url = 'creatives/' + |
| 714 commons.Escaper.ecapeVariable('$accountId') + |
| 715 '/' + |
| 716 commons.Escaper.ecapeVariable('$buyerCreativeId') + |
| 717 '/listDeals'; |
726 | 718 |
727 var _response = _requester.request(_url, | 719 var _response = _requester.request(_url, "GET", |
728 "GET", | 720 body: _body, |
729 body: _body, | 721 queryParams: _queryParams, |
730 queryParams: _queryParams, | 722 uploadOptions: _uploadOptions, |
731 uploadOptions: _uploadOptions, | 723 uploadMedia: _uploadMedia, |
732 uploadMedia: _uploadMedia, | 724 downloadOptions: _downloadOptions); |
733 downloadOptions: _downloadOptions); | |
734 return _response.then((data) => new CreativeDealIds.fromJson(data)); | 725 return _response.then((data) => new CreativeDealIds.fromJson(data)); |
735 } | 726 } |
736 | 727 |
737 /** | 728 /// Remove a deal id associated with the creative. |
738 * Remove a deal id associated with the creative. | 729 /// |
739 * | 730 /// Request parameters: |
740 * Request parameters: | 731 /// |
741 * | 732 /// [accountId] - The id for the account that will serve this creative. |
742 * [accountId] - The id for the account that will serve this creative. | 733 /// |
743 * | 734 /// [buyerCreativeId] - The buyer-specific id for this creative. |
744 * [buyerCreativeId] - The buyer-specific id for this creative. | 735 /// |
745 * | 736 /// [dealId] - The id of the deal id to disassociate with this creative. |
746 * [dealId] - The id of the deal id to disassociate with this creative. | 737 /// |
747 * | 738 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
748 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 739 /// an error. |
749 * error. | 740 /// |
750 * | 741 /// If the used [http.Client] completes with an error when making a REST |
751 * If the used [http.Client] completes with an error when making a REST call, | 742 /// call, this method will complete with the same error. |
752 * this method will complete with the same error. | 743 async.Future removeDeal( |
753 */ | 744 core.int accountId, core.String buyerCreativeId, core.String dealId) { |
754 async.Future removeDeal(core.int accountId, core.String buyerCreativeId, core.
String dealId) { | |
755 var _url = null; | 745 var _url = null; |
756 var _queryParams = new core.Map(); | 746 var _queryParams = new core.Map(); |
757 var _uploadMedia = null; | 747 var _uploadMedia = null; |
758 var _uploadOptions = null; | 748 var _uploadOptions = null; |
759 var _downloadOptions = commons.DownloadOptions.Metadata; | 749 var _downloadOptions = commons.DownloadOptions.Metadata; |
760 var _body = null; | 750 var _body = null; |
761 | 751 |
762 if (accountId == null) { | 752 if (accountId == null) { |
763 throw new core.ArgumentError("Parameter accountId is required."); | 753 throw new core.ArgumentError("Parameter accountId is required."); |
764 } | 754 } |
765 if (buyerCreativeId == null) { | 755 if (buyerCreativeId == null) { |
766 throw new core.ArgumentError("Parameter buyerCreativeId is required."); | 756 throw new core.ArgumentError("Parameter buyerCreativeId is required."); |
767 } | 757 } |
768 if (dealId == null) { | 758 if (dealId == null) { |
769 throw new core.ArgumentError("Parameter dealId is required."); | 759 throw new core.ArgumentError("Parameter dealId is required."); |
770 } | 760 } |
771 | 761 |
772 _downloadOptions = null; | 762 _downloadOptions = null; |
773 | 763 |
774 _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + co
mmons.Escaper.ecapeVariable('$buyerCreativeId') + '/removeDeal/' + commons.Escap
er.ecapeVariable('$dealId'); | 764 _url = 'creatives/' + |
| 765 commons.Escaper.ecapeVariable('$accountId') + |
| 766 '/' + |
| 767 commons.Escaper.ecapeVariable('$buyerCreativeId') + |
| 768 '/removeDeal/' + |
| 769 commons.Escaper.ecapeVariable('$dealId'); |
775 | 770 |
776 var _response = _requester.request(_url, | 771 var _response = _requester.request(_url, "POST", |
777 "POST", | 772 body: _body, |
778 body: _body, | 773 queryParams: _queryParams, |
779 queryParams: _queryParams, | 774 uploadOptions: _uploadOptions, |
780 uploadOptions: _uploadOptions, | 775 uploadMedia: _uploadMedia, |
781 uploadMedia: _uploadMedia, | 776 downloadOptions: _downloadOptions); |
782 downloadOptions: _downloadOptions); | |
783 return _response.then((data) => null); | 777 return _response.then((data) => null); |
784 } | 778 } |
785 | |
786 } | 779 } |
787 | 780 |
788 | |
789 class MarketplacedealsResourceApi { | 781 class MarketplacedealsResourceApi { |
790 final commons.ApiRequester _requester; | 782 final commons.ApiRequester _requester; |
791 | 783 |
792 MarketplacedealsResourceApi(commons.ApiRequester client) : | 784 MarketplacedealsResourceApi(commons.ApiRequester client) |
793 _requester = client; | 785 : _requester = client; |
794 | 786 |
795 /** | 787 /// Delete the specified deals from the proposal |
796 * Delete the specified deals from the proposal | 788 /// |
797 * | 789 /// [request] - The metadata request object. |
798 * [request] - The metadata request object. | 790 /// |
799 * | 791 /// Request parameters: |
800 * Request parameters: | 792 /// |
801 * | 793 /// [proposalId] - The proposalId to delete deals from. |
802 * [proposalId] - The proposalId to delete deals from. | 794 /// |
803 * | 795 /// Completes with a [DeleteOrderDealsResponse]. |
804 * Completes with a [DeleteOrderDealsResponse]. | 796 /// |
805 * | 797 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
806 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 798 /// an error. |
807 * error. | 799 /// |
808 * | 800 /// If the used [http.Client] completes with an error when making a REST |
809 * If the used [http.Client] completes with an error when making a REST call, | 801 /// call, this method will complete with the same error. |
810 * this method will complete with the same error. | 802 async.Future<DeleteOrderDealsResponse> delete( |
811 */ | 803 DeleteOrderDealsRequest request, core.String proposalId) { |
812 async.Future<DeleteOrderDealsResponse> delete(DeleteOrderDealsRequest request,
core.String proposalId) { | |
813 var _url = null; | 804 var _url = null; |
814 var _queryParams = new core.Map(); | 805 var _queryParams = new core.Map(); |
815 var _uploadMedia = null; | 806 var _uploadMedia = null; |
816 var _uploadOptions = null; | 807 var _uploadOptions = null; |
817 var _downloadOptions = commons.DownloadOptions.Metadata; | 808 var _downloadOptions = commons.DownloadOptions.Metadata; |
818 var _body = null; | 809 var _body = null; |
819 | 810 |
820 if (request != null) { | 811 if (request != null) { |
821 _body = convert.JSON.encode((request).toJson()); | 812 _body = convert.JSON.encode((request).toJson()); |
822 } | 813 } |
823 if (proposalId == null) { | 814 if (proposalId == null) { |
824 throw new core.ArgumentError("Parameter proposalId is required."); | 815 throw new core.ArgumentError("Parameter proposalId is required."); |
825 } | 816 } |
826 | 817 |
827 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/deals
/delete'; | 818 _url = 'proposals/' + |
| 819 commons.Escaper.ecapeVariable('$proposalId') + |
| 820 '/deals/delete'; |
828 | 821 |
829 var _response = _requester.request(_url, | 822 var _response = _requester.request(_url, "POST", |
830 "POST", | 823 body: _body, |
831 body: _body, | 824 queryParams: _queryParams, |
832 queryParams: _queryParams, | 825 uploadOptions: _uploadOptions, |
833 uploadOptions: _uploadOptions, | 826 uploadMedia: _uploadMedia, |
834 uploadMedia: _uploadMedia, | 827 downloadOptions: _downloadOptions); |
835 downloadOptions: _downloadOptions); | 828 return _response |
836 return _response.then((data) => new DeleteOrderDealsResponse.fromJson(data))
; | 829 .then((data) => new DeleteOrderDealsResponse.fromJson(data)); |
837 } | 830 } |
838 | 831 |
839 /** | 832 /// Add new deals for the specified proposal |
840 * Add new deals for the specified proposal | 833 /// |
841 * | 834 /// [request] - The metadata request object. |
842 * [request] - The metadata request object. | 835 /// |
843 * | 836 /// Request parameters: |
844 * Request parameters: | 837 /// |
845 * | 838 /// [proposalId] - proposalId for which deals need to be added. |
846 * [proposalId] - proposalId for which deals need to be added. | 839 /// |
847 * | 840 /// Completes with a [AddOrderDealsResponse]. |
848 * Completes with a [AddOrderDealsResponse]. | 841 /// |
849 * | 842 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
850 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 843 /// an error. |
851 * error. | 844 /// |
852 * | 845 /// If the used [http.Client] completes with an error when making a REST |
853 * If the used [http.Client] completes with an error when making a REST call, | 846 /// call, this method will complete with the same error. |
854 * this method will complete with the same error. | 847 async.Future<AddOrderDealsResponse> insert( |
855 */ | 848 AddOrderDealsRequest request, core.String proposalId) { |
856 async.Future<AddOrderDealsResponse> insert(AddOrderDealsRequest request, core.
String proposalId) { | |
857 var _url = null; | 849 var _url = null; |
858 var _queryParams = new core.Map(); | 850 var _queryParams = new core.Map(); |
859 var _uploadMedia = null; | 851 var _uploadMedia = null; |
860 var _uploadOptions = null; | 852 var _uploadOptions = null; |
861 var _downloadOptions = commons.DownloadOptions.Metadata; | 853 var _downloadOptions = commons.DownloadOptions.Metadata; |
862 var _body = null; | 854 var _body = null; |
863 | 855 |
864 if (request != null) { | 856 if (request != null) { |
865 _body = convert.JSON.encode((request).toJson()); | 857 _body = convert.JSON.encode((request).toJson()); |
866 } | 858 } |
867 if (proposalId == null) { | 859 if (proposalId == null) { |
868 throw new core.ArgumentError("Parameter proposalId is required."); | 860 throw new core.ArgumentError("Parameter proposalId is required."); |
869 } | 861 } |
870 | 862 |
871 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/deals
/insert'; | 863 _url = 'proposals/' + |
| 864 commons.Escaper.ecapeVariable('$proposalId') + |
| 865 '/deals/insert'; |
872 | 866 |
873 var _response = _requester.request(_url, | 867 var _response = _requester.request(_url, "POST", |
874 "POST", | 868 body: _body, |
875 body: _body, | 869 queryParams: _queryParams, |
876 queryParams: _queryParams, | 870 uploadOptions: _uploadOptions, |
877 uploadOptions: _uploadOptions, | 871 uploadMedia: _uploadMedia, |
878 uploadMedia: _uploadMedia, | 872 downloadOptions: _downloadOptions); |
879 downloadOptions: _downloadOptions); | |
880 return _response.then((data) => new AddOrderDealsResponse.fromJson(data)); | 873 return _response.then((data) => new AddOrderDealsResponse.fromJson(data)); |
881 } | 874 } |
882 | 875 |
883 /** | 876 /// List all the deals for a given proposal |
884 * List all the deals for a given proposal | 877 /// |
885 * | 878 /// Request parameters: |
886 * Request parameters: | 879 /// |
887 * | 880 /// [proposalId] - The proposalId to get deals for. To search across all |
888 * [proposalId] - The proposalId to get deals for. To search across all | 881 /// proposals specify order_id = '-' as part of the URL. |
889 * proposals specify order_id = '-' as part of the URL. | 882 /// |
890 * | 883 /// [pqlQuery] - Query string to retrieve specific deals. |
891 * [pqlQuery] - Query string to retrieve specific deals. | 884 /// |
892 * | 885 /// Completes with a [GetOrderDealsResponse]. |
893 * Completes with a [GetOrderDealsResponse]. | 886 /// |
894 * | 887 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
895 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 888 /// an error. |
896 * error. | 889 /// |
897 * | 890 /// If the used [http.Client] completes with an error when making a REST |
898 * If the used [http.Client] completes with an error when making a REST call, | 891 /// call, this method will complete with the same error. |
899 * this method will complete with the same error. | 892 async.Future<GetOrderDealsResponse> list(core.String proposalId, |
900 */ | 893 {core.String pqlQuery}) { |
901 async.Future<GetOrderDealsResponse> list(core.String proposalId, {core.String
pqlQuery}) { | |
902 var _url = null; | 894 var _url = null; |
903 var _queryParams = new core.Map(); | 895 var _queryParams = new core.Map(); |
904 var _uploadMedia = null; | 896 var _uploadMedia = null; |
905 var _uploadOptions = null; | 897 var _uploadOptions = null; |
906 var _downloadOptions = commons.DownloadOptions.Metadata; | 898 var _downloadOptions = commons.DownloadOptions.Metadata; |
907 var _body = null; | 899 var _body = null; |
908 | 900 |
909 if (proposalId == null) { | 901 if (proposalId == null) { |
910 throw new core.ArgumentError("Parameter proposalId is required."); | 902 throw new core.ArgumentError("Parameter proposalId is required."); |
911 } | 903 } |
912 if (pqlQuery != null) { | 904 if (pqlQuery != null) { |
913 _queryParams["pqlQuery"] = [pqlQuery]; | 905 _queryParams["pqlQuery"] = [pqlQuery]; |
914 } | 906 } |
915 | 907 |
916 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/deals
'; | 908 _url = |
| 909 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/deals'; |
917 | 910 |
918 var _response = _requester.request(_url, | 911 var _response = _requester.request(_url, "GET", |
919 "GET", | 912 body: _body, |
920 body: _body, | 913 queryParams: _queryParams, |
921 queryParams: _queryParams, | 914 uploadOptions: _uploadOptions, |
922 uploadOptions: _uploadOptions, | 915 uploadMedia: _uploadMedia, |
923 uploadMedia: _uploadMedia, | 916 downloadOptions: _downloadOptions); |
924 downloadOptions: _downloadOptions); | |
925 return _response.then((data) => new GetOrderDealsResponse.fromJson(data)); | 917 return _response.then((data) => new GetOrderDealsResponse.fromJson(data)); |
926 } | 918 } |
927 | 919 |
928 /** | 920 /// Replaces all the deals in the proposal with the passed in deals |
929 * Replaces all the deals in the proposal with the passed in deals | 921 /// |
930 * | 922 /// [request] - The metadata request object. |
931 * [request] - The metadata request object. | 923 /// |
932 * | 924 /// Request parameters: |
933 * Request parameters: | 925 /// |
934 * | 926 /// [proposalId] - The proposalId to edit deals on. |
935 * [proposalId] - The proposalId to edit deals on. | 927 /// |
936 * | 928 /// Completes with a [EditAllOrderDealsResponse]. |
937 * Completes with a [EditAllOrderDealsResponse]. | 929 /// |
938 * | 930 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
939 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 931 /// an error. |
940 * error. | 932 /// |
941 * | 933 /// If the used [http.Client] completes with an error when making a REST |
942 * If the used [http.Client] completes with an error when making a REST call, | 934 /// call, this method will complete with the same error. |
943 * this method will complete with the same error. | 935 async.Future<EditAllOrderDealsResponse> update( |
944 */ | 936 EditAllOrderDealsRequest request, core.String proposalId) { |
945 async.Future<EditAllOrderDealsResponse> update(EditAllOrderDealsRequest reques
t, core.String proposalId) { | |
946 var _url = null; | 937 var _url = null; |
947 var _queryParams = new core.Map(); | 938 var _queryParams = new core.Map(); |
948 var _uploadMedia = null; | 939 var _uploadMedia = null; |
949 var _uploadOptions = null; | 940 var _uploadOptions = null; |
950 var _downloadOptions = commons.DownloadOptions.Metadata; | 941 var _downloadOptions = commons.DownloadOptions.Metadata; |
951 var _body = null; | 942 var _body = null; |
952 | 943 |
953 if (request != null) { | 944 if (request != null) { |
954 _body = convert.JSON.encode((request).toJson()); | 945 _body = convert.JSON.encode((request).toJson()); |
955 } | 946 } |
956 if (proposalId == null) { | 947 if (proposalId == null) { |
957 throw new core.ArgumentError("Parameter proposalId is required."); | 948 throw new core.ArgumentError("Parameter proposalId is required."); |
958 } | 949 } |
959 | 950 |
960 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/deals
/update'; | 951 _url = 'proposals/' + |
| 952 commons.Escaper.ecapeVariable('$proposalId') + |
| 953 '/deals/update'; |
961 | 954 |
962 var _response = _requester.request(_url, | 955 var _response = _requester.request(_url, "POST", |
963 "POST", | 956 body: _body, |
964 body: _body, | 957 queryParams: _queryParams, |
965 queryParams: _queryParams, | 958 uploadOptions: _uploadOptions, |
966 uploadOptions: _uploadOptions, | 959 uploadMedia: _uploadMedia, |
967 uploadMedia: _uploadMedia, | 960 downloadOptions: _downloadOptions); |
968 downloadOptions: _downloadOptions); | 961 return _response |
969 return _response.then((data) => new EditAllOrderDealsResponse.fromJson(data)
); | 962 .then((data) => new EditAllOrderDealsResponse.fromJson(data)); |
970 } | 963 } |
971 | |
972 } | 964 } |
973 | 965 |
974 | |
975 class MarketplacenotesResourceApi { | 966 class MarketplacenotesResourceApi { |
976 final commons.ApiRequester _requester; | 967 final commons.ApiRequester _requester; |
977 | 968 |
978 MarketplacenotesResourceApi(commons.ApiRequester client) : | 969 MarketplacenotesResourceApi(commons.ApiRequester client) |
979 _requester = client; | 970 : _requester = client; |
980 | 971 |
981 /** | 972 /// Add notes to the proposal |
982 * Add notes to the proposal | 973 /// |
983 * | 974 /// [request] - The metadata request object. |
984 * [request] - The metadata request object. | 975 /// |
985 * | 976 /// Request parameters: |
986 * Request parameters: | 977 /// |
987 * | 978 /// [proposalId] - The proposalId to add notes for. |
988 * [proposalId] - The proposalId to add notes for. | 979 /// |
989 * | 980 /// Completes with a [AddOrderNotesResponse]. |
990 * Completes with a [AddOrderNotesResponse]. | 981 /// |
991 * | 982 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
992 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 983 /// an error. |
993 * error. | 984 /// |
994 * | 985 /// If the used [http.Client] completes with an error when making a REST |
995 * If the used [http.Client] completes with an error when making a REST call, | 986 /// call, this method will complete with the same error. |
996 * this method will complete with the same error. | 987 async.Future<AddOrderNotesResponse> insert( |
997 */ | 988 AddOrderNotesRequest request, core.String proposalId) { |
998 async.Future<AddOrderNotesResponse> insert(AddOrderNotesRequest request, core.
String proposalId) { | |
999 var _url = null; | 989 var _url = null; |
1000 var _queryParams = new core.Map(); | 990 var _queryParams = new core.Map(); |
1001 var _uploadMedia = null; | 991 var _uploadMedia = null; |
1002 var _uploadOptions = null; | 992 var _uploadOptions = null; |
1003 var _downloadOptions = commons.DownloadOptions.Metadata; | 993 var _downloadOptions = commons.DownloadOptions.Metadata; |
1004 var _body = null; | 994 var _body = null; |
1005 | 995 |
1006 if (request != null) { | 996 if (request != null) { |
1007 _body = convert.JSON.encode((request).toJson()); | 997 _body = convert.JSON.encode((request).toJson()); |
1008 } | 998 } |
1009 if (proposalId == null) { | 999 if (proposalId == null) { |
1010 throw new core.ArgumentError("Parameter proposalId is required."); | 1000 throw new core.ArgumentError("Parameter proposalId is required."); |
1011 } | 1001 } |
1012 | 1002 |
1013 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/notes
/insert'; | 1003 _url = 'proposals/' + |
| 1004 commons.Escaper.ecapeVariable('$proposalId') + |
| 1005 '/notes/insert'; |
1014 | 1006 |
1015 var _response = _requester.request(_url, | 1007 var _response = _requester.request(_url, "POST", |
1016 "POST", | 1008 body: _body, |
1017 body: _body, | 1009 queryParams: _queryParams, |
1018 queryParams: _queryParams, | 1010 uploadOptions: _uploadOptions, |
1019 uploadOptions: _uploadOptions, | 1011 uploadMedia: _uploadMedia, |
1020 uploadMedia: _uploadMedia, | 1012 downloadOptions: _downloadOptions); |
1021 downloadOptions: _downloadOptions); | |
1022 return _response.then((data) => new AddOrderNotesResponse.fromJson(data)); | 1013 return _response.then((data) => new AddOrderNotesResponse.fromJson(data)); |
1023 } | 1014 } |
1024 | 1015 |
1025 /** | 1016 /// Get all the notes associated with a proposal |
1026 * Get all the notes associated with a proposal | 1017 /// |
1027 * | 1018 /// Request parameters: |
1028 * Request parameters: | 1019 /// |
1029 * | 1020 /// [proposalId] - The proposalId to get notes for. To search across all |
1030 * [proposalId] - The proposalId to get notes for. To search across all | 1021 /// proposals specify order_id = '-' as part of the URL. |
1031 * proposals specify order_id = '-' as part of the URL. | 1022 /// |
1032 * | 1023 /// [pqlQuery] - Query string to retrieve specific notes. To search the text |
1033 * [pqlQuery] - Query string to retrieve specific notes. To search the text | 1024 /// contents of notes, please use syntax like "WHERE note.note = "foo" or |
1034 * contents of notes, please use syntax like "WHERE note.note = "foo" or | 1025 /// "WHERE note.note LIKE "%bar%" |
1035 * "WHERE note.note LIKE "%bar%" | 1026 /// |
1036 * | 1027 /// Completes with a [GetOrderNotesResponse]. |
1037 * Completes with a [GetOrderNotesResponse]. | 1028 /// |
1038 * | 1029 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1039 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1030 /// an error. |
1040 * error. | 1031 /// |
1041 * | 1032 /// If the used [http.Client] completes with an error when making a REST |
1042 * If the used [http.Client] completes with an error when making a REST call, | 1033 /// call, this method will complete with the same error. |
1043 * this method will complete with the same error. | 1034 async.Future<GetOrderNotesResponse> list(core.String proposalId, |
1044 */ | 1035 {core.String pqlQuery}) { |
1045 async.Future<GetOrderNotesResponse> list(core.String proposalId, {core.String
pqlQuery}) { | |
1046 var _url = null; | 1036 var _url = null; |
1047 var _queryParams = new core.Map(); | 1037 var _queryParams = new core.Map(); |
1048 var _uploadMedia = null; | 1038 var _uploadMedia = null; |
1049 var _uploadOptions = null; | 1039 var _uploadOptions = null; |
1050 var _downloadOptions = commons.DownloadOptions.Metadata; | 1040 var _downloadOptions = commons.DownloadOptions.Metadata; |
1051 var _body = null; | 1041 var _body = null; |
1052 | 1042 |
1053 if (proposalId == null) { | 1043 if (proposalId == null) { |
1054 throw new core.ArgumentError("Parameter proposalId is required."); | 1044 throw new core.ArgumentError("Parameter proposalId is required."); |
1055 } | 1045 } |
1056 if (pqlQuery != null) { | 1046 if (pqlQuery != null) { |
1057 _queryParams["pqlQuery"] = [pqlQuery]; | 1047 _queryParams["pqlQuery"] = [pqlQuery]; |
1058 } | 1048 } |
1059 | 1049 |
1060 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/notes
'; | 1050 _url = |
| 1051 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/notes'; |
1061 | 1052 |
1062 var _response = _requester.request(_url, | 1053 var _response = _requester.request(_url, "GET", |
1063 "GET", | 1054 body: _body, |
1064 body: _body, | 1055 queryParams: _queryParams, |
1065 queryParams: _queryParams, | 1056 uploadOptions: _uploadOptions, |
1066 uploadOptions: _uploadOptions, | 1057 uploadMedia: _uploadMedia, |
1067 uploadMedia: _uploadMedia, | 1058 downloadOptions: _downloadOptions); |
1068 downloadOptions: _downloadOptions); | |
1069 return _response.then((data) => new GetOrderNotesResponse.fromJson(data)); | 1059 return _response.then((data) => new GetOrderNotesResponse.fromJson(data)); |
1070 } | 1060 } |
1071 | |
1072 } | 1061 } |
1073 | 1062 |
1074 | |
1075 class MarketplaceprivateauctionResourceApi { | 1063 class MarketplaceprivateauctionResourceApi { |
1076 final commons.ApiRequester _requester; | 1064 final commons.ApiRequester _requester; |
1077 | 1065 |
1078 MarketplaceprivateauctionResourceApi(commons.ApiRequester client) : | 1066 MarketplaceprivateauctionResourceApi(commons.ApiRequester client) |
1079 _requester = client; | 1067 : _requester = client; |
1080 | 1068 |
1081 /** | 1069 /// Update a given private auction proposal |
1082 * Update a given private auction proposal | 1070 /// |
1083 * | 1071 /// [request] - The metadata request object. |
1084 * [request] - The metadata request object. | 1072 /// |
1085 * | 1073 /// Request parameters: |
1086 * Request parameters: | 1074 /// |
1087 * | 1075 /// [privateAuctionId] - The private auction id to be updated. |
1088 * [privateAuctionId] - The private auction id to be updated. | 1076 /// |
1089 * | 1077 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1090 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1078 /// an error. |
1091 * error. | 1079 /// |
1092 * | 1080 /// If the used [http.Client] completes with an error when making a REST |
1093 * If the used [http.Client] completes with an error when making a REST call, | 1081 /// call, this method will complete with the same error. |
1094 * this method will complete with the same error. | 1082 async.Future updateproposal(UpdatePrivateAuctionProposalRequest request, |
1095 */ | 1083 core.String privateAuctionId) { |
1096 async.Future updateproposal(UpdatePrivateAuctionProposalRequest request, core.
String privateAuctionId) { | |
1097 var _url = null; | 1084 var _url = null; |
1098 var _queryParams = new core.Map(); | 1085 var _queryParams = new core.Map(); |
1099 var _uploadMedia = null; | 1086 var _uploadMedia = null; |
1100 var _uploadOptions = null; | 1087 var _uploadOptions = null; |
1101 var _downloadOptions = commons.DownloadOptions.Metadata; | 1088 var _downloadOptions = commons.DownloadOptions.Metadata; |
1102 var _body = null; | 1089 var _body = null; |
1103 | 1090 |
1104 if (request != null) { | 1091 if (request != null) { |
1105 _body = convert.JSON.encode((request).toJson()); | 1092 _body = convert.JSON.encode((request).toJson()); |
1106 } | 1093 } |
1107 if (privateAuctionId == null) { | 1094 if (privateAuctionId == null) { |
1108 throw new core.ArgumentError("Parameter privateAuctionId is required."); | 1095 throw new core.ArgumentError("Parameter privateAuctionId is required."); |
1109 } | 1096 } |
1110 | 1097 |
1111 _downloadOptions = null; | 1098 _downloadOptions = null; |
1112 | 1099 |
1113 _url = 'privateauction/' + commons.Escaper.ecapeVariable('$privateAuctionId'
) + '/updateproposal'; | 1100 _url = 'privateauction/' + |
| 1101 commons.Escaper.ecapeVariable('$privateAuctionId') + |
| 1102 '/updateproposal'; |
1114 | 1103 |
1115 var _response = _requester.request(_url, | 1104 var _response = _requester.request(_url, "POST", |
1116 "POST", | 1105 body: _body, |
1117 body: _body, | 1106 queryParams: _queryParams, |
1118 queryParams: _queryParams, | 1107 uploadOptions: _uploadOptions, |
1119 uploadOptions: _uploadOptions, | 1108 uploadMedia: _uploadMedia, |
1120 uploadMedia: _uploadMedia, | 1109 downloadOptions: _downloadOptions); |
1121 downloadOptions: _downloadOptions); | |
1122 return _response.then((data) => null); | 1110 return _response.then((data) => null); |
1123 } | 1111 } |
1124 | |
1125 } | 1112 } |
1126 | 1113 |
1127 | |
1128 class PerformanceReportResourceApi { | 1114 class PerformanceReportResourceApi { |
1129 final commons.ApiRequester _requester; | 1115 final commons.ApiRequester _requester; |
1130 | 1116 |
1131 PerformanceReportResourceApi(commons.ApiRequester client) : | 1117 PerformanceReportResourceApi(commons.ApiRequester client) |
1132 _requester = client; | 1118 : _requester = client; |
1133 | 1119 |
1134 /** | 1120 /// Retrieves the authenticated user's list of performance metrics. |
1135 * Retrieves the authenticated user's list of performance metrics. | 1121 /// |
1136 * | 1122 /// Request parameters: |
1137 * Request parameters: | 1123 /// |
1138 * | 1124 /// [accountId] - The account id to get the reports. |
1139 * [accountId] - The account id to get the reports. | 1125 /// |
1140 * | 1126 /// [endDateTime] - The end time of the report in ISO 8601 timestamp format |
1141 * [endDateTime] - The end time of the report in ISO 8601 timestamp format | 1127 /// using UTC. |
1142 * using UTC. | 1128 /// |
1143 * | 1129 /// [startDateTime] - The start time of the report in ISO 8601 timestamp |
1144 * [startDateTime] - The start time of the report in ISO 8601 timestamp format | 1130 /// format using UTC. |
1145 * using UTC. | 1131 /// |
1146 * | 1132 /// [maxResults] - Maximum number of entries returned on one result page. If |
1147 * [maxResults] - Maximum number of entries returned on one result page. If | 1133 /// not set, the default is 100. Optional. |
1148 * not set, the default is 100. Optional. | 1134 /// Value must be between "1" and "1000". |
1149 * Value must be between "1" and "1000". | 1135 /// |
1150 * | 1136 /// [pageToken] - A continuation token, used to page through performance |
1151 * [pageToken] - A continuation token, used to page through performance | 1137 /// reports. To retrieve the next page, set this parameter to the value of |
1152 * reports. To retrieve the next page, set this parameter to the value of | 1138 /// "nextPageToken" from the previous response. Optional. |
1153 * "nextPageToken" from the previous response. Optional. | 1139 /// |
1154 * | 1140 /// Completes with a [PerformanceReportList]. |
1155 * Completes with a [PerformanceReportList]. | 1141 /// |
1156 * | 1142 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1157 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1143 /// an error. |
1158 * error. | 1144 /// |
1159 * | 1145 /// If the used [http.Client] completes with an error when making a REST |
1160 * If the used [http.Client] completes with an error when making a REST call, | 1146 /// call, this method will complete with the same error. |
1161 * this method will complete with the same error. | 1147 async.Future<PerformanceReportList> list( |
1162 */ | 1148 core.String accountId, core.String endDateTime, core.String startDateTime, |
1163 async.Future<PerformanceReportList> list(core.String accountId, core.String en
dDateTime, core.String startDateTime, {core.int maxResults, core.String pageToke
n}) { | 1149 {core.int maxResults, core.String pageToken}) { |
1164 var _url = null; | 1150 var _url = null; |
1165 var _queryParams = new core.Map(); | 1151 var _queryParams = new core.Map(); |
1166 var _uploadMedia = null; | 1152 var _uploadMedia = null; |
1167 var _uploadOptions = null; | 1153 var _uploadOptions = null; |
1168 var _downloadOptions = commons.DownloadOptions.Metadata; | 1154 var _downloadOptions = commons.DownloadOptions.Metadata; |
1169 var _body = null; | 1155 var _body = null; |
1170 | 1156 |
1171 if (accountId == null) { | 1157 if (accountId == null) { |
1172 throw new core.ArgumentError("Parameter accountId is required."); | 1158 throw new core.ArgumentError("Parameter accountId is required."); |
1173 } | 1159 } |
1174 _queryParams["accountId"] = [accountId]; | 1160 _queryParams["accountId"] = [accountId]; |
1175 if (endDateTime == null) { | 1161 if (endDateTime == null) { |
1176 throw new core.ArgumentError("Parameter endDateTime is required."); | 1162 throw new core.ArgumentError("Parameter endDateTime is required."); |
1177 } | 1163 } |
1178 _queryParams["endDateTime"] = [endDateTime]; | 1164 _queryParams["endDateTime"] = [endDateTime]; |
1179 if (startDateTime == null) { | 1165 if (startDateTime == null) { |
1180 throw new core.ArgumentError("Parameter startDateTime is required."); | 1166 throw new core.ArgumentError("Parameter startDateTime is required."); |
1181 } | 1167 } |
1182 _queryParams["startDateTime"] = [startDateTime]; | 1168 _queryParams["startDateTime"] = [startDateTime]; |
1183 if (maxResults != null) { | 1169 if (maxResults != null) { |
1184 _queryParams["maxResults"] = ["${maxResults}"]; | 1170 _queryParams["maxResults"] = ["${maxResults}"]; |
1185 } | 1171 } |
1186 if (pageToken != null) { | 1172 if (pageToken != null) { |
1187 _queryParams["pageToken"] = [pageToken]; | 1173 _queryParams["pageToken"] = [pageToken]; |
1188 } | 1174 } |
1189 | 1175 |
1190 _url = 'performancereport'; | 1176 _url = 'performancereport'; |
1191 | 1177 |
1192 var _response = _requester.request(_url, | 1178 var _response = _requester.request(_url, "GET", |
1193 "GET", | 1179 body: _body, |
1194 body: _body, | 1180 queryParams: _queryParams, |
1195 queryParams: _queryParams, | 1181 uploadOptions: _uploadOptions, |
1196 uploadOptions: _uploadOptions, | 1182 uploadMedia: _uploadMedia, |
1197 uploadMedia: _uploadMedia, | 1183 downloadOptions: _downloadOptions); |
1198 downloadOptions: _downloadOptions); | |
1199 return _response.then((data) => new PerformanceReportList.fromJson(data)); | 1184 return _response.then((data) => new PerformanceReportList.fromJson(data)); |
1200 } | 1185 } |
1201 | |
1202 } | 1186 } |
1203 | 1187 |
1204 | |
1205 class PretargetingConfigResourceApi { | 1188 class PretargetingConfigResourceApi { |
1206 final commons.ApiRequester _requester; | 1189 final commons.ApiRequester _requester; |
1207 | 1190 |
1208 PretargetingConfigResourceApi(commons.ApiRequester client) : | 1191 PretargetingConfigResourceApi(commons.ApiRequester client) |
1209 _requester = client; | 1192 : _requester = client; |
1210 | 1193 |
1211 /** | 1194 /// Deletes an existing pretargeting config. |
1212 * Deletes an existing pretargeting config. | 1195 /// |
1213 * | 1196 /// Request parameters: |
1214 * Request parameters: | 1197 /// |
1215 * | 1198 /// [accountId] - The account id to delete the pretargeting config for. |
1216 * [accountId] - The account id to delete the pretargeting config for. | 1199 /// |
1217 * | 1200 /// [configId] - The specific id of the configuration to delete. |
1218 * [configId] - The specific id of the configuration to delete. | 1201 /// |
1219 * | 1202 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1220 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1203 /// an error. |
1221 * error. | 1204 /// |
1222 * | 1205 /// If the used [http.Client] completes with an error when making a REST |
1223 * If the used [http.Client] completes with an error when making a REST call, | 1206 /// call, this method will complete with the same error. |
1224 * this method will complete with the same error. | |
1225 */ | |
1226 async.Future delete(core.String accountId, core.String configId) { | 1207 async.Future delete(core.String accountId, core.String configId) { |
1227 var _url = null; | 1208 var _url = null; |
1228 var _queryParams = new core.Map(); | 1209 var _queryParams = new core.Map(); |
1229 var _uploadMedia = null; | 1210 var _uploadMedia = null; |
1230 var _uploadOptions = null; | 1211 var _uploadOptions = null; |
1231 var _downloadOptions = commons.DownloadOptions.Metadata; | 1212 var _downloadOptions = commons.DownloadOptions.Metadata; |
1232 var _body = null; | 1213 var _body = null; |
1233 | 1214 |
1234 if (accountId == null) { | 1215 if (accountId == null) { |
1235 throw new core.ArgumentError("Parameter accountId is required."); | 1216 throw new core.ArgumentError("Parameter accountId is required."); |
1236 } | 1217 } |
1237 if (configId == null) { | 1218 if (configId == null) { |
1238 throw new core.ArgumentError("Parameter configId is required."); | 1219 throw new core.ArgumentError("Parameter configId is required."); |
1239 } | 1220 } |
1240 | 1221 |
1241 _downloadOptions = null; | 1222 _downloadOptions = null; |
1242 | 1223 |
1243 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId')
+ '/' + commons.Escaper.ecapeVariable('$configId'); | 1224 _url = 'pretargetingconfigs/' + |
| 1225 commons.Escaper.ecapeVariable('$accountId') + |
| 1226 '/' + |
| 1227 commons.Escaper.ecapeVariable('$configId'); |
1244 | 1228 |
1245 var _response = _requester.request(_url, | 1229 var _response = _requester.request(_url, "DELETE", |
1246 "DELETE", | 1230 body: _body, |
1247 body: _body, | 1231 queryParams: _queryParams, |
1248 queryParams: _queryParams, | 1232 uploadOptions: _uploadOptions, |
1249 uploadOptions: _uploadOptions, | 1233 uploadMedia: _uploadMedia, |
1250 uploadMedia: _uploadMedia, | 1234 downloadOptions: _downloadOptions); |
1251 downloadOptions: _downloadOptions); | |
1252 return _response.then((data) => null); | 1235 return _response.then((data) => null); |
1253 } | 1236 } |
1254 | 1237 |
1255 /** | 1238 /// Gets a specific pretargeting configuration |
1256 * Gets a specific pretargeting configuration | 1239 /// |
1257 * | 1240 /// Request parameters: |
1258 * Request parameters: | 1241 /// |
1259 * | 1242 /// [accountId] - The account id to get the pretargeting config for. |
1260 * [accountId] - The account id to get the pretargeting config for. | 1243 /// |
1261 * | 1244 /// [configId] - The specific id of the configuration to retrieve. |
1262 * [configId] - The specific id of the configuration to retrieve. | 1245 /// |
1263 * | 1246 /// Completes with a [PretargetingConfig]. |
1264 * Completes with a [PretargetingConfig]. | 1247 /// |
1265 * | 1248 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1266 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1249 /// an error. |
1267 * error. | 1250 /// |
1268 * | 1251 /// If the used [http.Client] completes with an error when making a REST |
1269 * If the used [http.Client] completes with an error when making a REST call, | 1252 /// call, this method will complete with the same error. |
1270 * this method will complete with the same error. | 1253 async.Future<PretargetingConfig> get( |
1271 */ | 1254 core.String accountId, core.String configId) { |
1272 async.Future<PretargetingConfig> get(core.String accountId, core.String config
Id) { | |
1273 var _url = null; | 1255 var _url = null; |
1274 var _queryParams = new core.Map(); | 1256 var _queryParams = new core.Map(); |
1275 var _uploadMedia = null; | 1257 var _uploadMedia = null; |
1276 var _uploadOptions = null; | 1258 var _uploadOptions = null; |
1277 var _downloadOptions = commons.DownloadOptions.Metadata; | 1259 var _downloadOptions = commons.DownloadOptions.Metadata; |
1278 var _body = null; | 1260 var _body = null; |
1279 | 1261 |
1280 if (accountId == null) { | 1262 if (accountId == null) { |
1281 throw new core.ArgumentError("Parameter accountId is required."); | 1263 throw new core.ArgumentError("Parameter accountId is required."); |
1282 } | 1264 } |
1283 if (configId == null) { | 1265 if (configId == null) { |
1284 throw new core.ArgumentError("Parameter configId is required."); | 1266 throw new core.ArgumentError("Parameter configId is required."); |
1285 } | 1267 } |
1286 | 1268 |
1287 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId')
+ '/' + commons.Escaper.ecapeVariable('$configId'); | 1269 _url = 'pretargetingconfigs/' + |
| 1270 commons.Escaper.ecapeVariable('$accountId') + |
| 1271 '/' + |
| 1272 commons.Escaper.ecapeVariable('$configId'); |
1288 | 1273 |
1289 var _response = _requester.request(_url, | 1274 var _response = _requester.request(_url, "GET", |
1290 "GET", | 1275 body: _body, |
1291 body: _body, | 1276 queryParams: _queryParams, |
1292 queryParams: _queryParams, | 1277 uploadOptions: _uploadOptions, |
1293 uploadOptions: _uploadOptions, | 1278 uploadMedia: _uploadMedia, |
1294 uploadMedia: _uploadMedia, | 1279 downloadOptions: _downloadOptions); |
1295 downloadOptions: _downloadOptions); | |
1296 return _response.then((data) => new PretargetingConfig.fromJson(data)); | 1280 return _response.then((data) => new PretargetingConfig.fromJson(data)); |
1297 } | 1281 } |
1298 | 1282 |
1299 /** | 1283 /// Inserts a new pretargeting configuration. |
1300 * Inserts a new pretargeting configuration. | 1284 /// |
1301 * | 1285 /// [request] - The metadata request object. |
1302 * [request] - The metadata request object. | 1286 /// |
1303 * | 1287 /// Request parameters: |
1304 * Request parameters: | 1288 /// |
1305 * | 1289 /// [accountId] - The account id to insert the pretargeting config for. |
1306 * [accountId] - The account id to insert the pretargeting config for. | 1290 /// |
1307 * | 1291 /// Completes with a [PretargetingConfig]. |
1308 * Completes with a [PretargetingConfig]. | 1292 /// |
1309 * | 1293 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1310 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1294 /// an error. |
1311 * error. | 1295 /// |
1312 * | 1296 /// If the used [http.Client] completes with an error when making a REST |
1313 * If the used [http.Client] completes with an error when making a REST call, | 1297 /// call, this method will complete with the same error. |
1314 * this method will complete with the same error. | 1298 async.Future<PretargetingConfig> insert( |
1315 */ | 1299 PretargetingConfig request, core.String accountId) { |
1316 async.Future<PretargetingConfig> insert(PretargetingConfig request, core.Strin
g accountId) { | |
1317 var _url = null; | 1300 var _url = null; |
1318 var _queryParams = new core.Map(); | 1301 var _queryParams = new core.Map(); |
1319 var _uploadMedia = null; | 1302 var _uploadMedia = null; |
1320 var _uploadOptions = null; | 1303 var _uploadOptions = null; |
1321 var _downloadOptions = commons.DownloadOptions.Metadata; | 1304 var _downloadOptions = commons.DownloadOptions.Metadata; |
1322 var _body = null; | 1305 var _body = null; |
1323 | 1306 |
1324 if (request != null) { | 1307 if (request != null) { |
1325 _body = convert.JSON.encode((request).toJson()); | 1308 _body = convert.JSON.encode((request).toJson()); |
1326 } | 1309 } |
1327 if (accountId == null) { | 1310 if (accountId == null) { |
1328 throw new core.ArgumentError("Parameter accountId is required."); | 1311 throw new core.ArgumentError("Parameter accountId is required."); |
1329 } | 1312 } |
1330 | 1313 |
1331 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId'); | 1314 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId'); |
1332 | 1315 |
1333 var _response = _requester.request(_url, | 1316 var _response = _requester.request(_url, "POST", |
1334 "POST", | 1317 body: _body, |
1335 body: _body, | 1318 queryParams: _queryParams, |
1336 queryParams: _queryParams, | 1319 uploadOptions: _uploadOptions, |
1337 uploadOptions: _uploadOptions, | 1320 uploadMedia: _uploadMedia, |
1338 uploadMedia: _uploadMedia, | 1321 downloadOptions: _downloadOptions); |
1339 downloadOptions: _downloadOptions); | |
1340 return _response.then((data) => new PretargetingConfig.fromJson(data)); | 1322 return _response.then((data) => new PretargetingConfig.fromJson(data)); |
1341 } | 1323 } |
1342 | 1324 |
1343 /** | 1325 /// Retrieves a list of the authenticated user's pretargeting configurations. |
1344 * Retrieves a list of the authenticated user's pretargeting configurations. | 1326 /// |
1345 * | 1327 /// Request parameters: |
1346 * Request parameters: | 1328 /// |
1347 * | 1329 /// [accountId] - The account id to get the pretargeting configs for. |
1348 * [accountId] - The account id to get the pretargeting configs for. | 1330 /// |
1349 * | 1331 /// Completes with a [PretargetingConfigList]. |
1350 * Completes with a [PretargetingConfigList]. | 1332 /// |
1351 * | 1333 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1334 /// an error. |
1353 * error. | 1335 /// |
1354 * | 1336 /// If the used [http.Client] completes with an error when making a REST |
1355 * If the used [http.Client] completes with an error when making a REST call, | 1337 /// call, this method will complete with the same error. |
1356 * this method will complete with the same error. | |
1357 */ | |
1358 async.Future<PretargetingConfigList> list(core.String accountId) { | 1338 async.Future<PretargetingConfigList> list(core.String accountId) { |
1359 var _url = null; | 1339 var _url = null; |
1360 var _queryParams = new core.Map(); | 1340 var _queryParams = new core.Map(); |
1361 var _uploadMedia = null; | 1341 var _uploadMedia = null; |
1362 var _uploadOptions = null; | 1342 var _uploadOptions = null; |
1363 var _downloadOptions = commons.DownloadOptions.Metadata; | 1343 var _downloadOptions = commons.DownloadOptions.Metadata; |
1364 var _body = null; | 1344 var _body = null; |
1365 | 1345 |
1366 if (accountId == null) { | 1346 if (accountId == null) { |
1367 throw new core.ArgumentError("Parameter accountId is required."); | 1347 throw new core.ArgumentError("Parameter accountId is required."); |
1368 } | 1348 } |
1369 | 1349 |
1370 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId'); | 1350 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId'); |
1371 | 1351 |
1372 var _response = _requester.request(_url, | 1352 var _response = _requester.request(_url, "GET", |
1373 "GET", | 1353 body: _body, |
1374 body: _body, | 1354 queryParams: _queryParams, |
1375 queryParams: _queryParams, | 1355 uploadOptions: _uploadOptions, |
1376 uploadOptions: _uploadOptions, | 1356 uploadMedia: _uploadMedia, |
1377 uploadMedia: _uploadMedia, | 1357 downloadOptions: _downloadOptions); |
1378 downloadOptions: _downloadOptions); | |
1379 return _response.then((data) => new PretargetingConfigList.fromJson(data)); | 1358 return _response.then((data) => new PretargetingConfigList.fromJson(data)); |
1380 } | 1359 } |
1381 | 1360 |
1382 /** | 1361 /// Updates an existing pretargeting config. This method supports patch |
1383 * Updates an existing pretargeting config. This method supports patch | 1362 /// semantics. |
1384 * semantics. | 1363 /// |
1385 * | 1364 /// [request] - The metadata request object. |
1386 * [request] - The metadata request object. | 1365 /// |
1387 * | 1366 /// Request parameters: |
1388 * Request parameters: | 1367 /// |
1389 * | 1368 /// [accountId] - The account id to update the pretargeting config for. |
1390 * [accountId] - The account id to update the pretargeting config for. | 1369 /// |
1391 * | 1370 /// [configId] - The specific id of the configuration to update. |
1392 * [configId] - The specific id of the configuration to update. | 1371 /// |
1393 * | 1372 /// Completes with a [PretargetingConfig]. |
1394 * Completes with a [PretargetingConfig]. | 1373 /// |
1395 * | 1374 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1396 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1375 /// an error. |
1397 * error. | 1376 /// |
1398 * | 1377 /// If the used [http.Client] completes with an error when making a REST |
1399 * If the used [http.Client] completes with an error when making a REST call, | 1378 /// call, this method will complete with the same error. |
1400 * this method will complete with the same error. | 1379 async.Future<PretargetingConfig> patch( |
1401 */ | 1380 PretargetingConfig request, core.String accountId, core.String configId) { |
1402 async.Future<PretargetingConfig> patch(PretargetingConfig request, core.String
accountId, core.String configId) { | |
1403 var _url = null; | 1381 var _url = null; |
1404 var _queryParams = new core.Map(); | 1382 var _queryParams = new core.Map(); |
1405 var _uploadMedia = null; | 1383 var _uploadMedia = null; |
1406 var _uploadOptions = null; | 1384 var _uploadOptions = null; |
1407 var _downloadOptions = commons.DownloadOptions.Metadata; | 1385 var _downloadOptions = commons.DownloadOptions.Metadata; |
1408 var _body = null; | 1386 var _body = null; |
1409 | 1387 |
1410 if (request != null) { | 1388 if (request != null) { |
1411 _body = convert.JSON.encode((request).toJson()); | 1389 _body = convert.JSON.encode((request).toJson()); |
1412 } | 1390 } |
1413 if (accountId == null) { | 1391 if (accountId == null) { |
1414 throw new core.ArgumentError("Parameter accountId is required."); | 1392 throw new core.ArgumentError("Parameter accountId is required."); |
1415 } | 1393 } |
1416 if (configId == null) { | 1394 if (configId == null) { |
1417 throw new core.ArgumentError("Parameter configId is required."); | 1395 throw new core.ArgumentError("Parameter configId is required."); |
1418 } | 1396 } |
1419 | 1397 |
1420 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId')
+ '/' + commons.Escaper.ecapeVariable('$configId'); | 1398 _url = 'pretargetingconfigs/' + |
| 1399 commons.Escaper.ecapeVariable('$accountId') + |
| 1400 '/' + |
| 1401 commons.Escaper.ecapeVariable('$configId'); |
1421 | 1402 |
1422 var _response = _requester.request(_url, | 1403 var _response = _requester.request(_url, "PATCH", |
1423 "PATCH", | 1404 body: _body, |
1424 body: _body, | 1405 queryParams: _queryParams, |
1425 queryParams: _queryParams, | 1406 uploadOptions: _uploadOptions, |
1426 uploadOptions: _uploadOptions, | 1407 uploadMedia: _uploadMedia, |
1427 uploadMedia: _uploadMedia, | 1408 downloadOptions: _downloadOptions); |
1428 downloadOptions: _downloadOptions); | |
1429 return _response.then((data) => new PretargetingConfig.fromJson(data)); | 1409 return _response.then((data) => new PretargetingConfig.fromJson(data)); |
1430 } | 1410 } |
1431 | 1411 |
1432 /** | 1412 /// Updates an existing pretargeting config. |
1433 * Updates an existing pretargeting config. | 1413 /// |
1434 * | 1414 /// [request] - The metadata request object. |
1435 * [request] - The metadata request object. | 1415 /// |
1436 * | 1416 /// Request parameters: |
1437 * Request parameters: | 1417 /// |
1438 * | 1418 /// [accountId] - The account id to update the pretargeting config for. |
1439 * [accountId] - The account id to update the pretargeting config for. | 1419 /// |
1440 * | 1420 /// [configId] - The specific id of the configuration to update. |
1441 * [configId] - The specific id of the configuration to update. | 1421 /// |
1442 * | 1422 /// Completes with a [PretargetingConfig]. |
1443 * Completes with a [PretargetingConfig]. | 1423 /// |
1444 * | 1424 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1445 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1425 /// an error. |
1446 * error. | 1426 /// |
1447 * | 1427 /// If the used [http.Client] completes with an error when making a REST |
1448 * If the used [http.Client] completes with an error when making a REST call, | 1428 /// call, this method will complete with the same error. |
1449 * this method will complete with the same error. | 1429 async.Future<PretargetingConfig> update( |
1450 */ | 1430 PretargetingConfig request, core.String accountId, core.String configId) { |
1451 async.Future<PretargetingConfig> update(PretargetingConfig request, core.Strin
g accountId, core.String configId) { | |
1452 var _url = null; | 1431 var _url = null; |
1453 var _queryParams = new core.Map(); | 1432 var _queryParams = new core.Map(); |
1454 var _uploadMedia = null; | 1433 var _uploadMedia = null; |
1455 var _uploadOptions = null; | 1434 var _uploadOptions = null; |
1456 var _downloadOptions = commons.DownloadOptions.Metadata; | 1435 var _downloadOptions = commons.DownloadOptions.Metadata; |
1457 var _body = null; | 1436 var _body = null; |
1458 | 1437 |
1459 if (request != null) { | 1438 if (request != null) { |
1460 _body = convert.JSON.encode((request).toJson()); | 1439 _body = convert.JSON.encode((request).toJson()); |
1461 } | 1440 } |
1462 if (accountId == null) { | 1441 if (accountId == null) { |
1463 throw new core.ArgumentError("Parameter accountId is required."); | 1442 throw new core.ArgumentError("Parameter accountId is required."); |
1464 } | 1443 } |
1465 if (configId == null) { | 1444 if (configId == null) { |
1466 throw new core.ArgumentError("Parameter configId is required."); | 1445 throw new core.ArgumentError("Parameter configId is required."); |
1467 } | 1446 } |
1468 | 1447 |
1469 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId')
+ '/' + commons.Escaper.ecapeVariable('$configId'); | 1448 _url = 'pretargetingconfigs/' + |
| 1449 commons.Escaper.ecapeVariable('$accountId') + |
| 1450 '/' + |
| 1451 commons.Escaper.ecapeVariable('$configId'); |
1470 | 1452 |
1471 var _response = _requester.request(_url, | 1453 var _response = _requester.request(_url, "PUT", |
1472 "PUT", | 1454 body: _body, |
1473 body: _body, | 1455 queryParams: _queryParams, |
1474 queryParams: _queryParams, | 1456 uploadOptions: _uploadOptions, |
1475 uploadOptions: _uploadOptions, | 1457 uploadMedia: _uploadMedia, |
1476 uploadMedia: _uploadMedia, | 1458 downloadOptions: _downloadOptions); |
1477 downloadOptions: _downloadOptions); | |
1478 return _response.then((data) => new PretargetingConfig.fromJson(data)); | 1459 return _response.then((data) => new PretargetingConfig.fromJson(data)); |
1479 } | 1460 } |
1480 | |
1481 } | 1461 } |
1482 | 1462 |
1483 | |
1484 class ProductsResourceApi { | 1463 class ProductsResourceApi { |
1485 final commons.ApiRequester _requester; | 1464 final commons.ApiRequester _requester; |
1486 | 1465 |
1487 ProductsResourceApi(commons.ApiRequester client) : | 1466 ProductsResourceApi(commons.ApiRequester client) : _requester = client; |
1488 _requester = client; | |
1489 | 1467 |
1490 /** | 1468 /// Gets the requested product by id. |
1491 * Gets the requested product by id. | 1469 /// |
1492 * | 1470 /// Request parameters: |
1493 * Request parameters: | 1471 /// |
1494 * | 1472 /// [productId] - The id for the product to get the head revision for. |
1495 * [productId] - The id for the product to get the head revision for. | 1473 /// |
1496 * | 1474 /// Completes with a [Product]. |
1497 * Completes with a [Product]. | 1475 /// |
1498 * | 1476 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1499 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1477 /// an error. |
1500 * error. | 1478 /// |
1501 * | 1479 /// If the used [http.Client] completes with an error when making a REST |
1502 * If the used [http.Client] completes with an error when making a REST call, | 1480 /// call, this method will complete with the same error. |
1503 * this method will complete with the same error. | |
1504 */ | |
1505 async.Future<Product> get(core.String productId) { | 1481 async.Future<Product> get(core.String productId) { |
1506 var _url = null; | 1482 var _url = null; |
1507 var _queryParams = new core.Map(); | 1483 var _queryParams = new core.Map(); |
1508 var _uploadMedia = null; | 1484 var _uploadMedia = null; |
1509 var _uploadOptions = null; | 1485 var _uploadOptions = null; |
1510 var _downloadOptions = commons.DownloadOptions.Metadata; | 1486 var _downloadOptions = commons.DownloadOptions.Metadata; |
1511 var _body = null; | 1487 var _body = null; |
1512 | 1488 |
1513 if (productId == null) { | 1489 if (productId == null) { |
1514 throw new core.ArgumentError("Parameter productId is required."); | 1490 throw new core.ArgumentError("Parameter productId is required."); |
1515 } | 1491 } |
1516 | 1492 |
1517 _url = 'products/' + commons.Escaper.ecapeVariable('$productId'); | 1493 _url = 'products/' + commons.Escaper.ecapeVariable('$productId'); |
1518 | 1494 |
1519 var _response = _requester.request(_url, | 1495 var _response = _requester.request(_url, "GET", |
1520 "GET", | 1496 body: _body, |
1521 body: _body, | 1497 queryParams: _queryParams, |
1522 queryParams: _queryParams, | 1498 uploadOptions: _uploadOptions, |
1523 uploadOptions: _uploadOptions, | 1499 uploadMedia: _uploadMedia, |
1524 uploadMedia: _uploadMedia, | 1500 downloadOptions: _downloadOptions); |
1525 downloadOptions: _downloadOptions); | |
1526 return _response.then((data) => new Product.fromJson(data)); | 1501 return _response.then((data) => new Product.fromJson(data)); |
1527 } | 1502 } |
1528 | 1503 |
1529 /** | 1504 /// Gets the requested product. |
1530 * Gets the requested product. | 1505 /// |
1531 * | 1506 /// Request parameters: |
1532 * Request parameters: | 1507 /// |
1533 * | 1508 /// [pqlQuery] - The pql query used to query for products. |
1534 * [pqlQuery] - The pql query used to query for products. | 1509 /// |
1535 * | 1510 /// Completes with a [GetOffersResponse]. |
1536 * Completes with a [GetOffersResponse]. | 1511 /// |
1537 * | 1512 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1538 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1513 /// an error. |
1539 * error. | 1514 /// |
1540 * | 1515 /// If the used [http.Client] completes with an error when making a REST |
1541 * If the used [http.Client] completes with an error when making a REST call, | 1516 /// call, this method will complete with the same error. |
1542 * this method will complete with the same error. | |
1543 */ | |
1544 async.Future<GetOffersResponse> search({core.String pqlQuery}) { | 1517 async.Future<GetOffersResponse> search({core.String pqlQuery}) { |
1545 var _url = null; | 1518 var _url = null; |
1546 var _queryParams = new core.Map(); | 1519 var _queryParams = new core.Map(); |
1547 var _uploadMedia = null; | 1520 var _uploadMedia = null; |
1548 var _uploadOptions = null; | 1521 var _uploadOptions = null; |
1549 var _downloadOptions = commons.DownloadOptions.Metadata; | 1522 var _downloadOptions = commons.DownloadOptions.Metadata; |
1550 var _body = null; | 1523 var _body = null; |
1551 | 1524 |
1552 if (pqlQuery != null) { | 1525 if (pqlQuery != null) { |
1553 _queryParams["pqlQuery"] = [pqlQuery]; | 1526 _queryParams["pqlQuery"] = [pqlQuery]; |
1554 } | 1527 } |
1555 | 1528 |
1556 _url = 'products/search'; | 1529 _url = 'products/search'; |
1557 | 1530 |
1558 var _response = _requester.request(_url, | 1531 var _response = _requester.request(_url, "GET", |
1559 "GET", | 1532 body: _body, |
1560 body: _body, | 1533 queryParams: _queryParams, |
1561 queryParams: _queryParams, | 1534 uploadOptions: _uploadOptions, |
1562 uploadOptions: _uploadOptions, | 1535 uploadMedia: _uploadMedia, |
1563 uploadMedia: _uploadMedia, | 1536 downloadOptions: _downloadOptions); |
1564 downloadOptions: _downloadOptions); | |
1565 return _response.then((data) => new GetOffersResponse.fromJson(data)); | 1537 return _response.then((data) => new GetOffersResponse.fromJson(data)); |
1566 } | 1538 } |
1567 | |
1568 } | 1539 } |
1569 | 1540 |
1570 | |
1571 class ProposalsResourceApi { | 1541 class ProposalsResourceApi { |
1572 final commons.ApiRequester _requester; | 1542 final commons.ApiRequester _requester; |
1573 | 1543 |
1574 ProposalsResourceApi(commons.ApiRequester client) : | 1544 ProposalsResourceApi(commons.ApiRequester client) : _requester = client; |
1575 _requester = client; | |
1576 | 1545 |
1577 /** | 1546 /// Get a proposal given its id |
1578 * Get a proposal given its id | 1547 /// |
1579 * | 1548 /// Request parameters: |
1580 * Request parameters: | 1549 /// |
1581 * | 1550 /// [proposalId] - Id of the proposal to retrieve. |
1582 * [proposalId] - Id of the proposal to retrieve. | 1551 /// |
1583 * | 1552 /// Completes with a [Proposal]. |
1584 * Completes with a [Proposal]. | 1553 /// |
1585 * | 1554 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1586 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1555 /// an error. |
1587 * error. | 1556 /// |
1588 * | 1557 /// If the used [http.Client] completes with an error when making a REST |
1589 * If the used [http.Client] completes with an error when making a REST call, | 1558 /// call, this method will complete with the same error. |
1590 * this method will complete with the same error. | |
1591 */ | |
1592 async.Future<Proposal> get(core.String proposalId) { | 1559 async.Future<Proposal> get(core.String proposalId) { |
1593 var _url = null; | 1560 var _url = null; |
1594 var _queryParams = new core.Map(); | 1561 var _queryParams = new core.Map(); |
1595 var _uploadMedia = null; | 1562 var _uploadMedia = null; |
1596 var _uploadOptions = null; | 1563 var _uploadOptions = null; |
1597 var _downloadOptions = commons.DownloadOptions.Metadata; | 1564 var _downloadOptions = commons.DownloadOptions.Metadata; |
1598 var _body = null; | 1565 var _body = null; |
1599 | 1566 |
1600 if (proposalId == null) { | 1567 if (proposalId == null) { |
1601 throw new core.ArgumentError("Parameter proposalId is required."); | 1568 throw new core.ArgumentError("Parameter proposalId is required."); |
1602 } | 1569 } |
1603 | 1570 |
1604 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId'); | 1571 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId'); |
1605 | 1572 |
1606 var _response = _requester.request(_url, | 1573 var _response = _requester.request(_url, "GET", |
1607 "GET", | 1574 body: _body, |
1608 body: _body, | 1575 queryParams: _queryParams, |
1609 queryParams: _queryParams, | 1576 uploadOptions: _uploadOptions, |
1610 uploadOptions: _uploadOptions, | 1577 uploadMedia: _uploadMedia, |
1611 uploadMedia: _uploadMedia, | 1578 downloadOptions: _downloadOptions); |
1612 downloadOptions: _downloadOptions); | |
1613 return _response.then((data) => new Proposal.fromJson(data)); | 1579 return _response.then((data) => new Proposal.fromJson(data)); |
1614 } | 1580 } |
1615 | 1581 |
1616 /** | 1582 /// Create the given list of proposals |
1617 * Create the given list of proposals | 1583 /// |
1618 * | 1584 /// [request] - The metadata request object. |
1619 * [request] - The metadata request object. | 1585 /// |
1620 * | 1586 /// Request parameters: |
1621 * Request parameters: | 1587 /// |
1622 * | 1588 /// Completes with a [CreateOrdersResponse]. |
1623 * Completes with a [CreateOrdersResponse]. | 1589 /// |
1624 * | 1590 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1625 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1591 /// an error. |
1626 * error. | 1592 /// |
1627 * | 1593 /// If the used [http.Client] completes with an error when making a REST |
1628 * If the used [http.Client] completes with an error when making a REST call, | 1594 /// call, this method will complete with the same error. |
1629 * this method will complete with the same error. | |
1630 */ | |
1631 async.Future<CreateOrdersResponse> insert(CreateOrdersRequest request) { | 1595 async.Future<CreateOrdersResponse> insert(CreateOrdersRequest request) { |
1632 var _url = null; | 1596 var _url = null; |
1633 var _queryParams = new core.Map(); | 1597 var _queryParams = new core.Map(); |
1634 var _uploadMedia = null; | 1598 var _uploadMedia = null; |
1635 var _uploadOptions = null; | 1599 var _uploadOptions = null; |
1636 var _downloadOptions = commons.DownloadOptions.Metadata; | 1600 var _downloadOptions = commons.DownloadOptions.Metadata; |
1637 var _body = null; | 1601 var _body = null; |
1638 | 1602 |
1639 if (request != null) { | 1603 if (request != null) { |
1640 _body = convert.JSON.encode((request).toJson()); | 1604 _body = convert.JSON.encode((request).toJson()); |
1641 } | 1605 } |
1642 | 1606 |
1643 _url = 'proposals/insert'; | 1607 _url = 'proposals/insert'; |
1644 | 1608 |
1645 var _response = _requester.request(_url, | 1609 var _response = _requester.request(_url, "POST", |
1646 "POST", | 1610 body: _body, |
1647 body: _body, | 1611 queryParams: _queryParams, |
1648 queryParams: _queryParams, | 1612 uploadOptions: _uploadOptions, |
1649 uploadOptions: _uploadOptions, | 1613 uploadMedia: _uploadMedia, |
1650 uploadMedia: _uploadMedia, | 1614 downloadOptions: _downloadOptions); |
1651 downloadOptions: _downloadOptions); | |
1652 return _response.then((data) => new CreateOrdersResponse.fromJson(data)); | 1615 return _response.then((data) => new CreateOrdersResponse.fromJson(data)); |
1653 } | 1616 } |
1654 | 1617 |
1655 /** | 1618 /// Update the given proposal. This method supports patch semantics. |
1656 * Update the given proposal. This method supports patch semantics. | 1619 /// |
1657 * | 1620 /// [request] - The metadata request object. |
1658 * [request] - The metadata request object. | 1621 /// |
1659 * | 1622 /// Request parameters: |
1660 * Request parameters: | 1623 /// |
1661 * | 1624 /// [proposalId] - The proposal id to update. |
1662 * [proposalId] - The proposal id to update. | 1625 /// |
1663 * | 1626 /// [revisionNumber] - The last known revision number to update. If the head |
1664 * [revisionNumber] - The last known revision number to update. If the head | 1627 /// revision in the marketplace database has since changed, an error will be |
1665 * revision in the marketplace database has since changed, an error will be | 1628 /// thrown. The caller should then fetch the latest proposal at head revision |
1666 * thrown. The caller should then fetch the latest proposal at head revision | 1629 /// and retry the update at that revision. |
1667 * and retry the update at that revision. | 1630 /// |
1668 * | 1631 /// [updateAction] - The proposed action to take on the proposal. This field |
1669 * [updateAction] - The proposed action to take on the proposal. This field is | 1632 /// is required and it must be set when updating a proposal. |
1670 * required and it must be set when updating a proposal. | 1633 /// Possible string values are: |
1671 * Possible string values are: | 1634 /// - "accept" |
1672 * - "accept" | 1635 /// - "cancel" |
1673 * - "cancel" | 1636 /// - "propose" |
1674 * - "propose" | 1637 /// - "proposeAndAccept" |
1675 * - "proposeAndAccept" | 1638 /// - "unknownAction" |
1676 * - "unknownAction" | 1639 /// - "updateNonTerms" |
1677 * - "updateNonTerms" | 1640 /// |
1678 * | 1641 /// Completes with a [Proposal]. |
1679 * Completes with a [Proposal]. | 1642 /// |
1680 * | 1643 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1681 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1644 /// an error. |
1682 * error. | 1645 /// |
1683 * | 1646 /// If the used [http.Client] completes with an error when making a REST |
1684 * If the used [http.Client] completes with an error when making a REST call, | 1647 /// call, this method will complete with the same error. |
1685 * this method will complete with the same error. | 1648 async.Future<Proposal> patch(Proposal request, core.String proposalId, |
1686 */ | 1649 core.String revisionNumber, core.String updateAction) { |
1687 async.Future<Proposal> patch(Proposal request, core.String proposalId, core.St
ring revisionNumber, core.String updateAction) { | |
1688 var _url = null; | 1650 var _url = null; |
1689 var _queryParams = new core.Map(); | 1651 var _queryParams = new core.Map(); |
1690 var _uploadMedia = null; | 1652 var _uploadMedia = null; |
1691 var _uploadOptions = null; | 1653 var _uploadOptions = null; |
1692 var _downloadOptions = commons.DownloadOptions.Metadata; | 1654 var _downloadOptions = commons.DownloadOptions.Metadata; |
1693 var _body = null; | 1655 var _body = null; |
1694 | 1656 |
1695 if (request != null) { | 1657 if (request != null) { |
1696 _body = convert.JSON.encode((request).toJson()); | 1658 _body = convert.JSON.encode((request).toJson()); |
1697 } | 1659 } |
1698 if (proposalId == null) { | 1660 if (proposalId == null) { |
1699 throw new core.ArgumentError("Parameter proposalId is required."); | 1661 throw new core.ArgumentError("Parameter proposalId is required."); |
1700 } | 1662 } |
1701 if (revisionNumber == null) { | 1663 if (revisionNumber == null) { |
1702 throw new core.ArgumentError("Parameter revisionNumber is required."); | 1664 throw new core.ArgumentError("Parameter revisionNumber is required."); |
1703 } | 1665 } |
1704 if (updateAction == null) { | 1666 if (updateAction == null) { |
1705 throw new core.ArgumentError("Parameter updateAction is required."); | 1667 throw new core.ArgumentError("Parameter updateAction is required."); |
1706 } | 1668 } |
1707 | 1669 |
1708 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/' + c
ommons.Escaper.ecapeVariable('$revisionNumber') + '/' + commons.Escaper.ecapeVar
iable('$updateAction'); | 1670 _url = 'proposals/' + |
| 1671 commons.Escaper.ecapeVariable('$proposalId') + |
| 1672 '/' + |
| 1673 commons.Escaper.ecapeVariable('$revisionNumber') + |
| 1674 '/' + |
| 1675 commons.Escaper.ecapeVariable('$updateAction'); |
1709 | 1676 |
1710 var _response = _requester.request(_url, | 1677 var _response = _requester.request(_url, "PATCH", |
1711 "PATCH", | 1678 body: _body, |
1712 body: _body, | 1679 queryParams: _queryParams, |
1713 queryParams: _queryParams, | 1680 uploadOptions: _uploadOptions, |
1714 uploadOptions: _uploadOptions, | 1681 uploadMedia: _uploadMedia, |
1715 uploadMedia: _uploadMedia, | 1682 downloadOptions: _downloadOptions); |
1716 downloadOptions: _downloadOptions); | |
1717 return _response.then((data) => new Proposal.fromJson(data)); | 1683 return _response.then((data) => new Proposal.fromJson(data)); |
1718 } | 1684 } |
1719 | 1685 |
1720 /** | 1686 /// Search for proposals using pql query |
1721 * Search for proposals using pql query | 1687 /// |
1722 * | 1688 /// Request parameters: |
1723 * Request parameters: | 1689 /// |
1724 * | 1690 /// [pqlQuery] - Query string to retrieve specific proposals. |
1725 * [pqlQuery] - Query string to retrieve specific proposals. | 1691 /// |
1726 * | 1692 /// Completes with a [GetOrdersResponse]. |
1727 * Completes with a [GetOrdersResponse]. | 1693 /// |
1728 * | 1694 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1729 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1695 /// an error. |
1730 * error. | 1696 /// |
1731 * | 1697 /// If the used [http.Client] completes with an error when making a REST |
1732 * If the used [http.Client] completes with an error when making a REST call, | 1698 /// call, this method will complete with the same error. |
1733 * this method will complete with the same error. | |
1734 */ | |
1735 async.Future<GetOrdersResponse> search({core.String pqlQuery}) { | 1699 async.Future<GetOrdersResponse> search({core.String pqlQuery}) { |
1736 var _url = null; | 1700 var _url = null; |
1737 var _queryParams = new core.Map(); | 1701 var _queryParams = new core.Map(); |
1738 var _uploadMedia = null; | 1702 var _uploadMedia = null; |
1739 var _uploadOptions = null; | 1703 var _uploadOptions = null; |
1740 var _downloadOptions = commons.DownloadOptions.Metadata; | 1704 var _downloadOptions = commons.DownloadOptions.Metadata; |
1741 var _body = null; | 1705 var _body = null; |
1742 | 1706 |
1743 if (pqlQuery != null) { | 1707 if (pqlQuery != null) { |
1744 _queryParams["pqlQuery"] = [pqlQuery]; | 1708 _queryParams["pqlQuery"] = [pqlQuery]; |
1745 } | 1709 } |
1746 | 1710 |
1747 _url = 'proposals/search'; | 1711 _url = 'proposals/search'; |
1748 | 1712 |
1749 var _response = _requester.request(_url, | 1713 var _response = _requester.request(_url, "GET", |
1750 "GET", | 1714 body: _body, |
1751 body: _body, | 1715 queryParams: _queryParams, |
1752 queryParams: _queryParams, | 1716 uploadOptions: _uploadOptions, |
1753 uploadOptions: _uploadOptions, | 1717 uploadMedia: _uploadMedia, |
1754 uploadMedia: _uploadMedia, | 1718 downloadOptions: _downloadOptions); |
1755 downloadOptions: _downloadOptions); | |
1756 return _response.then((data) => new GetOrdersResponse.fromJson(data)); | 1719 return _response.then((data) => new GetOrdersResponse.fromJson(data)); |
1757 } | 1720 } |
1758 | 1721 |
1759 /** | 1722 /// Update the given proposal to indicate that setup has been completed. |
1760 * Update the given proposal to indicate that setup has been completed. | 1723 /// |
1761 * | 1724 /// Request parameters: |
1762 * Request parameters: | 1725 /// |
1763 * | 1726 /// [proposalId] - The proposal id for which the setup is complete |
1764 * [proposalId] - The proposal id for which the setup is complete | 1727 /// |
1765 * | 1728 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1766 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1729 /// an error. |
1767 * error. | 1730 /// |
1768 * | 1731 /// If the used [http.Client] completes with an error when making a REST |
1769 * If the used [http.Client] completes with an error when making a REST call, | 1732 /// call, this method will complete with the same error. |
1770 * this method will complete with the same error. | |
1771 */ | |
1772 async.Future setupcomplete(core.String proposalId) { | 1733 async.Future setupcomplete(core.String proposalId) { |
1773 var _url = null; | 1734 var _url = null; |
1774 var _queryParams = new core.Map(); | 1735 var _queryParams = new core.Map(); |
1775 var _uploadMedia = null; | 1736 var _uploadMedia = null; |
1776 var _uploadOptions = null; | 1737 var _uploadOptions = null; |
1777 var _downloadOptions = commons.DownloadOptions.Metadata; | 1738 var _downloadOptions = commons.DownloadOptions.Metadata; |
1778 var _body = null; | 1739 var _body = null; |
1779 | 1740 |
1780 if (proposalId == null) { | 1741 if (proposalId == null) { |
1781 throw new core.ArgumentError("Parameter proposalId is required."); | 1742 throw new core.ArgumentError("Parameter proposalId is required."); |
1782 } | 1743 } |
1783 | 1744 |
1784 _downloadOptions = null; | 1745 _downloadOptions = null; |
1785 | 1746 |
1786 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/setup
complete'; | 1747 _url = 'proposals/' + |
| 1748 commons.Escaper.ecapeVariable('$proposalId') + |
| 1749 '/setupcomplete'; |
1787 | 1750 |
1788 var _response = _requester.request(_url, | 1751 var _response = _requester.request(_url, "POST", |
1789 "POST", | 1752 body: _body, |
1790 body: _body, | 1753 queryParams: _queryParams, |
1791 queryParams: _queryParams, | 1754 uploadOptions: _uploadOptions, |
1792 uploadOptions: _uploadOptions, | 1755 uploadMedia: _uploadMedia, |
1793 uploadMedia: _uploadMedia, | 1756 downloadOptions: _downloadOptions); |
1794 downloadOptions: _downloadOptions); | |
1795 return _response.then((data) => null); | 1757 return _response.then((data) => null); |
1796 } | 1758 } |
1797 | 1759 |
1798 /** | 1760 /// Update the given proposal |
1799 * Update the given proposal | 1761 /// |
1800 * | 1762 /// [request] - The metadata request object. |
1801 * [request] - The metadata request object. | 1763 /// |
1802 * | 1764 /// Request parameters: |
1803 * Request parameters: | 1765 /// |
1804 * | 1766 /// [proposalId] - The proposal id to update. |
1805 * [proposalId] - The proposal id to update. | 1767 /// |
1806 * | 1768 /// [revisionNumber] - The last known revision number to update. If the head |
1807 * [revisionNumber] - The last known revision number to update. If the head | 1769 /// revision in the marketplace database has since changed, an error will be |
1808 * revision in the marketplace database has since changed, an error will be | 1770 /// thrown. The caller should then fetch the latest proposal at head revision |
1809 * thrown. The caller should then fetch the latest proposal at head revision | 1771 /// and retry the update at that revision. |
1810 * and retry the update at that revision. | 1772 /// |
1811 * | 1773 /// [updateAction] - The proposed action to take on the proposal. This field |
1812 * [updateAction] - The proposed action to take on the proposal. This field is | 1774 /// is required and it must be set when updating a proposal. |
1813 * required and it must be set when updating a proposal. | 1775 /// Possible string values are: |
1814 * Possible string values are: | 1776 /// - "accept" |
1815 * - "accept" | 1777 /// - "cancel" |
1816 * - "cancel" | 1778 /// - "propose" |
1817 * - "propose" | 1779 /// - "proposeAndAccept" |
1818 * - "proposeAndAccept" | 1780 /// - "unknownAction" |
1819 * - "unknownAction" | 1781 /// - "updateNonTerms" |
1820 * - "updateNonTerms" | 1782 /// |
1821 * | 1783 /// Completes with a [Proposal]. |
1822 * Completes with a [Proposal]. | 1784 /// |
1823 * | 1785 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1824 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1786 /// an error. |
1825 * error. | 1787 /// |
1826 * | 1788 /// If the used [http.Client] completes with an error when making a REST |
1827 * If the used [http.Client] completes with an error when making a REST call, | 1789 /// call, this method will complete with the same error. |
1828 * this method will complete with the same error. | 1790 async.Future<Proposal> update(Proposal request, core.String proposalId, |
1829 */ | 1791 core.String revisionNumber, core.String updateAction) { |
1830 async.Future<Proposal> update(Proposal request, core.String proposalId, core.S
tring revisionNumber, core.String updateAction) { | |
1831 var _url = null; | 1792 var _url = null; |
1832 var _queryParams = new core.Map(); | 1793 var _queryParams = new core.Map(); |
1833 var _uploadMedia = null; | 1794 var _uploadMedia = null; |
1834 var _uploadOptions = null; | 1795 var _uploadOptions = null; |
1835 var _downloadOptions = commons.DownloadOptions.Metadata; | 1796 var _downloadOptions = commons.DownloadOptions.Metadata; |
1836 var _body = null; | 1797 var _body = null; |
1837 | 1798 |
1838 if (request != null) { | 1799 if (request != null) { |
1839 _body = convert.JSON.encode((request).toJson()); | 1800 _body = convert.JSON.encode((request).toJson()); |
1840 } | 1801 } |
1841 if (proposalId == null) { | 1802 if (proposalId == null) { |
1842 throw new core.ArgumentError("Parameter proposalId is required."); | 1803 throw new core.ArgumentError("Parameter proposalId is required."); |
1843 } | 1804 } |
1844 if (revisionNumber == null) { | 1805 if (revisionNumber == null) { |
1845 throw new core.ArgumentError("Parameter revisionNumber is required."); | 1806 throw new core.ArgumentError("Parameter revisionNumber is required."); |
1846 } | 1807 } |
1847 if (updateAction == null) { | 1808 if (updateAction == null) { |
1848 throw new core.ArgumentError("Parameter updateAction is required."); | 1809 throw new core.ArgumentError("Parameter updateAction is required."); |
1849 } | 1810 } |
1850 | 1811 |
1851 _url = 'proposals/' + commons.Escaper.ecapeVariable('$proposalId') + '/' + c
ommons.Escaper.ecapeVariable('$revisionNumber') + '/' + commons.Escaper.ecapeVar
iable('$updateAction'); | 1812 _url = 'proposals/' + |
| 1813 commons.Escaper.ecapeVariable('$proposalId') + |
| 1814 '/' + |
| 1815 commons.Escaper.ecapeVariable('$revisionNumber') + |
| 1816 '/' + |
| 1817 commons.Escaper.ecapeVariable('$updateAction'); |
1852 | 1818 |
1853 var _response = _requester.request(_url, | 1819 var _response = _requester.request(_url, "PUT", |
1854 "PUT", | 1820 body: _body, |
1855 body: _body, | 1821 queryParams: _queryParams, |
1856 queryParams: _queryParams, | 1822 uploadOptions: _uploadOptions, |
1857 uploadOptions: _uploadOptions, | 1823 uploadMedia: _uploadMedia, |
1858 uploadMedia: _uploadMedia, | 1824 downloadOptions: _downloadOptions); |
1859 downloadOptions: _downloadOptions); | |
1860 return _response.then((data) => new Proposal.fromJson(data)); | 1825 return _response.then((data) => new Proposal.fromJson(data)); |
1861 } | 1826 } |
1862 | |
1863 } | 1827 } |
1864 | 1828 |
1865 | |
1866 class PubprofilesResourceApi { | 1829 class PubprofilesResourceApi { |
1867 final commons.ApiRequester _requester; | 1830 final commons.ApiRequester _requester; |
1868 | 1831 |
1869 PubprofilesResourceApi(commons.ApiRequester client) : | 1832 PubprofilesResourceApi(commons.ApiRequester client) : _requester = client; |
1870 _requester = client; | |
1871 | 1833 |
1872 /** | 1834 /// Gets the requested publisher profile(s) by publisher accountId. |
1873 * Gets the requested publisher profile(s) by publisher accountId. | 1835 /// |
1874 * | 1836 /// Request parameters: |
1875 * Request parameters: | 1837 /// |
1876 * | 1838 /// [accountId] - The accountId of the publisher to get profiles for. |
1877 * [accountId] - The accountId of the publisher to get profiles for. | 1839 /// |
1878 * | 1840 /// Completes with a [GetPublisherProfilesByAccountIdResponse]. |
1879 * Completes with a [GetPublisherProfilesByAccountIdResponse]. | 1841 /// |
1880 * | 1842 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1881 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1843 /// an error. |
1882 * error. | 1844 /// |
1883 * | 1845 /// If the used [http.Client] completes with an error when making a REST |
1884 * If the used [http.Client] completes with an error when making a REST call, | 1846 /// call, this method will complete with the same error. |
1885 * this method will complete with the same error. | 1847 async.Future<GetPublisherProfilesByAccountIdResponse> list( |
1886 */ | 1848 core.int accountId) { |
1887 async.Future<GetPublisherProfilesByAccountIdResponse> list(core.int accountId)
{ | |
1888 var _url = null; | 1849 var _url = null; |
1889 var _queryParams = new core.Map(); | 1850 var _queryParams = new core.Map(); |
1890 var _uploadMedia = null; | 1851 var _uploadMedia = null; |
1891 var _uploadOptions = null; | 1852 var _uploadOptions = null; |
1892 var _downloadOptions = commons.DownloadOptions.Metadata; | 1853 var _downloadOptions = commons.DownloadOptions.Metadata; |
1893 var _body = null; | 1854 var _body = null; |
1894 | 1855 |
1895 if (accountId == null) { | 1856 if (accountId == null) { |
1896 throw new core.ArgumentError("Parameter accountId is required."); | 1857 throw new core.ArgumentError("Parameter accountId is required."); |
1897 } | 1858 } |
1898 | 1859 |
1899 _url = 'publisher/' + commons.Escaper.ecapeVariable('$accountId') + '/profil
es'; | 1860 _url = 'publisher/' + |
| 1861 commons.Escaper.ecapeVariable('$accountId') + |
| 1862 '/profiles'; |
1900 | 1863 |
1901 var _response = _requester.request(_url, | 1864 var _response = _requester.request(_url, "GET", |
1902 "GET", | 1865 body: _body, |
1903 body: _body, | 1866 queryParams: _queryParams, |
1904 queryParams: _queryParams, | 1867 uploadOptions: _uploadOptions, |
1905 uploadOptions: _uploadOptions, | 1868 uploadMedia: _uploadMedia, |
1906 uploadMedia: _uploadMedia, | 1869 downloadOptions: _downloadOptions); |
1907 downloadOptions: _downloadOptions); | 1870 return _response.then( |
1908 return _response.then((data) => new GetPublisherProfilesByAccountIdResponse.
fromJson(data)); | 1871 (data) => new GetPublisherProfilesByAccountIdResponse.fromJson(data)); |
1909 } | 1872 } |
1910 | |
1911 } | 1873 } |
1912 | 1874 |
| 1875 class AccountBidderLocation { |
| 1876 /// The protocol that the bidder endpoint is using. OpenRTB protocols with |
| 1877 /// prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON. |
| 1878 /// Allowed values: |
| 1879 /// - PROTOCOL_ADX |
| 1880 /// - PROTOCOL_OPENRTB_2_2 |
| 1881 /// - PROTOCOL_OPENRTB_2_3 |
| 1882 /// - PROTOCOL_OPENRTB_2_4 |
| 1883 /// - PROTOCOL_OPENRTB_2_5 |
| 1884 /// - PROTOCOL_OPENRTB_PROTOBUF_2_3 |
| 1885 /// - PROTOCOL_OPENRTB_PROTOBUF_2_4 |
| 1886 /// - PROTOCOL_OPENRTB_PROTOBUF_2_5 |
| 1887 core.String bidProtocol; |
1913 | 1888 |
| 1889 /// The maximum queries per second the Ad Exchange will send. |
| 1890 core.int maximumQps; |
1914 | 1891 |
1915 class AccountBidderLocation { | 1892 /// The geographical region the Ad Exchange should send requests from. Only |
1916 /** | 1893 /// used by some quota systems, but always setting the value is recommended. |
1917 * The protocol that the bidder endpoint is using. OpenRTB protocols with | 1894 /// Allowed values: |
1918 * prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON. | 1895 /// - ASIA |
1919 * Allowed values: | 1896 /// - EUROPE |
1920 * - PROTOCOL_ADX | 1897 /// - US_EAST |
1921 * - PROTOCOL_OPENRTB_2_2 | 1898 /// - US_WEST |
1922 * - PROTOCOL_OPENRTB_2_3 | |
1923 * - PROTOCOL_OPENRTB_2_4 | |
1924 * - PROTOCOL_OPENRTB_2_5 | |
1925 * - PROTOCOL_OPENRTB_PROTOBUF_2_3 | |
1926 * - PROTOCOL_OPENRTB_PROTOBUF_2_4 | |
1927 * - PROTOCOL_OPENRTB_PROTOBUF_2_5 | |
1928 */ | |
1929 core.String bidProtocol; | |
1930 /** The maximum queries per second the Ad Exchange will send. */ | |
1931 core.int maximumQps; | |
1932 /** | |
1933 * The geographical region the Ad Exchange should send requests from. Only | |
1934 * used by some quota systems, but always setting the value is recommended. | |
1935 * Allowed values: | |
1936 * - ASIA | |
1937 * - EUROPE | |
1938 * - US_EAST | |
1939 * - US_WEST | |
1940 */ | |
1941 core.String region; | 1899 core.String region; |
1942 /** The URL to which the Ad Exchange will send bid requests. */ | 1900 |
| 1901 /// The URL to which the Ad Exchange will send bid requests. |
1943 core.String url; | 1902 core.String url; |
1944 | 1903 |
1945 AccountBidderLocation(); | 1904 AccountBidderLocation(); |
1946 | 1905 |
1947 AccountBidderLocation.fromJson(core.Map _json) { | 1906 AccountBidderLocation.fromJson(core.Map _json) { |
1948 if (_json.containsKey("bidProtocol")) { | 1907 if (_json.containsKey("bidProtocol")) { |
1949 bidProtocol = _json["bidProtocol"]; | 1908 bidProtocol = _json["bidProtocol"]; |
1950 } | 1909 } |
1951 if (_json.containsKey("maximumQps")) { | 1910 if (_json.containsKey("maximumQps")) { |
1952 maximumQps = _json["maximumQps"]; | 1911 maximumQps = _json["maximumQps"]; |
1953 } | 1912 } |
1954 if (_json.containsKey("region")) { | 1913 if (_json.containsKey("region")) { |
1955 region = _json["region"]; | 1914 region = _json["region"]; |
1956 } | 1915 } |
1957 if (_json.containsKey("url")) { | 1916 if (_json.containsKey("url")) { |
1958 url = _json["url"]; | 1917 url = _json["url"]; |
1959 } | 1918 } |
1960 } | 1919 } |
1961 | 1920 |
1962 core.Map<core.String, core.Object> toJson() { | 1921 core.Map<core.String, core.Object> toJson() { |
1963 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1922 final core.Map<core.String, core.Object> _json = |
| 1923 new core.Map<core.String, core.Object>(); |
1964 if (bidProtocol != null) { | 1924 if (bidProtocol != null) { |
1965 _json["bidProtocol"] = bidProtocol; | 1925 _json["bidProtocol"] = bidProtocol; |
1966 } | 1926 } |
1967 if (maximumQps != null) { | 1927 if (maximumQps != null) { |
1968 _json["maximumQps"] = maximumQps; | 1928 _json["maximumQps"] = maximumQps; |
1969 } | 1929 } |
1970 if (region != null) { | 1930 if (region != null) { |
1971 _json["region"] = region; | 1931 _json["region"] = region; |
1972 } | 1932 } |
1973 if (url != null) { | 1933 if (url != null) { |
1974 _json["url"] = url; | 1934 _json["url"] = url; |
1975 } | 1935 } |
1976 return _json; | 1936 return _json; |
1977 } | 1937 } |
1978 } | 1938 } |
1979 | 1939 |
1980 /** Configuration data for an Ad Exchange buyer account. */ | 1940 /// Configuration data for an Ad Exchange buyer account. |
1981 class Account { | 1941 class Account { |
1982 /** Your bidder locations that have distinct URLs. */ | 1942 /// Your bidder locations that have distinct URLs. |
1983 core.List<AccountBidderLocation> bidderLocation; | 1943 core.List<AccountBidderLocation> bidderLocation; |
1984 /** | 1944 |
1985 * The nid parameter value used in cookie match requests. Please contact your | 1945 /// The nid parameter value used in cookie match requests. Please contact |
1986 * technical account manager if you need to change this. | 1946 /// your technical account manager if you need to change this. |
1987 */ | |
1988 core.String cookieMatchingNid; | 1947 core.String cookieMatchingNid; |
1989 /** The base URL used in cookie match requests. */ | 1948 |
| 1949 /// The base URL used in cookie match requests. |
1990 core.String cookieMatchingUrl; | 1950 core.String cookieMatchingUrl; |
1991 /** Account id. */ | 1951 |
| 1952 /// Account id. |
1992 core.int id; | 1953 core.int id; |
1993 /** Resource type. */ | 1954 |
| 1955 /// Resource type. |
1994 core.String kind; | 1956 core.String kind; |
1995 /** | 1957 |
1996 * The maximum number of active creatives that an account can have, where a | 1958 /// The maximum number of active creatives that an account can have, where a |
1997 * creative is active if it was inserted or bid with in the last 30 days. | 1959 /// creative is active if it was inserted or bid with in the last 30 days. |
1998 * Please contact your technical account manager if you need to change this. | 1960 /// Please contact your technical account manager if you need to change this. |
1999 */ | |
2000 core.int maximumActiveCreatives; | 1961 core.int maximumActiveCreatives; |
2001 /** | 1962 |
2002 * The sum of all bidderLocation.maximumQps values cannot exceed this. Please | 1963 /// The sum of all bidderLocation.maximumQps values cannot exceed this. |
2003 * contact your technical account manager if you need to change this. | 1964 /// Please contact your technical account manager if you need to change this. |
2004 */ | |
2005 core.int maximumTotalQps; | 1965 core.int maximumTotalQps; |
2006 /** | 1966 |
2007 * The number of creatives that this account inserted or bid with in the last | 1967 /// The number of creatives that this account inserted or bid with in the |
2008 * 30 days. | 1968 /// last 30 days. |
2009 */ | |
2010 core.int numberActiveCreatives; | 1969 core.int numberActiveCreatives; |
2011 | 1970 |
2012 Account(); | 1971 Account(); |
2013 | 1972 |
2014 Account.fromJson(core.Map _json) { | 1973 Account.fromJson(core.Map _json) { |
2015 if (_json.containsKey("bidderLocation")) { | 1974 if (_json.containsKey("bidderLocation")) { |
2016 bidderLocation = _json["bidderLocation"].map((value) => new AccountBidderL
ocation.fromJson(value)).toList(); | 1975 bidderLocation = _json["bidderLocation"] |
| 1976 .map((value) => new AccountBidderLocation.fromJson(value)) |
| 1977 .toList(); |
2017 } | 1978 } |
2018 if (_json.containsKey("cookieMatchingNid")) { | 1979 if (_json.containsKey("cookieMatchingNid")) { |
2019 cookieMatchingNid = _json["cookieMatchingNid"]; | 1980 cookieMatchingNid = _json["cookieMatchingNid"]; |
2020 } | 1981 } |
2021 if (_json.containsKey("cookieMatchingUrl")) { | 1982 if (_json.containsKey("cookieMatchingUrl")) { |
2022 cookieMatchingUrl = _json["cookieMatchingUrl"]; | 1983 cookieMatchingUrl = _json["cookieMatchingUrl"]; |
2023 } | 1984 } |
2024 if (_json.containsKey("id")) { | 1985 if (_json.containsKey("id")) { |
2025 id = _json["id"]; | 1986 id = _json["id"]; |
2026 } | 1987 } |
2027 if (_json.containsKey("kind")) { | 1988 if (_json.containsKey("kind")) { |
2028 kind = _json["kind"]; | 1989 kind = _json["kind"]; |
2029 } | 1990 } |
2030 if (_json.containsKey("maximumActiveCreatives")) { | 1991 if (_json.containsKey("maximumActiveCreatives")) { |
2031 maximumActiveCreatives = _json["maximumActiveCreatives"]; | 1992 maximumActiveCreatives = _json["maximumActiveCreatives"]; |
2032 } | 1993 } |
2033 if (_json.containsKey("maximumTotalQps")) { | 1994 if (_json.containsKey("maximumTotalQps")) { |
2034 maximumTotalQps = _json["maximumTotalQps"]; | 1995 maximumTotalQps = _json["maximumTotalQps"]; |
2035 } | 1996 } |
2036 if (_json.containsKey("numberActiveCreatives")) { | 1997 if (_json.containsKey("numberActiveCreatives")) { |
2037 numberActiveCreatives = _json["numberActiveCreatives"]; | 1998 numberActiveCreatives = _json["numberActiveCreatives"]; |
2038 } | 1999 } |
2039 } | 2000 } |
2040 | 2001 |
2041 core.Map<core.String, core.Object> toJson() { | 2002 core.Map<core.String, core.Object> toJson() { |
2042 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2003 final core.Map<core.String, core.Object> _json = |
| 2004 new core.Map<core.String, core.Object>(); |
2043 if (bidderLocation != null) { | 2005 if (bidderLocation != null) { |
2044 _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()).
toList(); | 2006 _json["bidderLocation"] = |
| 2007 bidderLocation.map((value) => (value).toJson()).toList(); |
2045 } | 2008 } |
2046 if (cookieMatchingNid != null) { | 2009 if (cookieMatchingNid != null) { |
2047 _json["cookieMatchingNid"] = cookieMatchingNid; | 2010 _json["cookieMatchingNid"] = cookieMatchingNid; |
2048 } | 2011 } |
2049 if (cookieMatchingUrl != null) { | 2012 if (cookieMatchingUrl != null) { |
2050 _json["cookieMatchingUrl"] = cookieMatchingUrl; | 2013 _json["cookieMatchingUrl"] = cookieMatchingUrl; |
2051 } | 2014 } |
2052 if (id != null) { | 2015 if (id != null) { |
2053 _json["id"] = id; | 2016 _json["id"] = id; |
2054 } | 2017 } |
2055 if (kind != null) { | 2018 if (kind != null) { |
2056 _json["kind"] = kind; | 2019 _json["kind"] = kind; |
2057 } | 2020 } |
2058 if (maximumActiveCreatives != null) { | 2021 if (maximumActiveCreatives != null) { |
2059 _json["maximumActiveCreatives"] = maximumActiveCreatives; | 2022 _json["maximumActiveCreatives"] = maximumActiveCreatives; |
2060 } | 2023 } |
2061 if (maximumTotalQps != null) { | 2024 if (maximumTotalQps != null) { |
2062 _json["maximumTotalQps"] = maximumTotalQps; | 2025 _json["maximumTotalQps"] = maximumTotalQps; |
2063 } | 2026 } |
2064 if (numberActiveCreatives != null) { | 2027 if (numberActiveCreatives != null) { |
2065 _json["numberActiveCreatives"] = numberActiveCreatives; | 2028 _json["numberActiveCreatives"] = numberActiveCreatives; |
2066 } | 2029 } |
2067 return _json; | 2030 return _json; |
2068 } | 2031 } |
2069 } | 2032 } |
2070 | 2033 |
2071 /** | 2034 /// An account feed lists Ad Exchange buyer accounts that the user has access |
2072 * An account feed lists Ad Exchange buyer accounts that the user has access to. | 2035 /// to. Each entry in the feed corresponds to a single buyer account. |
2073 * Each entry in the feed corresponds to a single buyer account. | |
2074 */ | |
2075 class AccountsList { | 2036 class AccountsList { |
2076 /** A list of accounts. */ | 2037 /// A list of accounts. |
2077 core.List<Account> items; | 2038 core.List<Account> items; |
2078 /** Resource type. */ | 2039 |
| 2040 /// Resource type. |
2079 core.String kind; | 2041 core.String kind; |
2080 | 2042 |
2081 AccountsList(); | 2043 AccountsList(); |
2082 | 2044 |
2083 AccountsList.fromJson(core.Map _json) { | 2045 AccountsList.fromJson(core.Map _json) { |
2084 if (_json.containsKey("items")) { | 2046 if (_json.containsKey("items")) { |
2085 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); | 2047 items = |
| 2048 _json["items"].map((value) => new Account.fromJson(value)).toList(); |
2086 } | 2049 } |
2087 if (_json.containsKey("kind")) { | 2050 if (_json.containsKey("kind")) { |
2088 kind = _json["kind"]; | 2051 kind = _json["kind"]; |
2089 } | 2052 } |
2090 } | 2053 } |
2091 | 2054 |
2092 core.Map<core.String, core.Object> toJson() { | 2055 core.Map<core.String, core.Object> toJson() { |
2093 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2056 final core.Map<core.String, core.Object> _json = |
| 2057 new core.Map<core.String, core.Object>(); |
2094 if (items != null) { | 2058 if (items != null) { |
2095 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2059 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2096 } | 2060 } |
2097 if (kind != null) { | 2061 if (kind != null) { |
2098 _json["kind"] = kind; | 2062 _json["kind"] = kind; |
2099 } | 2063 } |
2100 return _json; | 2064 return _json; |
2101 } | 2065 } |
2102 } | 2066 } |
2103 | 2067 |
2104 class AddOrderDealsRequest { | 2068 class AddOrderDealsRequest { |
2105 /** The list of deals to add */ | 2069 /// The list of deals to add |
2106 core.List<MarketplaceDeal> deals; | 2070 core.List<MarketplaceDeal> deals; |
2107 /** The last known proposal revision number. */ | 2071 |
| 2072 /// The last known proposal revision number. |
2108 core.String proposalRevisionNumber; | 2073 core.String proposalRevisionNumber; |
2109 /** Indicates an optional action to take on the proposal */ | 2074 |
| 2075 /// Indicates an optional action to take on the proposal |
2110 core.String updateAction; | 2076 core.String updateAction; |
2111 | 2077 |
2112 AddOrderDealsRequest(); | 2078 AddOrderDealsRequest(); |
2113 | 2079 |
2114 AddOrderDealsRequest.fromJson(core.Map _json) { | 2080 AddOrderDealsRequest.fromJson(core.Map _json) { |
2115 if (_json.containsKey("deals")) { | 2081 if (_json.containsKey("deals")) { |
2116 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); | 2082 deals = _json["deals"] |
| 2083 .map((value) => new MarketplaceDeal.fromJson(value)) |
| 2084 .toList(); |
2117 } | 2085 } |
2118 if (_json.containsKey("proposalRevisionNumber")) { | 2086 if (_json.containsKey("proposalRevisionNumber")) { |
2119 proposalRevisionNumber = _json["proposalRevisionNumber"]; | 2087 proposalRevisionNumber = _json["proposalRevisionNumber"]; |
2120 } | 2088 } |
2121 if (_json.containsKey("updateAction")) { | 2089 if (_json.containsKey("updateAction")) { |
2122 updateAction = _json["updateAction"]; | 2090 updateAction = _json["updateAction"]; |
2123 } | 2091 } |
2124 } | 2092 } |
2125 | 2093 |
2126 core.Map<core.String, core.Object> toJson() { | 2094 core.Map<core.String, core.Object> toJson() { |
2127 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2095 final core.Map<core.String, core.Object> _json = |
| 2096 new core.Map<core.String, core.Object>(); |
2128 if (deals != null) { | 2097 if (deals != null) { |
2129 _json["deals"] = deals.map((value) => (value).toJson()).toList(); | 2098 _json["deals"] = deals.map((value) => (value).toJson()).toList(); |
2130 } | 2099 } |
2131 if (proposalRevisionNumber != null) { | 2100 if (proposalRevisionNumber != null) { |
2132 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 2101 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
2133 } | 2102 } |
2134 if (updateAction != null) { | 2103 if (updateAction != null) { |
2135 _json["updateAction"] = updateAction; | 2104 _json["updateAction"] = updateAction; |
2136 } | 2105 } |
2137 return _json; | 2106 return _json; |
2138 } | 2107 } |
2139 } | 2108 } |
2140 | 2109 |
2141 class AddOrderDealsResponse { | 2110 class AddOrderDealsResponse { |
2142 /** List of deals added (in the same proposal as passed in the request) */ | 2111 /// List of deals added (in the same proposal as passed in the request) |
2143 core.List<MarketplaceDeal> deals; | 2112 core.List<MarketplaceDeal> deals; |
2144 /** The updated revision number for the proposal. */ | 2113 |
| 2114 /// The updated revision number for the proposal. |
2145 core.String proposalRevisionNumber; | 2115 core.String proposalRevisionNumber; |
2146 | 2116 |
2147 AddOrderDealsResponse(); | 2117 AddOrderDealsResponse(); |
2148 | 2118 |
2149 AddOrderDealsResponse.fromJson(core.Map _json) { | 2119 AddOrderDealsResponse.fromJson(core.Map _json) { |
2150 if (_json.containsKey("deals")) { | 2120 if (_json.containsKey("deals")) { |
2151 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); | 2121 deals = _json["deals"] |
| 2122 .map((value) => new MarketplaceDeal.fromJson(value)) |
| 2123 .toList(); |
2152 } | 2124 } |
2153 if (_json.containsKey("proposalRevisionNumber")) { | 2125 if (_json.containsKey("proposalRevisionNumber")) { |
2154 proposalRevisionNumber = _json["proposalRevisionNumber"]; | 2126 proposalRevisionNumber = _json["proposalRevisionNumber"]; |
2155 } | 2127 } |
2156 } | 2128 } |
2157 | 2129 |
2158 core.Map<core.String, core.Object> toJson() { | 2130 core.Map<core.String, core.Object> toJson() { |
2159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2131 final core.Map<core.String, core.Object> _json = |
| 2132 new core.Map<core.String, core.Object>(); |
2160 if (deals != null) { | 2133 if (deals != null) { |
2161 _json["deals"] = deals.map((value) => (value).toJson()).toList(); | 2134 _json["deals"] = deals.map((value) => (value).toJson()).toList(); |
2162 } | 2135 } |
2163 if (proposalRevisionNumber != null) { | 2136 if (proposalRevisionNumber != null) { |
2164 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 2137 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
2165 } | 2138 } |
2166 return _json; | 2139 return _json; |
2167 } | 2140 } |
2168 } | 2141 } |
2169 | 2142 |
2170 class AddOrderNotesRequest { | 2143 class AddOrderNotesRequest { |
2171 /** The list of notes to add. */ | 2144 /// The list of notes to add. |
2172 core.List<MarketplaceNote> notes; | 2145 core.List<MarketplaceNote> notes; |
2173 | 2146 |
2174 AddOrderNotesRequest(); | 2147 AddOrderNotesRequest(); |
2175 | 2148 |
2176 AddOrderNotesRequest.fromJson(core.Map _json) { | 2149 AddOrderNotesRequest.fromJson(core.Map _json) { |
2177 if (_json.containsKey("notes")) { | 2150 if (_json.containsKey("notes")) { |
2178 notes = _json["notes"].map((value) => new MarketplaceNote.fromJson(value))
.toList(); | 2151 notes = _json["notes"] |
| 2152 .map((value) => new MarketplaceNote.fromJson(value)) |
| 2153 .toList(); |
2179 } | 2154 } |
2180 } | 2155 } |
2181 | 2156 |
2182 core.Map<core.String, core.Object> toJson() { | 2157 core.Map<core.String, core.Object> toJson() { |
2183 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2158 final core.Map<core.String, core.Object> _json = |
| 2159 new core.Map<core.String, core.Object>(); |
2184 if (notes != null) { | 2160 if (notes != null) { |
2185 _json["notes"] = notes.map((value) => (value).toJson()).toList(); | 2161 _json["notes"] = notes.map((value) => (value).toJson()).toList(); |
2186 } | 2162 } |
2187 return _json; | 2163 return _json; |
2188 } | 2164 } |
2189 } | 2165 } |
2190 | 2166 |
2191 class AddOrderNotesResponse { | 2167 class AddOrderNotesResponse { |
2192 core.List<MarketplaceNote> notes; | 2168 core.List<MarketplaceNote> notes; |
2193 | 2169 |
2194 AddOrderNotesResponse(); | 2170 AddOrderNotesResponse(); |
2195 | 2171 |
2196 AddOrderNotesResponse.fromJson(core.Map _json) { | 2172 AddOrderNotesResponse.fromJson(core.Map _json) { |
2197 if (_json.containsKey("notes")) { | 2173 if (_json.containsKey("notes")) { |
2198 notes = _json["notes"].map((value) => new MarketplaceNote.fromJson(value))
.toList(); | 2174 notes = _json["notes"] |
| 2175 .map((value) => new MarketplaceNote.fromJson(value)) |
| 2176 .toList(); |
2199 } | 2177 } |
2200 } | 2178 } |
2201 | 2179 |
2202 core.Map<core.String, core.Object> toJson() { | 2180 core.Map<core.String, core.Object> toJson() { |
2203 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2181 final core.Map<core.String, core.Object> _json = |
| 2182 new core.Map<core.String, core.Object>(); |
2204 if (notes != null) { | 2183 if (notes != null) { |
2205 _json["notes"] = notes.map((value) => (value).toJson()).toList(); | 2184 _json["notes"] = notes.map((value) => (value).toJson()).toList(); |
2206 } | 2185 } |
2207 return _json; | 2186 return _json; |
2208 } | 2187 } |
2209 } | 2188 } |
2210 | 2189 |
2211 /** The configuration data for an Ad Exchange billing info. */ | 2190 /// The configuration data for an Ad Exchange billing info. |
2212 class BillingInfo { | 2191 class BillingInfo { |
2213 /** Account id. */ | 2192 /// Account id. |
2214 core.int accountId; | 2193 core.int accountId; |
2215 /** Account name. */ | 2194 |
| 2195 /// Account name. |
2216 core.String accountName; | 2196 core.String accountName; |
2217 /** | 2197 |
2218 * A list of adgroup IDs associated with this particular account. These IDs | 2198 /// A list of adgroup IDs associated with this particular account. These IDs |
2219 * may show up as part of a realtime bidding BidRequest, which indicates a bid | 2199 /// may show up as part of a realtime bidding BidRequest, which indicates a |
2220 * request for this account. | 2200 /// bid request for this account. |
2221 */ | |
2222 core.List<core.String> billingId; | 2201 core.List<core.String> billingId; |
2223 /** Resource type. */ | 2202 |
| 2203 /// Resource type. |
2224 core.String kind; | 2204 core.String kind; |
2225 | 2205 |
2226 BillingInfo(); | 2206 BillingInfo(); |
2227 | 2207 |
2228 BillingInfo.fromJson(core.Map _json) { | 2208 BillingInfo.fromJson(core.Map _json) { |
2229 if (_json.containsKey("accountId")) { | 2209 if (_json.containsKey("accountId")) { |
2230 accountId = _json["accountId"]; | 2210 accountId = _json["accountId"]; |
2231 } | 2211 } |
2232 if (_json.containsKey("accountName")) { | 2212 if (_json.containsKey("accountName")) { |
2233 accountName = _json["accountName"]; | 2213 accountName = _json["accountName"]; |
2234 } | 2214 } |
2235 if (_json.containsKey("billingId")) { | 2215 if (_json.containsKey("billingId")) { |
2236 billingId = _json["billingId"]; | 2216 billingId = _json["billingId"]; |
2237 } | 2217 } |
2238 if (_json.containsKey("kind")) { | 2218 if (_json.containsKey("kind")) { |
2239 kind = _json["kind"]; | 2219 kind = _json["kind"]; |
2240 } | 2220 } |
2241 } | 2221 } |
2242 | 2222 |
2243 core.Map<core.String, core.Object> toJson() { | 2223 core.Map<core.String, core.Object> toJson() { |
2244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2224 final core.Map<core.String, core.Object> _json = |
| 2225 new core.Map<core.String, core.Object>(); |
2245 if (accountId != null) { | 2226 if (accountId != null) { |
2246 _json["accountId"] = accountId; | 2227 _json["accountId"] = accountId; |
2247 } | 2228 } |
2248 if (accountName != null) { | 2229 if (accountName != null) { |
2249 _json["accountName"] = accountName; | 2230 _json["accountName"] = accountName; |
2250 } | 2231 } |
2251 if (billingId != null) { | 2232 if (billingId != null) { |
2252 _json["billingId"] = billingId; | 2233 _json["billingId"] = billingId; |
2253 } | 2234 } |
2254 if (kind != null) { | 2235 if (kind != null) { |
2255 _json["kind"] = kind; | 2236 _json["kind"] = kind; |
2256 } | 2237 } |
2257 return _json; | 2238 return _json; |
2258 } | 2239 } |
2259 } | 2240 } |
2260 | 2241 |
2261 /** | 2242 /// A billing info feed lists Billing Info the Ad Exchange buyer account has |
2262 * A billing info feed lists Billing Info the Ad Exchange buyer account has | 2243 /// access to. Each entry in the feed corresponds to a single billing info. |
2263 * access to. Each entry in the feed corresponds to a single billing info. | |
2264 */ | |
2265 class BillingInfoList { | 2244 class BillingInfoList { |
2266 /** A list of billing info relevant for your account. */ | 2245 /// A list of billing info relevant for your account. |
2267 core.List<BillingInfo> items; | 2246 core.List<BillingInfo> items; |
2268 /** Resource type. */ | 2247 |
| 2248 /// Resource type. |
2269 core.String kind; | 2249 core.String kind; |
2270 | 2250 |
2271 BillingInfoList(); | 2251 BillingInfoList(); |
2272 | 2252 |
2273 BillingInfoList.fromJson(core.Map _json) { | 2253 BillingInfoList.fromJson(core.Map _json) { |
2274 if (_json.containsKey("items")) { | 2254 if (_json.containsKey("items")) { |
2275 items = _json["items"].map((value) => new BillingInfo.fromJson(value)).toL
ist(); | 2255 items = _json["items"] |
| 2256 .map((value) => new BillingInfo.fromJson(value)) |
| 2257 .toList(); |
2276 } | 2258 } |
2277 if (_json.containsKey("kind")) { | 2259 if (_json.containsKey("kind")) { |
2278 kind = _json["kind"]; | 2260 kind = _json["kind"]; |
2279 } | 2261 } |
2280 } | 2262 } |
2281 | 2263 |
2282 core.Map<core.String, core.Object> toJson() { | 2264 core.Map<core.String, core.Object> toJson() { |
2283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2265 final core.Map<core.String, core.Object> _json = |
| 2266 new core.Map<core.String, core.Object>(); |
2284 if (items != null) { | 2267 if (items != null) { |
2285 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2268 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2286 } | 2269 } |
2287 if (kind != null) { | 2270 if (kind != null) { |
2288 _json["kind"] = kind; | 2271 _json["kind"] = kind; |
2289 } | 2272 } |
2290 return _json; | 2273 return _json; |
2291 } | 2274 } |
2292 } | 2275 } |
2293 | 2276 |
2294 /** The configuration data for Ad Exchange RTB - Budget API. */ | 2277 /// The configuration data for Ad Exchange RTB - Budget API. |
2295 class Budget { | 2278 class Budget { |
2296 /** The id of the account. This is required for get and update requests. */ | 2279 /// The id of the account. This is required for get and update requests. |
2297 core.String accountId; | 2280 core.String accountId; |
2298 /** | 2281 |
2299 * The billing id to determine which adgroup to provide budget information | 2282 /// The billing id to determine which adgroup to provide budget information |
2300 * for. This is required for get and update requests. | 2283 /// for. This is required for get and update requests. |
2301 */ | |
2302 core.String billingId; | 2284 core.String billingId; |
2303 /** | 2285 |
2304 * The daily budget amount in unit amount of the account currency to apply for | 2286 /// The daily budget amount in unit amount of the account currency to apply |
2305 * the billingId provided. This is required for update requests. | 2287 /// for the billingId provided. This is required for update requests. |
2306 */ | |
2307 core.String budgetAmount; | 2288 core.String budgetAmount; |
2308 /** The currency code for the buyer. This cannot be altered here. */ | 2289 |
| 2290 /// The currency code for the buyer. This cannot be altered here. |
2309 core.String currencyCode; | 2291 core.String currencyCode; |
2310 /** The unique id that describes this item. */ | 2292 |
| 2293 /// The unique id that describes this item. |
2311 core.String id; | 2294 core.String id; |
2312 /** The kind of the resource, i.e. "adexchangebuyer#budget". */ | 2295 |
| 2296 /// The kind of the resource, i.e. "adexchangebuyer#budget". |
2313 core.String kind; | 2297 core.String kind; |
2314 | 2298 |
2315 Budget(); | 2299 Budget(); |
2316 | 2300 |
2317 Budget.fromJson(core.Map _json) { | 2301 Budget.fromJson(core.Map _json) { |
2318 if (_json.containsKey("accountId")) { | 2302 if (_json.containsKey("accountId")) { |
2319 accountId = _json["accountId"]; | 2303 accountId = _json["accountId"]; |
2320 } | 2304 } |
2321 if (_json.containsKey("billingId")) { | 2305 if (_json.containsKey("billingId")) { |
2322 billingId = _json["billingId"]; | 2306 billingId = _json["billingId"]; |
2323 } | 2307 } |
2324 if (_json.containsKey("budgetAmount")) { | 2308 if (_json.containsKey("budgetAmount")) { |
2325 budgetAmount = _json["budgetAmount"]; | 2309 budgetAmount = _json["budgetAmount"]; |
2326 } | 2310 } |
2327 if (_json.containsKey("currencyCode")) { | 2311 if (_json.containsKey("currencyCode")) { |
2328 currencyCode = _json["currencyCode"]; | 2312 currencyCode = _json["currencyCode"]; |
2329 } | 2313 } |
2330 if (_json.containsKey("id")) { | 2314 if (_json.containsKey("id")) { |
2331 id = _json["id"]; | 2315 id = _json["id"]; |
2332 } | 2316 } |
2333 if (_json.containsKey("kind")) { | 2317 if (_json.containsKey("kind")) { |
2334 kind = _json["kind"]; | 2318 kind = _json["kind"]; |
2335 } | 2319 } |
2336 } | 2320 } |
2337 | 2321 |
2338 core.Map<core.String, core.Object> toJson() { | 2322 core.Map<core.String, core.Object> toJson() { |
2339 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2323 final core.Map<core.String, core.Object> _json = |
| 2324 new core.Map<core.String, core.Object>(); |
2340 if (accountId != null) { | 2325 if (accountId != null) { |
2341 _json["accountId"] = accountId; | 2326 _json["accountId"] = accountId; |
2342 } | 2327 } |
2343 if (billingId != null) { | 2328 if (billingId != null) { |
2344 _json["billingId"] = billingId; | 2329 _json["billingId"] = billingId; |
2345 } | 2330 } |
2346 if (budgetAmount != null) { | 2331 if (budgetAmount != null) { |
2347 _json["budgetAmount"] = budgetAmount; | 2332 _json["budgetAmount"] = budgetAmount; |
2348 } | 2333 } |
2349 if (currencyCode != null) { | 2334 if (currencyCode != null) { |
2350 _json["currencyCode"] = currencyCode; | 2335 _json["currencyCode"] = currencyCode; |
2351 } | 2336 } |
2352 if (id != null) { | 2337 if (id != null) { |
2353 _json["id"] = id; | 2338 _json["id"] = id; |
2354 } | 2339 } |
2355 if (kind != null) { | 2340 if (kind != null) { |
2356 _json["kind"] = kind; | 2341 _json["kind"] = kind; |
2357 } | 2342 } |
2358 return _json; | 2343 return _json; |
2359 } | 2344 } |
2360 } | 2345 } |
2361 | 2346 |
2362 class Buyer { | 2347 class Buyer { |
2363 /** Adx account id of the buyer. */ | 2348 /// Adx account id of the buyer. |
2364 core.String accountId; | 2349 core.String accountId; |
2365 | 2350 |
2366 Buyer(); | 2351 Buyer(); |
2367 | 2352 |
2368 Buyer.fromJson(core.Map _json) { | 2353 Buyer.fromJson(core.Map _json) { |
2369 if (_json.containsKey("accountId")) { | 2354 if (_json.containsKey("accountId")) { |
2370 accountId = _json["accountId"]; | 2355 accountId = _json["accountId"]; |
2371 } | 2356 } |
2372 } | 2357 } |
2373 | 2358 |
2374 core.Map<core.String, core.Object> toJson() { | 2359 core.Map<core.String, core.Object> toJson() { |
2375 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2360 final core.Map<core.String, core.Object> _json = |
| 2361 new core.Map<core.String, core.Object>(); |
2376 if (accountId != null) { | 2362 if (accountId != null) { |
2377 _json["accountId"] = accountId; | 2363 _json["accountId"] = accountId; |
2378 } | 2364 } |
2379 return _json; | 2365 return _json; |
2380 } | 2366 } |
2381 } | 2367 } |
2382 | 2368 |
2383 class ContactInformation { | 2369 class ContactInformation { |
2384 /** Email address of the contact. */ | 2370 /// Email address of the contact. |
2385 core.String email; | 2371 core.String email; |
2386 /** The name of the contact. */ | 2372 |
| 2373 /// The name of the contact. |
2387 core.String name; | 2374 core.String name; |
2388 | 2375 |
2389 ContactInformation(); | 2376 ContactInformation(); |
2390 | 2377 |
2391 ContactInformation.fromJson(core.Map _json) { | 2378 ContactInformation.fromJson(core.Map _json) { |
2392 if (_json.containsKey("email")) { | 2379 if (_json.containsKey("email")) { |
2393 email = _json["email"]; | 2380 email = _json["email"]; |
2394 } | 2381 } |
2395 if (_json.containsKey("name")) { | 2382 if (_json.containsKey("name")) { |
2396 name = _json["name"]; | 2383 name = _json["name"]; |
2397 } | 2384 } |
2398 } | 2385 } |
2399 | 2386 |
2400 core.Map<core.String, core.Object> toJson() { | 2387 core.Map<core.String, core.Object> toJson() { |
2401 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2388 final core.Map<core.String, core.Object> _json = |
| 2389 new core.Map<core.String, core.Object>(); |
2402 if (email != null) { | 2390 if (email != null) { |
2403 _json["email"] = email; | 2391 _json["email"] = email; |
2404 } | 2392 } |
2405 if (name != null) { | 2393 if (name != null) { |
2406 _json["name"] = name; | 2394 _json["name"] = name; |
2407 } | 2395 } |
2408 return _json; | 2396 return _json; |
2409 } | 2397 } |
2410 } | 2398 } |
2411 | 2399 |
2412 class CreateOrdersRequest { | 2400 class CreateOrdersRequest { |
2413 /** The list of proposals to create. */ | 2401 /// The list of proposals to create. |
2414 core.List<Proposal> proposals; | 2402 core.List<Proposal> proposals; |
2415 /** Web property id of the seller creating these orders */ | 2403 |
| 2404 /// Web property id of the seller creating these orders |
2416 core.String webPropertyCode; | 2405 core.String webPropertyCode; |
2417 | 2406 |
2418 CreateOrdersRequest(); | 2407 CreateOrdersRequest(); |
2419 | 2408 |
2420 CreateOrdersRequest.fromJson(core.Map _json) { | 2409 CreateOrdersRequest.fromJson(core.Map _json) { |
2421 if (_json.containsKey("proposals")) { | 2410 if (_json.containsKey("proposals")) { |
2422 proposals = _json["proposals"].map((value) => new Proposal.fromJson(value)
).toList(); | 2411 proposals = _json["proposals"] |
| 2412 .map((value) => new Proposal.fromJson(value)) |
| 2413 .toList(); |
2423 } | 2414 } |
2424 if (_json.containsKey("webPropertyCode")) { | 2415 if (_json.containsKey("webPropertyCode")) { |
2425 webPropertyCode = _json["webPropertyCode"]; | 2416 webPropertyCode = _json["webPropertyCode"]; |
2426 } | 2417 } |
2427 } | 2418 } |
2428 | 2419 |
2429 core.Map<core.String, core.Object> toJson() { | 2420 core.Map<core.String, core.Object> toJson() { |
2430 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2421 final core.Map<core.String, core.Object> _json = |
| 2422 new core.Map<core.String, core.Object>(); |
2431 if (proposals != null) { | 2423 if (proposals != null) { |
2432 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); | 2424 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); |
2433 } | 2425 } |
2434 if (webPropertyCode != null) { | 2426 if (webPropertyCode != null) { |
2435 _json["webPropertyCode"] = webPropertyCode; | 2427 _json["webPropertyCode"] = webPropertyCode; |
2436 } | 2428 } |
2437 return _json; | 2429 return _json; |
2438 } | 2430 } |
2439 } | 2431 } |
2440 | 2432 |
2441 class CreateOrdersResponse { | 2433 class CreateOrdersResponse { |
2442 /** The list of proposals successfully created. */ | 2434 /// The list of proposals successfully created. |
2443 core.List<Proposal> proposals; | 2435 core.List<Proposal> proposals; |
2444 | 2436 |
2445 CreateOrdersResponse(); | 2437 CreateOrdersResponse(); |
2446 | 2438 |
2447 CreateOrdersResponse.fromJson(core.Map _json) { | 2439 CreateOrdersResponse.fromJson(core.Map _json) { |
2448 if (_json.containsKey("proposals")) { | 2440 if (_json.containsKey("proposals")) { |
2449 proposals = _json["proposals"].map((value) => new Proposal.fromJson(value)
).toList(); | 2441 proposals = _json["proposals"] |
| 2442 .map((value) => new Proposal.fromJson(value)) |
| 2443 .toList(); |
2450 } | 2444 } |
2451 } | 2445 } |
2452 | 2446 |
2453 core.Map<core.String, core.Object> toJson() { | 2447 core.Map<core.String, core.Object> toJson() { |
2454 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2448 final core.Map<core.String, core.Object> _json = |
| 2449 new core.Map<core.String, core.Object>(); |
2455 if (proposals != null) { | 2450 if (proposals != null) { |
2456 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); | 2451 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); |
2457 } | 2452 } |
2458 return _json; | 2453 return _json; |
2459 } | 2454 } |
2460 } | 2455 } |
2461 | 2456 |
2462 class CreativeCorrectionsContexts { | 2457 class CreativeCorrectionsContexts { |
2463 /** | 2458 /// Only set when contextType=AUCTION_TYPE. Represents the auction types this |
2464 * Only set when contextType=AUCTION_TYPE. Represents the auction types this | 2459 /// correction applies to. |
2465 * correction applies to. | |
2466 */ | |
2467 core.List<core.String> auctionType; | 2460 core.List<core.String> auctionType; |
2468 /** | 2461 |
2469 * The type of context (e.g., location, platform, auction type, SSL-ness). | 2462 /// The type of context (e.g., location, platform, auction type, SSL-ness). |
2470 */ | |
2471 core.String contextType; | 2463 core.String contextType; |
2472 /** | 2464 |
2473 * Only set when contextType=LOCATION. Represents the geo criterias this | 2465 /// Only set when contextType=LOCATION. Represents the geo criterias this |
2474 * correction applies to. | 2466 /// correction applies to. |
2475 */ | |
2476 core.List<core.int> geoCriteriaId; | 2467 core.List<core.int> geoCriteriaId; |
2477 /** | 2468 |
2478 * Only set when contextType=PLATFORM. Represents the platforms this | 2469 /// Only set when contextType=PLATFORM. Represents the platforms this |
2479 * correction applies to. | 2470 /// correction applies to. |
2480 */ | |
2481 core.List<core.String> platform; | 2471 core.List<core.String> platform; |
2482 | 2472 |
2483 CreativeCorrectionsContexts(); | 2473 CreativeCorrectionsContexts(); |
2484 | 2474 |
2485 CreativeCorrectionsContexts.fromJson(core.Map _json) { | 2475 CreativeCorrectionsContexts.fromJson(core.Map _json) { |
2486 if (_json.containsKey("auctionType")) { | 2476 if (_json.containsKey("auctionType")) { |
2487 auctionType = _json["auctionType"]; | 2477 auctionType = _json["auctionType"]; |
2488 } | 2478 } |
2489 if (_json.containsKey("contextType")) { | 2479 if (_json.containsKey("contextType")) { |
2490 contextType = _json["contextType"]; | 2480 contextType = _json["contextType"]; |
2491 } | 2481 } |
2492 if (_json.containsKey("geoCriteriaId")) { | 2482 if (_json.containsKey("geoCriteriaId")) { |
2493 geoCriteriaId = _json["geoCriteriaId"]; | 2483 geoCriteriaId = _json["geoCriteriaId"]; |
2494 } | 2484 } |
2495 if (_json.containsKey("platform")) { | 2485 if (_json.containsKey("platform")) { |
2496 platform = _json["platform"]; | 2486 platform = _json["platform"]; |
2497 } | 2487 } |
2498 } | 2488 } |
2499 | 2489 |
2500 core.Map<core.String, core.Object> toJson() { | 2490 core.Map<core.String, core.Object> toJson() { |
2501 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2491 final core.Map<core.String, core.Object> _json = |
| 2492 new core.Map<core.String, core.Object>(); |
2502 if (auctionType != null) { | 2493 if (auctionType != null) { |
2503 _json["auctionType"] = auctionType; | 2494 _json["auctionType"] = auctionType; |
2504 } | 2495 } |
2505 if (contextType != null) { | 2496 if (contextType != null) { |
2506 _json["contextType"] = contextType; | 2497 _json["contextType"] = contextType; |
2507 } | 2498 } |
2508 if (geoCriteriaId != null) { | 2499 if (geoCriteriaId != null) { |
2509 _json["geoCriteriaId"] = geoCriteriaId; | 2500 _json["geoCriteriaId"] = geoCriteriaId; |
2510 } | 2501 } |
2511 if (platform != null) { | 2502 if (platform != null) { |
2512 _json["platform"] = platform; | 2503 _json["platform"] = platform; |
2513 } | 2504 } |
2514 return _json; | 2505 return _json; |
2515 } | 2506 } |
2516 } | 2507 } |
2517 | 2508 |
2518 class CreativeCorrections { | 2509 class CreativeCorrections { |
2519 /** All known serving contexts containing serving status information. */ | 2510 /// All known serving contexts containing serving status information. |
2520 core.List<CreativeCorrectionsContexts> contexts; | 2511 core.List<CreativeCorrectionsContexts> contexts; |
2521 /** Additional details about the correction. */ | 2512 |
| 2513 /// Additional details about the correction. |
2522 core.List<core.String> details; | 2514 core.List<core.String> details; |
2523 /** The type of correction that was applied to the creative. */ | 2515 |
| 2516 /// The type of correction that was applied to the creative. |
2524 core.String reason; | 2517 core.String reason; |
2525 | 2518 |
2526 CreativeCorrections(); | 2519 CreativeCorrections(); |
2527 | 2520 |
2528 CreativeCorrections.fromJson(core.Map _json) { | 2521 CreativeCorrections.fromJson(core.Map _json) { |
2529 if (_json.containsKey("contexts")) { | 2522 if (_json.containsKey("contexts")) { |
2530 contexts = _json["contexts"].map((value) => new CreativeCorrectionsContext
s.fromJson(value)).toList(); | 2523 contexts = _json["contexts"] |
| 2524 .map((value) => new CreativeCorrectionsContexts.fromJson(value)) |
| 2525 .toList(); |
2531 } | 2526 } |
2532 if (_json.containsKey("details")) { | 2527 if (_json.containsKey("details")) { |
2533 details = _json["details"]; | 2528 details = _json["details"]; |
2534 } | 2529 } |
2535 if (_json.containsKey("reason")) { | 2530 if (_json.containsKey("reason")) { |
2536 reason = _json["reason"]; | 2531 reason = _json["reason"]; |
2537 } | 2532 } |
2538 } | 2533 } |
2539 | 2534 |
2540 core.Map<core.String, core.Object> toJson() { | 2535 core.Map<core.String, core.Object> toJson() { |
2541 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2536 final core.Map<core.String, core.Object> _json = |
| 2537 new core.Map<core.String, core.Object>(); |
2542 if (contexts != null) { | 2538 if (contexts != null) { |
2543 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); | 2539 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); |
2544 } | 2540 } |
2545 if (details != null) { | 2541 if (details != null) { |
2546 _json["details"] = details; | 2542 _json["details"] = details; |
2547 } | 2543 } |
2548 if (reason != null) { | 2544 if (reason != null) { |
2549 _json["reason"] = reason; | 2545 _json["reason"] = reason; |
2550 } | 2546 } |
2551 return _json; | 2547 return _json; |
2552 } | 2548 } |
2553 } | 2549 } |
2554 | 2550 |
2555 class CreativeFilteringReasonsReasons { | 2551 class CreativeFilteringReasonsReasons { |
2556 /** | 2552 /// The number of times the creative was filtered for the status. The count |
2557 * The number of times the creative was filtered for the status. The count is | 2553 /// is aggregated across all publishers on the exchange. |
2558 * aggregated across all publishers on the exchange. | |
2559 */ | |
2560 core.String filteringCount; | 2554 core.String filteringCount; |
2561 /** The filtering status code as defined in creative-status-codes.txt. */ | 2555 |
| 2556 /// The filtering status code as defined in creative-status-codes.txt. |
2562 core.int filteringStatus; | 2557 core.int filteringStatus; |
2563 | 2558 |
2564 CreativeFilteringReasonsReasons(); | 2559 CreativeFilteringReasonsReasons(); |
2565 | 2560 |
2566 CreativeFilteringReasonsReasons.fromJson(core.Map _json) { | 2561 CreativeFilteringReasonsReasons.fromJson(core.Map _json) { |
2567 if (_json.containsKey("filteringCount")) { | 2562 if (_json.containsKey("filteringCount")) { |
2568 filteringCount = _json["filteringCount"]; | 2563 filteringCount = _json["filteringCount"]; |
2569 } | 2564 } |
2570 if (_json.containsKey("filteringStatus")) { | 2565 if (_json.containsKey("filteringStatus")) { |
2571 filteringStatus = _json["filteringStatus"]; | 2566 filteringStatus = _json["filteringStatus"]; |
2572 } | 2567 } |
2573 } | 2568 } |
2574 | 2569 |
2575 core.Map<core.String, core.Object> toJson() { | 2570 core.Map<core.String, core.Object> toJson() { |
2576 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2571 final core.Map<core.String, core.Object> _json = |
| 2572 new core.Map<core.String, core.Object>(); |
2577 if (filteringCount != null) { | 2573 if (filteringCount != null) { |
2578 _json["filteringCount"] = filteringCount; | 2574 _json["filteringCount"] = filteringCount; |
2579 } | 2575 } |
2580 if (filteringStatus != null) { | 2576 if (filteringStatus != null) { |
2581 _json["filteringStatus"] = filteringStatus; | 2577 _json["filteringStatus"] = filteringStatus; |
2582 } | 2578 } |
2583 return _json; | 2579 return _json; |
2584 } | 2580 } |
2585 } | 2581 } |
2586 | 2582 |
2587 /** | 2583 /// The filtering reasons for the creative. Read-only. This field should not be |
2588 * The filtering reasons for the creative. Read-only. This field should not be | 2584 /// set in requests. |
2589 * set in requests. | |
2590 */ | |
2591 class CreativeFilteringReasons { | 2585 class CreativeFilteringReasons { |
2592 /** | 2586 /// The date in ISO 8601 format for the data. The data is collected from |
2593 * The date in ISO 8601 format for the data. The data is collected from | 2587 /// 00:00:00 to 23:59:59 in PST. |
2594 * 00:00:00 to 23:59:59 in PST. | |
2595 */ | |
2596 core.String date; | 2588 core.String date; |
2597 /** The filtering reasons. */ | 2589 |
| 2590 /// The filtering reasons. |
2598 core.List<CreativeFilteringReasonsReasons> reasons; | 2591 core.List<CreativeFilteringReasonsReasons> reasons; |
2599 | 2592 |
2600 CreativeFilteringReasons(); | 2593 CreativeFilteringReasons(); |
2601 | 2594 |
2602 CreativeFilteringReasons.fromJson(core.Map _json) { | 2595 CreativeFilteringReasons.fromJson(core.Map _json) { |
2603 if (_json.containsKey("date")) { | 2596 if (_json.containsKey("date")) { |
2604 date = _json["date"]; | 2597 date = _json["date"]; |
2605 } | 2598 } |
2606 if (_json.containsKey("reasons")) { | 2599 if (_json.containsKey("reasons")) { |
2607 reasons = _json["reasons"].map((value) => new CreativeFilteringReasonsReas
ons.fromJson(value)).toList(); | 2600 reasons = _json["reasons"] |
| 2601 .map((value) => new CreativeFilteringReasonsReasons.fromJson(value)) |
| 2602 .toList(); |
2608 } | 2603 } |
2609 } | 2604 } |
2610 | 2605 |
2611 core.Map<core.String, core.Object> toJson() { | 2606 core.Map<core.String, core.Object> toJson() { |
2612 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2607 final core.Map<core.String, core.Object> _json = |
| 2608 new core.Map<core.String, core.Object>(); |
2613 if (date != null) { | 2609 if (date != null) { |
2614 _json["date"] = date; | 2610 _json["date"] = date; |
2615 } | 2611 } |
2616 if (reasons != null) { | 2612 if (reasons != null) { |
2617 _json["reasons"] = reasons.map((value) => (value).toJson()).toList(); | 2613 _json["reasons"] = reasons.map((value) => (value).toJson()).toList(); |
2618 } | 2614 } |
2619 return _json; | 2615 return _json; |
2620 } | 2616 } |
2621 } | 2617 } |
2622 | 2618 |
2623 /** The app icon, for app download ads. */ | 2619 /// The app icon, for app download ads. |
2624 class CreativeNativeAdAppIcon { | 2620 class CreativeNativeAdAppIcon { |
2625 core.int height; | 2621 core.int height; |
2626 core.String url; | 2622 core.String url; |
2627 core.int width; | 2623 core.int width; |
2628 | 2624 |
2629 CreativeNativeAdAppIcon(); | 2625 CreativeNativeAdAppIcon(); |
2630 | 2626 |
2631 CreativeNativeAdAppIcon.fromJson(core.Map _json) { | 2627 CreativeNativeAdAppIcon.fromJson(core.Map _json) { |
2632 if (_json.containsKey("height")) { | 2628 if (_json.containsKey("height")) { |
2633 height = _json["height"]; | 2629 height = _json["height"]; |
2634 } | 2630 } |
2635 if (_json.containsKey("url")) { | 2631 if (_json.containsKey("url")) { |
2636 url = _json["url"]; | 2632 url = _json["url"]; |
2637 } | 2633 } |
2638 if (_json.containsKey("width")) { | 2634 if (_json.containsKey("width")) { |
2639 width = _json["width"]; | 2635 width = _json["width"]; |
2640 } | 2636 } |
2641 } | 2637 } |
2642 | 2638 |
2643 core.Map<core.String, core.Object> toJson() { | 2639 core.Map<core.String, core.Object> toJson() { |
2644 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2640 final core.Map<core.String, core.Object> _json = |
| 2641 new core.Map<core.String, core.Object>(); |
2645 if (height != null) { | 2642 if (height != null) { |
2646 _json["height"] = height; | 2643 _json["height"] = height; |
2647 } | 2644 } |
2648 if (url != null) { | 2645 if (url != null) { |
2649 _json["url"] = url; | 2646 _json["url"] = url; |
2650 } | 2647 } |
2651 if (width != null) { | 2648 if (width != null) { |
2652 _json["width"] = width; | 2649 _json["width"] = width; |
2653 } | 2650 } |
2654 return _json; | 2651 return _json; |
2655 } | 2652 } |
2656 } | 2653 } |
2657 | 2654 |
2658 /** A large image. */ | 2655 /// A large image. |
2659 class CreativeNativeAdImage { | 2656 class CreativeNativeAdImage { |
2660 core.int height; | 2657 core.int height; |
2661 core.String url; | 2658 core.String url; |
2662 core.int width; | 2659 core.int width; |
2663 | 2660 |
2664 CreativeNativeAdImage(); | 2661 CreativeNativeAdImage(); |
2665 | 2662 |
2666 CreativeNativeAdImage.fromJson(core.Map _json) { | 2663 CreativeNativeAdImage.fromJson(core.Map _json) { |
2667 if (_json.containsKey("height")) { | 2664 if (_json.containsKey("height")) { |
2668 height = _json["height"]; | 2665 height = _json["height"]; |
2669 } | 2666 } |
2670 if (_json.containsKey("url")) { | 2667 if (_json.containsKey("url")) { |
2671 url = _json["url"]; | 2668 url = _json["url"]; |
2672 } | 2669 } |
2673 if (_json.containsKey("width")) { | 2670 if (_json.containsKey("width")) { |
2674 width = _json["width"]; | 2671 width = _json["width"]; |
2675 } | 2672 } |
2676 } | 2673 } |
2677 | 2674 |
2678 core.Map<core.String, core.Object> toJson() { | 2675 core.Map<core.String, core.Object> toJson() { |
2679 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2676 final core.Map<core.String, core.Object> _json = |
| 2677 new core.Map<core.String, core.Object>(); |
2680 if (height != null) { | 2678 if (height != null) { |
2681 _json["height"] = height; | 2679 _json["height"] = height; |
2682 } | 2680 } |
2683 if (url != null) { | 2681 if (url != null) { |
2684 _json["url"] = url; | 2682 _json["url"] = url; |
2685 } | 2683 } |
2686 if (width != null) { | 2684 if (width != null) { |
2687 _json["width"] = width; | 2685 _json["width"] = width; |
2688 } | 2686 } |
2689 return _json; | 2687 return _json; |
2690 } | 2688 } |
2691 } | 2689 } |
2692 | 2690 |
2693 /** A smaller image, for the advertiser logo. */ | 2691 /// A smaller image, for the advertiser logo. |
2694 class CreativeNativeAdLogo { | 2692 class CreativeNativeAdLogo { |
2695 core.int height; | 2693 core.int height; |
2696 core.String url; | 2694 core.String url; |
2697 core.int width; | 2695 core.int width; |
2698 | 2696 |
2699 CreativeNativeAdLogo(); | 2697 CreativeNativeAdLogo(); |
2700 | 2698 |
2701 CreativeNativeAdLogo.fromJson(core.Map _json) { | 2699 CreativeNativeAdLogo.fromJson(core.Map _json) { |
2702 if (_json.containsKey("height")) { | 2700 if (_json.containsKey("height")) { |
2703 height = _json["height"]; | 2701 height = _json["height"]; |
2704 } | 2702 } |
2705 if (_json.containsKey("url")) { | 2703 if (_json.containsKey("url")) { |
2706 url = _json["url"]; | 2704 url = _json["url"]; |
2707 } | 2705 } |
2708 if (_json.containsKey("width")) { | 2706 if (_json.containsKey("width")) { |
2709 width = _json["width"]; | 2707 width = _json["width"]; |
2710 } | 2708 } |
2711 } | 2709 } |
2712 | 2710 |
2713 core.Map<core.String, core.Object> toJson() { | 2711 core.Map<core.String, core.Object> toJson() { |
2714 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2712 final core.Map<core.String, core.Object> _json = |
| 2713 new core.Map<core.String, core.Object>(); |
2715 if (height != null) { | 2714 if (height != null) { |
2716 _json["height"] = height; | 2715 _json["height"] = height; |
2717 } | 2716 } |
2718 if (url != null) { | 2717 if (url != null) { |
2719 _json["url"] = url; | 2718 _json["url"] = url; |
2720 } | 2719 } |
2721 if (width != null) { | 2720 if (width != null) { |
2722 _json["width"] = width; | 2721 _json["width"] = width; |
2723 } | 2722 } |
2724 return _json; | 2723 return _json; |
2725 } | 2724 } |
2726 } | 2725 } |
2727 | 2726 |
2728 /** | 2727 /// If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should |
2729 * If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should | 2728 /// not be set. (The videoURL inside nativeAd can be set.) |
2730 * not be set. (The videoURL inside nativeAd can be set.) | |
2731 */ | |
2732 class CreativeNativeAd { | 2729 class CreativeNativeAd { |
2733 core.String advertiser; | 2730 core.String advertiser; |
2734 /** The app icon, for app download ads. */ | 2731 |
| 2732 /// The app icon, for app download ads. |
2735 CreativeNativeAdAppIcon appIcon; | 2733 CreativeNativeAdAppIcon appIcon; |
2736 /** A long description of the ad. */ | 2734 |
| 2735 /// A long description of the ad. |
2737 core.String body; | 2736 core.String body; |
2738 /** A label for the button that the user is supposed to click. */ | 2737 |
| 2738 /// A label for the button that the user is supposed to click. |
2739 core.String callToAction; | 2739 core.String callToAction; |
2740 /** The URL that the browser/SDK will load when the user clicks the ad. */ | 2740 |
| 2741 /// The URL that the browser/SDK will load when the user clicks the ad. |
2741 core.String clickLinkUrl; | 2742 core.String clickLinkUrl; |
2742 /** The URL to use for click tracking. */ | 2743 |
| 2744 /// The URL to use for click tracking. |
2743 core.String clickTrackingUrl; | 2745 core.String clickTrackingUrl; |
2744 /** A short title for the ad. */ | 2746 |
| 2747 /// A short title for the ad. |
2745 core.String headline; | 2748 core.String headline; |
2746 /** A large image. */ | 2749 |
| 2750 /// A large image. |
2747 CreativeNativeAdImage image; | 2751 CreativeNativeAdImage image; |
2748 /** The URLs are called when the impression is rendered. */ | 2752 |
| 2753 /// The URLs are called when the impression is rendered. |
2749 core.List<core.String> impressionTrackingUrl; | 2754 core.List<core.String> impressionTrackingUrl; |
2750 /** A smaller image, for the advertiser logo. */ | 2755 |
| 2756 /// A smaller image, for the advertiser logo. |
2751 CreativeNativeAdLogo logo; | 2757 CreativeNativeAdLogo logo; |
2752 /** The price of the promoted app including the currency info. */ | 2758 |
| 2759 /// The price of the promoted app including the currency info. |
2753 core.String price; | 2760 core.String price; |
2754 /** The app rating in the app store. Must be in the range [0-5]. */ | 2761 |
| 2762 /// The app rating in the app store. Must be in the range [0-5]. |
2755 core.double starRating; | 2763 core.double starRating; |
2756 /** The URL to the app store to purchase/download the promoted app. */ | 2764 |
| 2765 /// The URL to the app store to purchase/download the promoted app. |
2757 core.String store; | 2766 core.String store; |
2758 /** | 2767 |
2759 * The URL of the XML VAST for a native ad. Note this is a separate field from | 2768 /// The URL of the XML VAST for a native ad. Note this is a separate field |
2760 * resource.video_url. | 2769 /// from resource.video_url. |
2761 */ | |
2762 core.String videoURL; | 2770 core.String videoURL; |
2763 | 2771 |
2764 CreativeNativeAd(); | 2772 CreativeNativeAd(); |
2765 | 2773 |
2766 CreativeNativeAd.fromJson(core.Map _json) { | 2774 CreativeNativeAd.fromJson(core.Map _json) { |
2767 if (_json.containsKey("advertiser")) { | 2775 if (_json.containsKey("advertiser")) { |
2768 advertiser = _json["advertiser"]; | 2776 advertiser = _json["advertiser"]; |
2769 } | 2777 } |
2770 if (_json.containsKey("appIcon")) { | 2778 if (_json.containsKey("appIcon")) { |
2771 appIcon = new CreativeNativeAdAppIcon.fromJson(_json["appIcon"]); | 2779 appIcon = new CreativeNativeAdAppIcon.fromJson(_json["appIcon"]); |
(...skipping 30 matching lines...) Loading... |
2802 } | 2810 } |
2803 if (_json.containsKey("store")) { | 2811 if (_json.containsKey("store")) { |
2804 store = _json["store"]; | 2812 store = _json["store"]; |
2805 } | 2813 } |
2806 if (_json.containsKey("videoURL")) { | 2814 if (_json.containsKey("videoURL")) { |
2807 videoURL = _json["videoURL"]; | 2815 videoURL = _json["videoURL"]; |
2808 } | 2816 } |
2809 } | 2817 } |
2810 | 2818 |
2811 core.Map<core.String, core.Object> toJson() { | 2819 core.Map<core.String, core.Object> toJson() { |
2812 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2820 final core.Map<core.String, core.Object> _json = |
| 2821 new core.Map<core.String, core.Object>(); |
2813 if (advertiser != null) { | 2822 if (advertiser != null) { |
2814 _json["advertiser"] = advertiser; | 2823 _json["advertiser"] = advertiser; |
2815 } | 2824 } |
2816 if (appIcon != null) { | 2825 if (appIcon != null) { |
2817 _json["appIcon"] = (appIcon).toJson(); | 2826 _json["appIcon"] = (appIcon).toJson(); |
2818 } | 2827 } |
2819 if (body != null) { | 2828 if (body != null) { |
2820 _json["body"] = body; | 2829 _json["body"] = body; |
2821 } | 2830 } |
2822 if (callToAction != null) { | 2831 if (callToAction != null) { |
(...skipping 27 matching lines...) Loading... |
2850 _json["store"] = store; | 2859 _json["store"] = store; |
2851 } | 2860 } |
2852 if (videoURL != null) { | 2861 if (videoURL != null) { |
2853 _json["videoURL"] = videoURL; | 2862 _json["videoURL"] = videoURL; |
2854 } | 2863 } |
2855 return _json; | 2864 return _json; |
2856 } | 2865 } |
2857 } | 2866 } |
2858 | 2867 |
2859 class CreativeServingRestrictionsContexts { | 2868 class CreativeServingRestrictionsContexts { |
2860 /** | 2869 /// Only set when contextType=AUCTION_TYPE. Represents the auction types this |
2861 * Only set when contextType=AUCTION_TYPE. Represents the auction types this | 2870 /// restriction applies to. |
2862 * restriction applies to. | |
2863 */ | |
2864 core.List<core.String> auctionType; | 2871 core.List<core.String> auctionType; |
2865 /** | 2872 |
2866 * The type of context (e.g., location, platform, auction type, SSL-ness). | 2873 /// The type of context (e.g., location, platform, auction type, SSL-ness). |
2867 */ | |
2868 core.String contextType; | 2874 core.String contextType; |
2869 /** | 2875 |
2870 * Only set when contextType=LOCATION. Represents the geo criterias this | 2876 /// Only set when contextType=LOCATION. Represents the geo criterias this |
2871 * restriction applies to. Impressions are considered to match a context if | 2877 /// restriction applies to. Impressions are considered to match a context if |
2872 * either the user location or publisher location matches a given | 2878 /// either the user location or publisher location matches a given |
2873 * geoCriteriaId. | 2879 /// geoCriteriaId. |
2874 */ | |
2875 core.List<core.int> geoCriteriaId; | 2880 core.List<core.int> geoCriteriaId; |
2876 /** | 2881 |
2877 * Only set when contextType=PLATFORM. Represents the platforms this | 2882 /// Only set when contextType=PLATFORM. Represents the platforms this |
2878 * restriction applies to. | 2883 /// restriction applies to. |
2879 */ | |
2880 core.List<core.String> platform; | 2884 core.List<core.String> platform; |
2881 | 2885 |
2882 CreativeServingRestrictionsContexts(); | 2886 CreativeServingRestrictionsContexts(); |
2883 | 2887 |
2884 CreativeServingRestrictionsContexts.fromJson(core.Map _json) { | 2888 CreativeServingRestrictionsContexts.fromJson(core.Map _json) { |
2885 if (_json.containsKey("auctionType")) { | 2889 if (_json.containsKey("auctionType")) { |
2886 auctionType = _json["auctionType"]; | 2890 auctionType = _json["auctionType"]; |
2887 } | 2891 } |
2888 if (_json.containsKey("contextType")) { | 2892 if (_json.containsKey("contextType")) { |
2889 contextType = _json["contextType"]; | 2893 contextType = _json["contextType"]; |
2890 } | 2894 } |
2891 if (_json.containsKey("geoCriteriaId")) { | 2895 if (_json.containsKey("geoCriteriaId")) { |
2892 geoCriteriaId = _json["geoCriteriaId"]; | 2896 geoCriteriaId = _json["geoCriteriaId"]; |
2893 } | 2897 } |
2894 if (_json.containsKey("platform")) { | 2898 if (_json.containsKey("platform")) { |
2895 platform = _json["platform"]; | 2899 platform = _json["platform"]; |
2896 } | 2900 } |
2897 } | 2901 } |
2898 | 2902 |
2899 core.Map<core.String, core.Object> toJson() { | 2903 core.Map<core.String, core.Object> toJson() { |
2900 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2904 final core.Map<core.String, core.Object> _json = |
| 2905 new core.Map<core.String, core.Object>(); |
2901 if (auctionType != null) { | 2906 if (auctionType != null) { |
2902 _json["auctionType"] = auctionType; | 2907 _json["auctionType"] = auctionType; |
2903 } | 2908 } |
2904 if (contextType != null) { | 2909 if (contextType != null) { |
2905 _json["contextType"] = contextType; | 2910 _json["contextType"] = contextType; |
2906 } | 2911 } |
2907 if (geoCriteriaId != null) { | 2912 if (geoCriteriaId != null) { |
2908 _json["geoCriteriaId"] = geoCriteriaId; | 2913 _json["geoCriteriaId"] = geoCriteriaId; |
2909 } | 2914 } |
2910 if (platform != null) { | 2915 if (platform != null) { |
2911 _json["platform"] = platform; | 2916 _json["platform"] = platform; |
2912 } | 2917 } |
2913 return _json; | 2918 return _json; |
2914 } | 2919 } |
2915 } | 2920 } |
2916 | 2921 |
2917 class CreativeServingRestrictionsDisapprovalReasons { | 2922 class CreativeServingRestrictionsDisapprovalReasons { |
2918 /** Additional details about the reason for disapproval. */ | 2923 /// Additional details about the reason for disapproval. |
2919 core.List<core.String> details; | 2924 core.List<core.String> details; |
2920 /** The categorized reason for disapproval. */ | 2925 |
| 2926 /// The categorized reason for disapproval. |
2921 core.String reason; | 2927 core.String reason; |
2922 | 2928 |
2923 CreativeServingRestrictionsDisapprovalReasons(); | 2929 CreativeServingRestrictionsDisapprovalReasons(); |
2924 | 2930 |
2925 CreativeServingRestrictionsDisapprovalReasons.fromJson(core.Map _json) { | 2931 CreativeServingRestrictionsDisapprovalReasons.fromJson(core.Map _json) { |
2926 if (_json.containsKey("details")) { | 2932 if (_json.containsKey("details")) { |
2927 details = _json["details"]; | 2933 details = _json["details"]; |
2928 } | 2934 } |
2929 if (_json.containsKey("reason")) { | 2935 if (_json.containsKey("reason")) { |
2930 reason = _json["reason"]; | 2936 reason = _json["reason"]; |
2931 } | 2937 } |
2932 } | 2938 } |
2933 | 2939 |
2934 core.Map<core.String, core.Object> toJson() { | 2940 core.Map<core.String, core.Object> toJson() { |
2935 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2941 final core.Map<core.String, core.Object> _json = |
| 2942 new core.Map<core.String, core.Object>(); |
2936 if (details != null) { | 2943 if (details != null) { |
2937 _json["details"] = details; | 2944 _json["details"] = details; |
2938 } | 2945 } |
2939 if (reason != null) { | 2946 if (reason != null) { |
2940 _json["reason"] = reason; | 2947 _json["reason"] = reason; |
2941 } | 2948 } |
2942 return _json; | 2949 return _json; |
2943 } | 2950 } |
2944 } | 2951 } |
2945 | 2952 |
2946 class CreativeServingRestrictions { | 2953 class CreativeServingRestrictions { |
2947 /** All known contexts/restrictions. */ | 2954 /// All known contexts/restrictions. |
2948 core.List<CreativeServingRestrictionsContexts> contexts; | 2955 core.List<CreativeServingRestrictionsContexts> contexts; |
2949 /** | 2956 |
2950 * The reasons for disapproval within this restriction, if any. Note that not | 2957 /// The reasons for disapproval within this restriction, if any. Note that |
2951 * all disapproval reasons may be categorized, so it is possible for the | 2958 /// not all disapproval reasons may be categorized, so it is possible for the |
2952 * creative to have a status of DISAPPROVED or CONDITIONALLY_APPROVED with an | 2959 /// creative to have a status of DISAPPROVED or CONDITIONALLY_APPROVED with |
2953 * empty list for disapproval_reasons. In this case, please reach out to your | 2960 /// an empty list for disapproval_reasons. In this case, please reach out to |
2954 * TAM to help debug the issue. | 2961 /// your TAM to help debug the issue. |
2955 */ | |
2956 core.List<CreativeServingRestrictionsDisapprovalReasons> disapprovalReasons; | 2962 core.List<CreativeServingRestrictionsDisapprovalReasons> disapprovalReasons; |
2957 /** | 2963 |
2958 * Why the creative is ineligible to serve in this context (e.g., it has been | 2964 /// Why the creative is ineligible to serve in this context (e.g., it has |
2959 * explicitly disapproved or is pending review). | 2965 /// been explicitly disapproved or is pending review). |
2960 */ | |
2961 core.String reason; | 2966 core.String reason; |
2962 | 2967 |
2963 CreativeServingRestrictions(); | 2968 CreativeServingRestrictions(); |
2964 | 2969 |
2965 CreativeServingRestrictions.fromJson(core.Map _json) { | 2970 CreativeServingRestrictions.fromJson(core.Map _json) { |
2966 if (_json.containsKey("contexts")) { | 2971 if (_json.containsKey("contexts")) { |
2967 contexts = _json["contexts"].map((value) => new CreativeServingRestriction
sContexts.fromJson(value)).toList(); | 2972 contexts = _json["contexts"] |
| 2973 .map((value) => |
| 2974 new CreativeServingRestrictionsContexts.fromJson(value)) |
| 2975 .toList(); |
2968 } | 2976 } |
2969 if (_json.containsKey("disapprovalReasons")) { | 2977 if (_json.containsKey("disapprovalReasons")) { |
2970 disapprovalReasons = _json["disapprovalReasons"].map((value) => new Creati
veServingRestrictionsDisapprovalReasons.fromJson(value)).toList(); | 2978 disapprovalReasons = _json["disapprovalReasons"] |
| 2979 .map((value) => |
| 2980 new CreativeServingRestrictionsDisapprovalReasons.fromJson(value)) |
| 2981 .toList(); |
2971 } | 2982 } |
2972 if (_json.containsKey("reason")) { | 2983 if (_json.containsKey("reason")) { |
2973 reason = _json["reason"]; | 2984 reason = _json["reason"]; |
2974 } | 2985 } |
2975 } | 2986 } |
2976 | 2987 |
2977 core.Map<core.String, core.Object> toJson() { | 2988 core.Map<core.String, core.Object> toJson() { |
2978 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2989 final core.Map<core.String, core.Object> _json = |
| 2990 new core.Map<core.String, core.Object>(); |
2979 if (contexts != null) { | 2991 if (contexts != null) { |
2980 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); | 2992 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); |
2981 } | 2993 } |
2982 if (disapprovalReasons != null) { | 2994 if (disapprovalReasons != null) { |
2983 _json["disapprovalReasons"] = disapprovalReasons.map((value) => (value).to
Json()).toList(); | 2995 _json["disapprovalReasons"] = |
| 2996 disapprovalReasons.map((value) => (value).toJson()).toList(); |
2984 } | 2997 } |
2985 if (reason != null) { | 2998 if (reason != null) { |
2986 _json["reason"] = reason; | 2999 _json["reason"] = reason; |
2987 } | 3000 } |
2988 return _json; | 3001 return _json; |
2989 } | 3002 } |
2990 } | 3003 } |
2991 | 3004 |
2992 /** A creative and its classification data. */ | 3005 /// A creative and its classification data. |
2993 class Creative { | 3006 class Creative { |
2994 /** | 3007 /// The HTML snippet that displays the ad when inserted in the web page. If |
2995 * The HTML snippet that displays the ad when inserted in the web page. If | 3008 /// set, videoURL should not be set. |
2996 * set, videoURL should not be set. | |
2997 */ | |
2998 core.String HTMLSnippet; | 3009 core.String HTMLSnippet; |
2999 /** Account id. */ | 3010 |
| 3011 /// Account id. |
3000 core.int accountId; | 3012 core.int accountId; |
3001 /** | 3013 |
3002 * The link to the Ad Preferences page. This is only supported for native ads. | 3014 /// The link to the Ad Preferences page. This is only supported for native |
3003 */ | 3015 /// ads. |
3004 core.String adChoicesDestinationUrl; | 3016 core.String adChoicesDestinationUrl; |
3005 /** | 3017 |
3006 * Detected advertiser id, if any. Read-only. This field should not be set in | 3018 /// Detected advertiser id, if any. Read-only. This field should not be set |
3007 * requests. | 3019 /// in requests. |
3008 */ | |
3009 core.List<core.String> advertiserId; | 3020 core.List<core.String> advertiserId; |
3010 /** | 3021 |
3011 * The name of the company being advertised in the creative. The value | 3022 /// The name of the company being advertised in the creative. The value |
3012 * provided must exist in the advertisers.txt file. | 3023 /// provided must exist in the advertisers.txt file. |
3013 */ | |
3014 core.String advertiserName; | 3024 core.String advertiserName; |
3015 /** The agency id for this creative. */ | 3025 |
| 3026 /// The agency id for this creative. |
3016 core.String agencyId; | 3027 core.String agencyId; |
3017 /** | 3028 |
3018 * The last upload timestamp of this creative if it was uploaded via API. | 3029 /// The last upload timestamp of this creative if it was uploaded via API. |
3019 * Read-only. The value of this field is generated, and will be ignored for | 3030 /// Read-only. The value of this field is generated, and will be ignored for |
3020 * uploads. (formatted RFC 3339 timestamp). | 3031 /// uploads. (formatted RFC 3339 timestamp). |
3021 */ | |
3022 core.DateTime apiUploadTimestamp; | 3032 core.DateTime apiUploadTimestamp; |
3023 /** | 3033 |
3024 * List of buyer selectable attributes for the ads that may be shown from this | 3034 /// List of buyer selectable attributes for the ads that may be shown from |
3025 * snippet. Each attribute is represented by an integer as defined in | 3035 /// this snippet. Each attribute is represented by an integer as defined in |
3026 * buyer-declarable-creative-attributes.txt. | 3036 /// buyer-declarable-creative-attributes.txt. |
3027 */ | |
3028 core.List<core.int> attribute; | 3037 core.List<core.int> attribute; |
3029 /** A buyer-specific id identifying the creative in this ad. */ | 3038 |
| 3039 /// A buyer-specific id identifying the creative in this ad. |
3030 core.String buyerCreativeId; | 3040 core.String buyerCreativeId; |
3031 /** The set of destination urls for the snippet. */ | 3041 |
| 3042 /// The set of destination urls for the snippet. |
3032 core.List<core.String> clickThroughUrl; | 3043 core.List<core.String> clickThroughUrl; |
3033 /** | 3044 |
3034 * Shows any corrections that were applied to this creative. Read-only. This | 3045 /// Shows any corrections that were applied to this creative. Read-only. This |
3035 * field should not be set in requests. | 3046 /// field should not be set in requests. |
3036 */ | |
3037 core.List<CreativeCorrections> corrections; | 3047 core.List<CreativeCorrections> corrections; |
3038 /** | 3048 |
3039 * Top-level deals status. Read-only. This field should not be set in | 3049 /// Top-level deals status. Read-only. This field should not be set in |
3040 * requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in | 3050 /// requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) |
3041 * servingRestrictions will also exist. Note that this may be nuanced with | 3051 /// in servingRestrictions will also exist. Note that this may be nuanced |
3042 * other contextual restrictions, in which case it may be preferable to read | 3052 /// with other contextual restrictions, in which case it may be preferable to |
3043 * from servingRestrictions directly. | 3053 /// read from servingRestrictions directly. |
3044 */ | |
3045 core.String dealsStatus; | 3054 core.String dealsStatus; |
3046 /** | 3055 |
3047 * Detected domains for this creative. Read-only. This field should not be set | 3056 /// Detected domains for this creative. Read-only. This field should not be |
3048 * in requests. | 3057 /// set in requests. |
3049 */ | |
3050 core.List<core.String> detectedDomains; | 3058 core.List<core.String> detectedDomains; |
3051 /** | 3059 |
3052 * The filtering reasons for the creative. Read-only. This field should not be | 3060 /// The filtering reasons for the creative. Read-only. This field should not |
3053 * set in requests. | 3061 /// be set in requests. |
3054 */ | |
3055 CreativeFilteringReasons filteringReasons; | 3062 CreativeFilteringReasons filteringReasons; |
3056 /** Ad height. */ | 3063 |
| 3064 /// Ad height. |
3057 core.int height; | 3065 core.int height; |
3058 /** The set of urls to be called to record an impression. */ | 3066 |
| 3067 /// The set of urls to be called to record an impression. |
3059 core.List<core.String> impressionTrackingUrl; | 3068 core.List<core.String> impressionTrackingUrl; |
3060 /** Resource type. */ | 3069 |
| 3070 /// Resource type. |
3061 core.String kind; | 3071 core.String kind; |
3062 /** | 3072 |
3063 * Detected languages for this creative. Read-only. This field should not be | 3073 /// Detected languages for this creative. Read-only. This field should not be |
3064 * set in requests. | 3074 /// set in requests. |
3065 */ | |
3066 core.List<core.String> languages; | 3075 core.List<core.String> languages; |
3067 /** | 3076 |
3068 * If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should | 3077 /// If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd |
3069 * not be set. (The videoURL inside nativeAd can be set.) | 3078 /// should not be set. (The videoURL inside nativeAd can be set.) |
3070 */ | |
3071 CreativeNativeAd nativeAd; | 3079 CreativeNativeAd nativeAd; |
3072 /** | 3080 |
3073 * Top-level open auction status. Read-only. This field should not be set in | 3081 /// Top-level open auction status. Read-only. This field should not be set in |
3074 * requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in | 3082 /// requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) |
3075 * servingRestrictions will also exist. Note that this may be nuanced with | 3083 /// in servingRestrictions will also exist. Note that this may be nuanced |
3076 * other contextual restrictions, in which case it may be preferable to read | 3084 /// with other contextual restrictions, in which case it may be preferable to |
3077 * from ServingRestrictions directly. | 3085 /// read from ServingRestrictions directly. |
3078 */ | |
3079 core.String openAuctionStatus; | 3086 core.String openAuctionStatus; |
3080 /** | 3087 |
3081 * Detected product categories, if any. Each category is represented by an | 3088 /// Detected product categories, if any. Each category is represented by an |
3082 * integer as defined in ad-product-categories.txt. Read-only. This field | 3089 /// integer as defined in ad-product-categories.txt. Read-only. This field |
3083 * should not be set in requests. | 3090 /// should not be set in requests. |
3084 */ | |
3085 core.List<core.int> productCategories; | 3091 core.List<core.int> productCategories; |
3086 /** | 3092 |
3087 * All restricted categories for the ads that may be shown from this snippet. | 3093 /// All restricted categories for the ads that may be shown from this |
3088 * Each category is represented by an integer as defined in the | 3094 /// snippet. Each category is represented by an integer as defined in the |
3089 * ad-restricted-categories.txt. | 3095 /// ad-restricted-categories.txt. |
3090 */ | |
3091 core.List<core.int> restrictedCategories; | 3096 core.List<core.int> restrictedCategories; |
3092 /** | 3097 |
3093 * Detected sensitive categories, if any. Each category is represented by an | 3098 /// Detected sensitive categories, if any. Each category is represented by an |
3094 * integer as defined in ad-sensitive-categories.txt. Read-only. This field | 3099 /// integer as defined in ad-sensitive-categories.txt. Read-only. This field |
3095 * should not be set in requests. | 3100 /// should not be set in requests. |
3096 */ | |
3097 core.List<core.int> sensitiveCategories; | 3101 core.List<core.int> sensitiveCategories; |
3098 /** | 3102 |
3099 * The granular status of this ad in specific contexts. A context here relates | 3103 /// The granular status of this ad in specific contexts. A context here |
3100 * to where something ultimately serves (for example, a physical location, a | 3104 /// relates to where something ultimately serves (for example, a physical |
3101 * platform, an HTTPS vs HTTP request, or the type of auction). Read-only. | 3105 /// location, a platform, an HTTPS vs HTTP request, or the type of auction). |
3102 * This field should not be set in requests. See the examples in the Creatives | 3106 /// Read-only. This field should not be set in requests. See the examples in |
3103 * guide for more details. | 3107 /// the Creatives guide for more details. |
3104 */ | |
3105 core.List<CreativeServingRestrictions> servingRestrictions; | 3108 core.List<CreativeServingRestrictions> servingRestrictions; |
3106 /** | 3109 |
3107 * List of vendor types for the ads that may be shown from this snippet. Each | 3110 /// List of vendor types for the ads that may be shown from this snippet. |
3108 * vendor type is represented by an integer as defined in vendors.txt. | 3111 /// Each vendor type is represented by an integer as defined in vendors.txt. |
3109 */ | |
3110 core.List<core.int> vendorType; | 3112 core.List<core.int> vendorType; |
3111 /** | 3113 |
3112 * The version for this creative. Read-only. This field should not be set in | 3114 /// The version for this creative. Read-only. This field should not be set in |
3113 * requests. | 3115 /// requests. |
3114 */ | |
3115 core.int version; | 3116 core.int version; |
3116 /** | 3117 |
3117 * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should | 3118 /// The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should |
3118 * not be set. Note, this is different from resource.native_ad.video_url | 3119 /// not be set. Note, this is different from resource.native_ad.video_url |
3119 * above. | 3120 /// above. |
3120 */ | |
3121 core.String videoURL; | 3121 core.String videoURL; |
3122 /** Ad width. */ | 3122 |
| 3123 /// Ad width. |
3123 core.int width; | 3124 core.int width; |
3124 | 3125 |
3125 Creative(); | 3126 Creative(); |
3126 | 3127 |
3127 Creative.fromJson(core.Map _json) { | 3128 Creative.fromJson(core.Map _json) { |
3128 if (_json.containsKey("HTMLSnippet")) { | 3129 if (_json.containsKey("HTMLSnippet")) { |
3129 HTMLSnippet = _json["HTMLSnippet"]; | 3130 HTMLSnippet = _json["HTMLSnippet"]; |
3130 } | 3131 } |
3131 if (_json.containsKey("accountId")) { | 3132 if (_json.containsKey("accountId")) { |
3132 accountId = _json["accountId"]; | 3133 accountId = _json["accountId"]; |
(...skipping 16 matching lines...) Loading... |
3149 if (_json.containsKey("attribute")) { | 3150 if (_json.containsKey("attribute")) { |
3150 attribute = _json["attribute"]; | 3151 attribute = _json["attribute"]; |
3151 } | 3152 } |
3152 if (_json.containsKey("buyerCreativeId")) { | 3153 if (_json.containsKey("buyerCreativeId")) { |
3153 buyerCreativeId = _json["buyerCreativeId"]; | 3154 buyerCreativeId = _json["buyerCreativeId"]; |
3154 } | 3155 } |
3155 if (_json.containsKey("clickThroughUrl")) { | 3156 if (_json.containsKey("clickThroughUrl")) { |
3156 clickThroughUrl = _json["clickThroughUrl"]; | 3157 clickThroughUrl = _json["clickThroughUrl"]; |
3157 } | 3158 } |
3158 if (_json.containsKey("corrections")) { | 3159 if (_json.containsKey("corrections")) { |
3159 corrections = _json["corrections"].map((value) => new CreativeCorrections.
fromJson(value)).toList(); | 3160 corrections = _json["corrections"] |
| 3161 .map((value) => new CreativeCorrections.fromJson(value)) |
| 3162 .toList(); |
3160 } | 3163 } |
3161 if (_json.containsKey("dealsStatus")) { | 3164 if (_json.containsKey("dealsStatus")) { |
3162 dealsStatus = _json["dealsStatus"]; | 3165 dealsStatus = _json["dealsStatus"]; |
3163 } | 3166 } |
3164 if (_json.containsKey("detectedDomains")) { | 3167 if (_json.containsKey("detectedDomains")) { |
3165 detectedDomains = _json["detectedDomains"]; | 3168 detectedDomains = _json["detectedDomains"]; |
3166 } | 3169 } |
3167 if (_json.containsKey("filteringReasons")) { | 3170 if (_json.containsKey("filteringReasons")) { |
3168 filteringReasons = new CreativeFilteringReasons.fromJson(_json["filteringR
easons"]); | 3171 filteringReasons = |
| 3172 new CreativeFilteringReasons.fromJson(_json["filteringReasons"]); |
3169 } | 3173 } |
3170 if (_json.containsKey("height")) { | 3174 if (_json.containsKey("height")) { |
3171 height = _json["height"]; | 3175 height = _json["height"]; |
3172 } | 3176 } |
3173 if (_json.containsKey("impressionTrackingUrl")) { | 3177 if (_json.containsKey("impressionTrackingUrl")) { |
3174 impressionTrackingUrl = _json["impressionTrackingUrl"]; | 3178 impressionTrackingUrl = _json["impressionTrackingUrl"]; |
3175 } | 3179 } |
3176 if (_json.containsKey("kind")) { | 3180 if (_json.containsKey("kind")) { |
3177 kind = _json["kind"]; | 3181 kind = _json["kind"]; |
3178 } | 3182 } |
3179 if (_json.containsKey("languages")) { | 3183 if (_json.containsKey("languages")) { |
3180 languages = _json["languages"]; | 3184 languages = _json["languages"]; |
3181 } | 3185 } |
3182 if (_json.containsKey("nativeAd")) { | 3186 if (_json.containsKey("nativeAd")) { |
3183 nativeAd = new CreativeNativeAd.fromJson(_json["nativeAd"]); | 3187 nativeAd = new CreativeNativeAd.fromJson(_json["nativeAd"]); |
3184 } | 3188 } |
3185 if (_json.containsKey("openAuctionStatus")) { | 3189 if (_json.containsKey("openAuctionStatus")) { |
3186 openAuctionStatus = _json["openAuctionStatus"]; | 3190 openAuctionStatus = _json["openAuctionStatus"]; |
3187 } | 3191 } |
3188 if (_json.containsKey("productCategories")) { | 3192 if (_json.containsKey("productCategories")) { |
3189 productCategories = _json["productCategories"]; | 3193 productCategories = _json["productCategories"]; |
3190 } | 3194 } |
3191 if (_json.containsKey("restrictedCategories")) { | 3195 if (_json.containsKey("restrictedCategories")) { |
3192 restrictedCategories = _json["restrictedCategories"]; | 3196 restrictedCategories = _json["restrictedCategories"]; |
3193 } | 3197 } |
3194 if (_json.containsKey("sensitiveCategories")) { | 3198 if (_json.containsKey("sensitiveCategories")) { |
3195 sensitiveCategories = _json["sensitiveCategories"]; | 3199 sensitiveCategories = _json["sensitiveCategories"]; |
3196 } | 3200 } |
3197 if (_json.containsKey("servingRestrictions")) { | 3201 if (_json.containsKey("servingRestrictions")) { |
3198 servingRestrictions = _json["servingRestrictions"].map((value) => new Crea
tiveServingRestrictions.fromJson(value)).toList(); | 3202 servingRestrictions = _json["servingRestrictions"] |
| 3203 .map((value) => new CreativeServingRestrictions.fromJson(value)) |
| 3204 .toList(); |
3199 } | 3205 } |
3200 if (_json.containsKey("vendorType")) { | 3206 if (_json.containsKey("vendorType")) { |
3201 vendorType = _json["vendorType"]; | 3207 vendorType = _json["vendorType"]; |
3202 } | 3208 } |
3203 if (_json.containsKey("version")) { | 3209 if (_json.containsKey("version")) { |
3204 version = _json["version"]; | 3210 version = _json["version"]; |
3205 } | 3211 } |
3206 if (_json.containsKey("videoURL")) { | 3212 if (_json.containsKey("videoURL")) { |
3207 videoURL = _json["videoURL"]; | 3213 videoURL = _json["videoURL"]; |
3208 } | 3214 } |
3209 if (_json.containsKey("width")) { | 3215 if (_json.containsKey("width")) { |
3210 width = _json["width"]; | 3216 width = _json["width"]; |
3211 } | 3217 } |
3212 } | 3218 } |
3213 | 3219 |
3214 core.Map<core.String, core.Object> toJson() { | 3220 core.Map<core.String, core.Object> toJson() { |
3215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3221 final core.Map<core.String, core.Object> _json = |
| 3222 new core.Map<core.String, core.Object>(); |
3216 if (HTMLSnippet != null) { | 3223 if (HTMLSnippet != null) { |
3217 _json["HTMLSnippet"] = HTMLSnippet; | 3224 _json["HTMLSnippet"] = HTMLSnippet; |
3218 } | 3225 } |
3219 if (accountId != null) { | 3226 if (accountId != null) { |
3220 _json["accountId"] = accountId; | 3227 _json["accountId"] = accountId; |
3221 } | 3228 } |
3222 if (adChoicesDestinationUrl != null) { | 3229 if (adChoicesDestinationUrl != null) { |
3223 _json["adChoicesDestinationUrl"] = adChoicesDestinationUrl; | 3230 _json["adChoicesDestinationUrl"] = adChoicesDestinationUrl; |
3224 } | 3231 } |
3225 if (advertiserId != null) { | 3232 if (advertiserId != null) { |
(...skipping 11 matching lines...) Loading... |
3237 if (attribute != null) { | 3244 if (attribute != null) { |
3238 _json["attribute"] = attribute; | 3245 _json["attribute"] = attribute; |
3239 } | 3246 } |
3240 if (buyerCreativeId != null) { | 3247 if (buyerCreativeId != null) { |
3241 _json["buyerCreativeId"] = buyerCreativeId; | 3248 _json["buyerCreativeId"] = buyerCreativeId; |
3242 } | 3249 } |
3243 if (clickThroughUrl != null) { | 3250 if (clickThroughUrl != null) { |
3244 _json["clickThroughUrl"] = clickThroughUrl; | 3251 _json["clickThroughUrl"] = clickThroughUrl; |
3245 } | 3252 } |
3246 if (corrections != null) { | 3253 if (corrections != null) { |
3247 _json["corrections"] = corrections.map((value) => (value).toJson()).toList
(); | 3254 _json["corrections"] = |
| 3255 corrections.map((value) => (value).toJson()).toList(); |
3248 } | 3256 } |
3249 if (dealsStatus != null) { | 3257 if (dealsStatus != null) { |
3250 _json["dealsStatus"] = dealsStatus; | 3258 _json["dealsStatus"] = dealsStatus; |
3251 } | 3259 } |
3252 if (detectedDomains != null) { | 3260 if (detectedDomains != null) { |
3253 _json["detectedDomains"] = detectedDomains; | 3261 _json["detectedDomains"] = detectedDomains; |
3254 } | 3262 } |
3255 if (filteringReasons != null) { | 3263 if (filteringReasons != null) { |
3256 _json["filteringReasons"] = (filteringReasons).toJson(); | 3264 _json["filteringReasons"] = (filteringReasons).toJson(); |
3257 } | 3265 } |
(...skipping 18 matching lines...) Loading... |
3276 if (productCategories != null) { | 3284 if (productCategories != null) { |
3277 _json["productCategories"] = productCategories; | 3285 _json["productCategories"] = productCategories; |
3278 } | 3286 } |
3279 if (restrictedCategories != null) { | 3287 if (restrictedCategories != null) { |
3280 _json["restrictedCategories"] = restrictedCategories; | 3288 _json["restrictedCategories"] = restrictedCategories; |
3281 } | 3289 } |
3282 if (sensitiveCategories != null) { | 3290 if (sensitiveCategories != null) { |
3283 _json["sensitiveCategories"] = sensitiveCategories; | 3291 _json["sensitiveCategories"] = sensitiveCategories; |
3284 } | 3292 } |
3285 if (servingRestrictions != null) { | 3293 if (servingRestrictions != null) { |
3286 _json["servingRestrictions"] = servingRestrictions.map((value) => (value).
toJson()).toList(); | 3294 _json["servingRestrictions"] = |
| 3295 servingRestrictions.map((value) => (value).toJson()).toList(); |
3287 } | 3296 } |
3288 if (vendorType != null) { | 3297 if (vendorType != null) { |
3289 _json["vendorType"] = vendorType; | 3298 _json["vendorType"] = vendorType; |
3290 } | 3299 } |
3291 if (version != null) { | 3300 if (version != null) { |
3292 _json["version"] = version; | 3301 _json["version"] = version; |
3293 } | 3302 } |
3294 if (videoURL != null) { | 3303 if (videoURL != null) { |
3295 _json["videoURL"] = videoURL; | 3304 _json["videoURL"] = videoURL; |
3296 } | 3305 } |
3297 if (width != null) { | 3306 if (width != null) { |
3298 _json["width"] = width; | 3307 _json["width"] = width; |
3299 } | 3308 } |
3300 return _json; | 3309 return _json; |
3301 } | 3310 } |
3302 } | 3311 } |
3303 | 3312 |
3304 class CreativeDealIdsDealStatuses { | 3313 class CreativeDealIdsDealStatuses { |
3305 /** ARC approval status. */ | 3314 /// ARC approval status. |
3306 core.String arcStatus; | 3315 core.String arcStatus; |
3307 /** External deal ID. */ | 3316 |
| 3317 /// External deal ID. |
3308 core.String dealId; | 3318 core.String dealId; |
3309 /** Publisher ID. */ | 3319 |
| 3320 /// Publisher ID. |
3310 core.int webPropertyId; | 3321 core.int webPropertyId; |
3311 | 3322 |
3312 CreativeDealIdsDealStatuses(); | 3323 CreativeDealIdsDealStatuses(); |
3313 | 3324 |
3314 CreativeDealIdsDealStatuses.fromJson(core.Map _json) { | 3325 CreativeDealIdsDealStatuses.fromJson(core.Map _json) { |
3315 if (_json.containsKey("arcStatus")) { | 3326 if (_json.containsKey("arcStatus")) { |
3316 arcStatus = _json["arcStatus"]; | 3327 arcStatus = _json["arcStatus"]; |
3317 } | 3328 } |
3318 if (_json.containsKey("dealId")) { | 3329 if (_json.containsKey("dealId")) { |
3319 dealId = _json["dealId"]; | 3330 dealId = _json["dealId"]; |
3320 } | 3331 } |
3321 if (_json.containsKey("webPropertyId")) { | 3332 if (_json.containsKey("webPropertyId")) { |
3322 webPropertyId = _json["webPropertyId"]; | 3333 webPropertyId = _json["webPropertyId"]; |
3323 } | 3334 } |
3324 } | 3335 } |
3325 | 3336 |
3326 core.Map<core.String, core.Object> toJson() { | 3337 core.Map<core.String, core.Object> toJson() { |
3327 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3338 final core.Map<core.String, core.Object> _json = |
| 3339 new core.Map<core.String, core.Object>(); |
3328 if (arcStatus != null) { | 3340 if (arcStatus != null) { |
3329 _json["arcStatus"] = arcStatus; | 3341 _json["arcStatus"] = arcStatus; |
3330 } | 3342 } |
3331 if (dealId != null) { | 3343 if (dealId != null) { |
3332 _json["dealId"] = dealId; | 3344 _json["dealId"] = dealId; |
3333 } | 3345 } |
3334 if (webPropertyId != null) { | 3346 if (webPropertyId != null) { |
3335 _json["webPropertyId"] = webPropertyId; | 3347 _json["webPropertyId"] = webPropertyId; |
3336 } | 3348 } |
3337 return _json; | 3349 return _json; |
3338 } | 3350 } |
3339 } | 3351 } |
3340 | 3352 |
3341 /** The external deal ids associated with a creative. */ | 3353 /// The external deal ids associated with a creative. |
3342 class CreativeDealIds { | 3354 class CreativeDealIds { |
3343 /** A list of external deal ids and ARC approval status. */ | 3355 /// A list of external deal ids and ARC approval status. |
3344 core.List<CreativeDealIdsDealStatuses> dealStatuses; | 3356 core.List<CreativeDealIdsDealStatuses> dealStatuses; |
3345 /** Resource type. */ | 3357 |
| 3358 /// Resource type. |
3346 core.String kind; | 3359 core.String kind; |
3347 | 3360 |
3348 CreativeDealIds(); | 3361 CreativeDealIds(); |
3349 | 3362 |
3350 CreativeDealIds.fromJson(core.Map _json) { | 3363 CreativeDealIds.fromJson(core.Map _json) { |
3351 if (_json.containsKey("dealStatuses")) { | 3364 if (_json.containsKey("dealStatuses")) { |
3352 dealStatuses = _json["dealStatuses"].map((value) => new CreativeDealIdsDea
lStatuses.fromJson(value)).toList(); | 3365 dealStatuses = _json["dealStatuses"] |
| 3366 .map((value) => new CreativeDealIdsDealStatuses.fromJson(value)) |
| 3367 .toList(); |
3353 } | 3368 } |
3354 if (_json.containsKey("kind")) { | 3369 if (_json.containsKey("kind")) { |
3355 kind = _json["kind"]; | 3370 kind = _json["kind"]; |
3356 } | 3371 } |
3357 } | 3372 } |
3358 | 3373 |
3359 core.Map<core.String, core.Object> toJson() { | 3374 core.Map<core.String, core.Object> toJson() { |
3360 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3375 final core.Map<core.String, core.Object> _json = |
| 3376 new core.Map<core.String, core.Object>(); |
3361 if (dealStatuses != null) { | 3377 if (dealStatuses != null) { |
3362 _json["dealStatuses"] = dealStatuses.map((value) => (value).toJson()).toLi
st(); | 3378 _json["dealStatuses"] = |
| 3379 dealStatuses.map((value) => (value).toJson()).toList(); |
3363 } | 3380 } |
3364 if (kind != null) { | 3381 if (kind != null) { |
3365 _json["kind"] = kind; | 3382 _json["kind"] = kind; |
3366 } | 3383 } |
3367 return _json; | 3384 return _json; |
3368 } | 3385 } |
3369 } | 3386 } |
3370 | 3387 |
3371 /** | 3388 /// The creatives feed lists the active creatives for the Ad Exchange buyer |
3372 * The creatives feed lists the active creatives for the Ad Exchange buyer | 3389 /// accounts that the user has access to. Each entry in the feed corresponds to |
3373 * accounts that the user has access to. Each entry in the feed corresponds to a | 3390 /// a single creative. |
3374 * single creative. | |
3375 */ | |
3376 class CreativesList { | 3391 class CreativesList { |
3377 /** A list of creatives. */ | 3392 /// A list of creatives. |
3378 core.List<Creative> items; | 3393 core.List<Creative> items; |
3379 /** Resource type. */ | 3394 |
| 3395 /// Resource type. |
3380 core.String kind; | 3396 core.String kind; |
3381 /** | 3397 |
3382 * Continuation token used to page through creatives. To retrieve the next | 3398 /// Continuation token used to page through creatives. To retrieve the next |
3383 * page of results, set the next request's "pageToken" value to this. | 3399 /// page of results, set the next request's "pageToken" value to this. |
3384 */ | |
3385 core.String nextPageToken; | 3400 core.String nextPageToken; |
3386 | 3401 |
3387 CreativesList(); | 3402 CreativesList(); |
3388 | 3403 |
3389 CreativesList.fromJson(core.Map _json) { | 3404 CreativesList.fromJson(core.Map _json) { |
3390 if (_json.containsKey("items")) { | 3405 if (_json.containsKey("items")) { |
3391 items = _json["items"].map((value) => new Creative.fromJson(value)).toList
(); | 3406 items = |
| 3407 _json["items"].map((value) => new Creative.fromJson(value)).toList(); |
3392 } | 3408 } |
3393 if (_json.containsKey("kind")) { | 3409 if (_json.containsKey("kind")) { |
3394 kind = _json["kind"]; | 3410 kind = _json["kind"]; |
3395 } | 3411 } |
3396 if (_json.containsKey("nextPageToken")) { | 3412 if (_json.containsKey("nextPageToken")) { |
3397 nextPageToken = _json["nextPageToken"]; | 3413 nextPageToken = _json["nextPageToken"]; |
3398 } | 3414 } |
3399 } | 3415 } |
3400 | 3416 |
3401 core.Map<core.String, core.Object> toJson() { | 3417 core.Map<core.String, core.Object> toJson() { |
3402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3418 final core.Map<core.String, core.Object> _json = |
| 3419 new core.Map<core.String, core.Object>(); |
3403 if (items != null) { | 3420 if (items != null) { |
3404 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3421 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3405 } | 3422 } |
3406 if (kind != null) { | 3423 if (kind != null) { |
3407 _json["kind"] = kind; | 3424 _json["kind"] = kind; |
3408 } | 3425 } |
3409 if (nextPageToken != null) { | 3426 if (nextPageToken != null) { |
3410 _json["nextPageToken"] = nextPageToken; | 3427 _json["nextPageToken"] = nextPageToken; |
3411 } | 3428 } |
3412 return _json; | 3429 return _json; |
3413 } | 3430 } |
3414 } | 3431 } |
3415 | 3432 |
3416 class DealServingMetadata { | 3433 class DealServingMetadata { |
3417 /** | 3434 /// True if alcohol ads are allowed for this deal (read-only). This field is |
3418 * True if alcohol ads are allowed for this deal (read-only). This field is | 3435 /// only populated when querying for finalized orders using the method |
3419 * only populated when querying for finalized orders using the method | 3436 /// GetFinalizedOrderDeals |
3420 * GetFinalizedOrderDeals | |
3421 */ | |
3422 core.bool alcoholAdsAllowed; | 3437 core.bool alcoholAdsAllowed; |
3423 /** | 3438 |
3424 * Tracks which parties (if any) have paused a deal. (readonly, except via | 3439 /// Tracks which parties (if any) have paused a deal. (readonly, except via |
3425 * PauseResumeOrderDeals action) | 3440 /// PauseResumeOrderDeals action) |
3426 */ | |
3427 DealServingMetadataDealPauseStatus dealPauseStatus; | 3441 DealServingMetadataDealPauseStatus dealPauseStatus; |
3428 | 3442 |
3429 DealServingMetadata(); | 3443 DealServingMetadata(); |
3430 | 3444 |
3431 DealServingMetadata.fromJson(core.Map _json) { | 3445 DealServingMetadata.fromJson(core.Map _json) { |
3432 if (_json.containsKey("alcoholAdsAllowed")) { | 3446 if (_json.containsKey("alcoholAdsAllowed")) { |
3433 alcoholAdsAllowed = _json["alcoholAdsAllowed"]; | 3447 alcoholAdsAllowed = _json["alcoholAdsAllowed"]; |
3434 } | 3448 } |
3435 if (_json.containsKey("dealPauseStatus")) { | 3449 if (_json.containsKey("dealPauseStatus")) { |
3436 dealPauseStatus = new DealServingMetadataDealPauseStatus.fromJson(_json["d
ealPauseStatus"]); | 3450 dealPauseStatus = new DealServingMetadataDealPauseStatus.fromJson( |
| 3451 _json["dealPauseStatus"]); |
3437 } | 3452 } |
3438 } | 3453 } |
3439 | 3454 |
3440 core.Map<core.String, core.Object> toJson() { | 3455 core.Map<core.String, core.Object> toJson() { |
3441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3456 final core.Map<core.String, core.Object> _json = |
| 3457 new core.Map<core.String, core.Object>(); |
3442 if (alcoholAdsAllowed != null) { | 3458 if (alcoholAdsAllowed != null) { |
3443 _json["alcoholAdsAllowed"] = alcoholAdsAllowed; | 3459 _json["alcoholAdsAllowed"] = alcoholAdsAllowed; |
3444 } | 3460 } |
3445 if (dealPauseStatus != null) { | 3461 if (dealPauseStatus != null) { |
3446 _json["dealPauseStatus"] = (dealPauseStatus).toJson(); | 3462 _json["dealPauseStatus"] = (dealPauseStatus).toJson(); |
3447 } | 3463 } |
3448 return _json; | 3464 return _json; |
3449 } | 3465 } |
3450 } | 3466 } |
3451 | 3467 |
3452 /** | 3468 /// Tracks which parties (if any) have paused a deal. The deal is considered |
3453 * Tracks which parties (if any) have paused a deal. The deal is considered | 3469 /// paused if has_buyer_paused || has_seller_paused. Each of the |
3454 * paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused | 3470 /// has_buyer_paused or the has_seller_paused bits can be set independently. |
3455 * or the has_seller_paused bits can be set independently. | |
3456 */ | |
3457 class DealServingMetadataDealPauseStatus { | 3471 class DealServingMetadataDealPauseStatus { |
3458 core.String buyerPauseReason; | 3472 core.String buyerPauseReason; |
3459 /** If the deal is paused, records which party paused the deal first. */ | 3473 |
| 3474 /// If the deal is paused, records which party paused the deal first. |
3460 core.String firstPausedBy; | 3475 core.String firstPausedBy; |
3461 core.bool hasBuyerPaused; | 3476 core.bool hasBuyerPaused; |
3462 core.bool hasSellerPaused; | 3477 core.bool hasSellerPaused; |
3463 core.String sellerPauseReason; | 3478 core.String sellerPauseReason; |
3464 | 3479 |
3465 DealServingMetadataDealPauseStatus(); | 3480 DealServingMetadataDealPauseStatus(); |
3466 | 3481 |
3467 DealServingMetadataDealPauseStatus.fromJson(core.Map _json) { | 3482 DealServingMetadataDealPauseStatus.fromJson(core.Map _json) { |
3468 if (_json.containsKey("buyerPauseReason")) { | 3483 if (_json.containsKey("buyerPauseReason")) { |
3469 buyerPauseReason = _json["buyerPauseReason"]; | 3484 buyerPauseReason = _json["buyerPauseReason"]; |
3470 } | 3485 } |
3471 if (_json.containsKey("firstPausedBy")) { | 3486 if (_json.containsKey("firstPausedBy")) { |
3472 firstPausedBy = _json["firstPausedBy"]; | 3487 firstPausedBy = _json["firstPausedBy"]; |
3473 } | 3488 } |
3474 if (_json.containsKey("hasBuyerPaused")) { | 3489 if (_json.containsKey("hasBuyerPaused")) { |
3475 hasBuyerPaused = _json["hasBuyerPaused"]; | 3490 hasBuyerPaused = _json["hasBuyerPaused"]; |
3476 } | 3491 } |
3477 if (_json.containsKey("hasSellerPaused")) { | 3492 if (_json.containsKey("hasSellerPaused")) { |
3478 hasSellerPaused = _json["hasSellerPaused"]; | 3493 hasSellerPaused = _json["hasSellerPaused"]; |
3479 } | 3494 } |
3480 if (_json.containsKey("sellerPauseReason")) { | 3495 if (_json.containsKey("sellerPauseReason")) { |
3481 sellerPauseReason = _json["sellerPauseReason"]; | 3496 sellerPauseReason = _json["sellerPauseReason"]; |
3482 } | 3497 } |
3483 } | 3498 } |
3484 | 3499 |
3485 core.Map<core.String, core.Object> toJson() { | 3500 core.Map<core.String, core.Object> toJson() { |
3486 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3501 final core.Map<core.String, core.Object> _json = |
| 3502 new core.Map<core.String, core.Object>(); |
3487 if (buyerPauseReason != null) { | 3503 if (buyerPauseReason != null) { |
3488 _json["buyerPauseReason"] = buyerPauseReason; | 3504 _json["buyerPauseReason"] = buyerPauseReason; |
3489 } | 3505 } |
3490 if (firstPausedBy != null) { | 3506 if (firstPausedBy != null) { |
3491 _json["firstPausedBy"] = firstPausedBy; | 3507 _json["firstPausedBy"] = firstPausedBy; |
3492 } | 3508 } |
3493 if (hasBuyerPaused != null) { | 3509 if (hasBuyerPaused != null) { |
3494 _json["hasBuyerPaused"] = hasBuyerPaused; | 3510 _json["hasBuyerPaused"] = hasBuyerPaused; |
3495 } | 3511 } |
3496 if (hasSellerPaused != null) { | 3512 if (hasSellerPaused != null) { |
3497 _json["hasSellerPaused"] = hasSellerPaused; | 3513 _json["hasSellerPaused"] = hasSellerPaused; |
3498 } | 3514 } |
3499 if (sellerPauseReason != null) { | 3515 if (sellerPauseReason != null) { |
3500 _json["sellerPauseReason"] = sellerPauseReason; | 3516 _json["sellerPauseReason"] = sellerPauseReason; |
3501 } | 3517 } |
3502 return _json; | 3518 return _json; |
3503 } | 3519 } |
3504 } | 3520 } |
3505 | 3521 |
3506 class DealTerms { | 3522 class DealTerms { |
3507 /** Visibilty of the URL in bid requests. */ | 3523 /// Visibilty of the URL in bid requests. |
3508 core.String brandingType; | 3524 core.String brandingType; |
3509 /** | 3525 |
3510 * Indicates that this ExternalDealId exists under at least two different | 3526 /// Indicates that this ExternalDealId exists under at least two different |
3511 * AdxInventoryDeals. Currently, the only case that the same ExternalDealId | 3527 /// AdxInventoryDeals. Currently, the only case that the same ExternalDealId |
3512 * will exist is programmatic cross sell case. | 3528 /// will exist is programmatic cross sell case. |
3513 */ | |
3514 core.String crossListedExternalDealIdType; | 3529 core.String crossListedExternalDealIdType; |
3515 /** Description for the proposed terms of the deal. */ | 3530 |
| 3531 /// Description for the proposed terms of the deal. |
3516 core.String description; | 3532 core.String description; |
3517 /** | 3533 |
3518 * Non-binding estimate of the estimated gross spend for this deal Can be set | 3534 /// Non-binding estimate of the estimated gross spend for this deal Can be |
3519 * by buyer or seller. | 3535 /// set by buyer or seller. |
3520 */ | |
3521 Price estimatedGrossSpend; | 3536 Price estimatedGrossSpend; |
3522 /** | 3537 |
3523 * Non-binding estimate of the impressions served per day Can be set by buyer | 3538 /// Non-binding estimate of the impressions served per day Can be set by |
3524 * or seller. | 3539 /// buyer or seller. |
3525 */ | |
3526 core.String estimatedImpressionsPerDay; | 3540 core.String estimatedImpressionsPerDay; |
3527 /** The terms for guaranteed fixed price deals. */ | 3541 |
| 3542 /// The terms for guaranteed fixed price deals. |
3528 DealTermsGuaranteedFixedPriceTerms guaranteedFixedPriceTerms; | 3543 DealTermsGuaranteedFixedPriceTerms guaranteedFixedPriceTerms; |
3529 /** The terms for non-guaranteed auction deals. */ | 3544 |
| 3545 /// The terms for non-guaranteed auction deals. |
3530 DealTermsNonGuaranteedAuctionTerms nonGuaranteedAuctionTerms; | 3546 DealTermsNonGuaranteedAuctionTerms nonGuaranteedAuctionTerms; |
3531 /** The terms for non-guaranteed fixed price deals. */ | 3547 |
| 3548 /// The terms for non-guaranteed fixed price deals. |
3532 DealTermsNonGuaranteedFixedPriceTerms nonGuaranteedFixedPriceTerms; | 3549 DealTermsNonGuaranteedFixedPriceTerms nonGuaranteedFixedPriceTerms; |
3533 /** The terms for rubicon non-guaranteed deals. */ | 3550 |
| 3551 /// The terms for rubicon non-guaranteed deals. |
3534 DealTermsRubiconNonGuaranteedTerms rubiconNonGuaranteedTerms; | 3552 DealTermsRubiconNonGuaranteedTerms rubiconNonGuaranteedTerms; |
3535 /** | 3553 |
3536 * For deals with Cost Per Day billing, defines the timezone used to mark the | 3554 /// For deals with Cost Per Day billing, defines the timezone used to mark |
3537 * boundaries of a day (buyer-readonly) | 3555 /// the boundaries of a day (buyer-readonly) |
3538 */ | |
3539 core.String sellerTimeZone; | 3556 core.String sellerTimeZone; |
3540 | 3557 |
3541 DealTerms(); | 3558 DealTerms(); |
3542 | 3559 |
3543 DealTerms.fromJson(core.Map _json) { | 3560 DealTerms.fromJson(core.Map _json) { |
3544 if (_json.containsKey("brandingType")) { | 3561 if (_json.containsKey("brandingType")) { |
3545 brandingType = _json["brandingType"]; | 3562 brandingType = _json["brandingType"]; |
3546 } | 3563 } |
3547 if (_json.containsKey("crossListedExternalDealIdType")) { | 3564 if (_json.containsKey("crossListedExternalDealIdType")) { |
3548 crossListedExternalDealIdType = _json["crossListedExternalDealIdType"]; | 3565 crossListedExternalDealIdType = _json["crossListedExternalDealIdType"]; |
3549 } | 3566 } |
3550 if (_json.containsKey("description")) { | 3567 if (_json.containsKey("description")) { |
3551 description = _json["description"]; | 3568 description = _json["description"]; |
3552 } | 3569 } |
3553 if (_json.containsKey("estimatedGrossSpend")) { | 3570 if (_json.containsKey("estimatedGrossSpend")) { |
3554 estimatedGrossSpend = new Price.fromJson(_json["estimatedGrossSpend"]); | 3571 estimatedGrossSpend = new Price.fromJson(_json["estimatedGrossSpend"]); |
3555 } | 3572 } |
3556 if (_json.containsKey("estimatedImpressionsPerDay")) { | 3573 if (_json.containsKey("estimatedImpressionsPerDay")) { |
3557 estimatedImpressionsPerDay = _json["estimatedImpressionsPerDay"]; | 3574 estimatedImpressionsPerDay = _json["estimatedImpressionsPerDay"]; |
3558 } | 3575 } |
3559 if (_json.containsKey("guaranteedFixedPriceTerms")) { | 3576 if (_json.containsKey("guaranteedFixedPriceTerms")) { |
3560 guaranteedFixedPriceTerms = new DealTermsGuaranteedFixedPriceTerms.fromJso
n(_json["guaranteedFixedPriceTerms"]); | 3577 guaranteedFixedPriceTerms = |
| 3578 new DealTermsGuaranteedFixedPriceTerms.fromJson( |
| 3579 _json["guaranteedFixedPriceTerms"]); |
3561 } | 3580 } |
3562 if (_json.containsKey("nonGuaranteedAuctionTerms")) { | 3581 if (_json.containsKey("nonGuaranteedAuctionTerms")) { |
3563 nonGuaranteedAuctionTerms = new DealTermsNonGuaranteedAuctionTerms.fromJso
n(_json["nonGuaranteedAuctionTerms"]); | 3582 nonGuaranteedAuctionTerms = |
| 3583 new DealTermsNonGuaranteedAuctionTerms.fromJson( |
| 3584 _json["nonGuaranteedAuctionTerms"]); |
3564 } | 3585 } |
3565 if (_json.containsKey("nonGuaranteedFixedPriceTerms")) { | 3586 if (_json.containsKey("nonGuaranteedFixedPriceTerms")) { |
3566 nonGuaranteedFixedPriceTerms = new DealTermsNonGuaranteedFixedPriceTerms.f
romJson(_json["nonGuaranteedFixedPriceTerms"]); | 3587 nonGuaranteedFixedPriceTerms = |
| 3588 new DealTermsNonGuaranteedFixedPriceTerms.fromJson( |
| 3589 _json["nonGuaranteedFixedPriceTerms"]); |
3567 } | 3590 } |
3568 if (_json.containsKey("rubiconNonGuaranteedTerms")) { | 3591 if (_json.containsKey("rubiconNonGuaranteedTerms")) { |
3569 rubiconNonGuaranteedTerms = new DealTermsRubiconNonGuaranteedTerms.fromJso
n(_json["rubiconNonGuaranteedTerms"]); | 3592 rubiconNonGuaranteedTerms = |
| 3593 new DealTermsRubiconNonGuaranteedTerms.fromJson( |
| 3594 _json["rubiconNonGuaranteedTerms"]); |
3570 } | 3595 } |
3571 if (_json.containsKey("sellerTimeZone")) { | 3596 if (_json.containsKey("sellerTimeZone")) { |
3572 sellerTimeZone = _json["sellerTimeZone"]; | 3597 sellerTimeZone = _json["sellerTimeZone"]; |
3573 } | 3598 } |
3574 } | 3599 } |
3575 | 3600 |
3576 core.Map<core.String, core.Object> toJson() { | 3601 core.Map<core.String, core.Object> toJson() { |
3577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3602 final core.Map<core.String, core.Object> _json = |
| 3603 new core.Map<core.String, core.Object>(); |
3578 if (brandingType != null) { | 3604 if (brandingType != null) { |
3579 _json["brandingType"] = brandingType; | 3605 _json["brandingType"] = brandingType; |
3580 } | 3606 } |
3581 if (crossListedExternalDealIdType != null) { | 3607 if (crossListedExternalDealIdType != null) { |
3582 _json["crossListedExternalDealIdType"] = crossListedExternalDealIdType; | 3608 _json["crossListedExternalDealIdType"] = crossListedExternalDealIdType; |
3583 } | 3609 } |
3584 if (description != null) { | 3610 if (description != null) { |
3585 _json["description"] = description; | 3611 _json["description"] = description; |
3586 } | 3612 } |
3587 if (estimatedGrossSpend != null) { | 3613 if (estimatedGrossSpend != null) { |
3588 _json["estimatedGrossSpend"] = (estimatedGrossSpend).toJson(); | 3614 _json["estimatedGrossSpend"] = (estimatedGrossSpend).toJson(); |
3589 } | 3615 } |
3590 if (estimatedImpressionsPerDay != null) { | 3616 if (estimatedImpressionsPerDay != null) { |
3591 _json["estimatedImpressionsPerDay"] = estimatedImpressionsPerDay; | 3617 _json["estimatedImpressionsPerDay"] = estimatedImpressionsPerDay; |
3592 } | 3618 } |
3593 if (guaranteedFixedPriceTerms != null) { | 3619 if (guaranteedFixedPriceTerms != null) { |
3594 _json["guaranteedFixedPriceTerms"] = (guaranteedFixedPriceTerms).toJson(); | 3620 _json["guaranteedFixedPriceTerms"] = (guaranteedFixedPriceTerms).toJson(); |
3595 } | 3621 } |
3596 if (nonGuaranteedAuctionTerms != null) { | 3622 if (nonGuaranteedAuctionTerms != null) { |
3597 _json["nonGuaranteedAuctionTerms"] = (nonGuaranteedAuctionTerms).toJson(); | 3623 _json["nonGuaranteedAuctionTerms"] = (nonGuaranteedAuctionTerms).toJson(); |
3598 } | 3624 } |
3599 if (nonGuaranteedFixedPriceTerms != null) { | 3625 if (nonGuaranteedFixedPriceTerms != null) { |
3600 _json["nonGuaranteedFixedPriceTerms"] = (nonGuaranteedFixedPriceTerms).toJ
son(); | 3626 _json["nonGuaranteedFixedPriceTerms"] = |
| 3627 (nonGuaranteedFixedPriceTerms).toJson(); |
3601 } | 3628 } |
3602 if (rubiconNonGuaranteedTerms != null) { | 3629 if (rubiconNonGuaranteedTerms != null) { |
3603 _json["rubiconNonGuaranteedTerms"] = (rubiconNonGuaranteedTerms).toJson(); | 3630 _json["rubiconNonGuaranteedTerms"] = (rubiconNonGuaranteedTerms).toJson(); |
3604 } | 3631 } |
3605 if (sellerTimeZone != null) { | 3632 if (sellerTimeZone != null) { |
3606 _json["sellerTimeZone"] = sellerTimeZone; | 3633 _json["sellerTimeZone"] = sellerTimeZone; |
3607 } | 3634 } |
3608 return _json; | 3635 return _json; |
3609 } | 3636 } |
3610 } | 3637 } |
3611 | 3638 |
3612 class DealTermsGuaranteedFixedPriceTerms { | 3639 class DealTermsGuaranteedFixedPriceTerms { |
3613 /** | 3640 /// External billing info for this Deal. This field is relevant when external |
3614 * External billing info for this Deal. This field is relevant when external | 3641 /// billing info such as price has a different currency code than DFP/AdX. |
3615 * billing info such as price has a different currency code than DFP/AdX. | |
3616 */ | |
3617 DealTermsGuaranteedFixedPriceTermsBillingInfo billingInfo; | 3642 DealTermsGuaranteedFixedPriceTermsBillingInfo billingInfo; |
3618 /** Fixed price for the specified buyer. */ | 3643 |
| 3644 /// Fixed price for the specified buyer. |
3619 core.List<PricePerBuyer> fixedPrices; | 3645 core.List<PricePerBuyer> fixedPrices; |
3620 /** | 3646 |
3621 * Guaranteed impressions as a percentage. This is the percentage of | 3647 /// Guaranteed impressions as a percentage. This is the percentage of |
3622 * guaranteed looks that the buyer is guaranteeing to buy. | 3648 /// guaranteed looks that the buyer is guaranteeing to buy. |
3623 */ | |
3624 core.String guaranteedImpressions; | 3649 core.String guaranteedImpressions; |
3625 /** | 3650 |
3626 * Count of guaranteed looks. Required for deal, optional for product. For CPD | 3651 /// Count of guaranteed looks. Required for deal, optional for product. For |
3627 * deals, buyer changes to guaranteed_looks will be ignored. | 3652 /// CPD deals, buyer changes to guaranteed_looks will be ignored. |
3628 */ | |
3629 core.String guaranteedLooks; | 3653 core.String guaranteedLooks; |
3630 /** | 3654 |
3631 * Count of minimum daily looks for a CPD deal. For CPD deals, buyer should | 3655 /// Count of minimum daily looks for a CPD deal. For CPD deals, buyer should |
3632 * negotiate on this field instead of guaranteed_looks. | 3656 /// negotiate on this field instead of guaranteed_looks. |
3633 */ | |
3634 core.String minimumDailyLooks; | 3657 core.String minimumDailyLooks; |
3635 | 3658 |
3636 DealTermsGuaranteedFixedPriceTerms(); | 3659 DealTermsGuaranteedFixedPriceTerms(); |
3637 | 3660 |
3638 DealTermsGuaranteedFixedPriceTerms.fromJson(core.Map _json) { | 3661 DealTermsGuaranteedFixedPriceTerms.fromJson(core.Map _json) { |
3639 if (_json.containsKey("billingInfo")) { | 3662 if (_json.containsKey("billingInfo")) { |
3640 billingInfo = new DealTermsGuaranteedFixedPriceTermsBillingInfo.fromJson(_
json["billingInfo"]); | 3663 billingInfo = new DealTermsGuaranteedFixedPriceTermsBillingInfo.fromJson( |
| 3664 _json["billingInfo"]); |
3641 } | 3665 } |
3642 if (_json.containsKey("fixedPrices")) { | 3666 if (_json.containsKey("fixedPrices")) { |
3643 fixedPrices = _json["fixedPrices"].map((value) => new PricePerBuyer.fromJs
on(value)).toList(); | 3667 fixedPrices = _json["fixedPrices"] |
| 3668 .map((value) => new PricePerBuyer.fromJson(value)) |
| 3669 .toList(); |
3644 } | 3670 } |
3645 if (_json.containsKey("guaranteedImpressions")) { | 3671 if (_json.containsKey("guaranteedImpressions")) { |
3646 guaranteedImpressions = _json["guaranteedImpressions"]; | 3672 guaranteedImpressions = _json["guaranteedImpressions"]; |
3647 } | 3673 } |
3648 if (_json.containsKey("guaranteedLooks")) { | 3674 if (_json.containsKey("guaranteedLooks")) { |
3649 guaranteedLooks = _json["guaranteedLooks"]; | 3675 guaranteedLooks = _json["guaranteedLooks"]; |
3650 } | 3676 } |
3651 if (_json.containsKey("minimumDailyLooks")) { | 3677 if (_json.containsKey("minimumDailyLooks")) { |
3652 minimumDailyLooks = _json["minimumDailyLooks"]; | 3678 minimumDailyLooks = _json["minimumDailyLooks"]; |
3653 } | 3679 } |
3654 } | 3680 } |
3655 | 3681 |
3656 core.Map<core.String, core.Object> toJson() { | 3682 core.Map<core.String, core.Object> toJson() { |
3657 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3683 final core.Map<core.String, core.Object> _json = |
| 3684 new core.Map<core.String, core.Object>(); |
3658 if (billingInfo != null) { | 3685 if (billingInfo != null) { |
3659 _json["billingInfo"] = (billingInfo).toJson(); | 3686 _json["billingInfo"] = (billingInfo).toJson(); |
3660 } | 3687 } |
3661 if (fixedPrices != null) { | 3688 if (fixedPrices != null) { |
3662 _json["fixedPrices"] = fixedPrices.map((value) => (value).toJson()).toList
(); | 3689 _json["fixedPrices"] = |
| 3690 fixedPrices.map((value) => (value).toJson()).toList(); |
3663 } | 3691 } |
3664 if (guaranteedImpressions != null) { | 3692 if (guaranteedImpressions != null) { |
3665 _json["guaranteedImpressions"] = guaranteedImpressions; | 3693 _json["guaranteedImpressions"] = guaranteedImpressions; |
3666 } | 3694 } |
3667 if (guaranteedLooks != null) { | 3695 if (guaranteedLooks != null) { |
3668 _json["guaranteedLooks"] = guaranteedLooks; | 3696 _json["guaranteedLooks"] = guaranteedLooks; |
3669 } | 3697 } |
3670 if (minimumDailyLooks != null) { | 3698 if (minimumDailyLooks != null) { |
3671 _json["minimumDailyLooks"] = minimumDailyLooks; | 3699 _json["minimumDailyLooks"] = minimumDailyLooks; |
3672 } | 3700 } |
3673 return _json; | 3701 return _json; |
3674 } | 3702 } |
3675 } | 3703 } |
3676 | 3704 |
3677 class DealTermsGuaranteedFixedPriceTermsBillingInfo { | 3705 class DealTermsGuaranteedFixedPriceTermsBillingInfo { |
3678 /** | 3706 /// The timestamp (in ms since epoch) when the original reservation price for |
3679 * The timestamp (in ms since epoch) when the original reservation price for | 3707 /// the deal was first converted to DFP currency. This is used to convert the |
3680 * the deal was first converted to DFP currency. This is used to convert the | 3708 /// contracted price into buyer's currency without discrepancy. |
3681 * contracted price into buyer's currency without discrepancy. | |
3682 */ | |
3683 core.String currencyConversionTimeMs; | 3709 core.String currencyConversionTimeMs; |
3684 /** | 3710 |
3685 * The DFP line item id associated with this deal. For features like CPD, | 3711 /// The DFP line item id associated with this deal. For features like CPD, |
3686 * buyers can retrieve the DFP line item for billing reconciliation. | 3712 /// buyers can retrieve the DFP line item for billing reconciliation. |
3687 */ | |
3688 core.String dfpLineItemId; | 3713 core.String dfpLineItemId; |
3689 /** | 3714 |
3690 * The original contracted quantity (# impressions) for this deal. To ensure | 3715 /// The original contracted quantity (# impressions) for this deal. To ensure |
3691 * delivery, sometimes the publisher will book the deal with a impression | 3716 /// delivery, sometimes the publisher will book the deal with a impression |
3692 * buffer, such that guaranteed_looks is greater than the contracted quantity. | 3717 /// buffer, such that guaranteed_looks is greater than the contracted |
3693 * However clients are billed using the original contracted quantity. | 3718 /// quantity. However clients are billed using the original contracted |
3694 */ | 3719 /// quantity. |
3695 core.String originalContractedQuantity; | 3720 core.String originalContractedQuantity; |
3696 /** | 3721 |
3697 * The original reservation price for the deal, if the currency code is | 3722 /// The original reservation price for the deal, if the currency code is |
3698 * different from the one used in negotiation. | 3723 /// different from the one used in negotiation. |
3699 */ | |
3700 Price price; | 3724 Price price; |
3701 | 3725 |
3702 DealTermsGuaranteedFixedPriceTermsBillingInfo(); | 3726 DealTermsGuaranteedFixedPriceTermsBillingInfo(); |
3703 | 3727 |
3704 DealTermsGuaranteedFixedPriceTermsBillingInfo.fromJson(core.Map _json) { | 3728 DealTermsGuaranteedFixedPriceTermsBillingInfo.fromJson(core.Map _json) { |
3705 if (_json.containsKey("currencyConversionTimeMs")) { | 3729 if (_json.containsKey("currencyConversionTimeMs")) { |
3706 currencyConversionTimeMs = _json["currencyConversionTimeMs"]; | 3730 currencyConversionTimeMs = _json["currencyConversionTimeMs"]; |
3707 } | 3731 } |
3708 if (_json.containsKey("dfpLineItemId")) { | 3732 if (_json.containsKey("dfpLineItemId")) { |
3709 dfpLineItemId = _json["dfpLineItemId"]; | 3733 dfpLineItemId = _json["dfpLineItemId"]; |
3710 } | 3734 } |
3711 if (_json.containsKey("originalContractedQuantity")) { | 3735 if (_json.containsKey("originalContractedQuantity")) { |
3712 originalContractedQuantity = _json["originalContractedQuantity"]; | 3736 originalContractedQuantity = _json["originalContractedQuantity"]; |
3713 } | 3737 } |
3714 if (_json.containsKey("price")) { | 3738 if (_json.containsKey("price")) { |
3715 price = new Price.fromJson(_json["price"]); | 3739 price = new Price.fromJson(_json["price"]); |
3716 } | 3740 } |
3717 } | 3741 } |
3718 | 3742 |
3719 core.Map<core.String, core.Object> toJson() { | 3743 core.Map<core.String, core.Object> toJson() { |
3720 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3744 final core.Map<core.String, core.Object> _json = |
| 3745 new core.Map<core.String, core.Object>(); |
3721 if (currencyConversionTimeMs != null) { | 3746 if (currencyConversionTimeMs != null) { |
3722 _json["currencyConversionTimeMs"] = currencyConversionTimeMs; | 3747 _json["currencyConversionTimeMs"] = currencyConversionTimeMs; |
3723 } | 3748 } |
3724 if (dfpLineItemId != null) { | 3749 if (dfpLineItemId != null) { |
3725 _json["dfpLineItemId"] = dfpLineItemId; | 3750 _json["dfpLineItemId"] = dfpLineItemId; |
3726 } | 3751 } |
3727 if (originalContractedQuantity != null) { | 3752 if (originalContractedQuantity != null) { |
3728 _json["originalContractedQuantity"] = originalContractedQuantity; | 3753 _json["originalContractedQuantity"] = originalContractedQuantity; |
3729 } | 3754 } |
3730 if (price != null) { | 3755 if (price != null) { |
3731 _json["price"] = (price).toJson(); | 3756 _json["price"] = (price).toJson(); |
3732 } | 3757 } |
3733 return _json; | 3758 return _json; |
3734 } | 3759 } |
3735 } | 3760 } |
3736 | 3761 |
3737 class DealTermsNonGuaranteedAuctionTerms { | 3762 class DealTermsNonGuaranteedAuctionTerms { |
3738 /** | 3763 /// True if open auction buyers are allowed to compete with invited buyers in |
3739 * True if open auction buyers are allowed to compete with invited buyers in | 3764 /// this private auction (buyer-readonly). |
3740 * this private auction (buyer-readonly). | |
3741 */ | |
3742 core.bool autoOptimizePrivateAuction; | 3765 core.bool autoOptimizePrivateAuction; |
3743 /** Reserve price for the specified buyer. */ | 3766 |
| 3767 /// Reserve price for the specified buyer. |
3744 core.List<PricePerBuyer> reservePricePerBuyers; | 3768 core.List<PricePerBuyer> reservePricePerBuyers; |
3745 | 3769 |
3746 DealTermsNonGuaranteedAuctionTerms(); | 3770 DealTermsNonGuaranteedAuctionTerms(); |
3747 | 3771 |
3748 DealTermsNonGuaranteedAuctionTerms.fromJson(core.Map _json) { | 3772 DealTermsNonGuaranteedAuctionTerms.fromJson(core.Map _json) { |
3749 if (_json.containsKey("autoOptimizePrivateAuction")) { | 3773 if (_json.containsKey("autoOptimizePrivateAuction")) { |
3750 autoOptimizePrivateAuction = _json["autoOptimizePrivateAuction"]; | 3774 autoOptimizePrivateAuction = _json["autoOptimizePrivateAuction"]; |
3751 } | 3775 } |
3752 if (_json.containsKey("reservePricePerBuyers")) { | 3776 if (_json.containsKey("reservePricePerBuyers")) { |
3753 reservePricePerBuyers = _json["reservePricePerBuyers"].map((value) => new
PricePerBuyer.fromJson(value)).toList(); | 3777 reservePricePerBuyers = _json["reservePricePerBuyers"] |
| 3778 .map((value) => new PricePerBuyer.fromJson(value)) |
| 3779 .toList(); |
3754 } | 3780 } |
3755 } | 3781 } |
3756 | 3782 |
3757 core.Map<core.String, core.Object> toJson() { | 3783 core.Map<core.String, core.Object> toJson() { |
3758 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3784 final core.Map<core.String, core.Object> _json = |
| 3785 new core.Map<core.String, core.Object>(); |
3759 if (autoOptimizePrivateAuction != null) { | 3786 if (autoOptimizePrivateAuction != null) { |
3760 _json["autoOptimizePrivateAuction"] = autoOptimizePrivateAuction; | 3787 _json["autoOptimizePrivateAuction"] = autoOptimizePrivateAuction; |
3761 } | 3788 } |
3762 if (reservePricePerBuyers != null) { | 3789 if (reservePricePerBuyers != null) { |
3763 _json["reservePricePerBuyers"] = reservePricePerBuyers.map((value) => (val
ue).toJson()).toList(); | 3790 _json["reservePricePerBuyers"] = |
| 3791 reservePricePerBuyers.map((value) => (value).toJson()).toList(); |
3764 } | 3792 } |
3765 return _json; | 3793 return _json; |
3766 } | 3794 } |
3767 } | 3795 } |
3768 | 3796 |
3769 class DealTermsNonGuaranteedFixedPriceTerms { | 3797 class DealTermsNonGuaranteedFixedPriceTerms { |
3770 /** Fixed price for the specified buyer. */ | 3798 /// Fixed price for the specified buyer. |
3771 core.List<PricePerBuyer> fixedPrices; | 3799 core.List<PricePerBuyer> fixedPrices; |
3772 | 3800 |
3773 DealTermsNonGuaranteedFixedPriceTerms(); | 3801 DealTermsNonGuaranteedFixedPriceTerms(); |
3774 | 3802 |
3775 DealTermsNonGuaranteedFixedPriceTerms.fromJson(core.Map _json) { | 3803 DealTermsNonGuaranteedFixedPriceTerms.fromJson(core.Map _json) { |
3776 if (_json.containsKey("fixedPrices")) { | 3804 if (_json.containsKey("fixedPrices")) { |
3777 fixedPrices = _json["fixedPrices"].map((value) => new PricePerBuyer.fromJs
on(value)).toList(); | 3805 fixedPrices = _json["fixedPrices"] |
| 3806 .map((value) => new PricePerBuyer.fromJson(value)) |
| 3807 .toList(); |
3778 } | 3808 } |
3779 } | 3809 } |
3780 | 3810 |
3781 core.Map<core.String, core.Object> toJson() { | 3811 core.Map<core.String, core.Object> toJson() { |
3782 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3812 final core.Map<core.String, core.Object> _json = |
| 3813 new core.Map<core.String, core.Object>(); |
3783 if (fixedPrices != null) { | 3814 if (fixedPrices != null) { |
3784 _json["fixedPrices"] = fixedPrices.map((value) => (value).toJson()).toList
(); | 3815 _json["fixedPrices"] = |
| 3816 fixedPrices.map((value) => (value).toJson()).toList(); |
3785 } | 3817 } |
3786 return _json; | 3818 return _json; |
3787 } | 3819 } |
3788 } | 3820 } |
3789 | 3821 |
3790 class DealTermsRubiconNonGuaranteedTerms { | 3822 class DealTermsRubiconNonGuaranteedTerms { |
3791 /** Optional price for Rubicon priority access in the auction. */ | 3823 /// Optional price for Rubicon priority access in the auction. |
3792 Price priorityPrice; | 3824 Price priorityPrice; |
3793 /** Optional price for Rubicon standard access in the auction. */ | 3825 |
| 3826 /// Optional price for Rubicon standard access in the auction. |
3794 Price standardPrice; | 3827 Price standardPrice; |
3795 | 3828 |
3796 DealTermsRubiconNonGuaranteedTerms(); | 3829 DealTermsRubiconNonGuaranteedTerms(); |
3797 | 3830 |
3798 DealTermsRubiconNonGuaranteedTerms.fromJson(core.Map _json) { | 3831 DealTermsRubiconNonGuaranteedTerms.fromJson(core.Map _json) { |
3799 if (_json.containsKey("priorityPrice")) { | 3832 if (_json.containsKey("priorityPrice")) { |
3800 priorityPrice = new Price.fromJson(_json["priorityPrice"]); | 3833 priorityPrice = new Price.fromJson(_json["priorityPrice"]); |
3801 } | 3834 } |
3802 if (_json.containsKey("standardPrice")) { | 3835 if (_json.containsKey("standardPrice")) { |
3803 standardPrice = new Price.fromJson(_json["standardPrice"]); | 3836 standardPrice = new Price.fromJson(_json["standardPrice"]); |
3804 } | 3837 } |
3805 } | 3838 } |
3806 | 3839 |
3807 core.Map<core.String, core.Object> toJson() { | 3840 core.Map<core.String, core.Object> toJson() { |
3808 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3841 final core.Map<core.String, core.Object> _json = |
| 3842 new core.Map<core.String, core.Object>(); |
3809 if (priorityPrice != null) { | 3843 if (priorityPrice != null) { |
3810 _json["priorityPrice"] = (priorityPrice).toJson(); | 3844 _json["priorityPrice"] = (priorityPrice).toJson(); |
3811 } | 3845 } |
3812 if (standardPrice != null) { | 3846 if (standardPrice != null) { |
3813 _json["standardPrice"] = (standardPrice).toJson(); | 3847 _json["standardPrice"] = (standardPrice).toJson(); |
3814 } | 3848 } |
3815 return _json; | 3849 return _json; |
3816 } | 3850 } |
3817 } | 3851 } |
3818 | 3852 |
3819 class DeleteOrderDealsRequest { | 3853 class DeleteOrderDealsRequest { |
3820 /** List of deals to delete for a given proposal */ | 3854 /// List of deals to delete for a given proposal |
3821 core.List<core.String> dealIds; | 3855 core.List<core.String> dealIds; |
3822 /** The last known proposal revision number. */ | 3856 |
| 3857 /// The last known proposal revision number. |
3823 core.String proposalRevisionNumber; | 3858 core.String proposalRevisionNumber; |
3824 /** Indicates an optional action to take on the proposal */ | 3859 |
| 3860 /// Indicates an optional action to take on the proposal |
3825 core.String updateAction; | 3861 core.String updateAction; |
3826 | 3862 |
3827 DeleteOrderDealsRequest(); | 3863 DeleteOrderDealsRequest(); |
3828 | 3864 |
3829 DeleteOrderDealsRequest.fromJson(core.Map _json) { | 3865 DeleteOrderDealsRequest.fromJson(core.Map _json) { |
3830 if (_json.containsKey("dealIds")) { | 3866 if (_json.containsKey("dealIds")) { |
3831 dealIds = _json["dealIds"]; | 3867 dealIds = _json["dealIds"]; |
3832 } | 3868 } |
3833 if (_json.containsKey("proposalRevisionNumber")) { | 3869 if (_json.containsKey("proposalRevisionNumber")) { |
3834 proposalRevisionNumber = _json["proposalRevisionNumber"]; | 3870 proposalRevisionNumber = _json["proposalRevisionNumber"]; |
3835 } | 3871 } |
3836 if (_json.containsKey("updateAction")) { | 3872 if (_json.containsKey("updateAction")) { |
3837 updateAction = _json["updateAction"]; | 3873 updateAction = _json["updateAction"]; |
3838 } | 3874 } |
3839 } | 3875 } |
3840 | 3876 |
3841 core.Map<core.String, core.Object> toJson() { | 3877 core.Map<core.String, core.Object> toJson() { |
3842 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3878 final core.Map<core.String, core.Object> _json = |
| 3879 new core.Map<core.String, core.Object>(); |
3843 if (dealIds != null) { | 3880 if (dealIds != null) { |
3844 _json["dealIds"] = dealIds; | 3881 _json["dealIds"] = dealIds; |
3845 } | 3882 } |
3846 if (proposalRevisionNumber != null) { | 3883 if (proposalRevisionNumber != null) { |
3847 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 3884 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
3848 } | 3885 } |
3849 if (updateAction != null) { | 3886 if (updateAction != null) { |
3850 _json["updateAction"] = updateAction; | 3887 _json["updateAction"] = updateAction; |
3851 } | 3888 } |
3852 return _json; | 3889 return _json; |
3853 } | 3890 } |
3854 } | 3891 } |
3855 | 3892 |
3856 class DeleteOrderDealsResponse { | 3893 class DeleteOrderDealsResponse { |
3857 /** List of deals deleted (in the same proposal as passed in the request) */ | 3894 /// List of deals deleted (in the same proposal as passed in the request) |
3858 core.List<MarketplaceDeal> deals; | 3895 core.List<MarketplaceDeal> deals; |
3859 /** The updated revision number for the proposal. */ | 3896 |
| 3897 /// The updated revision number for the proposal. |
3860 core.String proposalRevisionNumber; | 3898 core.String proposalRevisionNumber; |
3861 | 3899 |
3862 DeleteOrderDealsResponse(); | 3900 DeleteOrderDealsResponse(); |
3863 | 3901 |
3864 DeleteOrderDealsResponse.fromJson(core.Map _json) { | 3902 DeleteOrderDealsResponse.fromJson(core.Map _json) { |
3865 if (_json.containsKey("deals")) { | 3903 if (_json.containsKey("deals")) { |
3866 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); | 3904 deals = _json["deals"] |
| 3905 .map((value) => new MarketplaceDeal.fromJson(value)) |
| 3906 .toList(); |
3867 } | 3907 } |
3868 if (_json.containsKey("proposalRevisionNumber")) { | 3908 if (_json.containsKey("proposalRevisionNumber")) { |
3869 proposalRevisionNumber = _json["proposalRevisionNumber"]; | 3909 proposalRevisionNumber = _json["proposalRevisionNumber"]; |
3870 } | 3910 } |
3871 } | 3911 } |
3872 | 3912 |
3873 core.Map<core.String, core.Object> toJson() { | 3913 core.Map<core.String, core.Object> toJson() { |
3874 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3914 final core.Map<core.String, core.Object> _json = |
| 3915 new core.Map<core.String, core.Object>(); |
3875 if (deals != null) { | 3916 if (deals != null) { |
3876 _json["deals"] = deals.map((value) => (value).toJson()).toList(); | 3917 _json["deals"] = deals.map((value) => (value).toJson()).toList(); |
3877 } | 3918 } |
3878 if (proposalRevisionNumber != null) { | 3919 if (proposalRevisionNumber != null) { |
3879 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 3920 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
3880 } | 3921 } |
3881 return _json; | 3922 return _json; |
3882 } | 3923 } |
3883 } | 3924 } |
3884 | 3925 |
3885 class DeliveryControl { | 3926 class DeliveryControl { |
3886 core.String creativeBlockingLevel; | 3927 core.String creativeBlockingLevel; |
3887 core.String deliveryRateType; | 3928 core.String deliveryRateType; |
3888 core.List<DeliveryControlFrequencyCap> frequencyCaps; | 3929 core.List<DeliveryControlFrequencyCap> frequencyCaps; |
3889 | 3930 |
3890 DeliveryControl(); | 3931 DeliveryControl(); |
3891 | 3932 |
3892 DeliveryControl.fromJson(core.Map _json) { | 3933 DeliveryControl.fromJson(core.Map _json) { |
3893 if (_json.containsKey("creativeBlockingLevel")) { | 3934 if (_json.containsKey("creativeBlockingLevel")) { |
3894 creativeBlockingLevel = _json["creativeBlockingLevel"]; | 3935 creativeBlockingLevel = _json["creativeBlockingLevel"]; |
3895 } | 3936 } |
3896 if (_json.containsKey("deliveryRateType")) { | 3937 if (_json.containsKey("deliveryRateType")) { |
3897 deliveryRateType = _json["deliveryRateType"]; | 3938 deliveryRateType = _json["deliveryRateType"]; |
3898 } | 3939 } |
3899 if (_json.containsKey("frequencyCaps")) { | 3940 if (_json.containsKey("frequencyCaps")) { |
3900 frequencyCaps = _json["frequencyCaps"].map((value) => new DeliveryControlF
requencyCap.fromJson(value)).toList(); | 3941 frequencyCaps = _json["frequencyCaps"] |
| 3942 .map((value) => new DeliveryControlFrequencyCap.fromJson(value)) |
| 3943 .toList(); |
3901 } | 3944 } |
3902 } | 3945 } |
3903 | 3946 |
3904 core.Map<core.String, core.Object> toJson() { | 3947 core.Map<core.String, core.Object> toJson() { |
3905 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3948 final core.Map<core.String, core.Object> _json = |
| 3949 new core.Map<core.String, core.Object>(); |
3906 if (creativeBlockingLevel != null) { | 3950 if (creativeBlockingLevel != null) { |
3907 _json["creativeBlockingLevel"] = creativeBlockingLevel; | 3951 _json["creativeBlockingLevel"] = creativeBlockingLevel; |
3908 } | 3952 } |
3909 if (deliveryRateType != null) { | 3953 if (deliveryRateType != null) { |
3910 _json["deliveryRateType"] = deliveryRateType; | 3954 _json["deliveryRateType"] = deliveryRateType; |
3911 } | 3955 } |
3912 if (frequencyCaps != null) { | 3956 if (frequencyCaps != null) { |
3913 _json["frequencyCaps"] = frequencyCaps.map((value) => (value).toJson()).to
List(); | 3957 _json["frequencyCaps"] = |
| 3958 frequencyCaps.map((value) => (value).toJson()).toList(); |
3914 } | 3959 } |
3915 return _json; | 3960 return _json; |
3916 } | 3961 } |
3917 } | 3962 } |
3918 | 3963 |
3919 class DeliveryControlFrequencyCap { | 3964 class DeliveryControlFrequencyCap { |
3920 core.int maxImpressions; | 3965 core.int maxImpressions; |
3921 core.int numTimeUnits; | 3966 core.int numTimeUnits; |
3922 core.String timeUnitType; | 3967 core.String timeUnitType; |
3923 | 3968 |
3924 DeliveryControlFrequencyCap(); | 3969 DeliveryControlFrequencyCap(); |
3925 | 3970 |
3926 DeliveryControlFrequencyCap.fromJson(core.Map _json) { | 3971 DeliveryControlFrequencyCap.fromJson(core.Map _json) { |
3927 if (_json.containsKey("maxImpressions")) { | 3972 if (_json.containsKey("maxImpressions")) { |
3928 maxImpressions = _json["maxImpressions"]; | 3973 maxImpressions = _json["maxImpressions"]; |
3929 } | 3974 } |
3930 if (_json.containsKey("numTimeUnits")) { | 3975 if (_json.containsKey("numTimeUnits")) { |
3931 numTimeUnits = _json["numTimeUnits"]; | 3976 numTimeUnits = _json["numTimeUnits"]; |
3932 } | 3977 } |
3933 if (_json.containsKey("timeUnitType")) { | 3978 if (_json.containsKey("timeUnitType")) { |
3934 timeUnitType = _json["timeUnitType"]; | 3979 timeUnitType = _json["timeUnitType"]; |
3935 } | 3980 } |
3936 } | 3981 } |
3937 | 3982 |
3938 core.Map<core.String, core.Object> toJson() { | 3983 core.Map<core.String, core.Object> toJson() { |
3939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3984 final core.Map<core.String, core.Object> _json = |
| 3985 new core.Map<core.String, core.Object>(); |
3940 if (maxImpressions != null) { | 3986 if (maxImpressions != null) { |
3941 _json["maxImpressions"] = maxImpressions; | 3987 _json["maxImpressions"] = maxImpressions; |
3942 } | 3988 } |
3943 if (numTimeUnits != null) { | 3989 if (numTimeUnits != null) { |
3944 _json["numTimeUnits"] = numTimeUnits; | 3990 _json["numTimeUnits"] = numTimeUnits; |
3945 } | 3991 } |
3946 if (timeUnitType != null) { | 3992 if (timeUnitType != null) { |
3947 _json["timeUnitType"] = timeUnitType; | 3993 _json["timeUnitType"] = timeUnitType; |
3948 } | 3994 } |
3949 return _json; | 3995 return _json; |
3950 } | 3996 } |
3951 } | 3997 } |
3952 | 3998 |
3953 /** | 3999 /// This message carries publisher provided breakdown. E.g. {dimension_type: |
3954 * This message carries publisher provided breakdown. E.g. {dimension_type: | 4000 /// 'COUNTRY', [{dimension_value: {id: 1, name: 'US'}}, {dimension_value: {id: |
3955 * 'COUNTRY', [{dimension_value: {id: 1, name: 'US'}}, {dimension_value: {id: 2, | 4001 /// 2, name: 'UK'}}]} |
3956 * name: 'UK'}}]} | |
3957 */ | |
3958 class Dimension { | 4002 class Dimension { |
3959 core.String dimensionType; | 4003 core.String dimensionType; |
3960 core.List<DimensionDimensionValue> dimensionValues; | 4004 core.List<DimensionDimensionValue> dimensionValues; |
3961 | 4005 |
3962 Dimension(); | 4006 Dimension(); |
3963 | 4007 |
3964 Dimension.fromJson(core.Map _json) { | 4008 Dimension.fromJson(core.Map _json) { |
3965 if (_json.containsKey("dimensionType")) { | 4009 if (_json.containsKey("dimensionType")) { |
3966 dimensionType = _json["dimensionType"]; | 4010 dimensionType = _json["dimensionType"]; |
3967 } | 4011 } |
3968 if (_json.containsKey("dimensionValues")) { | 4012 if (_json.containsKey("dimensionValues")) { |
3969 dimensionValues = _json["dimensionValues"].map((value) => new DimensionDim
ensionValue.fromJson(value)).toList(); | 4013 dimensionValues = _json["dimensionValues"] |
| 4014 .map((value) => new DimensionDimensionValue.fromJson(value)) |
| 4015 .toList(); |
3970 } | 4016 } |
3971 } | 4017 } |
3972 | 4018 |
3973 core.Map<core.String, core.Object> toJson() { | 4019 core.Map<core.String, core.Object> toJson() { |
3974 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4020 final core.Map<core.String, core.Object> _json = |
| 4021 new core.Map<core.String, core.Object>(); |
3975 if (dimensionType != null) { | 4022 if (dimensionType != null) { |
3976 _json["dimensionType"] = dimensionType; | 4023 _json["dimensionType"] = dimensionType; |
3977 } | 4024 } |
3978 if (dimensionValues != null) { | 4025 if (dimensionValues != null) { |
3979 _json["dimensionValues"] = dimensionValues.map((value) => (value).toJson()
).toList(); | 4026 _json["dimensionValues"] = |
| 4027 dimensionValues.map((value) => (value).toJson()).toList(); |
3980 } | 4028 } |
3981 return _json; | 4029 return _json; |
3982 } | 4030 } |
3983 } | 4031 } |
3984 | 4032 |
3985 /** Value of the dimension. */ | 4033 /// Value of the dimension. |
3986 class DimensionDimensionValue { | 4034 class DimensionDimensionValue { |
3987 /** Id of the dimension. */ | 4035 /// Id of the dimension. |
3988 core.int id; | 4036 core.int id; |
3989 /** | 4037 |
3990 * Name of the dimension mainly for debugging purposes, except for the case of | 4038 /// Name of the dimension mainly for debugging purposes, except for the case |
3991 * CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids. | 4039 /// of CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids. |
3992 */ | |
3993 core.String name; | 4040 core.String name; |
3994 /** | 4041 |
3995 * Percent of total impressions for a dimension type. e.g. {dimension_type: | 4042 /// Percent of total impressions for a dimension type. e.g. {dimension_type: |
3996 * 'GENDER', [{dimension_value: {id: 1, name: 'MALE', percentage: 60}}]} | 4043 /// 'GENDER', [{dimension_value: {id: 1, name: 'MALE', percentage: 60}}]} |
3997 * Gender MALE is 60% of all impressions which have gender. | 4044 /// Gender MALE is 60% of all impressions which have gender. |
3998 */ | |
3999 core.int percentage; | 4045 core.int percentage; |
4000 | 4046 |
4001 DimensionDimensionValue(); | 4047 DimensionDimensionValue(); |
4002 | 4048 |
4003 DimensionDimensionValue.fromJson(core.Map _json) { | 4049 DimensionDimensionValue.fromJson(core.Map _json) { |
4004 if (_json.containsKey("id")) { | 4050 if (_json.containsKey("id")) { |
4005 id = _json["id"]; | 4051 id = _json["id"]; |
4006 } | 4052 } |
4007 if (_json.containsKey("name")) { | 4053 if (_json.containsKey("name")) { |
4008 name = _json["name"]; | 4054 name = _json["name"]; |
4009 } | 4055 } |
4010 if (_json.containsKey("percentage")) { | 4056 if (_json.containsKey("percentage")) { |
4011 percentage = _json["percentage"]; | 4057 percentage = _json["percentage"]; |
4012 } | 4058 } |
4013 } | 4059 } |
4014 | 4060 |
4015 core.Map<core.String, core.Object> toJson() { | 4061 core.Map<core.String, core.Object> toJson() { |
4016 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4062 final core.Map<core.String, core.Object> _json = |
| 4063 new core.Map<core.String, core.Object>(); |
4017 if (id != null) { | 4064 if (id != null) { |
4018 _json["id"] = id; | 4065 _json["id"] = id; |
4019 } | 4066 } |
4020 if (name != null) { | 4067 if (name != null) { |
4021 _json["name"] = name; | 4068 _json["name"] = name; |
4022 } | 4069 } |
4023 if (percentage != null) { | 4070 if (percentage != null) { |
4024 _json["percentage"] = percentage; | 4071 _json["percentage"] = percentage; |
4025 } | 4072 } |
4026 return _json; | 4073 return _json; |
4027 } | 4074 } |
4028 } | 4075 } |
4029 | 4076 |
4030 class EditAllOrderDealsRequest { | 4077 class EditAllOrderDealsRequest { |
4031 /** | 4078 /// List of deals to edit. Service may perform 3 different operations based |
4032 * List of deals to edit. Service may perform 3 different operations based on | 4079 /// on comparison of deals in this list vs deals already persisted in |
4033 * comparison of deals in this list vs deals already persisted in database: 1. | 4080 /// database: 1. Add new deal to proposal If a deal in this list does not |
4034 * Add new deal to proposal If a deal in this list does not exist in the | 4081 /// exist in the proposal, the service will create a new deal and add it to |
4035 * proposal, the service will create a new deal and add it to the proposal. | 4082 /// the proposal. Validation will follow AddOrderDealsRequest. 2. Update |
4036 * Validation will follow AddOrderDealsRequest. 2. Update existing deal in the | 4083 /// existing deal in the proposal If a deal in this list already exist in the |
4037 * proposal If a deal in this list already exist in the proposal, the service | 4084 /// proposal, the service will update that existing deal to this new deal in |
4038 * will update that existing deal to this new deal in the request. Validation | 4085 /// the request. Validation will follow UpdateOrderDealsRequest. 3. Delete |
4039 * will follow UpdateOrderDealsRequest. 3. Delete deals from the proposal | 4086 /// deals from the proposal (just need the id) If a existing deal in the |
4040 * (just need the id) If a existing deal in the proposal is not present in | 4087 /// proposal is not present in this list, the service will delete that deal |
4041 * this list, the service will delete that deal from the proposal. Validation | 4088 /// from the proposal. Validation will follow DeleteOrderDealsRequest. |
4042 * will follow DeleteOrderDealsRequest. | |
4043 */ | |
4044 core.List<MarketplaceDeal> deals; | 4089 core.List<MarketplaceDeal> deals; |
4045 /** | 4090 |
4046 * If specified, also updates the proposal in the batch transaction. This is | 4091 /// If specified, also updates the proposal in the batch transaction. This is |
4047 * useful when the proposal and the deals need to be updated in one | 4092 /// useful when the proposal and the deals need to be updated in one |
4048 * transaction. | 4093 /// transaction. |
4049 */ | |
4050 Proposal proposal; | 4094 Proposal proposal; |
4051 /** The last known revision number for the proposal. */ | 4095 |
| 4096 /// The last known revision number for the proposal. |
4052 core.String proposalRevisionNumber; | 4097 core.String proposalRevisionNumber; |
4053 /** Indicates an optional action to take on the proposal */ | 4098 |
| 4099 /// Indicates an optional action to take on the proposal |
4054 core.String updateAction; | 4100 core.String updateAction; |
4055 | 4101 |
4056 EditAllOrderDealsRequest(); | 4102 EditAllOrderDealsRequest(); |
4057 | 4103 |
4058 EditAllOrderDealsRequest.fromJson(core.Map _json) { | 4104 EditAllOrderDealsRequest.fromJson(core.Map _json) { |
4059 if (_json.containsKey("deals")) { | 4105 if (_json.containsKey("deals")) { |
4060 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); | 4106 deals = _json["deals"] |
| 4107 .map((value) => new MarketplaceDeal.fromJson(value)) |
| 4108 .toList(); |
4061 } | 4109 } |
4062 if (_json.containsKey("proposal")) { | 4110 if (_json.containsKey("proposal")) { |
4063 proposal = new Proposal.fromJson(_json["proposal"]); | 4111 proposal = new Proposal.fromJson(_json["proposal"]); |
4064 } | 4112 } |
4065 if (_json.containsKey("proposalRevisionNumber")) { | 4113 if (_json.containsKey("proposalRevisionNumber")) { |
4066 proposalRevisionNumber = _json["proposalRevisionNumber"]; | 4114 proposalRevisionNumber = _json["proposalRevisionNumber"]; |
4067 } | 4115 } |
4068 if (_json.containsKey("updateAction")) { | 4116 if (_json.containsKey("updateAction")) { |
4069 updateAction = _json["updateAction"]; | 4117 updateAction = _json["updateAction"]; |
4070 } | 4118 } |
4071 } | 4119 } |
4072 | 4120 |
4073 core.Map<core.String, core.Object> toJson() { | 4121 core.Map<core.String, core.Object> toJson() { |
4074 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4122 final core.Map<core.String, core.Object> _json = |
| 4123 new core.Map<core.String, core.Object>(); |
4075 if (deals != null) { | 4124 if (deals != null) { |
4076 _json["deals"] = deals.map((value) => (value).toJson()).toList(); | 4125 _json["deals"] = deals.map((value) => (value).toJson()).toList(); |
4077 } | 4126 } |
4078 if (proposal != null) { | 4127 if (proposal != null) { |
4079 _json["proposal"] = (proposal).toJson(); | 4128 _json["proposal"] = (proposal).toJson(); |
4080 } | 4129 } |
4081 if (proposalRevisionNumber != null) { | 4130 if (proposalRevisionNumber != null) { |
4082 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 4131 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
4083 } | 4132 } |
4084 if (updateAction != null) { | 4133 if (updateAction != null) { |
4085 _json["updateAction"] = updateAction; | 4134 _json["updateAction"] = updateAction; |
4086 } | 4135 } |
4087 return _json; | 4136 return _json; |
4088 } | 4137 } |
4089 } | 4138 } |
4090 | 4139 |
4091 class EditAllOrderDealsResponse { | 4140 class EditAllOrderDealsResponse { |
4092 /** List of all deals in the proposal after edit. */ | 4141 /// List of all deals in the proposal after edit. |
4093 core.List<MarketplaceDeal> deals; | 4142 core.List<MarketplaceDeal> deals; |
4094 /** The latest revision number after the update has been applied. */ | 4143 |
| 4144 /// The latest revision number after the update has been applied. |
4095 core.String orderRevisionNumber; | 4145 core.String orderRevisionNumber; |
4096 | 4146 |
4097 EditAllOrderDealsResponse(); | 4147 EditAllOrderDealsResponse(); |
4098 | 4148 |
4099 EditAllOrderDealsResponse.fromJson(core.Map _json) { | 4149 EditAllOrderDealsResponse.fromJson(core.Map _json) { |
4100 if (_json.containsKey("deals")) { | 4150 if (_json.containsKey("deals")) { |
4101 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); | 4151 deals = _json["deals"] |
| 4152 .map((value) => new MarketplaceDeal.fromJson(value)) |
| 4153 .toList(); |
4102 } | 4154 } |
4103 if (_json.containsKey("orderRevisionNumber")) { | 4155 if (_json.containsKey("orderRevisionNumber")) { |
4104 orderRevisionNumber = _json["orderRevisionNumber"]; | 4156 orderRevisionNumber = _json["orderRevisionNumber"]; |
4105 } | 4157 } |
4106 } | 4158 } |
4107 | 4159 |
4108 core.Map<core.String, core.Object> toJson() { | 4160 core.Map<core.String, core.Object> toJson() { |
4109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4161 final core.Map<core.String, core.Object> _json = |
| 4162 new core.Map<core.String, core.Object>(); |
4110 if (deals != null) { | 4163 if (deals != null) { |
4111 _json["deals"] = deals.map((value) => (value).toJson()).toList(); | 4164 _json["deals"] = deals.map((value) => (value).toJson()).toList(); |
4112 } | 4165 } |
4113 if (orderRevisionNumber != null) { | 4166 if (orderRevisionNumber != null) { |
4114 _json["orderRevisionNumber"] = orderRevisionNumber; | 4167 _json["orderRevisionNumber"] = orderRevisionNumber; |
4115 } | 4168 } |
4116 return _json; | 4169 return _json; |
4117 } | 4170 } |
4118 } | 4171 } |
4119 | 4172 |
4120 class GetOffersResponse { | 4173 class GetOffersResponse { |
4121 /** The returned list of products. */ | 4174 /// The returned list of products. |
4122 core.List<Product> products; | 4175 core.List<Product> products; |
4123 | 4176 |
4124 GetOffersResponse(); | 4177 GetOffersResponse(); |
4125 | 4178 |
4126 GetOffersResponse.fromJson(core.Map _json) { | 4179 GetOffersResponse.fromJson(core.Map _json) { |
4127 if (_json.containsKey("products")) { | 4180 if (_json.containsKey("products")) { |
4128 products = _json["products"].map((value) => new Product.fromJson(value)).t
oList(); | 4181 products = _json["products"] |
| 4182 .map((value) => new Product.fromJson(value)) |
| 4183 .toList(); |
4129 } | 4184 } |
4130 } | 4185 } |
4131 | 4186 |
4132 core.Map<core.String, core.Object> toJson() { | 4187 core.Map<core.String, core.Object> toJson() { |
4133 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4188 final core.Map<core.String, core.Object> _json = |
| 4189 new core.Map<core.String, core.Object>(); |
4134 if (products != null) { | 4190 if (products != null) { |
4135 _json["products"] = products.map((value) => (value).toJson()).toList(); | 4191 _json["products"] = products.map((value) => (value).toJson()).toList(); |
4136 } | 4192 } |
4137 return _json; | 4193 return _json; |
4138 } | 4194 } |
4139 } | 4195 } |
4140 | 4196 |
4141 class GetOrderDealsResponse { | 4197 class GetOrderDealsResponse { |
4142 /** List of deals for the proposal */ | 4198 /// List of deals for the proposal |
4143 core.List<MarketplaceDeal> deals; | 4199 core.List<MarketplaceDeal> deals; |
4144 | 4200 |
4145 GetOrderDealsResponse(); | 4201 GetOrderDealsResponse(); |
4146 | 4202 |
4147 GetOrderDealsResponse.fromJson(core.Map _json) { | 4203 GetOrderDealsResponse.fromJson(core.Map _json) { |
4148 if (_json.containsKey("deals")) { | 4204 if (_json.containsKey("deals")) { |
4149 deals = _json["deals"].map((value) => new MarketplaceDeal.fromJson(value))
.toList(); | 4205 deals = _json["deals"] |
| 4206 .map((value) => new MarketplaceDeal.fromJson(value)) |
| 4207 .toList(); |
4150 } | 4208 } |
4151 } | 4209 } |
4152 | 4210 |
4153 core.Map<core.String, core.Object> toJson() { | 4211 core.Map<core.String, core.Object> toJson() { |
4154 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4212 final core.Map<core.String, core.Object> _json = |
| 4213 new core.Map<core.String, core.Object>(); |
4155 if (deals != null) { | 4214 if (deals != null) { |
4156 _json["deals"] = deals.map((value) => (value).toJson()).toList(); | 4215 _json["deals"] = deals.map((value) => (value).toJson()).toList(); |
4157 } | 4216 } |
4158 return _json; | 4217 return _json; |
4159 } | 4218 } |
4160 } | 4219 } |
4161 | 4220 |
4162 class GetOrderNotesResponse { | 4221 class GetOrderNotesResponse { |
4163 /** | 4222 /// The list of matching notes. The notes for a proposal are ordered from |
4164 * The list of matching notes. The notes for a proposal are ordered from | 4223 /// oldest to newest. If the notes span multiple proposals, they will be |
4165 * oldest to newest. If the notes span multiple proposals, they will be | 4224 /// grouped by proposal, with the notes for the most recently modified |
4166 * grouped by proposal, with the notes for the most recently modified proposal | 4225 /// proposal appearing first. |
4167 * appearing first. | |
4168 */ | |
4169 core.List<MarketplaceNote> notes; | 4226 core.List<MarketplaceNote> notes; |
4170 | 4227 |
4171 GetOrderNotesResponse(); | 4228 GetOrderNotesResponse(); |
4172 | 4229 |
4173 GetOrderNotesResponse.fromJson(core.Map _json) { | 4230 GetOrderNotesResponse.fromJson(core.Map _json) { |
4174 if (_json.containsKey("notes")) { | 4231 if (_json.containsKey("notes")) { |
4175 notes = _json["notes"].map((value) => new MarketplaceNote.fromJson(value))
.toList(); | 4232 notes = _json["notes"] |
| 4233 .map((value) => new MarketplaceNote.fromJson(value)) |
| 4234 .toList(); |
4176 } | 4235 } |
4177 } | 4236 } |
4178 | 4237 |
4179 core.Map<core.String, core.Object> toJson() { | 4238 core.Map<core.String, core.Object> toJson() { |
4180 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4239 final core.Map<core.String, core.Object> _json = |
| 4240 new core.Map<core.String, core.Object>(); |
4181 if (notes != null) { | 4241 if (notes != null) { |
4182 _json["notes"] = notes.map((value) => (value).toJson()).toList(); | 4242 _json["notes"] = notes.map((value) => (value).toJson()).toList(); |
4183 } | 4243 } |
4184 return _json; | 4244 return _json; |
4185 } | 4245 } |
4186 } | 4246 } |
4187 | 4247 |
4188 class GetOrdersResponse { | 4248 class GetOrdersResponse { |
4189 /** The list of matching proposals. */ | 4249 /// The list of matching proposals. |
4190 core.List<Proposal> proposals; | 4250 core.List<Proposal> proposals; |
4191 | 4251 |
4192 GetOrdersResponse(); | 4252 GetOrdersResponse(); |
4193 | 4253 |
4194 GetOrdersResponse.fromJson(core.Map _json) { | 4254 GetOrdersResponse.fromJson(core.Map _json) { |
4195 if (_json.containsKey("proposals")) { | 4255 if (_json.containsKey("proposals")) { |
4196 proposals = _json["proposals"].map((value) => new Proposal.fromJson(value)
).toList(); | 4256 proposals = _json["proposals"] |
| 4257 .map((value) => new Proposal.fromJson(value)) |
| 4258 .toList(); |
4197 } | 4259 } |
4198 } | 4260 } |
4199 | 4261 |
4200 core.Map<core.String, core.Object> toJson() { | 4262 core.Map<core.String, core.Object> toJson() { |
4201 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4263 final core.Map<core.String, core.Object> _json = |
| 4264 new core.Map<core.String, core.Object>(); |
4202 if (proposals != null) { | 4265 if (proposals != null) { |
4203 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); | 4266 _json["proposals"] = proposals.map((value) => (value).toJson()).toList(); |
4204 } | 4267 } |
4205 return _json; | 4268 return _json; |
4206 } | 4269 } |
4207 } | 4270 } |
4208 | 4271 |
4209 class GetPublisherProfilesByAccountIdResponse { | 4272 class GetPublisherProfilesByAccountIdResponse { |
4210 /** Profiles for the requested publisher */ | 4273 /// Profiles for the requested publisher |
4211 core.List<PublisherProfileApiProto> profiles; | 4274 core.List<PublisherProfileApiProto> profiles; |
4212 | 4275 |
4213 GetPublisherProfilesByAccountIdResponse(); | 4276 GetPublisherProfilesByAccountIdResponse(); |
4214 | 4277 |
4215 GetPublisherProfilesByAccountIdResponse.fromJson(core.Map _json) { | 4278 GetPublisherProfilesByAccountIdResponse.fromJson(core.Map _json) { |
4216 if (_json.containsKey("profiles")) { | 4279 if (_json.containsKey("profiles")) { |
4217 profiles = _json["profiles"].map((value) => new PublisherProfileApiProto.f
romJson(value)).toList(); | 4280 profiles = _json["profiles"] |
| 4281 .map((value) => new PublisherProfileApiProto.fromJson(value)) |
| 4282 .toList(); |
4218 } | 4283 } |
4219 } | 4284 } |
4220 | 4285 |
4221 core.Map<core.String, core.Object> toJson() { | 4286 core.Map<core.String, core.Object> toJson() { |
4222 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4287 final core.Map<core.String, core.Object> _json = |
| 4288 new core.Map<core.String, core.Object>(); |
4223 if (profiles != null) { | 4289 if (profiles != null) { |
4224 _json["profiles"] = profiles.map((value) => (value).toJson()).toList(); | 4290 _json["profiles"] = profiles.map((value) => (value).toJson()).toList(); |
4225 } | 4291 } |
4226 return _json; | 4292 return _json; |
4227 } | 4293 } |
4228 } | 4294 } |
4229 | 4295 |
4230 /** | 4296 /// A proposal can contain multiple deals. A deal contains the terms and |
4231 * A proposal can contain multiple deals. A deal contains the terms and | 4297 /// targeting information that is used for serving. |
4232 * targeting information that is used for serving. | |
4233 */ | |
4234 class MarketplaceDeal { | 4298 class MarketplaceDeal { |
4235 /** Buyer private data (hidden from seller). */ | 4299 /// Buyer private data (hidden from seller). |
4236 PrivateData buyerPrivateData; | 4300 PrivateData buyerPrivateData; |
4237 /** The time (ms since epoch) of the deal creation. (readonly) */ | 4301 |
| 4302 /// The time (ms since epoch) of the deal creation. (readonly) |
4238 core.String creationTimeMs; | 4303 core.String creationTimeMs; |
4239 /** Specifies the creative pre-approval policy (buyer-readonly) */ | 4304 |
| 4305 /// Specifies the creative pre-approval policy (buyer-readonly) |
4240 core.String creativePreApprovalPolicy; | 4306 core.String creativePreApprovalPolicy; |
4241 /** | 4307 |
4242 * Specifies whether the creative is safeFrame compatible (buyer-readonly) | 4308 /// Specifies whether the creative is safeFrame compatible (buyer-readonly) |
4243 */ | |
4244 core.String creativeSafeFrameCompatibility; | 4309 core.String creativeSafeFrameCompatibility; |
4245 /** A unique deal-id for the deal (readonly). */ | 4310 |
| 4311 /// A unique deal-id for the deal (readonly). |
4246 core.String dealId; | 4312 core.String dealId; |
4247 /** | 4313 |
4248 * Metadata about the serving status of this deal (readonly, writes via custom | 4314 /// Metadata about the serving status of this deal (readonly, writes via |
4249 * actions) | 4315 /// custom actions) |
4250 */ | |
4251 DealServingMetadata dealServingMetadata; | 4316 DealServingMetadata dealServingMetadata; |
4252 /** | 4317 |
4253 * The set of fields around delivery control that are interesting for a buyer | 4318 /// The set of fields around delivery control that are interesting for a |
4254 * to see but are non-negotiable. These are set by the publisher. This message | 4319 /// buyer to see but are non-negotiable. These are set by the publisher. This |
4255 * is assigned an id of 100 since some day we would want to model this as a | 4320 /// message is assigned an id of 100 since some day we would want to model |
4256 * protobuf extension. | 4321 /// this as a protobuf extension. |
4257 */ | |
4258 DeliveryControl deliveryControl; | 4322 DeliveryControl deliveryControl; |
4259 /** | 4323 |
4260 * The external deal id assigned to this deal once the deal is finalized. This | 4324 /// The external deal id assigned to this deal once the deal is finalized. |
4261 * is the deal-id that shows up in serving/reporting etc. (readonly) | 4325 /// This is the deal-id that shows up in serving/reporting etc. (readonly) |
4262 */ | |
4263 core.String externalDealId; | 4326 core.String externalDealId; |
4264 /** | 4327 |
4265 * Proposed flight end time of the deal (ms since epoch) This will generally | 4328 /// Proposed flight end time of the deal (ms since epoch) This will generally |
4266 * be stored in a granularity of a second. (updatable) | 4329 /// be stored in a granularity of a second. (updatable) |
4267 */ | |
4268 core.String flightEndTimeMs; | 4330 core.String flightEndTimeMs; |
4269 /** | 4331 |
4270 * Proposed flight start time of the deal (ms since epoch) This will generally | 4332 /// Proposed flight start time of the deal (ms since epoch) This will |
4271 * be stored in a granularity of a second. (updatable) | 4333 /// generally be stored in a granularity of a second. (updatable) |
4272 */ | |
4273 core.String flightStartTimeMs; | 4334 core.String flightStartTimeMs; |
4274 /** Description for the deal terms. (buyer-readonly) */ | 4335 |
| 4336 /// Description for the deal terms. (buyer-readonly) |
4275 core.String inventoryDescription; | 4337 core.String inventoryDescription; |
4276 /** | 4338 |
4277 * Indicates whether the current deal is a RFP template. RFP template is | 4339 /// Indicates whether the current deal is a RFP template. RFP template is |
4278 * created by buyer and not based on seller created products. | 4340 /// created by buyer and not based on seller created products. |
4279 */ | |
4280 core.bool isRfpTemplate; | 4341 core.bool isRfpTemplate; |
4281 /** | 4342 |
4282 * True, if the buyside inventory setup is complete for this deal. (readonly, | 4343 /// True, if the buyside inventory setup is complete for this deal. |
4283 * except via OrderSetupCompleted action) | 4344 /// (readonly, except via OrderSetupCompleted action) |
4284 */ | |
4285 core.bool isSetupComplete; | 4345 core.bool isSetupComplete; |
4286 /** | 4346 |
4287 * Identifies what kind of resource this is. Value: the fixed string | 4347 /// Identifies what kind of resource this is. Value: the fixed string |
4288 * "adexchangebuyer#marketplaceDeal". | 4348 /// "adexchangebuyer#marketplaceDeal". |
4289 */ | |
4290 core.String kind; | 4349 core.String kind; |
4291 /** The time (ms since epoch) when the deal was last updated. (readonly) */ | 4350 |
| 4351 /// The time (ms since epoch) when the deal was last updated. (readonly) |
4292 core.String lastUpdateTimeMs; | 4352 core.String lastUpdateTimeMs; |
4293 /** The name of the deal. (updatable) */ | 4353 |
| 4354 /// The name of the deal. (updatable) |
4294 core.String name; | 4355 core.String name; |
4295 /** | 4356 |
4296 * The product-id from which this deal was created. (readonly, except on | 4357 /// The product-id from which this deal was created. (readonly, except on |
4297 * create) | 4358 /// create) |
4298 */ | |
4299 core.String productId; | 4359 core.String productId; |
4300 /** | 4360 |
4301 * The revision number of the product that the deal was created from | 4361 /// The revision number of the product that the deal was created from |
4302 * (readonly, except on create) | 4362 /// (readonly, except on create) |
4303 */ | |
4304 core.String productRevisionNumber; | 4363 core.String productRevisionNumber; |
4305 /** | 4364 |
4306 * Specifies the creative source for programmatic deals, PUBLISHER means | 4365 /// Specifies the creative source for programmatic deals, PUBLISHER means |
4307 * creative is provided by seller and ADVERTISR means creative is provided by | 4366 /// creative is provided by seller and ADVERTISR means creative is provided |
4308 * buyer. (buyer-readonly) | 4367 /// by buyer. (buyer-readonly) |
4309 */ | |
4310 core.String programmaticCreativeSource; | 4368 core.String programmaticCreativeSource; |
4311 core.String proposalId; | 4369 core.String proposalId; |
4312 /** Optional Seller contact information for the deal (buyer-readonly) */ | 4370 |
| 4371 /// Optional Seller contact information for the deal (buyer-readonly) |
4313 core.List<ContactInformation> sellerContacts; | 4372 core.List<ContactInformation> sellerContacts; |
4314 /** | 4373 |
4315 * The shared targeting visible to buyers and sellers. Each shared targeting | 4374 /// The shared targeting visible to buyers and sellers. Each shared targeting |
4316 * entity is AND'd together. (updatable) | 4375 /// entity is AND'd together. (updatable) |
4317 */ | |
4318 core.List<SharedTargeting> sharedTargetings; | 4376 core.List<SharedTargeting> sharedTargetings; |
4319 /** | 4377 |
4320 * The syndication product associated with the deal. (readonly, except on | 4378 /// The syndication product associated with the deal. (readonly, except on |
4321 * create) | 4379 /// create) |
4322 */ | |
4323 core.String syndicationProduct; | 4380 core.String syndicationProduct; |
4324 /** The negotiable terms of the deal. (updatable) */ | 4381 |
| 4382 /// The negotiable terms of the deal. (updatable) |
4325 DealTerms terms; | 4383 DealTerms terms; |
4326 core.String webPropertyCode; | 4384 core.String webPropertyCode; |
4327 | 4385 |
4328 MarketplaceDeal(); | 4386 MarketplaceDeal(); |
4329 | 4387 |
4330 MarketplaceDeal.fromJson(core.Map _json) { | 4388 MarketplaceDeal.fromJson(core.Map _json) { |
4331 if (_json.containsKey("buyerPrivateData")) { | 4389 if (_json.containsKey("buyerPrivateData")) { |
4332 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); | 4390 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); |
4333 } | 4391 } |
4334 if (_json.containsKey("creationTimeMs")) { | 4392 if (_json.containsKey("creationTimeMs")) { |
4335 creationTimeMs = _json["creationTimeMs"]; | 4393 creationTimeMs = _json["creationTimeMs"]; |
4336 } | 4394 } |
4337 if (_json.containsKey("creativePreApprovalPolicy")) { | 4395 if (_json.containsKey("creativePreApprovalPolicy")) { |
4338 creativePreApprovalPolicy = _json["creativePreApprovalPolicy"]; | 4396 creativePreApprovalPolicy = _json["creativePreApprovalPolicy"]; |
4339 } | 4397 } |
4340 if (_json.containsKey("creativeSafeFrameCompatibility")) { | 4398 if (_json.containsKey("creativeSafeFrameCompatibility")) { |
4341 creativeSafeFrameCompatibility = _json["creativeSafeFrameCompatibility"]; | 4399 creativeSafeFrameCompatibility = _json["creativeSafeFrameCompatibility"]; |
4342 } | 4400 } |
4343 if (_json.containsKey("dealId")) { | 4401 if (_json.containsKey("dealId")) { |
4344 dealId = _json["dealId"]; | 4402 dealId = _json["dealId"]; |
4345 } | 4403 } |
4346 if (_json.containsKey("dealServingMetadata")) { | 4404 if (_json.containsKey("dealServingMetadata")) { |
4347 dealServingMetadata = new DealServingMetadata.fromJson(_json["dealServingM
etadata"]); | 4405 dealServingMetadata = |
| 4406 new DealServingMetadata.fromJson(_json["dealServingMetadata"]); |
4348 } | 4407 } |
4349 if (_json.containsKey("deliveryControl")) { | 4408 if (_json.containsKey("deliveryControl")) { |
4350 deliveryControl = new DeliveryControl.fromJson(_json["deliveryControl"]); | 4409 deliveryControl = new DeliveryControl.fromJson(_json["deliveryControl"]); |
4351 } | 4410 } |
4352 if (_json.containsKey("externalDealId")) { | 4411 if (_json.containsKey("externalDealId")) { |
4353 externalDealId = _json["externalDealId"]; | 4412 externalDealId = _json["externalDealId"]; |
4354 } | 4413 } |
4355 if (_json.containsKey("flightEndTimeMs")) { | 4414 if (_json.containsKey("flightEndTimeMs")) { |
4356 flightEndTimeMs = _json["flightEndTimeMs"]; | 4415 flightEndTimeMs = _json["flightEndTimeMs"]; |
4357 } | 4416 } |
(...skipping 24 matching lines...) Loading... |
4382 if (_json.containsKey("productRevisionNumber")) { | 4441 if (_json.containsKey("productRevisionNumber")) { |
4383 productRevisionNumber = _json["productRevisionNumber"]; | 4442 productRevisionNumber = _json["productRevisionNumber"]; |
4384 } | 4443 } |
4385 if (_json.containsKey("programmaticCreativeSource")) { | 4444 if (_json.containsKey("programmaticCreativeSource")) { |
4386 programmaticCreativeSource = _json["programmaticCreativeSource"]; | 4445 programmaticCreativeSource = _json["programmaticCreativeSource"]; |
4387 } | 4446 } |
4388 if (_json.containsKey("proposalId")) { | 4447 if (_json.containsKey("proposalId")) { |
4389 proposalId = _json["proposalId"]; | 4448 proposalId = _json["proposalId"]; |
4390 } | 4449 } |
4391 if (_json.containsKey("sellerContacts")) { | 4450 if (_json.containsKey("sellerContacts")) { |
4392 sellerContacts = _json["sellerContacts"].map((value) => new ContactInforma
tion.fromJson(value)).toList(); | 4451 sellerContacts = _json["sellerContacts"] |
| 4452 .map((value) => new ContactInformation.fromJson(value)) |
| 4453 .toList(); |
4393 } | 4454 } |
4394 if (_json.containsKey("sharedTargetings")) { | 4455 if (_json.containsKey("sharedTargetings")) { |
4395 sharedTargetings = _json["sharedTargetings"].map((value) => new SharedTarg
eting.fromJson(value)).toList(); | 4456 sharedTargetings = _json["sharedTargetings"] |
| 4457 .map((value) => new SharedTargeting.fromJson(value)) |
| 4458 .toList(); |
4396 } | 4459 } |
4397 if (_json.containsKey("syndicationProduct")) { | 4460 if (_json.containsKey("syndicationProduct")) { |
4398 syndicationProduct = _json["syndicationProduct"]; | 4461 syndicationProduct = _json["syndicationProduct"]; |
4399 } | 4462 } |
4400 if (_json.containsKey("terms")) { | 4463 if (_json.containsKey("terms")) { |
4401 terms = new DealTerms.fromJson(_json["terms"]); | 4464 terms = new DealTerms.fromJson(_json["terms"]); |
4402 } | 4465 } |
4403 if (_json.containsKey("webPropertyCode")) { | 4466 if (_json.containsKey("webPropertyCode")) { |
4404 webPropertyCode = _json["webPropertyCode"]; | 4467 webPropertyCode = _json["webPropertyCode"]; |
4405 } | 4468 } |
4406 } | 4469 } |
4407 | 4470 |
4408 core.Map<core.String, core.Object> toJson() { | 4471 core.Map<core.String, core.Object> toJson() { |
4409 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4472 final core.Map<core.String, core.Object> _json = |
| 4473 new core.Map<core.String, core.Object>(); |
4410 if (buyerPrivateData != null) { | 4474 if (buyerPrivateData != null) { |
4411 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); | 4475 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); |
4412 } | 4476 } |
4413 if (creationTimeMs != null) { | 4477 if (creationTimeMs != null) { |
4414 _json["creationTimeMs"] = creationTimeMs; | 4478 _json["creationTimeMs"] = creationTimeMs; |
4415 } | 4479 } |
4416 if (creativePreApprovalPolicy != null) { | 4480 if (creativePreApprovalPolicy != null) { |
4417 _json["creativePreApprovalPolicy"] = creativePreApprovalPolicy; | 4481 _json["creativePreApprovalPolicy"] = creativePreApprovalPolicy; |
4418 } | 4482 } |
4419 if (creativeSafeFrameCompatibility != null) { | 4483 if (creativeSafeFrameCompatibility != null) { |
(...skipping 41 matching lines...) Loading... |
4461 if (productRevisionNumber != null) { | 4525 if (productRevisionNumber != null) { |
4462 _json["productRevisionNumber"] = productRevisionNumber; | 4526 _json["productRevisionNumber"] = productRevisionNumber; |
4463 } | 4527 } |
4464 if (programmaticCreativeSource != null) { | 4528 if (programmaticCreativeSource != null) { |
4465 _json["programmaticCreativeSource"] = programmaticCreativeSource; | 4529 _json["programmaticCreativeSource"] = programmaticCreativeSource; |
4466 } | 4530 } |
4467 if (proposalId != null) { | 4531 if (proposalId != null) { |
4468 _json["proposalId"] = proposalId; | 4532 _json["proposalId"] = proposalId; |
4469 } | 4533 } |
4470 if (sellerContacts != null) { | 4534 if (sellerContacts != null) { |
4471 _json["sellerContacts"] = sellerContacts.map((value) => (value).toJson()).
toList(); | 4535 _json["sellerContacts"] = |
| 4536 sellerContacts.map((value) => (value).toJson()).toList(); |
4472 } | 4537 } |
4473 if (sharedTargetings != null) { | 4538 if (sharedTargetings != null) { |
4474 _json["sharedTargetings"] = sharedTargetings.map((value) => (value).toJson
()).toList(); | 4539 _json["sharedTargetings"] = |
| 4540 sharedTargetings.map((value) => (value).toJson()).toList(); |
4475 } | 4541 } |
4476 if (syndicationProduct != null) { | 4542 if (syndicationProduct != null) { |
4477 _json["syndicationProduct"] = syndicationProduct; | 4543 _json["syndicationProduct"] = syndicationProduct; |
4478 } | 4544 } |
4479 if (terms != null) { | 4545 if (terms != null) { |
4480 _json["terms"] = (terms).toJson(); | 4546 _json["terms"] = (terms).toJson(); |
4481 } | 4547 } |
4482 if (webPropertyCode != null) { | 4548 if (webPropertyCode != null) { |
4483 _json["webPropertyCode"] = webPropertyCode; | 4549 _json["webPropertyCode"] = webPropertyCode; |
4484 } | 4550 } |
4485 return _json; | 4551 return _json; |
4486 } | 4552 } |
4487 } | 4553 } |
4488 | 4554 |
4489 class MarketplaceDealParty { | 4555 class MarketplaceDealParty { |
4490 /** | 4556 /// The buyer/seller associated with the deal. One of buyer/seller is |
4491 * The buyer/seller associated with the deal. One of buyer/seller is specified | 4557 /// specified for a deal-party. |
4492 * for a deal-party. | |
4493 */ | |
4494 Buyer buyer; | 4558 Buyer buyer; |
4495 /** | 4559 |
4496 * The buyer/seller associated with the deal. One of buyer/seller is specified | 4560 /// The buyer/seller associated with the deal. One of buyer/seller is |
4497 * for a deal party. | 4561 /// specified for a deal party. |
4498 */ | |
4499 Seller seller; | 4562 Seller seller; |
4500 | 4563 |
4501 MarketplaceDealParty(); | 4564 MarketplaceDealParty(); |
4502 | 4565 |
4503 MarketplaceDealParty.fromJson(core.Map _json) { | 4566 MarketplaceDealParty.fromJson(core.Map _json) { |
4504 if (_json.containsKey("buyer")) { | 4567 if (_json.containsKey("buyer")) { |
4505 buyer = new Buyer.fromJson(_json["buyer"]); | 4568 buyer = new Buyer.fromJson(_json["buyer"]); |
4506 } | 4569 } |
4507 if (_json.containsKey("seller")) { | 4570 if (_json.containsKey("seller")) { |
4508 seller = new Seller.fromJson(_json["seller"]); | 4571 seller = new Seller.fromJson(_json["seller"]); |
4509 } | 4572 } |
4510 } | 4573 } |
4511 | 4574 |
4512 core.Map<core.String, core.Object> toJson() { | 4575 core.Map<core.String, core.Object> toJson() { |
4513 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4576 final core.Map<core.String, core.Object> _json = |
| 4577 new core.Map<core.String, core.Object>(); |
4514 if (buyer != null) { | 4578 if (buyer != null) { |
4515 _json["buyer"] = (buyer).toJson(); | 4579 _json["buyer"] = (buyer).toJson(); |
4516 } | 4580 } |
4517 if (seller != null) { | 4581 if (seller != null) { |
4518 _json["seller"] = (seller).toJson(); | 4582 _json["seller"] = (seller).toJson(); |
4519 } | 4583 } |
4520 return _json; | 4584 return _json; |
4521 } | 4585 } |
4522 } | 4586 } |
4523 | 4587 |
4524 class MarketplaceLabel { | 4588 class MarketplaceLabel { |
4525 /** The accountId of the party that created the label. */ | 4589 /// The accountId of the party that created the label. |
4526 core.String accountId; | 4590 core.String accountId; |
4527 /** The creation time (in ms since epoch) for the label. */ | 4591 |
| 4592 /// The creation time (in ms since epoch) for the label. |
4528 core.String createTimeMs; | 4593 core.String createTimeMs; |
4529 /** Information about the party that created the label. */ | 4594 |
| 4595 /// Information about the party that created the label. |
4530 MarketplaceDealParty deprecatedMarketplaceDealParty; | 4596 MarketplaceDealParty deprecatedMarketplaceDealParty; |
4531 /** The label to use. */ | 4597 |
| 4598 /// The label to use. |
4532 core.String label; | 4599 core.String label; |
4533 | 4600 |
4534 MarketplaceLabel(); | 4601 MarketplaceLabel(); |
4535 | 4602 |
4536 MarketplaceLabel.fromJson(core.Map _json) { | 4603 MarketplaceLabel.fromJson(core.Map _json) { |
4537 if (_json.containsKey("accountId")) { | 4604 if (_json.containsKey("accountId")) { |
4538 accountId = _json["accountId"]; | 4605 accountId = _json["accountId"]; |
4539 } | 4606 } |
4540 if (_json.containsKey("createTimeMs")) { | 4607 if (_json.containsKey("createTimeMs")) { |
4541 createTimeMs = _json["createTimeMs"]; | 4608 createTimeMs = _json["createTimeMs"]; |
4542 } | 4609 } |
4543 if (_json.containsKey("deprecatedMarketplaceDealParty")) { | 4610 if (_json.containsKey("deprecatedMarketplaceDealParty")) { |
4544 deprecatedMarketplaceDealParty = new MarketplaceDealParty.fromJson(_json["
deprecatedMarketplaceDealParty"]); | 4611 deprecatedMarketplaceDealParty = new MarketplaceDealParty.fromJson( |
| 4612 _json["deprecatedMarketplaceDealParty"]); |
4545 } | 4613 } |
4546 if (_json.containsKey("label")) { | 4614 if (_json.containsKey("label")) { |
4547 label = _json["label"]; | 4615 label = _json["label"]; |
4548 } | 4616 } |
4549 } | 4617 } |
4550 | 4618 |
4551 core.Map<core.String, core.Object> toJson() { | 4619 core.Map<core.String, core.Object> toJson() { |
4552 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4620 final core.Map<core.String, core.Object> _json = |
| 4621 new core.Map<core.String, core.Object>(); |
4553 if (accountId != null) { | 4622 if (accountId != null) { |
4554 _json["accountId"] = accountId; | 4623 _json["accountId"] = accountId; |
4555 } | 4624 } |
4556 if (createTimeMs != null) { | 4625 if (createTimeMs != null) { |
4557 _json["createTimeMs"] = createTimeMs; | 4626 _json["createTimeMs"] = createTimeMs; |
4558 } | 4627 } |
4559 if (deprecatedMarketplaceDealParty != null) { | 4628 if (deprecatedMarketplaceDealParty != null) { |
4560 _json["deprecatedMarketplaceDealParty"] = (deprecatedMarketplaceDealParty)
.toJson(); | 4629 _json["deprecatedMarketplaceDealParty"] = |
| 4630 (deprecatedMarketplaceDealParty).toJson(); |
4561 } | 4631 } |
4562 if (label != null) { | 4632 if (label != null) { |
4563 _json["label"] = label; | 4633 _json["label"] = label; |
4564 } | 4634 } |
4565 return _json; | 4635 return _json; |
4566 } | 4636 } |
4567 } | 4637 } |
4568 | 4638 |
4569 /** | 4639 /// A proposal is associated with a bunch of notes which may optionally be |
4570 * A proposal is associated with a bunch of notes which may optionally be | 4640 /// associated with a deal and/or revision number. |
4571 * associated with a deal and/or revision number. | |
4572 */ | |
4573 class MarketplaceNote { | 4641 class MarketplaceNote { |
4574 /** The role of the person (buyer/seller) creating the note. (readonly) */ | 4642 /// The role of the person (buyer/seller) creating the note. (readonly) |
4575 core.String creatorRole; | 4643 core.String creatorRole; |
4576 /** | 4644 |
4577 * Notes can optionally be associated with a deal. (readonly, except on | 4645 /// Notes can optionally be associated with a deal. (readonly, except on |
4578 * create) | 4646 /// create) |
4579 */ | |
4580 core.String dealId; | 4647 core.String dealId; |
4581 /** | 4648 |
4582 * Identifies what kind of resource this is. Value: the fixed string | 4649 /// Identifies what kind of resource this is. Value: the fixed string |
4583 * "adexchangebuyer#marketplaceNote". | 4650 /// "adexchangebuyer#marketplaceNote". |
4584 */ | |
4585 core.String kind; | 4651 core.String kind; |
4586 /** The actual note to attach. (readonly, except on create) */ | 4652 |
| 4653 /// The actual note to attach. (readonly, except on create) |
4587 core.String note; | 4654 core.String note; |
4588 /** The unique id for the note. (readonly) */ | 4655 |
| 4656 /// The unique id for the note. (readonly) |
4589 core.String noteId; | 4657 core.String noteId; |
4590 /** The proposalId that a note is attached to. (readonly) */ | 4658 |
| 4659 /// The proposalId that a note is attached to. (readonly) |
4591 core.String proposalId; | 4660 core.String proposalId; |
4592 /** | 4661 |
4593 * If the note is associated with a proposal revision number, then store that | 4662 /// If the note is associated with a proposal revision number, then store |
4594 * here. (readonly, except on create) | 4663 /// that here. (readonly, except on create) |
4595 */ | |
4596 core.String proposalRevisionNumber; | 4664 core.String proposalRevisionNumber; |
4597 /** The timestamp (ms since epoch) that this note was created. (readonly) */ | 4665 |
| 4666 /// The timestamp (ms since epoch) that this note was created. (readonly) |
4598 core.String timestampMs; | 4667 core.String timestampMs; |
4599 | 4668 |
4600 MarketplaceNote(); | 4669 MarketplaceNote(); |
4601 | 4670 |
4602 MarketplaceNote.fromJson(core.Map _json) { | 4671 MarketplaceNote.fromJson(core.Map _json) { |
4603 if (_json.containsKey("creatorRole")) { | 4672 if (_json.containsKey("creatorRole")) { |
4604 creatorRole = _json["creatorRole"]; | 4673 creatorRole = _json["creatorRole"]; |
4605 } | 4674 } |
4606 if (_json.containsKey("dealId")) { | 4675 if (_json.containsKey("dealId")) { |
4607 dealId = _json["dealId"]; | 4676 dealId = _json["dealId"]; |
(...skipping 12 matching lines...) Loading... |
4620 } | 4689 } |
4621 if (_json.containsKey("proposalRevisionNumber")) { | 4690 if (_json.containsKey("proposalRevisionNumber")) { |
4622 proposalRevisionNumber = _json["proposalRevisionNumber"]; | 4691 proposalRevisionNumber = _json["proposalRevisionNumber"]; |
4623 } | 4692 } |
4624 if (_json.containsKey("timestampMs")) { | 4693 if (_json.containsKey("timestampMs")) { |
4625 timestampMs = _json["timestampMs"]; | 4694 timestampMs = _json["timestampMs"]; |
4626 } | 4695 } |
4627 } | 4696 } |
4628 | 4697 |
4629 core.Map<core.String, core.Object> toJson() { | 4698 core.Map<core.String, core.Object> toJson() { |
4630 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4699 final core.Map<core.String, core.Object> _json = |
| 4700 new core.Map<core.String, core.Object>(); |
4631 if (creatorRole != null) { | 4701 if (creatorRole != null) { |
4632 _json["creatorRole"] = creatorRole; | 4702 _json["creatorRole"] = creatorRole; |
4633 } | 4703 } |
4634 if (dealId != null) { | 4704 if (dealId != null) { |
4635 _json["dealId"] = dealId; | 4705 _json["dealId"] = dealId; |
4636 } | 4706 } |
4637 if (kind != null) { | 4707 if (kind != null) { |
4638 _json["kind"] = kind; | 4708 _json["kind"] = kind; |
4639 } | 4709 } |
4640 if (note != null) { | 4710 if (note != null) { |
4641 _json["note"] = note; | 4711 _json["note"] = note; |
4642 } | 4712 } |
4643 if (noteId != null) { | 4713 if (noteId != null) { |
4644 _json["noteId"] = noteId; | 4714 _json["noteId"] = noteId; |
4645 } | 4715 } |
4646 if (proposalId != null) { | 4716 if (proposalId != null) { |
4647 _json["proposalId"] = proposalId; | 4717 _json["proposalId"] = proposalId; |
4648 } | 4718 } |
4649 if (proposalRevisionNumber != null) { | 4719 if (proposalRevisionNumber != null) { |
4650 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 4720 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
4651 } | 4721 } |
4652 if (timestampMs != null) { | 4722 if (timestampMs != null) { |
4653 _json["timestampMs"] = timestampMs; | 4723 _json["timestampMs"] = timestampMs; |
4654 } | 4724 } |
4655 return _json; | 4725 return _json; |
4656 } | 4726 } |
4657 } | 4727 } |
4658 | 4728 |
4659 /** The configuration data for an Ad Exchange performance report list. */ | 4729 /// The configuration data for an Ad Exchange performance report list. |
4660 class PerformanceReport { | 4730 class PerformanceReport { |
4661 /** The number of bid responses with an ad. */ | 4731 /// The number of bid responses with an ad. |
4662 core.double bidRate; | 4732 core.double bidRate; |
4663 /** The number of bid requests sent to your bidder. */ | 4733 |
| 4734 /// The number of bid requests sent to your bidder. |
4664 core.double bidRequestRate; | 4735 core.double bidRequestRate; |
4665 /** | 4736 |
4666 * Rate of various prefiltering statuses per match. Please refer to the | 4737 /// Rate of various prefiltering statuses per match. Please refer to the |
4667 * callout-status-codes.txt file for different statuses. | 4738 /// callout-status-codes.txt file for different statuses. |
4668 * | 4739 /// |
4669 * The values for Object must be JSON objects. It can consist of `num`, | 4740 /// The values for Object must be JSON objects. It can consist of `num`, |
4670 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4741 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
4671 */ | |
4672 core.List<core.Object> calloutStatusRate; | 4742 core.List<core.Object> calloutStatusRate; |
4673 /** | 4743 |
4674 * Average QPS for cookie matcher operations. | 4744 /// Average QPS for cookie matcher operations. |
4675 * | 4745 /// |
4676 * The values for Object must be JSON objects. It can consist of `num`, | 4746 /// The values for Object must be JSON objects. It can consist of `num`, |
4677 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4747 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
4678 */ | |
4679 core.List<core.Object> cookieMatcherStatusRate; | 4748 core.List<core.Object> cookieMatcherStatusRate; |
4680 /** | 4749 |
4681 * Rate of ads with a given status. Please refer to the | 4750 /// Rate of ads with a given status. Please refer to the |
4682 * creative-status-codes.txt file for different statuses. | 4751 /// creative-status-codes.txt file for different statuses. |
4683 * | 4752 /// |
4684 * The values for Object must be JSON objects. It can consist of `num`, | 4753 /// The values for Object must be JSON objects. It can consist of `num`, |
4685 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4754 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
4686 */ | |
4687 core.List<core.Object> creativeStatusRate; | 4755 core.List<core.Object> creativeStatusRate; |
4688 /** | 4756 |
4689 * The number of bid responses that were filtered due to a policy violation or | 4757 /// The number of bid responses that were filtered due to a policy violation |
4690 * other errors. | 4758 /// or other errors. |
4691 */ | |
4692 core.double filteredBidRate; | 4759 core.double filteredBidRate; |
4693 /** | 4760 |
4694 * Average QPS for hosted match operations. | 4761 /// Average QPS for hosted match operations. |
4695 * | 4762 /// |
4696 * The values for Object must be JSON objects. It can consist of `num`, | 4763 /// The values for Object must be JSON objects. It can consist of `num`, |
4697 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4764 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
4698 */ | |
4699 core.List<core.Object> hostedMatchStatusRate; | 4765 core.List<core.Object> hostedMatchStatusRate; |
4700 /** The number of potential queries based on your pretargeting settings. */ | 4766 |
| 4767 /// The number of potential queries based on your pretargeting settings. |
4701 core.double inventoryMatchRate; | 4768 core.double inventoryMatchRate; |
4702 /** Resource type. */ | 4769 |
| 4770 /// Resource type. |
4703 core.String kind; | 4771 core.String kind; |
4704 /** | 4772 |
4705 * The 50th percentile round trip latency(ms) as perceived from Google servers | 4773 /// The 50th percentile round trip latency(ms) as perceived from Google |
4706 * for the duration period covered by the report. | 4774 /// servers for the duration period covered by the report. |
4707 */ | |
4708 core.double latency50thPercentile; | 4775 core.double latency50thPercentile; |
4709 /** | 4776 |
4710 * The 85th percentile round trip latency(ms) as perceived from Google servers | 4777 /// The 85th percentile round trip latency(ms) as perceived from Google |
4711 * for the duration period covered by the report. | 4778 /// servers for the duration period covered by the report. |
4712 */ | |
4713 core.double latency85thPercentile; | 4779 core.double latency85thPercentile; |
4714 /** | 4780 |
4715 * The 95th percentile round trip latency(ms) as perceived from Google servers | 4781 /// The 95th percentile round trip latency(ms) as perceived from Google |
4716 * for the duration period covered by the report. | 4782 /// servers for the duration period covered by the report. |
4717 */ | |
4718 core.double latency95thPercentile; | 4783 core.double latency95thPercentile; |
4719 /** Rate of various quota account statuses per quota check. */ | 4784 |
| 4785 /// Rate of various quota account statuses per quota check. |
4720 core.double noQuotaInRegion; | 4786 core.double noQuotaInRegion; |
4721 /** Rate of various quota account statuses per quota check. */ | 4787 |
| 4788 /// Rate of various quota account statuses per quota check. |
4722 core.double outOfQuota; | 4789 core.double outOfQuota; |
4723 /** Average QPS for pixel match requests from clients. */ | 4790 |
| 4791 /// Average QPS for pixel match requests from clients. |
4724 core.double pixelMatchRequests; | 4792 core.double pixelMatchRequests; |
4725 /** Average QPS for pixel match responses from clients. */ | 4793 |
| 4794 /// Average QPS for pixel match responses from clients. |
4726 core.double pixelMatchResponses; | 4795 core.double pixelMatchResponses; |
4727 /** The configured quota limits for this account. */ | 4796 |
| 4797 /// The configured quota limits for this account. |
4728 core.double quotaConfiguredLimit; | 4798 core.double quotaConfiguredLimit; |
4729 /** The throttled quota limits for this account. */ | 4799 |
| 4800 /// The throttled quota limits for this account. |
4730 core.double quotaThrottledLimit; | 4801 core.double quotaThrottledLimit; |
4731 /** The trading location of this data. */ | 4802 |
| 4803 /// The trading location of this data. |
4732 core.String region; | 4804 core.String region; |
4733 /** | 4805 |
4734 * The number of properly formed bid responses received by our servers within | 4806 /// The number of properly formed bid responses received by our servers |
4735 * the deadline. | 4807 /// within the deadline. |
4736 */ | |
4737 core.double successfulRequestRate; | 4808 core.double successfulRequestRate; |
4738 /** The unix timestamp of the starting time of this performance data. */ | 4809 |
| 4810 /// The unix timestamp of the starting time of this performance data. |
4739 core.String timestamp; | 4811 core.String timestamp; |
4740 /** | 4812 |
4741 * The number of bid responses that were unsuccessful due to timeouts, | 4813 /// The number of bid responses that were unsuccessful due to timeouts, |
4742 * incorrect formatting, etc. | 4814 /// incorrect formatting, etc. |
4743 */ | |
4744 core.double unsuccessfulRequestRate; | 4815 core.double unsuccessfulRequestRate; |
4745 | 4816 |
4746 PerformanceReport(); | 4817 PerformanceReport(); |
4747 | 4818 |
4748 PerformanceReport.fromJson(core.Map _json) { | 4819 PerformanceReport.fromJson(core.Map _json) { |
4749 if (_json.containsKey("bidRate")) { | 4820 if (_json.containsKey("bidRate")) { |
4750 bidRate = _json["bidRate"]; | 4821 bidRate = _json["bidRate"]; |
4751 } | 4822 } |
4752 if (_json.containsKey("bidRequestRate")) { | 4823 if (_json.containsKey("bidRequestRate")) { |
4753 bidRequestRate = _json["bidRequestRate"]; | 4824 bidRequestRate = _json["bidRequestRate"]; |
(...skipping 54 matching lines...) Loading... |
4808 } | 4879 } |
4809 if (_json.containsKey("timestamp")) { | 4880 if (_json.containsKey("timestamp")) { |
4810 timestamp = _json["timestamp"]; | 4881 timestamp = _json["timestamp"]; |
4811 } | 4882 } |
4812 if (_json.containsKey("unsuccessfulRequestRate")) { | 4883 if (_json.containsKey("unsuccessfulRequestRate")) { |
4813 unsuccessfulRequestRate = _json["unsuccessfulRequestRate"]; | 4884 unsuccessfulRequestRate = _json["unsuccessfulRequestRate"]; |
4814 } | 4885 } |
4815 } | 4886 } |
4816 | 4887 |
4817 core.Map<core.String, core.Object> toJson() { | 4888 core.Map<core.String, core.Object> toJson() { |
4818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4889 final core.Map<core.String, core.Object> _json = |
| 4890 new core.Map<core.String, core.Object>(); |
4819 if (bidRate != null) { | 4891 if (bidRate != null) { |
4820 _json["bidRate"] = bidRate; | 4892 _json["bidRate"] = bidRate; |
4821 } | 4893 } |
4822 if (bidRequestRate != null) { | 4894 if (bidRequestRate != null) { |
4823 _json["bidRequestRate"] = bidRequestRate; | 4895 _json["bidRequestRate"] = bidRequestRate; |
4824 } | 4896 } |
4825 if (calloutStatusRate != null) { | 4897 if (calloutStatusRate != null) { |
4826 _json["calloutStatusRate"] = calloutStatusRate; | 4898 _json["calloutStatusRate"] = calloutStatusRate; |
4827 } | 4899 } |
4828 if (cookieMatcherStatusRate != null) { | 4900 if (cookieMatcherStatusRate != null) { |
(...skipping 50 matching lines...) Loading... |
4879 if (timestamp != null) { | 4951 if (timestamp != null) { |
4880 _json["timestamp"] = timestamp; | 4952 _json["timestamp"] = timestamp; |
4881 } | 4953 } |
4882 if (unsuccessfulRequestRate != null) { | 4954 if (unsuccessfulRequestRate != null) { |
4883 _json["unsuccessfulRequestRate"] = unsuccessfulRequestRate; | 4955 _json["unsuccessfulRequestRate"] = unsuccessfulRequestRate; |
4884 } | 4956 } |
4885 return _json; | 4957 return _json; |
4886 } | 4958 } |
4887 } | 4959 } |
4888 | 4960 |
4889 /** The configuration data for an Ad Exchange performance report list. */ | 4961 /// The configuration data for an Ad Exchange performance report list. |
4890 class PerformanceReportList { | 4962 class PerformanceReportList { |
4891 /** Resource type. */ | 4963 /// Resource type. |
4892 core.String kind; | 4964 core.String kind; |
4893 /** A list of performance reports relevant for the account. */ | 4965 |
| 4966 /// A list of performance reports relevant for the account. |
4894 core.List<PerformanceReport> performanceReport; | 4967 core.List<PerformanceReport> performanceReport; |
4895 | 4968 |
4896 PerformanceReportList(); | 4969 PerformanceReportList(); |
4897 | 4970 |
4898 PerformanceReportList.fromJson(core.Map _json) { | 4971 PerformanceReportList.fromJson(core.Map _json) { |
4899 if (_json.containsKey("kind")) { | 4972 if (_json.containsKey("kind")) { |
4900 kind = _json["kind"]; | 4973 kind = _json["kind"]; |
4901 } | 4974 } |
4902 if (_json.containsKey("performanceReport")) { | 4975 if (_json.containsKey("performanceReport")) { |
4903 performanceReport = _json["performanceReport"].map((value) => new Performa
nceReport.fromJson(value)).toList(); | 4976 performanceReport = _json["performanceReport"] |
| 4977 .map((value) => new PerformanceReport.fromJson(value)) |
| 4978 .toList(); |
4904 } | 4979 } |
4905 } | 4980 } |
4906 | 4981 |
4907 core.Map<core.String, core.Object> toJson() { | 4982 core.Map<core.String, core.Object> toJson() { |
4908 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4983 final core.Map<core.String, core.Object> _json = |
| 4984 new core.Map<core.String, core.Object>(); |
4909 if (kind != null) { | 4985 if (kind != null) { |
4910 _json["kind"] = kind; | 4986 _json["kind"] = kind; |
4911 } | 4987 } |
4912 if (performanceReport != null) { | 4988 if (performanceReport != null) { |
4913 _json["performanceReport"] = performanceReport.map((value) => (value).toJs
on()).toList(); | 4989 _json["performanceReport"] = |
| 4990 performanceReport.map((value) => (value).toJson()).toList(); |
4914 } | 4991 } |
4915 return _json; | 4992 return _json; |
4916 } | 4993 } |
4917 } | 4994 } |
4918 | 4995 |
4919 class PretargetingConfigDimensions { | 4996 class PretargetingConfigDimensions { |
4920 /** Height in pixels. */ | 4997 /// Height in pixels. |
4921 core.String height; | 4998 core.String height; |
4922 /** Width in pixels. */ | 4999 |
| 5000 /// Width in pixels. |
4923 core.String width; | 5001 core.String width; |
4924 | 5002 |
4925 PretargetingConfigDimensions(); | 5003 PretargetingConfigDimensions(); |
4926 | 5004 |
4927 PretargetingConfigDimensions.fromJson(core.Map _json) { | 5005 PretargetingConfigDimensions.fromJson(core.Map _json) { |
4928 if (_json.containsKey("height")) { | 5006 if (_json.containsKey("height")) { |
4929 height = _json["height"]; | 5007 height = _json["height"]; |
4930 } | 5008 } |
4931 if (_json.containsKey("width")) { | 5009 if (_json.containsKey("width")) { |
4932 width = _json["width"]; | 5010 width = _json["width"]; |
4933 } | 5011 } |
4934 } | 5012 } |
4935 | 5013 |
4936 core.Map<core.String, core.Object> toJson() { | 5014 core.Map<core.String, core.Object> toJson() { |
4937 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5015 final core.Map<core.String, core.Object> _json = |
| 5016 new core.Map<core.String, core.Object>(); |
4938 if (height != null) { | 5017 if (height != null) { |
4939 _json["height"] = height; | 5018 _json["height"] = height; |
4940 } | 5019 } |
4941 if (width != null) { | 5020 if (width != null) { |
4942 _json["width"] = width; | 5021 _json["width"] = width; |
4943 } | 5022 } |
4944 return _json; | 5023 return _json; |
4945 } | 5024 } |
4946 } | 5025 } |
4947 | 5026 |
4948 class PretargetingConfigExcludedPlacements { | 5027 class PretargetingConfigExcludedPlacements { |
4949 /** | 5028 /// The value of the placement. Interpretation depends on the placement type, |
4950 * The value of the placement. Interpretation depends on the placement type, | 5029 /// e.g. URL for a site placement, channel name for a channel placement, app |
4951 * e.g. URL for a site placement, channel name for a channel placement, app id | 5030 /// id for a mobile app placement. |
4952 * for a mobile app placement. | |
4953 */ | |
4954 core.String token; | 5031 core.String token; |
4955 /** The type of the placement. */ | 5032 |
| 5033 /// The type of the placement. |
4956 core.String type; | 5034 core.String type; |
4957 | 5035 |
4958 PretargetingConfigExcludedPlacements(); | 5036 PretargetingConfigExcludedPlacements(); |
4959 | 5037 |
4960 PretargetingConfigExcludedPlacements.fromJson(core.Map _json) { | 5038 PretargetingConfigExcludedPlacements.fromJson(core.Map _json) { |
4961 if (_json.containsKey("token")) { | 5039 if (_json.containsKey("token")) { |
4962 token = _json["token"]; | 5040 token = _json["token"]; |
4963 } | 5041 } |
4964 if (_json.containsKey("type")) { | 5042 if (_json.containsKey("type")) { |
4965 type = _json["type"]; | 5043 type = _json["type"]; |
4966 } | 5044 } |
4967 } | 5045 } |
4968 | 5046 |
4969 core.Map<core.String, core.Object> toJson() { | 5047 core.Map<core.String, core.Object> toJson() { |
4970 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5048 final core.Map<core.String, core.Object> _json = |
| 5049 new core.Map<core.String, core.Object>(); |
4971 if (token != null) { | 5050 if (token != null) { |
4972 _json["token"] = token; | 5051 _json["token"] = token; |
4973 } | 5052 } |
4974 if (type != null) { | 5053 if (type != null) { |
4975 _json["type"] = type; | 5054 _json["type"] = type; |
4976 } | 5055 } |
4977 return _json; | 5056 return _json; |
4978 } | 5057 } |
4979 } | 5058 } |
4980 | 5059 |
4981 class PretargetingConfigPlacements { | 5060 class PretargetingConfigPlacements { |
4982 /** | 5061 /// The value of the placement. Interpretation depends on the placement type, |
4983 * The value of the placement. Interpretation depends on the placement type, | 5062 /// e.g. URL for a site placement, channel name for a channel placement, app |
4984 * e.g. URL for a site placement, channel name for a channel placement, app id | 5063 /// id for a mobile app placement. |
4985 * for a mobile app placement. | |
4986 */ | |
4987 core.String token; | 5064 core.String token; |
4988 /** The type of the placement. */ | 5065 |
| 5066 /// The type of the placement. |
4989 core.String type; | 5067 core.String type; |
4990 | 5068 |
4991 PretargetingConfigPlacements(); | 5069 PretargetingConfigPlacements(); |
4992 | 5070 |
4993 PretargetingConfigPlacements.fromJson(core.Map _json) { | 5071 PretargetingConfigPlacements.fromJson(core.Map _json) { |
4994 if (_json.containsKey("token")) { | 5072 if (_json.containsKey("token")) { |
4995 token = _json["token"]; | 5073 token = _json["token"]; |
4996 } | 5074 } |
4997 if (_json.containsKey("type")) { | 5075 if (_json.containsKey("type")) { |
4998 type = _json["type"]; | 5076 type = _json["type"]; |
4999 } | 5077 } |
5000 } | 5078 } |
5001 | 5079 |
5002 core.Map<core.String, core.Object> toJson() { | 5080 core.Map<core.String, core.Object> toJson() { |
5003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5081 final core.Map<core.String, core.Object> _json = |
| 5082 new core.Map<core.String, core.Object>(); |
5004 if (token != null) { | 5083 if (token != null) { |
5005 _json["token"] = token; | 5084 _json["token"] = token; |
5006 } | 5085 } |
5007 if (type != null) { | 5086 if (type != null) { |
5008 _json["type"] = type; | 5087 _json["type"] = type; |
5009 } | 5088 } |
5010 return _json; | 5089 return _json; |
5011 } | 5090 } |
5012 } | 5091 } |
5013 | 5092 |
5014 class PretargetingConfigVideoPlayerSizes { | 5093 class PretargetingConfigVideoPlayerSizes { |
5015 /** | 5094 /// The type of aspect ratio. Leave this field blank to match all aspect |
5016 * The type of aspect ratio. Leave this field blank to match all aspect | 5095 /// ratios. |
5017 * ratios. | |
5018 */ | |
5019 core.String aspectRatio; | 5096 core.String aspectRatio; |
5020 /** | 5097 |
5021 * The minimum player height in pixels. Leave this field blank to match any | 5098 /// The minimum player height in pixels. Leave this field blank to match any |
5022 * player height. | 5099 /// player height. |
5023 */ | |
5024 core.String minHeight; | 5100 core.String minHeight; |
5025 /** | 5101 |
5026 * The minimum player width in pixels. Leave this field blank to match any | 5102 /// The minimum player width in pixels. Leave this field blank to match any |
5027 * player width. | 5103 /// player width. |
5028 */ | |
5029 core.String minWidth; | 5104 core.String minWidth; |
5030 | 5105 |
5031 PretargetingConfigVideoPlayerSizes(); | 5106 PretargetingConfigVideoPlayerSizes(); |
5032 | 5107 |
5033 PretargetingConfigVideoPlayerSizes.fromJson(core.Map _json) { | 5108 PretargetingConfigVideoPlayerSizes.fromJson(core.Map _json) { |
5034 if (_json.containsKey("aspectRatio")) { | 5109 if (_json.containsKey("aspectRatio")) { |
5035 aspectRatio = _json["aspectRatio"]; | 5110 aspectRatio = _json["aspectRatio"]; |
5036 } | 5111 } |
5037 if (_json.containsKey("minHeight")) { | 5112 if (_json.containsKey("minHeight")) { |
5038 minHeight = _json["minHeight"]; | 5113 minHeight = _json["minHeight"]; |
5039 } | 5114 } |
5040 if (_json.containsKey("minWidth")) { | 5115 if (_json.containsKey("minWidth")) { |
5041 minWidth = _json["minWidth"]; | 5116 minWidth = _json["minWidth"]; |
5042 } | 5117 } |
5043 } | 5118 } |
5044 | 5119 |
5045 core.Map<core.String, core.Object> toJson() { | 5120 core.Map<core.String, core.Object> toJson() { |
5046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5121 final core.Map<core.String, core.Object> _json = |
| 5122 new core.Map<core.String, core.Object>(); |
5047 if (aspectRatio != null) { | 5123 if (aspectRatio != null) { |
5048 _json["aspectRatio"] = aspectRatio; | 5124 _json["aspectRatio"] = aspectRatio; |
5049 } | 5125 } |
5050 if (minHeight != null) { | 5126 if (minHeight != null) { |
5051 _json["minHeight"] = minHeight; | 5127 _json["minHeight"] = minHeight; |
5052 } | 5128 } |
5053 if (minWidth != null) { | 5129 if (minWidth != null) { |
5054 _json["minWidth"] = minWidth; | 5130 _json["minWidth"] = minWidth; |
5055 } | 5131 } |
5056 return _json; | 5132 return _json; |
5057 } | 5133 } |
5058 } | 5134 } |
5059 | 5135 |
5060 class PretargetingConfig { | 5136 class PretargetingConfig { |
5061 /** | 5137 /// The id for billing purposes, provided for reference. Leave this field |
5062 * The id for billing purposes, provided for reference. Leave this field blank | 5138 /// blank for insert requests; the id will be generated automatically. |
5063 * for insert requests; the id will be generated automatically. | |
5064 */ | |
5065 core.String billingId; | 5139 core.String billingId; |
5066 /** | 5140 |
5067 * The config id; generated automatically. Leave this field blank for insert | 5141 /// The config id; generated automatically. Leave this field blank for insert |
5068 * requests. | 5142 /// requests. |
5069 */ | |
5070 core.String configId; | 5143 core.String configId; |
5071 /** The name of the config. Must be unique. Required for all requests. */ | 5144 |
| 5145 /// The name of the config. Must be unique. Required for all requests. |
5072 core.String configName; | 5146 core.String configName; |
5073 /** | 5147 |
5074 * List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or | 5148 /// List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or |
5075 * PRETARGETING_CREATIVE_TYPE_VIDEO. | 5149 /// PRETARGETING_CREATIVE_TYPE_VIDEO. |
5076 */ | |
5077 core.List<core.String> creativeType; | 5150 core.List<core.String> creativeType; |
5078 /** | 5151 |
5079 * Requests which allow one of these (width, height) pairs will match. All | 5152 /// Requests which allow one of these (width, height) pairs will match. All |
5080 * pairs must be supported ad dimensions. | 5153 /// pairs must be supported ad dimensions. |
5081 */ | |
5082 core.List<PretargetingConfigDimensions> dimensions; | 5154 core.List<PretargetingConfigDimensions> dimensions; |
5083 /** | 5155 |
5084 * Requests with any of these content labels will not match. Values are from | 5156 /// Requests with any of these content labels will not match. Values are from |
5085 * content-labels.txt in the downloadable files section. | 5157 /// content-labels.txt in the downloadable files section. |
5086 */ | |
5087 core.List<core.String> excludedContentLabels; | 5158 core.List<core.String> excludedContentLabels; |
5088 /** Requests containing any of these geo criteria ids will not match. */ | 5159 |
| 5160 /// Requests containing any of these geo criteria ids will not match. |
5089 core.List<core.String> excludedGeoCriteriaIds; | 5161 core.List<core.String> excludedGeoCriteriaIds; |
5090 /** Requests containing any of these placements will not match. */ | 5162 |
| 5163 /// Requests containing any of these placements will not match. |
5091 core.List<PretargetingConfigExcludedPlacements> excludedPlacements; | 5164 core.List<PretargetingConfigExcludedPlacements> excludedPlacements; |
5092 /** Requests containing any of these users list ids will not match. */ | 5165 |
| 5166 /// Requests containing any of these users list ids will not match. |
5093 core.List<core.String> excludedUserLists; | 5167 core.List<core.String> excludedUserLists; |
5094 /** | 5168 |
5095 * Requests containing any of these vertical ids will not match. Values are | 5169 /// Requests containing any of these vertical ids will not match. Values are |
5096 * from the publisher-verticals.txt file in the downloadable files section. | 5170 /// from the publisher-verticals.txt file in the downloadable files section. |
5097 */ | |
5098 core.List<core.String> excludedVerticals; | 5171 core.List<core.String> excludedVerticals; |
5099 /** Requests containing any of these geo criteria ids will match. */ | 5172 |
| 5173 /// Requests containing any of these geo criteria ids will match. |
5100 core.List<core.String> geoCriteriaIds; | 5174 core.List<core.String> geoCriteriaIds; |
5101 /** Whether this config is active. Required for all requests. */ | 5175 |
| 5176 /// Whether this config is active. Required for all requests. |
5102 core.bool isActive; | 5177 core.bool isActive; |
5103 /** The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". */ | 5178 |
| 5179 /// The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". |
5104 core.String kind; | 5180 core.String kind; |
5105 /** Request containing any of these language codes will match. */ | 5181 |
| 5182 /// Request containing any of these language codes will match. |
5106 core.List<core.String> languages; | 5183 core.List<core.String> languages; |
5107 /** | 5184 |
5108 * Requests where the predicted viewability is below the specified decile will | 5185 /// Requests where the predicted viewability is below the specified decile |
5109 * not match. E.g. if the buyer sets this value to 5, requests from slots | 5186 /// will not match. E.g. if the buyer sets this value to 5, requests from |
5110 * where the predicted viewability is below 50% will not match. If the | 5187 /// slots where the predicted viewability is below 50% will not match. If the |
5111 * predicted viewability is unknown this field will be ignored. | 5188 /// predicted viewability is unknown this field will be ignored. |
5112 */ | |
5113 core.int minimumViewabilityDecile; | 5189 core.int minimumViewabilityDecile; |
5114 /** | 5190 |
5115 * Requests containing any of these mobile carrier ids will match. Values are | 5191 /// Requests containing any of these mobile carrier ids will match. Values |
5116 * from mobile-carriers.csv in the downloadable files section. | 5192 /// are from mobile-carriers.csv in the downloadable files section. |
5117 */ | |
5118 core.List<core.String> mobileCarriers; | 5193 core.List<core.String> mobileCarriers; |
5119 /** | 5194 |
5120 * Requests containing any of these mobile device ids will match. Values are | 5195 /// Requests containing any of these mobile device ids will match. Values are |
5121 * from mobile-devices.csv in the downloadable files section. | 5196 /// from mobile-devices.csv in the downloadable files section. |
5122 */ | |
5123 core.List<core.String> mobileDevices; | 5197 core.List<core.String> mobileDevices; |
5124 /** | 5198 |
5125 * Requests containing any of these mobile operating system version ids will | 5199 /// Requests containing any of these mobile operating system version ids will |
5126 * match. Values are from mobile-os.csv in the downloadable files section. | 5200 /// match. Values are from mobile-os.csv in the downloadable files section. |
5127 */ | |
5128 core.List<core.String> mobileOperatingSystemVersions; | 5201 core.List<core.String> mobileOperatingSystemVersions; |
5129 /** Requests containing any of these placements will match. */ | 5202 |
| 5203 /// Requests containing any of these placements will match. |
5130 core.List<PretargetingConfigPlacements> placements; | 5204 core.List<PretargetingConfigPlacements> placements; |
5131 /** | 5205 |
5132 * Requests matching any of these platforms will match. Possible values are | 5206 /// Requests matching any of these platforms will match. Possible values are |
5133 * PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and | 5207 /// PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and |
5134 * PRETARGETING_PLATFORM_TABLET. | 5208 /// PRETARGETING_PLATFORM_TABLET. |
5135 */ | |
5136 core.List<core.String> platforms; | 5209 core.List<core.String> platforms; |
5137 /** | 5210 |
5138 * Creative attributes should be declared here if all creatives corresponding | 5211 /// Creative attributes should be declared here if all creatives |
5139 * to this pretargeting configuration have that creative attribute. Values are | 5212 /// corresponding to this pretargeting configuration have that creative |
5140 * from pretargetable-creative-attributes.txt in the downloadable files | 5213 /// attribute. Values are from pretargetable-creative-attributes.txt in the |
5141 * section. | 5214 /// downloadable files section. |
5142 */ | |
5143 core.List<core.String> supportedCreativeAttributes; | 5215 core.List<core.String> supportedCreativeAttributes; |
5144 /** | 5216 |
5145 * Requests containing the specified type of user data will match. Possible | 5217 /// Requests containing the specified type of user data will match. Possible |
5146 * values are HOSTED_MATCH_DATA, which means the request is cookie-targetable | 5218 /// values are HOSTED_MATCH_DATA, which means the request is |
5147 * and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, | 5219 /// cookie-targetable and has a match in the buyer's hosted match table, and |
5148 * which means the request has either a targetable cookie or an iOS IDFA. | 5220 /// COOKIE_OR_IDFA, which means the request has either a targetable cookie or |
5149 */ | 5221 /// an iOS IDFA. |
5150 core.List<core.String> userIdentifierDataRequired; | 5222 core.List<core.String> userIdentifierDataRequired; |
5151 /** Requests containing any of these user list ids will match. */ | 5223 |
| 5224 /// Requests containing any of these user list ids will match. |
5152 core.List<core.String> userLists; | 5225 core.List<core.String> userLists; |
5153 /** | 5226 |
5154 * Requests that allow any of these vendor ids will match. Values are from | 5227 /// Requests that allow any of these vendor ids will match. Values are from |
5155 * vendors.txt in the downloadable files section. | 5228 /// vendors.txt in the downloadable files section. |
5156 */ | |
5157 core.List<core.String> vendorTypes; | 5229 core.List<core.String> vendorTypes; |
5158 /** Requests containing any of these vertical ids will match. */ | 5230 |
| 5231 /// Requests containing any of these vertical ids will match. |
5159 core.List<core.String> verticals; | 5232 core.List<core.String> verticals; |
5160 /** | 5233 |
5161 * Video requests satisfying any of these player size constraints will match. | 5234 /// Video requests satisfying any of these player size constraints will |
5162 */ | 5235 /// match. |
5163 core.List<PretargetingConfigVideoPlayerSizes> videoPlayerSizes; | 5236 core.List<PretargetingConfigVideoPlayerSizes> videoPlayerSizes; |
5164 | 5237 |
5165 PretargetingConfig(); | 5238 PretargetingConfig(); |
5166 | 5239 |
5167 PretargetingConfig.fromJson(core.Map _json) { | 5240 PretargetingConfig.fromJson(core.Map _json) { |
5168 if (_json.containsKey("billingId")) { | 5241 if (_json.containsKey("billingId")) { |
5169 billingId = _json["billingId"]; | 5242 billingId = _json["billingId"]; |
5170 } | 5243 } |
5171 if (_json.containsKey("configId")) { | 5244 if (_json.containsKey("configId")) { |
5172 configId = _json["configId"]; | 5245 configId = _json["configId"]; |
5173 } | 5246 } |
5174 if (_json.containsKey("configName")) { | 5247 if (_json.containsKey("configName")) { |
5175 configName = _json["configName"]; | 5248 configName = _json["configName"]; |
5176 } | 5249 } |
5177 if (_json.containsKey("creativeType")) { | 5250 if (_json.containsKey("creativeType")) { |
5178 creativeType = _json["creativeType"]; | 5251 creativeType = _json["creativeType"]; |
5179 } | 5252 } |
5180 if (_json.containsKey("dimensions")) { | 5253 if (_json.containsKey("dimensions")) { |
5181 dimensions = _json["dimensions"].map((value) => new PretargetingConfigDime
nsions.fromJson(value)).toList(); | 5254 dimensions = _json["dimensions"] |
| 5255 .map((value) => new PretargetingConfigDimensions.fromJson(value)) |
| 5256 .toList(); |
5182 } | 5257 } |
5183 if (_json.containsKey("excludedContentLabels")) { | 5258 if (_json.containsKey("excludedContentLabels")) { |
5184 excludedContentLabels = _json["excludedContentLabels"]; | 5259 excludedContentLabels = _json["excludedContentLabels"]; |
5185 } | 5260 } |
5186 if (_json.containsKey("excludedGeoCriteriaIds")) { | 5261 if (_json.containsKey("excludedGeoCriteriaIds")) { |
5187 excludedGeoCriteriaIds = _json["excludedGeoCriteriaIds"]; | 5262 excludedGeoCriteriaIds = _json["excludedGeoCriteriaIds"]; |
5188 } | 5263 } |
5189 if (_json.containsKey("excludedPlacements")) { | 5264 if (_json.containsKey("excludedPlacements")) { |
5190 excludedPlacements = _json["excludedPlacements"].map((value) => new Pretar
getingConfigExcludedPlacements.fromJson(value)).toList(); | 5265 excludedPlacements = _json["excludedPlacements"] |
| 5266 .map((value) => |
| 5267 new PretargetingConfigExcludedPlacements.fromJson(value)) |
| 5268 .toList(); |
5191 } | 5269 } |
5192 if (_json.containsKey("excludedUserLists")) { | 5270 if (_json.containsKey("excludedUserLists")) { |
5193 excludedUserLists = _json["excludedUserLists"]; | 5271 excludedUserLists = _json["excludedUserLists"]; |
5194 } | 5272 } |
5195 if (_json.containsKey("excludedVerticals")) { | 5273 if (_json.containsKey("excludedVerticals")) { |
5196 excludedVerticals = _json["excludedVerticals"]; | 5274 excludedVerticals = _json["excludedVerticals"]; |
5197 } | 5275 } |
5198 if (_json.containsKey("geoCriteriaIds")) { | 5276 if (_json.containsKey("geoCriteriaIds")) { |
5199 geoCriteriaIds = _json["geoCriteriaIds"]; | 5277 geoCriteriaIds = _json["geoCriteriaIds"]; |
5200 } | 5278 } |
(...skipping 12 matching lines...) Loading... |
5213 if (_json.containsKey("mobileCarriers")) { | 5291 if (_json.containsKey("mobileCarriers")) { |
5214 mobileCarriers = _json["mobileCarriers"]; | 5292 mobileCarriers = _json["mobileCarriers"]; |
5215 } | 5293 } |
5216 if (_json.containsKey("mobileDevices")) { | 5294 if (_json.containsKey("mobileDevices")) { |
5217 mobileDevices = _json["mobileDevices"]; | 5295 mobileDevices = _json["mobileDevices"]; |
5218 } | 5296 } |
5219 if (_json.containsKey("mobileOperatingSystemVersions")) { | 5297 if (_json.containsKey("mobileOperatingSystemVersions")) { |
5220 mobileOperatingSystemVersions = _json["mobileOperatingSystemVersions"]; | 5298 mobileOperatingSystemVersions = _json["mobileOperatingSystemVersions"]; |
5221 } | 5299 } |
5222 if (_json.containsKey("placements")) { | 5300 if (_json.containsKey("placements")) { |
5223 placements = _json["placements"].map((value) => new PretargetingConfigPlac
ements.fromJson(value)).toList(); | 5301 placements = _json["placements"] |
| 5302 .map((value) => new PretargetingConfigPlacements.fromJson(value)) |
| 5303 .toList(); |
5224 } | 5304 } |
5225 if (_json.containsKey("platforms")) { | 5305 if (_json.containsKey("platforms")) { |
5226 platforms = _json["platforms"]; | 5306 platforms = _json["platforms"]; |
5227 } | 5307 } |
5228 if (_json.containsKey("supportedCreativeAttributes")) { | 5308 if (_json.containsKey("supportedCreativeAttributes")) { |
5229 supportedCreativeAttributes = _json["supportedCreativeAttributes"]; | 5309 supportedCreativeAttributes = _json["supportedCreativeAttributes"]; |
5230 } | 5310 } |
5231 if (_json.containsKey("userIdentifierDataRequired")) { | 5311 if (_json.containsKey("userIdentifierDataRequired")) { |
5232 userIdentifierDataRequired = _json["userIdentifierDataRequired"]; | 5312 userIdentifierDataRequired = _json["userIdentifierDataRequired"]; |
5233 } | 5313 } |
5234 if (_json.containsKey("userLists")) { | 5314 if (_json.containsKey("userLists")) { |
5235 userLists = _json["userLists"]; | 5315 userLists = _json["userLists"]; |
5236 } | 5316 } |
5237 if (_json.containsKey("vendorTypes")) { | 5317 if (_json.containsKey("vendorTypes")) { |
5238 vendorTypes = _json["vendorTypes"]; | 5318 vendorTypes = _json["vendorTypes"]; |
5239 } | 5319 } |
5240 if (_json.containsKey("verticals")) { | 5320 if (_json.containsKey("verticals")) { |
5241 verticals = _json["verticals"]; | 5321 verticals = _json["verticals"]; |
5242 } | 5322 } |
5243 if (_json.containsKey("videoPlayerSizes")) { | 5323 if (_json.containsKey("videoPlayerSizes")) { |
5244 videoPlayerSizes = _json["videoPlayerSizes"].map((value) => new Pretargeti
ngConfigVideoPlayerSizes.fromJson(value)).toList(); | 5324 videoPlayerSizes = _json["videoPlayerSizes"] |
| 5325 .map( |
| 5326 (value) => new PretargetingConfigVideoPlayerSizes.fromJson(value)) |
| 5327 .toList(); |
5245 } | 5328 } |
5246 } | 5329 } |
5247 | 5330 |
5248 core.Map<core.String, core.Object> toJson() { | 5331 core.Map<core.String, core.Object> toJson() { |
5249 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5332 final core.Map<core.String, core.Object> _json = |
| 5333 new core.Map<core.String, core.Object>(); |
5250 if (billingId != null) { | 5334 if (billingId != null) { |
5251 _json["billingId"] = billingId; | 5335 _json["billingId"] = billingId; |
5252 } | 5336 } |
5253 if (configId != null) { | 5337 if (configId != null) { |
5254 _json["configId"] = configId; | 5338 _json["configId"] = configId; |
5255 } | 5339 } |
5256 if (configName != null) { | 5340 if (configName != null) { |
5257 _json["configName"] = configName; | 5341 _json["configName"] = configName; |
5258 } | 5342 } |
5259 if (creativeType != null) { | 5343 if (creativeType != null) { |
5260 _json["creativeType"] = creativeType; | 5344 _json["creativeType"] = creativeType; |
5261 } | 5345 } |
5262 if (dimensions != null) { | 5346 if (dimensions != null) { |
5263 _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList()
; | 5347 _json["dimensions"] = |
| 5348 dimensions.map((value) => (value).toJson()).toList(); |
5264 } | 5349 } |
5265 if (excludedContentLabels != null) { | 5350 if (excludedContentLabels != null) { |
5266 _json["excludedContentLabels"] = excludedContentLabels; | 5351 _json["excludedContentLabels"] = excludedContentLabels; |
5267 } | 5352 } |
5268 if (excludedGeoCriteriaIds != null) { | 5353 if (excludedGeoCriteriaIds != null) { |
5269 _json["excludedGeoCriteriaIds"] = excludedGeoCriteriaIds; | 5354 _json["excludedGeoCriteriaIds"] = excludedGeoCriteriaIds; |
5270 } | 5355 } |
5271 if (excludedPlacements != null) { | 5356 if (excludedPlacements != null) { |
5272 _json["excludedPlacements"] = excludedPlacements.map((value) => (value).to
Json()).toList(); | 5357 _json["excludedPlacements"] = |
| 5358 excludedPlacements.map((value) => (value).toJson()).toList(); |
5273 } | 5359 } |
5274 if (excludedUserLists != null) { | 5360 if (excludedUserLists != null) { |
5275 _json["excludedUserLists"] = excludedUserLists; | 5361 _json["excludedUserLists"] = excludedUserLists; |
5276 } | 5362 } |
5277 if (excludedVerticals != null) { | 5363 if (excludedVerticals != null) { |
5278 _json["excludedVerticals"] = excludedVerticals; | 5364 _json["excludedVerticals"] = excludedVerticals; |
5279 } | 5365 } |
5280 if (geoCriteriaIds != null) { | 5366 if (geoCriteriaIds != null) { |
5281 _json["geoCriteriaIds"] = geoCriteriaIds; | 5367 _json["geoCriteriaIds"] = geoCriteriaIds; |
5282 } | 5368 } |
(...skipping 12 matching lines...) Loading... |
5295 if (mobileCarriers != null) { | 5381 if (mobileCarriers != null) { |
5296 _json["mobileCarriers"] = mobileCarriers; | 5382 _json["mobileCarriers"] = mobileCarriers; |
5297 } | 5383 } |
5298 if (mobileDevices != null) { | 5384 if (mobileDevices != null) { |
5299 _json["mobileDevices"] = mobileDevices; | 5385 _json["mobileDevices"] = mobileDevices; |
5300 } | 5386 } |
5301 if (mobileOperatingSystemVersions != null) { | 5387 if (mobileOperatingSystemVersions != null) { |
5302 _json["mobileOperatingSystemVersions"] = mobileOperatingSystemVersions; | 5388 _json["mobileOperatingSystemVersions"] = mobileOperatingSystemVersions; |
5303 } | 5389 } |
5304 if (placements != null) { | 5390 if (placements != null) { |
5305 _json["placements"] = placements.map((value) => (value).toJson()).toList()
; | 5391 _json["placements"] = |
| 5392 placements.map((value) => (value).toJson()).toList(); |
5306 } | 5393 } |
5307 if (platforms != null) { | 5394 if (platforms != null) { |
5308 _json["platforms"] = platforms; | 5395 _json["platforms"] = platforms; |
5309 } | 5396 } |
5310 if (supportedCreativeAttributes != null) { | 5397 if (supportedCreativeAttributes != null) { |
5311 _json["supportedCreativeAttributes"] = supportedCreativeAttributes; | 5398 _json["supportedCreativeAttributes"] = supportedCreativeAttributes; |
5312 } | 5399 } |
5313 if (userIdentifierDataRequired != null) { | 5400 if (userIdentifierDataRequired != null) { |
5314 _json["userIdentifierDataRequired"] = userIdentifierDataRequired; | 5401 _json["userIdentifierDataRequired"] = userIdentifierDataRequired; |
5315 } | 5402 } |
5316 if (userLists != null) { | 5403 if (userLists != null) { |
5317 _json["userLists"] = userLists; | 5404 _json["userLists"] = userLists; |
5318 } | 5405 } |
5319 if (vendorTypes != null) { | 5406 if (vendorTypes != null) { |
5320 _json["vendorTypes"] = vendorTypes; | 5407 _json["vendorTypes"] = vendorTypes; |
5321 } | 5408 } |
5322 if (verticals != null) { | 5409 if (verticals != null) { |
5323 _json["verticals"] = verticals; | 5410 _json["verticals"] = verticals; |
5324 } | 5411 } |
5325 if (videoPlayerSizes != null) { | 5412 if (videoPlayerSizes != null) { |
5326 _json["videoPlayerSizes"] = videoPlayerSizes.map((value) => (value).toJson
()).toList(); | 5413 _json["videoPlayerSizes"] = |
| 5414 videoPlayerSizes.map((value) => (value).toJson()).toList(); |
5327 } | 5415 } |
5328 return _json; | 5416 return _json; |
5329 } | 5417 } |
5330 } | 5418 } |
5331 | 5419 |
5332 class PretargetingConfigList { | 5420 class PretargetingConfigList { |
5333 /** A list of pretargeting configs */ | 5421 /// A list of pretargeting configs |
5334 core.List<PretargetingConfig> items; | 5422 core.List<PretargetingConfig> items; |
5335 /** Resource type. */ | 5423 |
| 5424 /// Resource type. |
5336 core.String kind; | 5425 core.String kind; |
5337 | 5426 |
5338 PretargetingConfigList(); | 5427 PretargetingConfigList(); |
5339 | 5428 |
5340 PretargetingConfigList.fromJson(core.Map _json) { | 5429 PretargetingConfigList.fromJson(core.Map _json) { |
5341 if (_json.containsKey("items")) { | 5430 if (_json.containsKey("items")) { |
5342 items = _json["items"].map((value) => new PretargetingConfig.fromJson(valu
e)).toList(); | 5431 items = _json["items"] |
| 5432 .map((value) => new PretargetingConfig.fromJson(value)) |
| 5433 .toList(); |
5343 } | 5434 } |
5344 if (_json.containsKey("kind")) { | 5435 if (_json.containsKey("kind")) { |
5345 kind = _json["kind"]; | 5436 kind = _json["kind"]; |
5346 } | 5437 } |
5347 } | 5438 } |
5348 | 5439 |
5349 core.Map<core.String, core.Object> toJson() { | 5440 core.Map<core.String, core.Object> toJson() { |
5350 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5441 final core.Map<core.String, core.Object> _json = |
| 5442 new core.Map<core.String, core.Object>(); |
5351 if (items != null) { | 5443 if (items != null) { |
5352 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5444 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5353 } | 5445 } |
5354 if (kind != null) { | 5446 if (kind != null) { |
5355 _json["kind"] = kind; | 5447 _json["kind"] = kind; |
5356 } | 5448 } |
5357 return _json; | 5449 return _json; |
5358 } | 5450 } |
5359 } | 5451 } |
5360 | 5452 |
5361 class Price { | 5453 class Price { |
5362 /** The price value in micros. */ | 5454 /// The price value in micros. |
5363 core.double amountMicros; | 5455 core.double amountMicros; |
5364 /** The currency code for the price. */ | 5456 |
| 5457 /// The currency code for the price. |
5365 core.String currencyCode; | 5458 core.String currencyCode; |
5366 /** In case of CPD deals, the expected CPM in micros. */ | 5459 |
| 5460 /// In case of CPD deals, the expected CPM in micros. |
5367 core.double expectedCpmMicros; | 5461 core.double expectedCpmMicros; |
5368 /** The pricing type for the deal/product. */ | 5462 |
| 5463 /// The pricing type for the deal/product. |
5369 core.String pricingType; | 5464 core.String pricingType; |
5370 | 5465 |
5371 Price(); | 5466 Price(); |
5372 | 5467 |
5373 Price.fromJson(core.Map _json) { | 5468 Price.fromJson(core.Map _json) { |
5374 if (_json.containsKey("amountMicros")) { | 5469 if (_json.containsKey("amountMicros")) { |
5375 amountMicros = _json["amountMicros"]; | 5470 amountMicros = _json["amountMicros"]; |
5376 } | 5471 } |
5377 if (_json.containsKey("currencyCode")) { | 5472 if (_json.containsKey("currencyCode")) { |
5378 currencyCode = _json["currencyCode"]; | 5473 currencyCode = _json["currencyCode"]; |
5379 } | 5474 } |
5380 if (_json.containsKey("expectedCpmMicros")) { | 5475 if (_json.containsKey("expectedCpmMicros")) { |
5381 expectedCpmMicros = _json["expectedCpmMicros"]; | 5476 expectedCpmMicros = _json["expectedCpmMicros"]; |
5382 } | 5477 } |
5383 if (_json.containsKey("pricingType")) { | 5478 if (_json.containsKey("pricingType")) { |
5384 pricingType = _json["pricingType"]; | 5479 pricingType = _json["pricingType"]; |
5385 } | 5480 } |
5386 } | 5481 } |
5387 | 5482 |
5388 core.Map<core.String, core.Object> toJson() { | 5483 core.Map<core.String, core.Object> toJson() { |
5389 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5484 final core.Map<core.String, core.Object> _json = |
| 5485 new core.Map<core.String, core.Object>(); |
5390 if (amountMicros != null) { | 5486 if (amountMicros != null) { |
5391 _json["amountMicros"] = amountMicros; | 5487 _json["amountMicros"] = amountMicros; |
5392 } | 5488 } |
5393 if (currencyCode != null) { | 5489 if (currencyCode != null) { |
5394 _json["currencyCode"] = currencyCode; | 5490 _json["currencyCode"] = currencyCode; |
5395 } | 5491 } |
5396 if (expectedCpmMicros != null) { | 5492 if (expectedCpmMicros != null) { |
5397 _json["expectedCpmMicros"] = expectedCpmMicros; | 5493 _json["expectedCpmMicros"] = expectedCpmMicros; |
5398 } | 5494 } |
5399 if (pricingType != null) { | 5495 if (pricingType != null) { |
5400 _json["pricingType"] = pricingType; | 5496 _json["pricingType"] = pricingType; |
5401 } | 5497 } |
5402 return _json; | 5498 return _json; |
5403 } | 5499 } |
5404 } | 5500 } |
5405 | 5501 |
5406 /** | 5502 /// Used to specify pricing rules for buyers. Each PricePerBuyer in a product |
5407 * Used to specify pricing rules for buyers. Each PricePerBuyer in a product can | 5503 /// can become [0,1] deals. To check if there is a PricePerBuyer for a |
5408 * become [0,1] deals. To check if there is a PricePerBuyer for a particular | 5504 /// particular buyer we look for the most specific matching rule - we first |
5409 * buyer we look for the most specific matching rule - we first look for a rule | 5505 /// look for a rule matching the buyer and otherwise look for a matching rule |
5410 * matching the buyer and otherwise look for a matching rule where no buyer is | 5506 /// where no buyer is set. |
5411 * set. | |
5412 */ | |
5413 class PricePerBuyer { | 5507 class PricePerBuyer { |
5414 /** Optional access type for this buyer. */ | 5508 /// Optional access type for this buyer. |
5415 core.String auctionTier; | 5509 core.String auctionTier; |
5416 /** Reference to the buyer that will get billed. */ | 5510 |
| 5511 /// Reference to the buyer that will get billed. |
5417 Buyer billedBuyer; | 5512 Buyer billedBuyer; |
5418 /** | 5513 |
5419 * The buyer who will pay this price. If unset, all buyers can pay this price | 5514 /// The buyer who will pay this price. If unset, all buyers can pay this |
5420 * (if the advertisers match, and there's no more specific rule matching the | 5515 /// price (if the advertisers match, and there's no more specific rule |
5421 * buyer). | 5516 /// matching the buyer). |
5422 */ | |
5423 Buyer buyer; | 5517 Buyer buyer; |
5424 /** The specified price */ | 5518 |
| 5519 /// The specified price |
5425 Price price; | 5520 Price price; |
5426 | 5521 |
5427 PricePerBuyer(); | 5522 PricePerBuyer(); |
5428 | 5523 |
5429 PricePerBuyer.fromJson(core.Map _json) { | 5524 PricePerBuyer.fromJson(core.Map _json) { |
5430 if (_json.containsKey("auctionTier")) { | 5525 if (_json.containsKey("auctionTier")) { |
5431 auctionTier = _json["auctionTier"]; | 5526 auctionTier = _json["auctionTier"]; |
5432 } | 5527 } |
5433 if (_json.containsKey("billedBuyer")) { | 5528 if (_json.containsKey("billedBuyer")) { |
5434 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]); | 5529 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]); |
5435 } | 5530 } |
5436 if (_json.containsKey("buyer")) { | 5531 if (_json.containsKey("buyer")) { |
5437 buyer = new Buyer.fromJson(_json["buyer"]); | 5532 buyer = new Buyer.fromJson(_json["buyer"]); |
5438 } | 5533 } |
5439 if (_json.containsKey("price")) { | 5534 if (_json.containsKey("price")) { |
5440 price = new Price.fromJson(_json["price"]); | 5535 price = new Price.fromJson(_json["price"]); |
5441 } | 5536 } |
5442 } | 5537 } |
5443 | 5538 |
5444 core.Map<core.String, core.Object> toJson() { | 5539 core.Map<core.String, core.Object> toJson() { |
5445 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5540 final core.Map<core.String, core.Object> _json = |
| 5541 new core.Map<core.String, core.Object>(); |
5446 if (auctionTier != null) { | 5542 if (auctionTier != null) { |
5447 _json["auctionTier"] = auctionTier; | 5543 _json["auctionTier"] = auctionTier; |
5448 } | 5544 } |
5449 if (billedBuyer != null) { | 5545 if (billedBuyer != null) { |
5450 _json["billedBuyer"] = (billedBuyer).toJson(); | 5546 _json["billedBuyer"] = (billedBuyer).toJson(); |
5451 } | 5547 } |
5452 if (buyer != null) { | 5548 if (buyer != null) { |
5453 _json["buyer"] = (buyer).toJson(); | 5549 _json["buyer"] = (buyer).toJson(); |
5454 } | 5550 } |
5455 if (price != null) { | 5551 if (price != null) { |
5456 _json["price"] = (price).toJson(); | 5552 _json["price"] = (price).toJson(); |
5457 } | 5553 } |
5458 return _json; | 5554 return _json; |
5459 } | 5555 } |
5460 } | 5556 } |
5461 | 5557 |
5462 class PrivateData { | 5558 class PrivateData { |
5463 core.String referenceId; | 5559 core.String referenceId; |
5464 core.String referencePayload; | 5560 core.String referencePayload; |
5465 core.List<core.int> get referencePayloadAsBytes { | 5561 core.List<core.int> get referencePayloadAsBytes { |
5466 return convert.BASE64.decode(referencePayload); | 5562 return convert.BASE64.decode(referencePayload); |
5467 } | 5563 } |
5468 | 5564 |
5469 void set referencePayloadAsBytes(core.List<core.int> _bytes) { | 5565 void set referencePayloadAsBytes(core.List<core.int> _bytes) { |
5470 referencePayload = convert.BASE64.encode(_bytes).replaceAll("/", "_").replac
eAll("+", "-"); | 5566 referencePayload = |
| 5567 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
5471 } | 5568 } |
5472 | 5569 |
5473 PrivateData(); | 5570 PrivateData(); |
5474 | 5571 |
5475 PrivateData.fromJson(core.Map _json) { | 5572 PrivateData.fromJson(core.Map _json) { |
5476 if (_json.containsKey("referenceId")) { | 5573 if (_json.containsKey("referenceId")) { |
5477 referenceId = _json["referenceId"]; | 5574 referenceId = _json["referenceId"]; |
5478 } | 5575 } |
5479 if (_json.containsKey("referencePayload")) { | 5576 if (_json.containsKey("referencePayload")) { |
5480 referencePayload = _json["referencePayload"]; | 5577 referencePayload = _json["referencePayload"]; |
5481 } | 5578 } |
5482 } | 5579 } |
5483 | 5580 |
5484 core.Map<core.String, core.Object> toJson() { | 5581 core.Map<core.String, core.Object> toJson() { |
5485 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5582 final core.Map<core.String, core.Object> _json = |
| 5583 new core.Map<core.String, core.Object>(); |
5486 if (referenceId != null) { | 5584 if (referenceId != null) { |
5487 _json["referenceId"] = referenceId; | 5585 _json["referenceId"] = referenceId; |
5488 } | 5586 } |
5489 if (referencePayload != null) { | 5587 if (referencePayload != null) { |
5490 _json["referencePayload"] = referencePayload; | 5588 _json["referencePayload"] = referencePayload; |
5491 } | 5589 } |
5492 return _json; | 5590 return _json; |
5493 } | 5591 } |
5494 } | 5592 } |
5495 | 5593 |
5496 /** | 5594 /// A product is segment of inventory that a seller wishes to sell. It is |
5497 * A product is segment of inventory that a seller wishes to sell. It is | 5595 /// associated with certain terms and targeting information which helps buyer |
5498 * associated with certain terms and targeting information which helps buyer | 5596 /// know more about the inventory. Each field in a product can have one of the |
5499 * know more about the inventory. Each field in a product can have one of the | 5597 /// following setting: |
5500 * following setting: | 5598 /// |
5501 * | 5599 /// (readonly) - It is an error to try and set this field. (buyer-readonly) - |
5502 * (readonly) - It is an error to try and set this field. (buyer-readonly) - | 5600 /// Only the seller can set this field. (seller-readonly) - Only the buyer can |
5503 * Only the seller can set this field. (seller-readonly) - Only the buyer can | 5601 /// set this field. (updatable) - The field is updatable at all times by either |
5504 * set this field. (updatable) - The field is updatable at all times by either | 5602 /// buyer or the seller. |
5505 * buyer or the seller. | |
5506 */ | |
5507 class Product { | 5603 class Product { |
5508 /** | 5604 /// The billed buyer corresponding to the buyer that created the offer. |
5509 * The billed buyer corresponding to the buyer that created the offer. | 5605 /// (readonly, except on create) |
5510 * (readonly, except on create) | |
5511 */ | |
5512 Buyer billedBuyer; | 5606 Buyer billedBuyer; |
5513 /** | 5607 |
5514 * The buyer that created the offer if this is a buyer initiated offer | 5608 /// The buyer that created the offer if this is a buyer initiated offer |
5515 * (readonly, except on create) | 5609 /// (readonly, except on create) |
5516 */ | |
5517 Buyer buyer; | 5610 Buyer buyer; |
5518 /** Creation time in ms. since epoch (readonly) */ | 5611 |
| 5612 /// Creation time in ms. since epoch (readonly) |
5519 core.String creationTimeMs; | 5613 core.String creationTimeMs; |
5520 /** | 5614 |
5521 * Optional contact information for the creator of this product. | 5615 /// Optional contact information for the creator of this product. |
5522 * (buyer-readonly) | 5616 /// (buyer-readonly) |
5523 */ | |
5524 core.List<ContactInformation> creatorContacts; | 5617 core.List<ContactInformation> creatorContacts; |
5525 /** | 5618 |
5526 * The role that created the offer. Set to BUYER for buyer initiated offers. | 5619 /// The role that created the offer. Set to BUYER for buyer initiated offers. |
5527 */ | |
5528 core.String creatorRole; | 5620 core.String creatorRole; |
5529 /** | 5621 |
5530 * The set of fields around delivery control that are interesting for a buyer | 5622 /// The set of fields around delivery control that are interesting for a |
5531 * to see but are non-negotiable. These are set by the publisher. This message | 5623 /// buyer to see but are non-negotiable. These are set by the publisher. This |
5532 * is assigned an id of 100 since some day we would want to model this as a | 5624 /// message is assigned an id of 100 since some day we would want to model |
5533 * protobuf extension. | 5625 /// this as a protobuf extension. |
5534 */ | |
5535 DeliveryControl deliveryControl; | 5626 DeliveryControl deliveryControl; |
5536 /** The proposed end time for the deal (ms since epoch) (buyer-readonly) */ | 5627 |
| 5628 /// The proposed end time for the deal (ms since epoch) (buyer-readonly) |
5537 core.String flightEndTimeMs; | 5629 core.String flightEndTimeMs; |
5538 /** | 5630 |
5539 * Inventory availability dates. (times are in ms since epoch) The granularity | 5631 /// Inventory availability dates. (times are in ms since epoch) The |
5540 * is generally in the order of seconds. (buyer-readonly) | 5632 /// granularity is generally in the order of seconds. (buyer-readonly) |
5541 */ | |
5542 core.String flightStartTimeMs; | 5633 core.String flightStartTimeMs; |
5543 /** | 5634 |
5544 * If the creator has already signed off on the product, then the buyer can | 5635 /// If the creator has already signed off on the product, then the buyer can |
5545 * finalize the deal by accepting the product as is. When copying to a | 5636 /// finalize the deal by accepting the product as is. When copying to a |
5546 * proposal, if any of the terms are changed, then auto_finalize is | 5637 /// proposal, if any of the terms are changed, then auto_finalize is |
5547 * automatically set to false. | 5638 /// automatically set to false. |
5548 */ | |
5549 core.bool hasCreatorSignedOff; | 5639 core.bool hasCreatorSignedOff; |
5550 /** | 5640 |
5551 * What exchange will provide this inventory (readonly, except on create). | 5641 /// What exchange will provide this inventory (readonly, except on create). |
5552 */ | |
5553 core.String inventorySource; | 5642 core.String inventorySource; |
5554 /** | 5643 |
5555 * Identifies what kind of resource this is. Value: the fixed string | 5644 /// Identifies what kind of resource this is. Value: the fixed string |
5556 * "adexchangebuyer#product". | 5645 /// "adexchangebuyer#product". |
5557 */ | |
5558 core.String kind; | 5646 core.String kind; |
5559 /** Optional List of labels for the product (optional, buyer-readonly). */ | 5647 |
| 5648 /// Optional List of labels for the product (optional, buyer-readonly). |
5560 core.List<MarketplaceLabel> labels; | 5649 core.List<MarketplaceLabel> labels; |
5561 /** Time of last update in ms. since epoch (readonly) */ | 5650 |
| 5651 /// Time of last update in ms. since epoch (readonly) |
5562 core.String lastUpdateTimeMs; | 5652 core.String lastUpdateTimeMs; |
5563 /** Optional legacy offer id if this offer is a preferred deal offer. */ | 5653 |
| 5654 /// Optional legacy offer id if this offer is a preferred deal offer. |
5564 core.String legacyOfferId; | 5655 core.String legacyOfferId; |
5565 /** | 5656 |
5566 * Marketplace publisher profile Id. This Id differs from the regular | 5657 /// Marketplace publisher profile Id. This Id differs from the regular |
5567 * publisher_profile_id in that 1. This is a new id, the old Id will be | 5658 /// publisher_profile_id in that 1. This is a new id, the old Id will be |
5568 * deprecated in 2017. 2. This id uniquely identifies a publisher profile by | 5659 /// deprecated in 2017. 2. This id uniquely identifies a publisher profile by |
5569 * itself. | 5660 /// itself. |
5570 */ | |
5571 core.String marketplacePublisherProfileId; | 5661 core.String marketplacePublisherProfileId; |
5572 /** The name for this product as set by the seller. (buyer-readonly) */ | 5662 |
| 5663 /// The name for this product as set by the seller. (buyer-readonly) |
5573 core.String name; | 5664 core.String name; |
5574 /** Optional private auction id if this offer is a private auction offer. */ | 5665 |
| 5666 /// Optional private auction id if this offer is a private auction offer. |
5575 core.String privateAuctionId; | 5667 core.String privateAuctionId; |
5576 /** The unique id for the product (readonly) */ | 5668 |
| 5669 /// The unique id for the product (readonly) |
5577 core.String productId; | 5670 core.String productId; |
5578 /** | 5671 |
5579 * Id of the publisher profile for a given seller. A (seller.account_id, | 5672 /// Id of the publisher profile for a given seller. A (seller.account_id, |
5580 * publisher_profile_id) pair uniquely identifies a publisher profile. Buyers | 5673 /// publisher_profile_id) pair uniquely identifies a publisher profile. |
5581 * can call the PublisherProfiles::List endpoint to get a list of publisher | 5674 /// Buyers can call the PublisherProfiles::List endpoint to get a list of |
5582 * profiles for a given seller. | 5675 /// publisher profiles for a given seller. |
5583 */ | |
5584 core.String publisherProfileId; | 5676 core.String publisherProfileId; |
5585 /** Publisher self-provided forecast information. */ | 5677 |
| 5678 /// Publisher self-provided forecast information. |
5586 PublisherProvidedForecast publisherProvidedForecast; | 5679 PublisherProvidedForecast publisherProvidedForecast; |
5587 /** The revision number of the product. (readonly) */ | 5680 |
| 5681 /// The revision number of the product. (readonly) |
5588 core.String revisionNumber; | 5682 core.String revisionNumber; |
5589 /** | 5683 |
5590 * Information about the seller that created this product (readonly, except on | 5684 /// Information about the seller that created this product (readonly, except |
5591 * create) | 5685 /// on create) |
5592 */ | |
5593 Seller seller; | 5686 Seller seller; |
5594 /** | 5687 |
5595 * Targeting that is shared between the buyer and the seller. Each targeting | 5688 /// Targeting that is shared between the buyer and the seller. Each targeting |
5596 * criteria has a specified key and for each key there is a list of inclusion | 5689 /// criteria has a specified key and for each key there is a list of |
5597 * value or exclusion values. (buyer-readonly) | 5690 /// inclusion value or exclusion values. (buyer-readonly) |
5598 */ | |
5599 core.List<SharedTargeting> sharedTargetings; | 5691 core.List<SharedTargeting> sharedTargetings; |
5600 /** The state of the product. (buyer-readonly) */ | 5692 |
| 5693 /// The state of the product. (buyer-readonly) |
5601 core.String state; | 5694 core.String state; |
5602 /** | 5695 |
5603 * The syndication product associated with the deal. (readonly, except on | 5696 /// The syndication product associated with the deal. (readonly, except on |
5604 * create) | 5697 /// create) |
5605 */ | |
5606 core.String syndicationProduct; | 5698 core.String syndicationProduct; |
5607 /** The negotiable terms of the deal (buyer-readonly) */ | 5699 |
| 5700 /// The negotiable terms of the deal (buyer-readonly) |
5608 DealTerms terms; | 5701 DealTerms terms; |
5609 /** | 5702 |
5610 * The web property code for the seller. This field is meant to be copied over | 5703 /// The web property code for the seller. This field is meant to be copied |
5611 * as is when creating deals. | 5704 /// over as is when creating deals. |
5612 */ | |
5613 core.String webPropertyCode; | 5705 core.String webPropertyCode; |
5614 | 5706 |
5615 Product(); | 5707 Product(); |
5616 | 5708 |
5617 Product.fromJson(core.Map _json) { | 5709 Product.fromJson(core.Map _json) { |
5618 if (_json.containsKey("billedBuyer")) { | 5710 if (_json.containsKey("billedBuyer")) { |
5619 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]); | 5711 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]); |
5620 } | 5712 } |
5621 if (_json.containsKey("buyer")) { | 5713 if (_json.containsKey("buyer")) { |
5622 buyer = new Buyer.fromJson(_json["buyer"]); | 5714 buyer = new Buyer.fromJson(_json["buyer"]); |
5623 } | 5715 } |
5624 if (_json.containsKey("creationTimeMs")) { | 5716 if (_json.containsKey("creationTimeMs")) { |
5625 creationTimeMs = _json["creationTimeMs"]; | 5717 creationTimeMs = _json["creationTimeMs"]; |
5626 } | 5718 } |
5627 if (_json.containsKey("creatorContacts")) { | 5719 if (_json.containsKey("creatorContacts")) { |
5628 creatorContacts = _json["creatorContacts"].map((value) => new ContactInfor
mation.fromJson(value)).toList(); | 5720 creatorContacts = _json["creatorContacts"] |
| 5721 .map((value) => new ContactInformation.fromJson(value)) |
| 5722 .toList(); |
5629 } | 5723 } |
5630 if (_json.containsKey("creatorRole")) { | 5724 if (_json.containsKey("creatorRole")) { |
5631 creatorRole = _json["creatorRole"]; | 5725 creatorRole = _json["creatorRole"]; |
5632 } | 5726 } |
5633 if (_json.containsKey("deliveryControl")) { | 5727 if (_json.containsKey("deliveryControl")) { |
5634 deliveryControl = new DeliveryControl.fromJson(_json["deliveryControl"]); | 5728 deliveryControl = new DeliveryControl.fromJson(_json["deliveryControl"]); |
5635 } | 5729 } |
5636 if (_json.containsKey("flightEndTimeMs")) { | 5730 if (_json.containsKey("flightEndTimeMs")) { |
5637 flightEndTimeMs = _json["flightEndTimeMs"]; | 5731 flightEndTimeMs = _json["flightEndTimeMs"]; |
5638 } | 5732 } |
5639 if (_json.containsKey("flightStartTimeMs")) { | 5733 if (_json.containsKey("flightStartTimeMs")) { |
5640 flightStartTimeMs = _json["flightStartTimeMs"]; | 5734 flightStartTimeMs = _json["flightStartTimeMs"]; |
5641 } | 5735 } |
5642 if (_json.containsKey("hasCreatorSignedOff")) { | 5736 if (_json.containsKey("hasCreatorSignedOff")) { |
5643 hasCreatorSignedOff = _json["hasCreatorSignedOff"]; | 5737 hasCreatorSignedOff = _json["hasCreatorSignedOff"]; |
5644 } | 5738 } |
5645 if (_json.containsKey("inventorySource")) { | 5739 if (_json.containsKey("inventorySource")) { |
5646 inventorySource = _json["inventorySource"]; | 5740 inventorySource = _json["inventorySource"]; |
5647 } | 5741 } |
5648 if (_json.containsKey("kind")) { | 5742 if (_json.containsKey("kind")) { |
5649 kind = _json["kind"]; | 5743 kind = _json["kind"]; |
5650 } | 5744 } |
5651 if (_json.containsKey("labels")) { | 5745 if (_json.containsKey("labels")) { |
5652 labels = _json["labels"].map((value) => new MarketplaceLabel.fromJson(valu
e)).toList(); | 5746 labels = _json["labels"] |
| 5747 .map((value) => new MarketplaceLabel.fromJson(value)) |
| 5748 .toList(); |
5653 } | 5749 } |
5654 if (_json.containsKey("lastUpdateTimeMs")) { | 5750 if (_json.containsKey("lastUpdateTimeMs")) { |
5655 lastUpdateTimeMs = _json["lastUpdateTimeMs"]; | 5751 lastUpdateTimeMs = _json["lastUpdateTimeMs"]; |
5656 } | 5752 } |
5657 if (_json.containsKey("legacyOfferId")) { | 5753 if (_json.containsKey("legacyOfferId")) { |
5658 legacyOfferId = _json["legacyOfferId"]; | 5754 legacyOfferId = _json["legacyOfferId"]; |
5659 } | 5755 } |
5660 if (_json.containsKey("marketplacePublisherProfileId")) { | 5756 if (_json.containsKey("marketplacePublisherProfileId")) { |
5661 marketplacePublisherProfileId = _json["marketplacePublisherProfileId"]; | 5757 marketplacePublisherProfileId = _json["marketplacePublisherProfileId"]; |
5662 } | 5758 } |
5663 if (_json.containsKey("name")) { | 5759 if (_json.containsKey("name")) { |
5664 name = _json["name"]; | 5760 name = _json["name"]; |
5665 } | 5761 } |
5666 if (_json.containsKey("privateAuctionId")) { | 5762 if (_json.containsKey("privateAuctionId")) { |
5667 privateAuctionId = _json["privateAuctionId"]; | 5763 privateAuctionId = _json["privateAuctionId"]; |
5668 } | 5764 } |
5669 if (_json.containsKey("productId")) { | 5765 if (_json.containsKey("productId")) { |
5670 productId = _json["productId"]; | 5766 productId = _json["productId"]; |
5671 } | 5767 } |
5672 if (_json.containsKey("publisherProfileId")) { | 5768 if (_json.containsKey("publisherProfileId")) { |
5673 publisherProfileId = _json["publisherProfileId"]; | 5769 publisherProfileId = _json["publisherProfileId"]; |
5674 } | 5770 } |
5675 if (_json.containsKey("publisherProvidedForecast")) { | 5771 if (_json.containsKey("publisherProvidedForecast")) { |
5676 publisherProvidedForecast = new PublisherProvidedForecast.fromJson(_json["
publisherProvidedForecast"]); | 5772 publisherProvidedForecast = new PublisherProvidedForecast.fromJson( |
| 5773 _json["publisherProvidedForecast"]); |
5677 } | 5774 } |
5678 if (_json.containsKey("revisionNumber")) { | 5775 if (_json.containsKey("revisionNumber")) { |
5679 revisionNumber = _json["revisionNumber"]; | 5776 revisionNumber = _json["revisionNumber"]; |
5680 } | 5777 } |
5681 if (_json.containsKey("seller")) { | 5778 if (_json.containsKey("seller")) { |
5682 seller = new Seller.fromJson(_json["seller"]); | 5779 seller = new Seller.fromJson(_json["seller"]); |
5683 } | 5780 } |
5684 if (_json.containsKey("sharedTargetings")) { | 5781 if (_json.containsKey("sharedTargetings")) { |
5685 sharedTargetings = _json["sharedTargetings"].map((value) => new SharedTarg
eting.fromJson(value)).toList(); | 5782 sharedTargetings = _json["sharedTargetings"] |
| 5783 .map((value) => new SharedTargeting.fromJson(value)) |
| 5784 .toList(); |
5686 } | 5785 } |
5687 if (_json.containsKey("state")) { | 5786 if (_json.containsKey("state")) { |
5688 state = _json["state"]; | 5787 state = _json["state"]; |
5689 } | 5788 } |
5690 if (_json.containsKey("syndicationProduct")) { | 5789 if (_json.containsKey("syndicationProduct")) { |
5691 syndicationProduct = _json["syndicationProduct"]; | 5790 syndicationProduct = _json["syndicationProduct"]; |
5692 } | 5791 } |
5693 if (_json.containsKey("terms")) { | 5792 if (_json.containsKey("terms")) { |
5694 terms = new DealTerms.fromJson(_json["terms"]); | 5793 terms = new DealTerms.fromJson(_json["terms"]); |
5695 } | 5794 } |
5696 if (_json.containsKey("webPropertyCode")) { | 5795 if (_json.containsKey("webPropertyCode")) { |
5697 webPropertyCode = _json["webPropertyCode"]; | 5796 webPropertyCode = _json["webPropertyCode"]; |
5698 } | 5797 } |
5699 } | 5798 } |
5700 | 5799 |
5701 core.Map<core.String, core.Object> toJson() { | 5800 core.Map<core.String, core.Object> toJson() { |
5702 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5801 final core.Map<core.String, core.Object> _json = |
| 5802 new core.Map<core.String, core.Object>(); |
5703 if (billedBuyer != null) { | 5803 if (billedBuyer != null) { |
5704 _json["billedBuyer"] = (billedBuyer).toJson(); | 5804 _json["billedBuyer"] = (billedBuyer).toJson(); |
5705 } | 5805 } |
5706 if (buyer != null) { | 5806 if (buyer != null) { |
5707 _json["buyer"] = (buyer).toJson(); | 5807 _json["buyer"] = (buyer).toJson(); |
5708 } | 5808 } |
5709 if (creationTimeMs != null) { | 5809 if (creationTimeMs != null) { |
5710 _json["creationTimeMs"] = creationTimeMs; | 5810 _json["creationTimeMs"] = creationTimeMs; |
5711 } | 5811 } |
5712 if (creatorContacts != null) { | 5812 if (creatorContacts != null) { |
5713 _json["creatorContacts"] = creatorContacts.map((value) => (value).toJson()
).toList(); | 5813 _json["creatorContacts"] = |
| 5814 creatorContacts.map((value) => (value).toJson()).toList(); |
5714 } | 5815 } |
5715 if (creatorRole != null) { | 5816 if (creatorRole != null) { |
5716 _json["creatorRole"] = creatorRole; | 5817 _json["creatorRole"] = creatorRole; |
5717 } | 5818 } |
5718 if (deliveryControl != null) { | 5819 if (deliveryControl != null) { |
5719 _json["deliveryControl"] = (deliveryControl).toJson(); | 5820 _json["deliveryControl"] = (deliveryControl).toJson(); |
5720 } | 5821 } |
5721 if (flightEndTimeMs != null) { | 5822 if (flightEndTimeMs != null) { |
5722 _json["flightEndTimeMs"] = flightEndTimeMs; | 5823 _json["flightEndTimeMs"] = flightEndTimeMs; |
5723 } | 5824 } |
(...skipping 36 matching lines...) Loading... |
5760 if (publisherProvidedForecast != null) { | 5861 if (publisherProvidedForecast != null) { |
5761 _json["publisherProvidedForecast"] = (publisherProvidedForecast).toJson(); | 5862 _json["publisherProvidedForecast"] = (publisherProvidedForecast).toJson(); |
5762 } | 5863 } |
5763 if (revisionNumber != null) { | 5864 if (revisionNumber != null) { |
5764 _json["revisionNumber"] = revisionNumber; | 5865 _json["revisionNumber"] = revisionNumber; |
5765 } | 5866 } |
5766 if (seller != null) { | 5867 if (seller != null) { |
5767 _json["seller"] = (seller).toJson(); | 5868 _json["seller"] = (seller).toJson(); |
5768 } | 5869 } |
5769 if (sharedTargetings != null) { | 5870 if (sharedTargetings != null) { |
5770 _json["sharedTargetings"] = sharedTargetings.map((value) => (value).toJson
()).toList(); | 5871 _json["sharedTargetings"] = |
| 5872 sharedTargetings.map((value) => (value).toJson()).toList(); |
5771 } | 5873 } |
5772 if (state != null) { | 5874 if (state != null) { |
5773 _json["state"] = state; | 5875 _json["state"] = state; |
5774 } | 5876 } |
5775 if (syndicationProduct != null) { | 5877 if (syndicationProduct != null) { |
5776 _json["syndicationProduct"] = syndicationProduct; | 5878 _json["syndicationProduct"] = syndicationProduct; |
5777 } | 5879 } |
5778 if (terms != null) { | 5880 if (terms != null) { |
5779 _json["terms"] = (terms).toJson(); | 5881 _json["terms"] = (terms).toJson(); |
5780 } | 5882 } |
5781 if (webPropertyCode != null) { | 5883 if (webPropertyCode != null) { |
5782 _json["webPropertyCode"] = webPropertyCode; | 5884 _json["webPropertyCode"] = webPropertyCode; |
5783 } | 5885 } |
5784 return _json; | 5886 return _json; |
5785 } | 5887 } |
5786 } | 5888 } |
5787 | 5889 |
5788 /** | 5890 /// Represents a proposal in the marketplace. A proposal is the unit of |
5789 * Represents a proposal in the marketplace. A proposal is the unit of | 5891 /// negotiation between a seller and a buyer and contains deals which are |
5790 * negotiation between a seller and a buyer and contains deals which are served. | 5892 /// served. Each field in a proposal can have one of the following setting: |
5791 * Each field in a proposal can have one of the following setting: | 5893 /// |
5792 * | 5894 /// (readonly) - It is an error to try and set this field. (buyer-readonly) - |
5793 * (readonly) - It is an error to try and set this field. (buyer-readonly) - | 5895 /// Only the seller can set this field. (seller-readonly) - Only the buyer can |
5794 * Only the seller can set this field. (seller-readonly) - Only the buyer can | 5896 /// set this field. (updatable) - The field is updatable at all times by either |
5795 * set this field. (updatable) - The field is updatable at all times by either | 5897 /// buyer or the seller. |
5796 * buyer or the seller. | |
5797 */ | |
5798 class Proposal { | 5898 class Proposal { |
5799 /** | 5899 /// Reference to the buyer that will get billed for this proposal. (readonly) |
5800 * Reference to the buyer that will get billed for this proposal. (readonly) | |
5801 */ | |
5802 Buyer billedBuyer; | 5900 Buyer billedBuyer; |
5803 /** Reference to the buyer on the proposal. (readonly, except on create) */ | 5901 |
| 5902 /// Reference to the buyer on the proposal. (readonly, except on create) |
5804 Buyer buyer; | 5903 Buyer buyer; |
5805 /** Optional contact information of the buyer. (seller-readonly) */ | 5904 |
| 5905 /// Optional contact information of the buyer. (seller-readonly) |
5806 core.List<ContactInformation> buyerContacts; | 5906 core.List<ContactInformation> buyerContacts; |
5807 /** Private data for buyer. (hidden from seller). */ | 5907 |
| 5908 /// Private data for buyer. (hidden from seller). |
5808 PrivateData buyerPrivateData; | 5909 PrivateData buyerPrivateData; |
5809 /** IDs of DBM advertisers permission to this proposal. */ | 5910 |
| 5911 /// IDs of DBM advertisers permission to this proposal. |
5810 core.List<core.String> dbmAdvertiserIds; | 5912 core.List<core.String> dbmAdvertiserIds; |
5811 /** | 5913 |
5812 * When an proposal is in an accepted state, indicates whether the buyer has | 5914 /// When an proposal is in an accepted state, indicates whether the buyer has |
5813 * signed off. Once both sides have signed off on a deal, the proposal can be | 5915 /// signed off. Once both sides have signed off on a deal, the proposal can |
5814 * finalized by the seller. (seller-readonly) | 5916 /// be finalized by the seller. (seller-readonly) |
5815 */ | |
5816 core.bool hasBuyerSignedOff; | 5917 core.bool hasBuyerSignedOff; |
5817 /** | 5918 |
5818 * When an proposal is in an accepted state, indicates whether the buyer has | 5919 /// When an proposal is in an accepted state, indicates whether the buyer has |
5819 * signed off Once both sides have signed off on a deal, the proposal can be | 5920 /// signed off Once both sides have signed off on a deal, the proposal can be |
5820 * finalized by the seller. (buyer-readonly) | 5921 /// finalized by the seller. (buyer-readonly) |
5821 */ | |
5822 core.bool hasSellerSignedOff; | 5922 core.bool hasSellerSignedOff; |
5823 /** | 5923 |
5824 * What exchange will provide this inventory (readonly, except on create). | 5924 /// What exchange will provide this inventory (readonly, except on create). |
5825 */ | |
5826 core.String inventorySource; | 5925 core.String inventorySource; |
5827 /** True if the proposal is being renegotiated (readonly). */ | 5926 |
| 5927 /// True if the proposal is being renegotiated (readonly). |
5828 core.bool isRenegotiating; | 5928 core.bool isRenegotiating; |
5829 /** | 5929 |
5830 * True, if the buyside inventory setup is complete for this proposal. | 5930 /// True, if the buyside inventory setup is complete for this proposal. |
5831 * (readonly, except via OrderSetupCompleted action) Deprecated in favor of | 5931 /// (readonly, except via OrderSetupCompleted action) Deprecated in favor of |
5832 * deal level setup complete flag. | 5932 /// deal level setup complete flag. |
5833 */ | |
5834 core.bool isSetupComplete; | 5933 core.bool isSetupComplete; |
5835 /** | 5934 |
5836 * Identifies what kind of resource this is. Value: the fixed string | 5935 /// Identifies what kind of resource this is. Value: the fixed string |
5837 * "adexchangebuyer#proposal". | 5936 /// "adexchangebuyer#proposal". |
5838 */ | |
5839 core.String kind; | 5937 core.String kind; |
5840 /** List of labels associated with the proposal. (readonly) */ | 5938 |
| 5939 /// List of labels associated with the proposal. (readonly) |
5841 core.List<MarketplaceLabel> labels; | 5940 core.List<MarketplaceLabel> labels; |
5842 /** | 5941 |
5843 * The role of the last user that either updated the proposal or left a | 5942 /// The role of the last user that either updated the proposal or left a |
5844 * comment. (readonly) | 5943 /// comment. (readonly) |
5845 */ | |
5846 core.String lastUpdaterOrCommentorRole; | 5944 core.String lastUpdaterOrCommentorRole; |
5847 /** The name for the proposal (updatable) */ | 5945 |
| 5946 /// The name for the proposal (updatable) |
5848 core.String name; | 5947 core.String name; |
5849 /** Optional negotiation id if this proposal is a preferred deal proposal. */ | 5948 |
| 5949 /// Optional negotiation id if this proposal is a preferred deal proposal. |
5850 core.String negotiationId; | 5950 core.String negotiationId; |
5851 /** Indicates whether the buyer/seller created the proposal.(readonly) */ | 5951 |
| 5952 /// Indicates whether the buyer/seller created the proposal.(readonly) |
5852 core.String originatorRole; | 5953 core.String originatorRole; |
5853 /** | 5954 |
5854 * Optional private auction id if this proposal is a private auction proposal. | 5955 /// Optional private auction id if this proposal is a private auction |
5855 */ | 5956 /// proposal. |
5856 core.String privateAuctionId; | 5957 core.String privateAuctionId; |
5857 /** The unique id of the proposal. (readonly). */ | 5958 |
| 5959 /// The unique id of the proposal. (readonly). |
5858 core.String proposalId; | 5960 core.String proposalId; |
5859 /** The current state of the proposal. (readonly) */ | 5961 |
| 5962 /// The current state of the proposal. (readonly) |
5860 core.String proposalState; | 5963 core.String proposalState; |
5861 /** The revision number for the proposal (readonly). */ | 5964 |
| 5965 /// The revision number for the proposal (readonly). |
5862 core.String revisionNumber; | 5966 core.String revisionNumber; |
5863 /** | 5967 |
5864 * The time (ms since epoch) when the proposal was last revised (readonly). | 5968 /// The time (ms since epoch) when the proposal was last revised (readonly). |
5865 */ | |
5866 core.String revisionTimeMs; | 5969 core.String revisionTimeMs; |
5867 /** Reference to the seller on the proposal. (readonly, except on create) */ | 5970 |
| 5971 /// Reference to the seller on the proposal. (readonly, except on create) |
5868 Seller seller; | 5972 Seller seller; |
5869 /** Optional contact information of the seller (buyer-readonly). */ | 5973 |
| 5974 /// Optional contact information of the seller (buyer-readonly). |
5870 core.List<ContactInformation> sellerContacts; | 5975 core.List<ContactInformation> sellerContacts; |
5871 | 5976 |
5872 Proposal(); | 5977 Proposal(); |
5873 | 5978 |
5874 Proposal.fromJson(core.Map _json) { | 5979 Proposal.fromJson(core.Map _json) { |
5875 if (_json.containsKey("billedBuyer")) { | 5980 if (_json.containsKey("billedBuyer")) { |
5876 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]); | 5981 billedBuyer = new Buyer.fromJson(_json["billedBuyer"]); |
5877 } | 5982 } |
5878 if (_json.containsKey("buyer")) { | 5983 if (_json.containsKey("buyer")) { |
5879 buyer = new Buyer.fromJson(_json["buyer"]); | 5984 buyer = new Buyer.fromJson(_json["buyer"]); |
5880 } | 5985 } |
5881 if (_json.containsKey("buyerContacts")) { | 5986 if (_json.containsKey("buyerContacts")) { |
5882 buyerContacts = _json["buyerContacts"].map((value) => new ContactInformati
on.fromJson(value)).toList(); | 5987 buyerContacts = _json["buyerContacts"] |
| 5988 .map((value) => new ContactInformation.fromJson(value)) |
| 5989 .toList(); |
5883 } | 5990 } |
5884 if (_json.containsKey("buyerPrivateData")) { | 5991 if (_json.containsKey("buyerPrivateData")) { |
5885 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); | 5992 buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); |
5886 } | 5993 } |
5887 if (_json.containsKey("dbmAdvertiserIds")) { | 5994 if (_json.containsKey("dbmAdvertiserIds")) { |
5888 dbmAdvertiserIds = _json["dbmAdvertiserIds"]; | 5995 dbmAdvertiserIds = _json["dbmAdvertiserIds"]; |
5889 } | 5996 } |
5890 if (_json.containsKey("hasBuyerSignedOff")) { | 5997 if (_json.containsKey("hasBuyerSignedOff")) { |
5891 hasBuyerSignedOff = _json["hasBuyerSignedOff"]; | 5998 hasBuyerSignedOff = _json["hasBuyerSignedOff"]; |
5892 } | 5999 } |
5893 if (_json.containsKey("hasSellerSignedOff")) { | 6000 if (_json.containsKey("hasSellerSignedOff")) { |
5894 hasSellerSignedOff = _json["hasSellerSignedOff"]; | 6001 hasSellerSignedOff = _json["hasSellerSignedOff"]; |
5895 } | 6002 } |
5896 if (_json.containsKey("inventorySource")) { | 6003 if (_json.containsKey("inventorySource")) { |
5897 inventorySource = _json["inventorySource"]; | 6004 inventorySource = _json["inventorySource"]; |
5898 } | 6005 } |
5899 if (_json.containsKey("isRenegotiating")) { | 6006 if (_json.containsKey("isRenegotiating")) { |
5900 isRenegotiating = _json["isRenegotiating"]; | 6007 isRenegotiating = _json["isRenegotiating"]; |
5901 } | 6008 } |
5902 if (_json.containsKey("isSetupComplete")) { | 6009 if (_json.containsKey("isSetupComplete")) { |
5903 isSetupComplete = _json["isSetupComplete"]; | 6010 isSetupComplete = _json["isSetupComplete"]; |
5904 } | 6011 } |
5905 if (_json.containsKey("kind")) { | 6012 if (_json.containsKey("kind")) { |
5906 kind = _json["kind"]; | 6013 kind = _json["kind"]; |
5907 } | 6014 } |
5908 if (_json.containsKey("labels")) { | 6015 if (_json.containsKey("labels")) { |
5909 labels = _json["labels"].map((value) => new MarketplaceLabel.fromJson(valu
e)).toList(); | 6016 labels = _json["labels"] |
| 6017 .map((value) => new MarketplaceLabel.fromJson(value)) |
| 6018 .toList(); |
5910 } | 6019 } |
5911 if (_json.containsKey("lastUpdaterOrCommentorRole")) { | 6020 if (_json.containsKey("lastUpdaterOrCommentorRole")) { |
5912 lastUpdaterOrCommentorRole = _json["lastUpdaterOrCommentorRole"]; | 6021 lastUpdaterOrCommentorRole = _json["lastUpdaterOrCommentorRole"]; |
5913 } | 6022 } |
5914 if (_json.containsKey("name")) { | 6023 if (_json.containsKey("name")) { |
5915 name = _json["name"]; | 6024 name = _json["name"]; |
5916 } | 6025 } |
5917 if (_json.containsKey("negotiationId")) { | 6026 if (_json.containsKey("negotiationId")) { |
5918 negotiationId = _json["negotiationId"]; | 6027 negotiationId = _json["negotiationId"]; |
5919 } | 6028 } |
(...skipping 12 matching lines...) Loading... |
5932 if (_json.containsKey("revisionNumber")) { | 6041 if (_json.containsKey("revisionNumber")) { |
5933 revisionNumber = _json["revisionNumber"]; | 6042 revisionNumber = _json["revisionNumber"]; |
5934 } | 6043 } |
5935 if (_json.containsKey("revisionTimeMs")) { | 6044 if (_json.containsKey("revisionTimeMs")) { |
5936 revisionTimeMs = _json["revisionTimeMs"]; | 6045 revisionTimeMs = _json["revisionTimeMs"]; |
5937 } | 6046 } |
5938 if (_json.containsKey("seller")) { | 6047 if (_json.containsKey("seller")) { |
5939 seller = new Seller.fromJson(_json["seller"]); | 6048 seller = new Seller.fromJson(_json["seller"]); |
5940 } | 6049 } |
5941 if (_json.containsKey("sellerContacts")) { | 6050 if (_json.containsKey("sellerContacts")) { |
5942 sellerContacts = _json["sellerContacts"].map((value) => new ContactInforma
tion.fromJson(value)).toList(); | 6051 sellerContacts = _json["sellerContacts"] |
| 6052 .map((value) => new ContactInformation.fromJson(value)) |
| 6053 .toList(); |
5943 } | 6054 } |
5944 } | 6055 } |
5945 | 6056 |
5946 core.Map<core.String, core.Object> toJson() { | 6057 core.Map<core.String, core.Object> toJson() { |
5947 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6058 final core.Map<core.String, core.Object> _json = |
| 6059 new core.Map<core.String, core.Object>(); |
5948 if (billedBuyer != null) { | 6060 if (billedBuyer != null) { |
5949 _json["billedBuyer"] = (billedBuyer).toJson(); | 6061 _json["billedBuyer"] = (billedBuyer).toJson(); |
5950 } | 6062 } |
5951 if (buyer != null) { | 6063 if (buyer != null) { |
5952 _json["buyer"] = (buyer).toJson(); | 6064 _json["buyer"] = (buyer).toJson(); |
5953 } | 6065 } |
5954 if (buyerContacts != null) { | 6066 if (buyerContacts != null) { |
5955 _json["buyerContacts"] = buyerContacts.map((value) => (value).toJson()).to
List(); | 6067 _json["buyerContacts"] = |
| 6068 buyerContacts.map((value) => (value).toJson()).toList(); |
5956 } | 6069 } |
5957 if (buyerPrivateData != null) { | 6070 if (buyerPrivateData != null) { |
5958 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); | 6071 _json["buyerPrivateData"] = (buyerPrivateData).toJson(); |
5959 } | 6072 } |
5960 if (dbmAdvertiserIds != null) { | 6073 if (dbmAdvertiserIds != null) { |
5961 _json["dbmAdvertiserIds"] = dbmAdvertiserIds; | 6074 _json["dbmAdvertiserIds"] = dbmAdvertiserIds; |
5962 } | 6075 } |
5963 if (hasBuyerSignedOff != null) { | 6076 if (hasBuyerSignedOff != null) { |
5964 _json["hasBuyerSignedOff"] = hasBuyerSignedOff; | 6077 _json["hasBuyerSignedOff"] = hasBuyerSignedOff; |
5965 } | 6078 } |
(...skipping 39 matching lines...) Loading... |
6005 if (revisionNumber != null) { | 6118 if (revisionNumber != null) { |
6006 _json["revisionNumber"] = revisionNumber; | 6119 _json["revisionNumber"] = revisionNumber; |
6007 } | 6120 } |
6008 if (revisionTimeMs != null) { | 6121 if (revisionTimeMs != null) { |
6009 _json["revisionTimeMs"] = revisionTimeMs; | 6122 _json["revisionTimeMs"] = revisionTimeMs; |
6010 } | 6123 } |
6011 if (seller != null) { | 6124 if (seller != null) { |
6012 _json["seller"] = (seller).toJson(); | 6125 _json["seller"] = (seller).toJson(); |
6013 } | 6126 } |
6014 if (sellerContacts != null) { | 6127 if (sellerContacts != null) { |
6015 _json["sellerContacts"] = sellerContacts.map((value) => (value).toJson()).
toList(); | 6128 _json["sellerContacts"] = |
| 6129 sellerContacts.map((value) => (value).toJson()).toList(); |
6016 } | 6130 } |
6017 return _json; | 6131 return _json; |
6018 } | 6132 } |
6019 } | 6133 } |
6020 | 6134 |
6021 class PublisherProfileApiProto { | 6135 class PublisherProfileApiProto { |
6022 /** Deprecated: use the seller.account_id. The account id of the seller. */ | 6136 /// Deprecated: use the seller.account_id. The account id of the seller. |
6023 core.String accountId; | 6137 core.String accountId; |
6024 /** Publisher provided info on its audience. */ | 6138 |
| 6139 /// Publisher provided info on its audience. |
6025 core.String audience; | 6140 core.String audience; |
6026 /** A pitch statement for the buyer */ | 6141 |
| 6142 /// A pitch statement for the buyer |
6027 core.String buyerPitchStatement; | 6143 core.String buyerPitchStatement; |
6028 /** Direct contact for the publisher profile. */ | 6144 |
| 6145 /// Direct contact for the publisher profile. |
6029 core.String directContact; | 6146 core.String directContact; |
6030 /** | 6147 |
6031 * Exchange where this publisher profile is from. E.g. AdX, Rubicon etc... | 6148 /// Exchange where this publisher profile is from. E.g. AdX, Rubicon etc... |
6032 */ | |
6033 core.String exchange; | 6149 core.String exchange; |
6034 /** Link to publisher's Google+ page. */ | 6150 |
| 6151 /// Link to publisher's Google+ page. |
6035 core.String googlePlusLink; | 6152 core.String googlePlusLink; |
6036 /** | 6153 |
6037 * True, if this is the parent profile, which represents all domains owned by | 6154 /// True, if this is the parent profile, which represents all domains owned |
6038 * the publisher. | 6155 /// by the publisher. |
6039 */ | |
6040 core.bool isParent; | 6156 core.bool isParent; |
6041 /** True, if this profile is published. Deprecated for state. */ | 6157 |
| 6158 /// True, if this profile is published. Deprecated for state. |
6042 core.bool isPublished; | 6159 core.bool isPublished; |
6043 /** | 6160 |
6044 * Identifies what kind of resource this is. Value: the fixed string | 6161 /// Identifies what kind of resource this is. Value: the fixed string |
6045 * "adexchangebuyer#publisherProfileApiProto". | 6162 /// "adexchangebuyer#publisherProfileApiProto". |
6046 */ | |
6047 core.String kind; | 6163 core.String kind; |
6048 /** The url to the logo for the publisher. */ | 6164 |
| 6165 /// The url to the logo for the publisher. |
6049 core.String logoUrl; | 6166 core.String logoUrl; |
6050 /** The url for additional marketing and sales materials. */ | 6167 |
| 6168 /// The url for additional marketing and sales materials. |
6051 core.String mediaKitLink; | 6169 core.String mediaKitLink; |
6052 core.String name; | 6170 core.String name; |
6053 /** Publisher provided overview. */ | 6171 |
| 6172 /// Publisher provided overview. |
6054 core.String overview; | 6173 core.String overview; |
6055 /** | 6174 |
6056 * The pair of (seller.account_id, profile_id) uniquely identifies a publisher | 6175 /// The pair of (seller.account_id, profile_id) uniquely identifies a |
6057 * profile for a given publisher. | 6176 /// publisher profile for a given publisher. |
6058 */ | |
6059 core.int profileId; | 6177 core.int profileId; |
6060 /** Programmatic contact for the publisher profile. */ | 6178 |
| 6179 /// Programmatic contact for the publisher profile. |
6061 core.String programmaticContact; | 6180 core.String programmaticContact; |
6062 /** | 6181 |
6063 * The list of domains represented in this publisher profile. Empty if this is | 6182 /// The list of domains represented in this publisher profile. Empty if this |
6064 * a parent profile. | 6183 /// is a parent profile. |
6065 */ | |
6066 core.List<core.String> publisherDomains; | 6184 core.List<core.String> publisherDomains; |
6067 /** Unique Id for publisher profile. */ | 6185 |
| 6186 /// Unique Id for publisher profile. |
6068 core.String publisherProfileId; | 6187 core.String publisherProfileId; |
6069 /** Publisher provided forecasting information. */ | 6188 |
| 6189 /// Publisher provided forecasting information. |
6070 PublisherProvidedForecast publisherProvidedForecast; | 6190 PublisherProvidedForecast publisherProvidedForecast; |
6071 /** Link to publisher rate card */ | 6191 |
| 6192 /// Link to publisher rate card |
6072 core.String rateCardInfoLink; | 6193 core.String rateCardInfoLink; |
6073 /** Link for a sample content page. */ | 6194 |
| 6195 /// Link for a sample content page. |
6074 core.String samplePageLink; | 6196 core.String samplePageLink; |
6075 /** Seller of the publisher profile. */ | 6197 |
| 6198 /// Seller of the publisher profile. |
6076 Seller seller; | 6199 Seller seller; |
6077 /** State of the publisher profile. */ | 6200 |
| 6201 /// State of the publisher profile. |
6078 core.String state; | 6202 core.String state; |
6079 /** Publisher provided key metrics and rankings. */ | 6203 |
| 6204 /// Publisher provided key metrics and rankings. |
6080 core.List<core.String> topHeadlines; | 6205 core.List<core.String> topHeadlines; |
6081 | 6206 |
6082 PublisherProfileApiProto(); | 6207 PublisherProfileApiProto(); |
6083 | 6208 |
6084 PublisherProfileApiProto.fromJson(core.Map _json) { | 6209 PublisherProfileApiProto.fromJson(core.Map _json) { |
6085 if (_json.containsKey("accountId")) { | 6210 if (_json.containsKey("accountId")) { |
6086 accountId = _json["accountId"]; | 6211 accountId = _json["accountId"]; |
6087 } | 6212 } |
6088 if (_json.containsKey("audience")) { | 6213 if (_json.containsKey("audience")) { |
6089 audience = _json["audience"]; | 6214 audience = _json["audience"]; |
(...skipping 37 matching lines...) Loading... |
6127 if (_json.containsKey("programmaticContact")) { | 6252 if (_json.containsKey("programmaticContact")) { |
6128 programmaticContact = _json["programmaticContact"]; | 6253 programmaticContact = _json["programmaticContact"]; |
6129 } | 6254 } |
6130 if (_json.containsKey("publisherDomains")) { | 6255 if (_json.containsKey("publisherDomains")) { |
6131 publisherDomains = _json["publisherDomains"]; | 6256 publisherDomains = _json["publisherDomains"]; |
6132 } | 6257 } |
6133 if (_json.containsKey("publisherProfileId")) { | 6258 if (_json.containsKey("publisherProfileId")) { |
6134 publisherProfileId = _json["publisherProfileId"]; | 6259 publisherProfileId = _json["publisherProfileId"]; |
6135 } | 6260 } |
6136 if (_json.containsKey("publisherProvidedForecast")) { | 6261 if (_json.containsKey("publisherProvidedForecast")) { |
6137 publisherProvidedForecast = new PublisherProvidedForecast.fromJson(_json["
publisherProvidedForecast"]); | 6262 publisherProvidedForecast = new PublisherProvidedForecast.fromJson( |
| 6263 _json["publisherProvidedForecast"]); |
6138 } | 6264 } |
6139 if (_json.containsKey("rateCardInfoLink")) { | 6265 if (_json.containsKey("rateCardInfoLink")) { |
6140 rateCardInfoLink = _json["rateCardInfoLink"]; | 6266 rateCardInfoLink = _json["rateCardInfoLink"]; |
6141 } | 6267 } |
6142 if (_json.containsKey("samplePageLink")) { | 6268 if (_json.containsKey("samplePageLink")) { |
6143 samplePageLink = _json["samplePageLink"]; | 6269 samplePageLink = _json["samplePageLink"]; |
6144 } | 6270 } |
6145 if (_json.containsKey("seller")) { | 6271 if (_json.containsKey("seller")) { |
6146 seller = new Seller.fromJson(_json["seller"]); | 6272 seller = new Seller.fromJson(_json["seller"]); |
6147 } | 6273 } |
6148 if (_json.containsKey("state")) { | 6274 if (_json.containsKey("state")) { |
6149 state = _json["state"]; | 6275 state = _json["state"]; |
6150 } | 6276 } |
6151 if (_json.containsKey("topHeadlines")) { | 6277 if (_json.containsKey("topHeadlines")) { |
6152 topHeadlines = _json["topHeadlines"]; | 6278 topHeadlines = _json["topHeadlines"]; |
6153 } | 6279 } |
6154 } | 6280 } |
6155 | 6281 |
6156 core.Map<core.String, core.Object> toJson() { | 6282 core.Map<core.String, core.Object> toJson() { |
6157 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6283 final core.Map<core.String, core.Object> _json = |
| 6284 new core.Map<core.String, core.Object>(); |
6158 if (accountId != null) { | 6285 if (accountId != null) { |
6159 _json["accountId"] = accountId; | 6286 _json["accountId"] = accountId; |
6160 } | 6287 } |
6161 if (audience != null) { | 6288 if (audience != null) { |
6162 _json["audience"] = audience; | 6289 _json["audience"] = audience; |
6163 } | 6290 } |
6164 if (buyerPitchStatement != null) { | 6291 if (buyerPitchStatement != null) { |
6165 _json["buyerPitchStatement"] = buyerPitchStatement; | 6292 _json["buyerPitchStatement"] = buyerPitchStatement; |
6166 } | 6293 } |
6167 if (directContact != null) { | 6294 if (directContact != null) { |
(...skipping 53 matching lines...) Loading... |
6221 if (state != null) { | 6348 if (state != null) { |
6222 _json["state"] = state; | 6349 _json["state"] = state; |
6223 } | 6350 } |
6224 if (topHeadlines != null) { | 6351 if (topHeadlines != null) { |
6225 _json["topHeadlines"] = topHeadlines; | 6352 _json["topHeadlines"] = topHeadlines; |
6226 } | 6353 } |
6227 return _json; | 6354 return _json; |
6228 } | 6355 } |
6229 } | 6356 } |
6230 | 6357 |
6231 /** This message carries publisher provided forecasting information. */ | 6358 /// This message carries publisher provided forecasting information. |
6232 class PublisherProvidedForecast { | 6359 class PublisherProvidedForecast { |
6233 /** Publisher provided dimensions. E.g. geo, sizes etc... */ | 6360 /// Publisher provided dimensions. E.g. geo, sizes etc... |
6234 core.List<Dimension> dimensions; | 6361 core.List<Dimension> dimensions; |
6235 /** Publisher provided weekly impressions. */ | 6362 |
| 6363 /// Publisher provided weekly impressions. |
6236 core.String weeklyImpressions; | 6364 core.String weeklyImpressions; |
6237 /** Publisher provided weekly uniques. */ | 6365 |
| 6366 /// Publisher provided weekly uniques. |
6238 core.String weeklyUniques; | 6367 core.String weeklyUniques; |
6239 | 6368 |
6240 PublisherProvidedForecast(); | 6369 PublisherProvidedForecast(); |
6241 | 6370 |
6242 PublisherProvidedForecast.fromJson(core.Map _json) { | 6371 PublisherProvidedForecast.fromJson(core.Map _json) { |
6243 if (_json.containsKey("dimensions")) { | 6372 if (_json.containsKey("dimensions")) { |
6244 dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(val
ue)).toList(); | 6373 dimensions = _json["dimensions"] |
| 6374 .map((value) => new Dimension.fromJson(value)) |
| 6375 .toList(); |
6245 } | 6376 } |
6246 if (_json.containsKey("weeklyImpressions")) { | 6377 if (_json.containsKey("weeklyImpressions")) { |
6247 weeklyImpressions = _json["weeklyImpressions"]; | 6378 weeklyImpressions = _json["weeklyImpressions"]; |
6248 } | 6379 } |
6249 if (_json.containsKey("weeklyUniques")) { | 6380 if (_json.containsKey("weeklyUniques")) { |
6250 weeklyUniques = _json["weeklyUniques"]; | 6381 weeklyUniques = _json["weeklyUniques"]; |
6251 } | 6382 } |
6252 } | 6383 } |
6253 | 6384 |
6254 core.Map<core.String, core.Object> toJson() { | 6385 core.Map<core.String, core.Object> toJson() { |
6255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6386 final core.Map<core.String, core.Object> _json = |
| 6387 new core.Map<core.String, core.Object>(); |
6256 if (dimensions != null) { | 6388 if (dimensions != null) { |
6257 _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList()
; | 6389 _json["dimensions"] = |
| 6390 dimensions.map((value) => (value).toJson()).toList(); |
6258 } | 6391 } |
6259 if (weeklyImpressions != null) { | 6392 if (weeklyImpressions != null) { |
6260 _json["weeklyImpressions"] = weeklyImpressions; | 6393 _json["weeklyImpressions"] = weeklyImpressions; |
6261 } | 6394 } |
6262 if (weeklyUniques != null) { | 6395 if (weeklyUniques != null) { |
6263 _json["weeklyUniques"] = weeklyUniques; | 6396 _json["weeklyUniques"] = weeklyUniques; |
6264 } | 6397 } |
6265 return _json; | 6398 return _json; |
6266 } | 6399 } |
6267 } | 6400 } |
6268 | 6401 |
6269 class Seller { | 6402 class Seller { |
6270 /** | 6403 /// The unique id for the seller. The seller fills in this field. The seller |
6271 * The unique id for the seller. The seller fills in this field. The seller | 6404 /// account id is then available to buyer in the product. |
6272 * account id is then available to buyer in the product. | |
6273 */ | |
6274 core.String accountId; | 6405 core.String accountId; |
6275 /** Optional sub-account id for the seller. */ | 6406 |
| 6407 /// Optional sub-account id for the seller. |
6276 core.String subAccountId; | 6408 core.String subAccountId; |
6277 | 6409 |
6278 Seller(); | 6410 Seller(); |
6279 | 6411 |
6280 Seller.fromJson(core.Map _json) { | 6412 Seller.fromJson(core.Map _json) { |
6281 if (_json.containsKey("accountId")) { | 6413 if (_json.containsKey("accountId")) { |
6282 accountId = _json["accountId"]; | 6414 accountId = _json["accountId"]; |
6283 } | 6415 } |
6284 if (_json.containsKey("subAccountId")) { | 6416 if (_json.containsKey("subAccountId")) { |
6285 subAccountId = _json["subAccountId"]; | 6417 subAccountId = _json["subAccountId"]; |
6286 } | 6418 } |
6287 } | 6419 } |
6288 | 6420 |
6289 core.Map<core.String, core.Object> toJson() { | 6421 core.Map<core.String, core.Object> toJson() { |
6290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6422 final core.Map<core.String, core.Object> _json = |
| 6423 new core.Map<core.String, core.Object>(); |
6291 if (accountId != null) { | 6424 if (accountId != null) { |
6292 _json["accountId"] = accountId; | 6425 _json["accountId"] = accountId; |
6293 } | 6426 } |
6294 if (subAccountId != null) { | 6427 if (subAccountId != null) { |
6295 _json["subAccountId"] = subAccountId; | 6428 _json["subAccountId"] = subAccountId; |
6296 } | 6429 } |
6297 return _json; | 6430 return _json; |
6298 } | 6431 } |
6299 } | 6432 } |
6300 | 6433 |
6301 class SharedTargeting { | 6434 class SharedTargeting { |
6302 /** | 6435 /// The list of values to exclude from targeting. Each value is AND'd |
6303 * The list of values to exclude from targeting. Each value is AND'd together. | 6436 /// together. |
6304 */ | |
6305 core.List<TargetingValue> exclusions; | 6437 core.List<TargetingValue> exclusions; |
6306 /** | 6438 |
6307 * The list of value to include as part of the targeting. Each value is OR'd | 6439 /// The list of value to include as part of the targeting. Each value is OR'd |
6308 * together. | 6440 /// together. |
6309 */ | |
6310 core.List<TargetingValue> inclusions; | 6441 core.List<TargetingValue> inclusions; |
6311 /** The key representing the shared targeting criterion. */ | 6442 |
| 6443 /// The key representing the shared targeting criterion. |
6312 core.String key; | 6444 core.String key; |
6313 | 6445 |
6314 SharedTargeting(); | 6446 SharedTargeting(); |
6315 | 6447 |
6316 SharedTargeting.fromJson(core.Map _json) { | 6448 SharedTargeting.fromJson(core.Map _json) { |
6317 if (_json.containsKey("exclusions")) { | 6449 if (_json.containsKey("exclusions")) { |
6318 exclusions = _json["exclusions"].map((value) => new TargetingValue.fromJso
n(value)).toList(); | 6450 exclusions = _json["exclusions"] |
| 6451 .map((value) => new TargetingValue.fromJson(value)) |
| 6452 .toList(); |
6319 } | 6453 } |
6320 if (_json.containsKey("inclusions")) { | 6454 if (_json.containsKey("inclusions")) { |
6321 inclusions = _json["inclusions"].map((value) => new TargetingValue.fromJso
n(value)).toList(); | 6455 inclusions = _json["inclusions"] |
| 6456 .map((value) => new TargetingValue.fromJson(value)) |
| 6457 .toList(); |
6322 } | 6458 } |
6323 if (_json.containsKey("key")) { | 6459 if (_json.containsKey("key")) { |
6324 key = _json["key"]; | 6460 key = _json["key"]; |
6325 } | 6461 } |
6326 } | 6462 } |
6327 | 6463 |
6328 core.Map<core.String, core.Object> toJson() { | 6464 core.Map<core.String, core.Object> toJson() { |
6329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6465 final core.Map<core.String, core.Object> _json = |
| 6466 new core.Map<core.String, core.Object>(); |
6330 if (exclusions != null) { | 6467 if (exclusions != null) { |
6331 _json["exclusions"] = exclusions.map((value) => (value).toJson()).toList()
; | 6468 _json["exclusions"] = |
| 6469 exclusions.map((value) => (value).toJson()).toList(); |
6332 } | 6470 } |
6333 if (inclusions != null) { | 6471 if (inclusions != null) { |
6334 _json["inclusions"] = inclusions.map((value) => (value).toJson()).toList()
; | 6472 _json["inclusions"] = |
| 6473 inclusions.map((value) => (value).toJson()).toList(); |
6335 } | 6474 } |
6336 if (key != null) { | 6475 if (key != null) { |
6337 _json["key"] = key; | 6476 _json["key"] = key; |
6338 } | 6477 } |
6339 return _json; | 6478 return _json; |
6340 } | 6479 } |
6341 } | 6480 } |
6342 | 6481 |
6343 class TargetingValue { | 6482 class TargetingValue { |
6344 /** The creative size value to exclude/include. */ | 6483 /// The creative size value to exclude/include. |
6345 TargetingValueCreativeSize creativeSizeValue; | 6484 TargetingValueCreativeSize creativeSizeValue; |
6346 /** | 6485 |
6347 * The daypart targeting to include / exclude. Filled in when the key is | 6486 /// The daypart targeting to include / exclude. Filled in when the key is |
6348 * GOOG_DAYPART_TARGETING. | 6487 /// GOOG_DAYPART_TARGETING. |
6349 */ | |
6350 TargetingValueDayPartTargeting dayPartTargetingValue; | 6488 TargetingValueDayPartTargeting dayPartTargetingValue; |
6351 /** The long value to exclude/include. */ | 6489 |
| 6490 /// The long value to exclude/include. |
6352 core.String longValue; | 6491 core.String longValue; |
6353 /** The string value to exclude/include. */ | 6492 |
| 6493 /// The string value to exclude/include. |
6354 core.String stringValue; | 6494 core.String stringValue; |
6355 | 6495 |
6356 TargetingValue(); | 6496 TargetingValue(); |
6357 | 6497 |
6358 TargetingValue.fromJson(core.Map _json) { | 6498 TargetingValue.fromJson(core.Map _json) { |
6359 if (_json.containsKey("creativeSizeValue")) { | 6499 if (_json.containsKey("creativeSizeValue")) { |
6360 creativeSizeValue = new TargetingValueCreativeSize.fromJson(_json["creativ
eSizeValue"]); | 6500 creativeSizeValue = |
| 6501 new TargetingValueCreativeSize.fromJson(_json["creativeSizeValue"]); |
6361 } | 6502 } |
6362 if (_json.containsKey("dayPartTargetingValue")) { | 6503 if (_json.containsKey("dayPartTargetingValue")) { |
6363 dayPartTargetingValue = new TargetingValueDayPartTargeting.fromJson(_json[
"dayPartTargetingValue"]); | 6504 dayPartTargetingValue = new TargetingValueDayPartTargeting.fromJson( |
| 6505 _json["dayPartTargetingValue"]); |
6364 } | 6506 } |
6365 if (_json.containsKey("longValue")) { | 6507 if (_json.containsKey("longValue")) { |
6366 longValue = _json["longValue"]; | 6508 longValue = _json["longValue"]; |
6367 } | 6509 } |
6368 if (_json.containsKey("stringValue")) { | 6510 if (_json.containsKey("stringValue")) { |
6369 stringValue = _json["stringValue"]; | 6511 stringValue = _json["stringValue"]; |
6370 } | 6512 } |
6371 } | 6513 } |
6372 | 6514 |
6373 core.Map<core.String, core.Object> toJson() { | 6515 core.Map<core.String, core.Object> toJson() { |
6374 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6516 final core.Map<core.String, core.Object> _json = |
| 6517 new core.Map<core.String, core.Object>(); |
6375 if (creativeSizeValue != null) { | 6518 if (creativeSizeValue != null) { |
6376 _json["creativeSizeValue"] = (creativeSizeValue).toJson(); | 6519 _json["creativeSizeValue"] = (creativeSizeValue).toJson(); |
6377 } | 6520 } |
6378 if (dayPartTargetingValue != null) { | 6521 if (dayPartTargetingValue != null) { |
6379 _json["dayPartTargetingValue"] = (dayPartTargetingValue).toJson(); | 6522 _json["dayPartTargetingValue"] = (dayPartTargetingValue).toJson(); |
6380 } | 6523 } |
6381 if (longValue != null) { | 6524 if (longValue != null) { |
6382 _json["longValue"] = longValue; | 6525 _json["longValue"] = longValue; |
6383 } | 6526 } |
6384 if (stringValue != null) { | 6527 if (stringValue != null) { |
6385 _json["stringValue"] = stringValue; | 6528 _json["stringValue"] = stringValue; |
6386 } | 6529 } |
6387 return _json; | 6530 return _json; |
6388 } | 6531 } |
6389 } | 6532 } |
6390 | 6533 |
6391 class TargetingValueCreativeSize { | 6534 class TargetingValueCreativeSize { |
6392 /** For video size type, the list of companion sizes. */ | 6535 /// For video size type, the list of companion sizes. |
6393 core.List<TargetingValueSize> companionSizes; | 6536 core.List<TargetingValueSize> companionSizes; |
6394 /** The Creative size type. */ | 6537 |
| 6538 /// The Creative size type. |
6395 core.String creativeSizeType; | 6539 core.String creativeSizeType; |
6396 /** The native template for native ad. */ | 6540 |
| 6541 /// The native template for native ad. |
6397 core.String nativeTemplate; | 6542 core.String nativeTemplate; |
6398 /** | 6543 |
6399 * For regular or video creative size type, specifies the size of the | 6544 /// For regular or video creative size type, specifies the size of the |
6400 * creative. | 6545 /// creative. |
6401 */ | |
6402 TargetingValueSize size; | 6546 TargetingValueSize size; |
6403 /** The skippable ad type for video size. */ | 6547 |
| 6548 /// The skippable ad type for video size. |
6404 core.String skippableAdType; | 6549 core.String skippableAdType; |
6405 | 6550 |
6406 TargetingValueCreativeSize(); | 6551 TargetingValueCreativeSize(); |
6407 | 6552 |
6408 TargetingValueCreativeSize.fromJson(core.Map _json) { | 6553 TargetingValueCreativeSize.fromJson(core.Map _json) { |
6409 if (_json.containsKey("companionSizes")) { | 6554 if (_json.containsKey("companionSizes")) { |
6410 companionSizes = _json["companionSizes"].map((value) => new TargetingValue
Size.fromJson(value)).toList(); | 6555 companionSizes = _json["companionSizes"] |
| 6556 .map((value) => new TargetingValueSize.fromJson(value)) |
| 6557 .toList(); |
6411 } | 6558 } |
6412 if (_json.containsKey("creativeSizeType")) { | 6559 if (_json.containsKey("creativeSizeType")) { |
6413 creativeSizeType = _json["creativeSizeType"]; | 6560 creativeSizeType = _json["creativeSizeType"]; |
6414 } | 6561 } |
6415 if (_json.containsKey("nativeTemplate")) { | 6562 if (_json.containsKey("nativeTemplate")) { |
6416 nativeTemplate = _json["nativeTemplate"]; | 6563 nativeTemplate = _json["nativeTemplate"]; |
6417 } | 6564 } |
6418 if (_json.containsKey("size")) { | 6565 if (_json.containsKey("size")) { |
6419 size = new TargetingValueSize.fromJson(_json["size"]); | 6566 size = new TargetingValueSize.fromJson(_json["size"]); |
6420 } | 6567 } |
6421 if (_json.containsKey("skippableAdType")) { | 6568 if (_json.containsKey("skippableAdType")) { |
6422 skippableAdType = _json["skippableAdType"]; | 6569 skippableAdType = _json["skippableAdType"]; |
6423 } | 6570 } |
6424 } | 6571 } |
6425 | 6572 |
6426 core.Map<core.String, core.Object> toJson() { | 6573 core.Map<core.String, core.Object> toJson() { |
6427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6574 final core.Map<core.String, core.Object> _json = |
| 6575 new core.Map<core.String, core.Object>(); |
6428 if (companionSizes != null) { | 6576 if (companionSizes != null) { |
6429 _json["companionSizes"] = companionSizes.map((value) => (value).toJson()).
toList(); | 6577 _json["companionSizes"] = |
| 6578 companionSizes.map((value) => (value).toJson()).toList(); |
6430 } | 6579 } |
6431 if (creativeSizeType != null) { | 6580 if (creativeSizeType != null) { |
6432 _json["creativeSizeType"] = creativeSizeType; | 6581 _json["creativeSizeType"] = creativeSizeType; |
6433 } | 6582 } |
6434 if (nativeTemplate != null) { | 6583 if (nativeTemplate != null) { |
6435 _json["nativeTemplate"] = nativeTemplate; | 6584 _json["nativeTemplate"] = nativeTemplate; |
6436 } | 6585 } |
6437 if (size != null) { | 6586 if (size != null) { |
6438 _json["size"] = (size).toJson(); | 6587 _json["size"] = (size).toJson(); |
6439 } | 6588 } |
6440 if (skippableAdType != null) { | 6589 if (skippableAdType != null) { |
6441 _json["skippableAdType"] = skippableAdType; | 6590 _json["skippableAdType"] = skippableAdType; |
6442 } | 6591 } |
6443 return _json; | 6592 return _json; |
6444 } | 6593 } |
6445 } | 6594 } |
6446 | 6595 |
6447 class TargetingValueDayPartTargeting { | 6596 class TargetingValueDayPartTargeting { |
6448 core.List<TargetingValueDayPartTargetingDayPart> dayParts; | 6597 core.List<TargetingValueDayPartTargetingDayPart> dayParts; |
6449 core.String timeZoneType; | 6598 core.String timeZoneType; |
6450 | 6599 |
6451 TargetingValueDayPartTargeting(); | 6600 TargetingValueDayPartTargeting(); |
6452 | 6601 |
6453 TargetingValueDayPartTargeting.fromJson(core.Map _json) { | 6602 TargetingValueDayPartTargeting.fromJson(core.Map _json) { |
6454 if (_json.containsKey("dayParts")) { | 6603 if (_json.containsKey("dayParts")) { |
6455 dayParts = _json["dayParts"].map((value) => new TargetingValueDayPartTarge
tingDayPart.fromJson(value)).toList(); | 6604 dayParts = _json["dayParts"] |
| 6605 .map((value) => |
| 6606 new TargetingValueDayPartTargetingDayPart.fromJson(value)) |
| 6607 .toList(); |
6456 } | 6608 } |
6457 if (_json.containsKey("timeZoneType")) { | 6609 if (_json.containsKey("timeZoneType")) { |
6458 timeZoneType = _json["timeZoneType"]; | 6610 timeZoneType = _json["timeZoneType"]; |
6459 } | 6611 } |
6460 } | 6612 } |
6461 | 6613 |
6462 core.Map<core.String, core.Object> toJson() { | 6614 core.Map<core.String, core.Object> toJson() { |
6463 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6615 final core.Map<core.String, core.Object> _json = |
| 6616 new core.Map<core.String, core.Object>(); |
6464 if (dayParts != null) { | 6617 if (dayParts != null) { |
6465 _json["dayParts"] = dayParts.map((value) => (value).toJson()).toList(); | 6618 _json["dayParts"] = dayParts.map((value) => (value).toJson()).toList(); |
6466 } | 6619 } |
6467 if (timeZoneType != null) { | 6620 if (timeZoneType != null) { |
6468 _json["timeZoneType"] = timeZoneType; | 6621 _json["timeZoneType"] = timeZoneType; |
6469 } | 6622 } |
6470 return _json; | 6623 return _json; |
6471 } | 6624 } |
6472 } | 6625 } |
6473 | 6626 |
(...skipping 18 matching lines...) Loading... |
6492 } | 6645 } |
6493 if (_json.containsKey("startHour")) { | 6646 if (_json.containsKey("startHour")) { |
6494 startHour = _json["startHour"]; | 6647 startHour = _json["startHour"]; |
6495 } | 6648 } |
6496 if (_json.containsKey("startMinute")) { | 6649 if (_json.containsKey("startMinute")) { |
6497 startMinute = _json["startMinute"]; | 6650 startMinute = _json["startMinute"]; |
6498 } | 6651 } |
6499 } | 6652 } |
6500 | 6653 |
6501 core.Map<core.String, core.Object> toJson() { | 6654 core.Map<core.String, core.Object> toJson() { |
6502 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6655 final core.Map<core.String, core.Object> _json = |
| 6656 new core.Map<core.String, core.Object>(); |
6503 if (dayOfWeek != null) { | 6657 if (dayOfWeek != null) { |
6504 _json["dayOfWeek"] = dayOfWeek; | 6658 _json["dayOfWeek"] = dayOfWeek; |
6505 } | 6659 } |
6506 if (endHour != null) { | 6660 if (endHour != null) { |
6507 _json["endHour"] = endHour; | 6661 _json["endHour"] = endHour; |
6508 } | 6662 } |
6509 if (endMinute != null) { | 6663 if (endMinute != null) { |
6510 _json["endMinute"] = endMinute; | 6664 _json["endMinute"] = endMinute; |
6511 } | 6665 } |
6512 if (startHour != null) { | 6666 if (startHour != null) { |
6513 _json["startHour"] = startHour; | 6667 _json["startHour"] = startHour; |
6514 } | 6668 } |
6515 if (startMinute != null) { | 6669 if (startMinute != null) { |
6516 _json["startMinute"] = startMinute; | 6670 _json["startMinute"] = startMinute; |
6517 } | 6671 } |
6518 return _json; | 6672 return _json; |
6519 } | 6673 } |
6520 } | 6674 } |
6521 | 6675 |
6522 class TargetingValueSize { | 6676 class TargetingValueSize { |
6523 /** The height of the creative. */ | 6677 /// The height of the creative. |
6524 core.int height; | 6678 core.int height; |
6525 /** The width of the creative. */ | 6679 |
| 6680 /// The width of the creative. |
6526 core.int width; | 6681 core.int width; |
6527 | 6682 |
6528 TargetingValueSize(); | 6683 TargetingValueSize(); |
6529 | 6684 |
6530 TargetingValueSize.fromJson(core.Map _json) { | 6685 TargetingValueSize.fromJson(core.Map _json) { |
6531 if (_json.containsKey("height")) { | 6686 if (_json.containsKey("height")) { |
6532 height = _json["height"]; | 6687 height = _json["height"]; |
6533 } | 6688 } |
6534 if (_json.containsKey("width")) { | 6689 if (_json.containsKey("width")) { |
6535 width = _json["width"]; | 6690 width = _json["width"]; |
6536 } | 6691 } |
6537 } | 6692 } |
6538 | 6693 |
6539 core.Map<core.String, core.Object> toJson() { | 6694 core.Map<core.String, core.Object> toJson() { |
6540 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6695 final core.Map<core.String, core.Object> _json = |
| 6696 new core.Map<core.String, core.Object>(); |
6541 if (height != null) { | 6697 if (height != null) { |
6542 _json["height"] = height; | 6698 _json["height"] = height; |
6543 } | 6699 } |
6544 if (width != null) { | 6700 if (width != null) { |
6545 _json["width"] = width; | 6701 _json["width"] = width; |
6546 } | 6702 } |
6547 return _json; | 6703 return _json; |
6548 } | 6704 } |
6549 } | 6705 } |
6550 | 6706 |
6551 class UpdatePrivateAuctionProposalRequest { | 6707 class UpdatePrivateAuctionProposalRequest { |
6552 /** The externalDealId of the deal to be updated. */ | 6708 /// The externalDealId of the deal to be updated. |
6553 core.String externalDealId; | 6709 core.String externalDealId; |
6554 /** Optional note to be added. */ | 6710 |
| 6711 /// Optional note to be added. |
6555 MarketplaceNote note; | 6712 MarketplaceNote note; |
6556 /** The current revision number of the proposal to be updated. */ | 6713 |
| 6714 /// The current revision number of the proposal to be updated. |
6557 core.String proposalRevisionNumber; | 6715 core.String proposalRevisionNumber; |
6558 /** The proposed action on the private auction proposal. */ | 6716 |
| 6717 /// The proposed action on the private auction proposal. |
6559 core.String updateAction; | 6718 core.String updateAction; |
6560 | 6719 |
6561 UpdatePrivateAuctionProposalRequest(); | 6720 UpdatePrivateAuctionProposalRequest(); |
6562 | 6721 |
6563 UpdatePrivateAuctionProposalRequest.fromJson(core.Map _json) { | 6722 UpdatePrivateAuctionProposalRequest.fromJson(core.Map _json) { |
6564 if (_json.containsKey("externalDealId")) { | 6723 if (_json.containsKey("externalDealId")) { |
6565 externalDealId = _json["externalDealId"]; | 6724 externalDealId = _json["externalDealId"]; |
6566 } | 6725 } |
6567 if (_json.containsKey("note")) { | 6726 if (_json.containsKey("note")) { |
6568 note = new MarketplaceNote.fromJson(_json["note"]); | 6727 note = new MarketplaceNote.fromJson(_json["note"]); |
6569 } | 6728 } |
6570 if (_json.containsKey("proposalRevisionNumber")) { | 6729 if (_json.containsKey("proposalRevisionNumber")) { |
6571 proposalRevisionNumber = _json["proposalRevisionNumber"]; | 6730 proposalRevisionNumber = _json["proposalRevisionNumber"]; |
6572 } | 6731 } |
6573 if (_json.containsKey("updateAction")) { | 6732 if (_json.containsKey("updateAction")) { |
6574 updateAction = _json["updateAction"]; | 6733 updateAction = _json["updateAction"]; |
6575 } | 6734 } |
6576 } | 6735 } |
6577 | 6736 |
6578 core.Map<core.String, core.Object> toJson() { | 6737 core.Map<core.String, core.Object> toJson() { |
6579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6738 final core.Map<core.String, core.Object> _json = |
| 6739 new core.Map<core.String, core.Object>(); |
6580 if (externalDealId != null) { | 6740 if (externalDealId != null) { |
6581 _json["externalDealId"] = externalDealId; | 6741 _json["externalDealId"] = externalDealId; |
6582 } | 6742 } |
6583 if (note != null) { | 6743 if (note != null) { |
6584 _json["note"] = (note).toJson(); | 6744 _json["note"] = (note).toJson(); |
6585 } | 6745 } |
6586 if (proposalRevisionNumber != null) { | 6746 if (proposalRevisionNumber != null) { |
6587 _json["proposalRevisionNumber"] = proposalRevisionNumber; | 6747 _json["proposalRevisionNumber"] = proposalRevisionNumber; |
6588 } | 6748 } |
6589 if (updateAction != null) { | 6749 if (updateAction != null) { |
6590 _json["updateAction"] = updateAction; | 6750 _json["updateAction"] = updateAction; |
6591 } | 6751 } |
6592 return _json; | 6752 return _json; |
6593 } | 6753 } |
6594 } | 6754 } |
OLD | NEW |