| 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_beta.adexchangebuyer2.v2beta1; | 3 library googleapis_beta.adexchangebuyer2.v2beta1; |
| 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 adexchangebuyer2/v2beta1'; | 15 const core.String USER_AGENT = 'dart-api-client adexchangebuyer2/v2beta1'; |
| 16 | 16 |
| 17 /** | 17 /// Accesses the latest features for managing Ad Exchange accounts, Real-Time |
| 18 * Accesses the latest features for managing Ad Exchange accounts, Real-Time | 18 /// Bidding configurations and auction metrics, and Marketplace programmatic |
| 19 * Bidding configurations and auction metrics, and Marketplace programmatic | 19 /// deals. |
| 20 * deals. | |
| 21 */ | |
| 22 class Adexchangebuyer2Api { | 20 class Adexchangebuyer2Api { |
| 23 /** Manage your Ad Exchange buyer account configuration */ | 21 /// Manage your Ad Exchange buyer account configuration |
| 24 static const AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchang
e.buyer"; | 22 static const AdexchangeBuyerScope = |
| 25 | 23 "https://www.googleapis.com/auth/adexchange.buyer"; |
| 26 | 24 |
| 27 final commons.ApiRequester _requester; | 25 final commons.ApiRequester _requester; |
| 28 | 26 |
| 29 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 27 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
| 30 | 28 |
| 31 Adexchangebuyer2Api(http.Client client, {core.String rootUrl: "https://adexcha
ngebuyer.googleapis.com/", core.String servicePath: ""}) : | 29 Adexchangebuyer2Api(http.Client client, |
| 32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 30 {core.String rootUrl: "https://adexchangebuyer.googleapis.com/", |
| 31 core.String servicePath: ""}) |
| 32 : _requester = |
| 33 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 33 } | 34 } |
| 34 | 35 |
| 35 | |
| 36 class AccountsResourceApi { | 36 class AccountsResourceApi { |
| 37 final commons.ApiRequester _requester; | 37 final commons.ApiRequester _requester; |
| 38 | 38 |
| 39 AccountsClientsResourceApi get clients => new AccountsClientsResourceApi(_requ
ester); | 39 AccountsClientsResourceApi get clients => |
| 40 AccountsCreativesResourceApi get creatives => new AccountsCreativesResourceApi
(_requester); | 40 new AccountsClientsResourceApi(_requester); |
| 41 AccountsFilterSetsResourceApi get filterSets => new AccountsFilterSetsResource
Api(_requester); | 41 AccountsCreativesResourceApi get creatives => |
| 42 new AccountsCreativesResourceApi(_requester); |
| 43 AccountsFilterSetsResourceApi get filterSets => |
| 44 new AccountsFilterSetsResourceApi(_requester); |
| 42 | 45 |
| 43 AccountsResourceApi(commons.ApiRequester client) : | 46 AccountsResourceApi(commons.ApiRequester client) : _requester = client; |
| 44 _requester = client; | |
| 45 } | 47 } |
| 46 | 48 |
| 47 | |
| 48 class AccountsClientsResourceApi { | 49 class AccountsClientsResourceApi { |
| 49 final commons.ApiRequester _requester; | 50 final commons.ApiRequester _requester; |
| 50 | 51 |
| 51 AccountsClientsInvitationsResourceApi get invitations => new AccountsClientsIn
vitationsResourceApi(_requester); | 52 AccountsClientsInvitationsResourceApi get invitations => |
| 52 AccountsClientsUsersResourceApi get users => new AccountsClientsUsersResourceA
pi(_requester); | 53 new AccountsClientsInvitationsResourceApi(_requester); |
| 54 AccountsClientsUsersResourceApi get users => |
| 55 new AccountsClientsUsersResourceApi(_requester); |
| 53 | 56 |
| 54 AccountsClientsResourceApi(commons.ApiRequester client) : | 57 AccountsClientsResourceApi(commons.ApiRequester client) : _requester = client; |
| 55 _requester = client; | |
| 56 | 58 |
| 57 /** | 59 /// Creates a new client buyer. |
| 58 * Creates a new client buyer. | 60 /// |
| 59 * | 61 /// [request] - The metadata request object. |
| 60 * [request] - The metadata request object. | 62 /// |
| 61 * | 63 /// Request parameters: |
| 62 * Request parameters: | 64 /// |
| 63 * | 65 /// [accountId] - Unique numerical account ID for the buyer of which the |
| 64 * [accountId] - Unique numerical account ID for the buyer of which the client | 66 /// client buyer |
| 65 * buyer | 67 /// is a customer; the sponsor buyer to create a client for. (required) |
| 66 * is a customer; the sponsor buyer to create a client for. (required) | 68 /// |
| 67 * | 69 /// Completes with a [Client]. |
| 68 * Completes with a [Client]. | 70 /// |
| 69 * | 71 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 70 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 72 /// an error. |
| 71 * error. | 73 /// |
| 72 * | 74 /// If the used [http.Client] completes with an error when making a REST |
| 73 * If the used [http.Client] completes with an error when making a REST call, | 75 /// call, this method will complete with the same error. |
| 74 * this method will complete with the same error. | |
| 75 */ | |
| 76 async.Future<Client> create(Client request, core.String accountId) { | 76 async.Future<Client> create(Client request, core.String accountId) { |
| 77 var _url = null; | 77 var _url = null; |
| 78 var _queryParams = new core.Map(); | 78 var _queryParams = new core.Map(); |
| 79 var _uploadMedia = null; | 79 var _uploadMedia = null; |
| 80 var _uploadOptions = null; | 80 var _uploadOptions = null; |
| 81 var _downloadOptions = commons.DownloadOptions.Metadata; | 81 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 82 var _body = null; | 82 var _body = null; |
| 83 | 83 |
| 84 if (request != null) { | 84 if (request != null) { |
| 85 _body = convert.JSON.encode((request).toJson()); | 85 _body = convert.JSON.encode((request).toJson()); |
| 86 } | 86 } |
| 87 if (accountId == null) { | 87 if (accountId == null) { |
| 88 throw new core.ArgumentError("Parameter accountId is required."); | 88 throw new core.ArgumentError("Parameter accountId is required."); |
| 89 } | 89 } |
| 90 | 90 |
| 91 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients'; | 91 _url = 'v2beta1/accounts/' + |
| 92 commons.Escaper.ecapeVariable('$accountId') + |
| 93 '/clients'; |
| 92 | 94 |
| 93 var _response = _requester.request(_url, | 95 var _response = _requester.request(_url, "POST", |
| 94 "POST", | 96 body: _body, |
| 95 body: _body, | 97 queryParams: _queryParams, |
| 96 queryParams: _queryParams, | 98 uploadOptions: _uploadOptions, |
| 97 uploadOptions: _uploadOptions, | 99 uploadMedia: _uploadMedia, |
| 98 uploadMedia: _uploadMedia, | 100 downloadOptions: _downloadOptions); |
| 99 downloadOptions: _downloadOptions); | |
| 100 return _response.then((data) => new Client.fromJson(data)); | 101 return _response.then((data) => new Client.fromJson(data)); |
| 101 } | 102 } |
| 102 | 103 |
| 103 /** | 104 /// Gets a client buyer with a given client account ID. |
| 104 * Gets a client buyer with a given client account ID. | 105 /// |
| 105 * | 106 /// Request parameters: |
| 106 * Request parameters: | 107 /// |
| 107 * | 108 /// [accountId] - Numerical account ID of the client's sponsor buyer. |
| 108 * [accountId] - Numerical account ID of the client's sponsor buyer. | 109 /// (required) |
| 109 * (required) | 110 /// |
| 110 * | 111 /// [clientAccountId] - Numerical account ID of the client buyer to retrieve. |
| 111 * [clientAccountId] - Numerical account ID of the client buyer to retrieve. | 112 /// (required) |
| 112 * (required) | 113 /// |
| 113 * | 114 /// Completes with a [Client]. |
| 114 * Completes with a [Client]. | 115 /// |
| 115 * | 116 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 116 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 117 /// an error. |
| 117 * error. | 118 /// |
| 118 * | 119 /// If the used [http.Client] completes with an error when making a REST |
| 119 * If the used [http.Client] completes with an error when making a REST call, | 120 /// call, this method will complete with the same error. |
| 120 * this method will complete with the same error. | |
| 121 */ | |
| 122 async.Future<Client> get(core.String accountId, core.String clientAccountId) { | 121 async.Future<Client> get(core.String accountId, core.String clientAccountId) { |
| 123 var _url = null; | 122 var _url = null; |
| 124 var _queryParams = new core.Map(); | 123 var _queryParams = new core.Map(); |
| 125 var _uploadMedia = null; | 124 var _uploadMedia = null; |
| 126 var _uploadOptions = null; | 125 var _uploadOptions = null; |
| 127 var _downloadOptions = commons.DownloadOptions.Metadata; | 126 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 128 var _body = null; | 127 var _body = null; |
| 129 | 128 |
| 130 if (accountId == null) { | 129 if (accountId == null) { |
| 131 throw new core.ArgumentError("Parameter accountId is required."); | 130 throw new core.ArgumentError("Parameter accountId is required."); |
| 132 } | 131 } |
| 133 if (clientAccountId == null) { | 132 if (clientAccountId == null) { |
| 134 throw new core.ArgumentError("Parameter clientAccountId is required."); | 133 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 135 } | 134 } |
| 136 | 135 |
| 137 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId'); | 136 _url = 'v2beta1/accounts/' + |
| 137 commons.Escaper.ecapeVariable('$accountId') + |
| 138 '/clients/' + |
| 139 commons.Escaper.ecapeVariable('$clientAccountId'); |
| 138 | 140 |
| 139 var _response = _requester.request(_url, | 141 var _response = _requester.request(_url, "GET", |
| 140 "GET", | 142 body: _body, |
| 141 body: _body, | 143 queryParams: _queryParams, |
| 142 queryParams: _queryParams, | 144 uploadOptions: _uploadOptions, |
| 143 uploadOptions: _uploadOptions, | 145 uploadMedia: _uploadMedia, |
| 144 uploadMedia: _uploadMedia, | 146 downloadOptions: _downloadOptions); |
| 145 downloadOptions: _downloadOptions); | |
| 146 return _response.then((data) => new Client.fromJson(data)); | 147 return _response.then((data) => new Client.fromJson(data)); |
| 147 } | 148 } |
| 148 | 149 |
| 149 /** | 150 /// Lists all the clients for the current sponsor buyer. |
| 150 * Lists all the clients for the current sponsor buyer. | 151 /// |
| 151 * | 152 /// Request parameters: |
| 152 * Request parameters: | 153 /// |
| 153 * | 154 /// [accountId] - Unique numerical account ID of the sponsor buyer to list |
| 154 * [accountId] - Unique numerical account ID of the sponsor buyer to list the | 155 /// the clients for. |
| 155 * clients for. | 156 /// |
| 156 * | 157 /// [pageToken] - A token identifying a page of results the server should |
| 157 * [pageSize] - Requested page size. The server may return fewer clients than | 158 /// return. |
| 158 * requested. | 159 /// Typically, this is the value of |
| 159 * If unspecified, the server will pick an appropriate default. | 160 /// ListClientsResponse.nextPageToken |
| 160 * | 161 /// returned from the previous call to the |
| 161 * [pageToken] - A token identifying a page of results the server should | 162 /// accounts.clients.list method. |
| 162 * return. | 163 /// |
| 163 * Typically, this is the value of | 164 /// [pageSize] - Requested page size. The server may return fewer clients |
| 164 * ListClientsResponse.nextPageToken | 165 /// than requested. |
| 165 * returned from the previous call to the | 166 /// If unspecified, the server will pick an appropriate default. |
| 166 * accounts.clients.list method. | 167 /// |
| 167 * | 168 /// Completes with a [ListClientsResponse]. |
| 168 * Completes with a [ListClientsResponse]. | 169 /// |
| 169 * | 170 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 171 /// an error. |
| 171 * error. | 172 /// |
| 172 * | 173 /// If the used [http.Client] completes with an error when making a REST |
| 173 * If the used [http.Client] completes with an error when making a REST call, | 174 /// call, this method will complete with the same error. |
| 174 * this method will complete with the same error. | 175 async.Future<ListClientsResponse> list(core.String accountId, |
| 175 */ | 176 {core.String pageToken, core.int pageSize}) { |
| 176 async.Future<ListClientsResponse> list(core.String accountId, {core.int pageSi
ze, core.String pageToken}) { | |
| 177 var _url = null; | 177 var _url = null; |
| 178 var _queryParams = new core.Map(); | 178 var _queryParams = new core.Map(); |
| 179 var _uploadMedia = null; | 179 var _uploadMedia = null; |
| 180 var _uploadOptions = null; | 180 var _uploadOptions = null; |
| 181 var _downloadOptions = commons.DownloadOptions.Metadata; | 181 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 182 var _body = null; | 182 var _body = null; |
| 183 | 183 |
| 184 if (accountId == null) { | 184 if (accountId == null) { |
| 185 throw new core.ArgumentError("Parameter accountId is required."); | 185 throw new core.ArgumentError("Parameter accountId is required."); |
| 186 } | 186 } |
| 187 if (pageToken != null) { |
| 188 _queryParams["pageToken"] = [pageToken]; |
| 189 } |
| 187 if (pageSize != null) { | 190 if (pageSize != null) { |
| 188 _queryParams["pageSize"] = ["${pageSize}"]; | 191 _queryParams["pageSize"] = ["${pageSize}"]; |
| 189 } | 192 } |
| 190 if (pageToken != null) { | |
| 191 _queryParams["pageToken"] = [pageToken]; | |
| 192 } | |
| 193 | 193 |
| 194 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients'; | 194 _url = 'v2beta1/accounts/' + |
| 195 commons.Escaper.ecapeVariable('$accountId') + |
| 196 '/clients'; |
| 195 | 197 |
| 196 var _response = _requester.request(_url, | 198 var _response = _requester.request(_url, "GET", |
| 197 "GET", | 199 body: _body, |
| 198 body: _body, | 200 queryParams: _queryParams, |
| 199 queryParams: _queryParams, | 201 uploadOptions: _uploadOptions, |
| 200 uploadOptions: _uploadOptions, | 202 uploadMedia: _uploadMedia, |
| 201 uploadMedia: _uploadMedia, | 203 downloadOptions: _downloadOptions); |
| 202 downloadOptions: _downloadOptions); | |
| 203 return _response.then((data) => new ListClientsResponse.fromJson(data)); | 204 return _response.then((data) => new ListClientsResponse.fromJson(data)); |
| 204 } | 205 } |
| 205 | 206 |
| 206 /** | 207 /// Updates an existing client buyer. |
| 207 * Updates an existing client buyer. | 208 /// |
| 208 * | 209 /// [request] - The metadata request object. |
| 209 * [request] - The metadata request object. | 210 /// |
| 210 * | 211 /// Request parameters: |
| 211 * Request parameters: | 212 /// |
| 212 * | 213 /// [accountId] - Unique numerical account ID for the buyer of which the |
| 213 * [accountId] - Unique numerical account ID for the buyer of which the client | 214 /// client buyer |
| 214 * buyer | 215 /// is a customer; the sponsor buyer to update a client for. (required) |
| 215 * is a customer; the sponsor buyer to update a client for. (required) | 216 /// |
| 216 * | 217 /// [clientAccountId] - Unique numerical account ID of the client to update. |
| 217 * [clientAccountId] - Unique numerical account ID of the client to update. | 218 /// (required) |
| 218 * (required) | 219 /// |
| 219 * | 220 /// Completes with a [Client]. |
| 220 * Completes with a [Client]. | 221 /// |
| 221 * | 222 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 222 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 223 /// an error. |
| 223 * error. | 224 /// |
| 224 * | 225 /// If the used [http.Client] completes with an error when making a REST |
| 225 * If the used [http.Client] completes with an error when making a REST call, | 226 /// call, this method will complete with the same error. |
| 226 * this method will complete with the same error. | 227 async.Future<Client> update( |
| 227 */ | 228 Client request, core.String accountId, core.String clientAccountId) { |
| 228 async.Future<Client> update(Client request, core.String accountId, core.String
clientAccountId) { | |
| 229 var _url = null; | 229 var _url = null; |
| 230 var _queryParams = new core.Map(); | 230 var _queryParams = new core.Map(); |
| 231 var _uploadMedia = null; | 231 var _uploadMedia = null; |
| 232 var _uploadOptions = null; | 232 var _uploadOptions = null; |
| 233 var _downloadOptions = commons.DownloadOptions.Metadata; | 233 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 234 var _body = null; | 234 var _body = null; |
| 235 | 235 |
| 236 if (request != null) { | 236 if (request != null) { |
| 237 _body = convert.JSON.encode((request).toJson()); | 237 _body = convert.JSON.encode((request).toJson()); |
| 238 } | 238 } |
| 239 if (accountId == null) { | 239 if (accountId == null) { |
| 240 throw new core.ArgumentError("Parameter accountId is required."); | 240 throw new core.ArgumentError("Parameter accountId is required."); |
| 241 } | 241 } |
| 242 if (clientAccountId == null) { | 242 if (clientAccountId == null) { |
| 243 throw new core.ArgumentError("Parameter clientAccountId is required."); | 243 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 244 } | 244 } |
| 245 | 245 |
| 246 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId'); | 246 _url = 'v2beta1/accounts/' + |
| 247 commons.Escaper.ecapeVariable('$accountId') + |
| 248 '/clients/' + |
| 249 commons.Escaper.ecapeVariable('$clientAccountId'); |
| 247 | 250 |
| 248 var _response = _requester.request(_url, | 251 var _response = _requester.request(_url, "PUT", |
| 249 "PUT", | 252 body: _body, |
| 250 body: _body, | 253 queryParams: _queryParams, |
| 251 queryParams: _queryParams, | 254 uploadOptions: _uploadOptions, |
| 252 uploadOptions: _uploadOptions, | 255 uploadMedia: _uploadMedia, |
| 253 uploadMedia: _uploadMedia, | 256 downloadOptions: _downloadOptions); |
| 254 downloadOptions: _downloadOptions); | |
| 255 return _response.then((data) => new Client.fromJson(data)); | 257 return _response.then((data) => new Client.fromJson(data)); |
| 256 } | 258 } |
| 257 | |
| 258 } | 259 } |
| 259 | 260 |
| 260 | |
| 261 class AccountsClientsInvitationsResourceApi { | 261 class AccountsClientsInvitationsResourceApi { |
| 262 final commons.ApiRequester _requester; | 262 final commons.ApiRequester _requester; |
| 263 | 263 |
| 264 AccountsClientsInvitationsResourceApi(commons.ApiRequester client) : | 264 AccountsClientsInvitationsResourceApi(commons.ApiRequester client) |
| 265 _requester = client; | 265 : _requester = client; |
| 266 | 266 |
| 267 /** | 267 /// Creates and sends out an email invitation to access |
| 268 * Creates and sends out an email invitation to access | 268 /// an Ad Exchange client buyer account. |
| 269 * an Ad Exchange client buyer account. | 269 /// |
| 270 * | 270 /// [request] - The metadata request object. |
| 271 * [request] - The metadata request object. | 271 /// |
| 272 * | 272 /// Request parameters: |
| 273 * Request parameters: | 273 /// |
| 274 * | 274 /// [accountId] - Numerical account ID of the client's sponsor buyer. |
| 275 * [accountId] - Numerical account ID of the client's sponsor buyer. | 275 /// (required) |
| 276 * (required) | 276 /// |
| 277 * | 277 /// [clientAccountId] - Numerical account ID of the client buyer that the |
| 278 * [clientAccountId] - Numerical account ID of the client buyer that the user | 278 /// user |
| 279 * should be associated with. (required) | 279 /// should be associated with. (required) |
| 280 * | 280 /// |
| 281 * Completes with a [ClientUserInvitation]. | 281 /// Completes with a [ClientUserInvitation]. |
| 282 * | 282 /// |
| 283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 283 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 284 * error. | 284 /// an error. |
| 285 * | 285 /// |
| 286 * If the used [http.Client] completes with an error when making a REST call, | 286 /// If the used [http.Client] completes with an error when making a REST |
| 287 * this method will complete with the same error. | 287 /// call, this method will complete with the same error. |
| 288 */ | 288 async.Future<ClientUserInvitation> create(ClientUserInvitation request, |
| 289 async.Future<ClientUserInvitation> create(ClientUserInvitation request, core.S
tring accountId, core.String clientAccountId) { | 289 core.String accountId, core.String clientAccountId) { |
| 290 var _url = null; | 290 var _url = null; |
| 291 var _queryParams = new core.Map(); | 291 var _queryParams = new core.Map(); |
| 292 var _uploadMedia = null; | 292 var _uploadMedia = null; |
| 293 var _uploadOptions = null; | 293 var _uploadOptions = null; |
| 294 var _downloadOptions = commons.DownloadOptions.Metadata; | 294 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 295 var _body = null; | 295 var _body = null; |
| 296 | 296 |
| 297 if (request != null) { | 297 if (request != null) { |
| 298 _body = convert.JSON.encode((request).toJson()); | 298 _body = convert.JSON.encode((request).toJson()); |
| 299 } | 299 } |
| 300 if (accountId == null) { | 300 if (accountId == null) { |
| 301 throw new core.ArgumentError("Parameter accountId is required."); | 301 throw new core.ArgumentError("Parameter accountId is required."); |
| 302 } | 302 } |
| 303 if (clientAccountId == null) { | 303 if (clientAccountId == null) { |
| 304 throw new core.ArgumentError("Parameter clientAccountId is required."); | 304 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 305 } | 305 } |
| 306 | 306 |
| 307 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/invitations'; | 307 _url = 'v2beta1/accounts/' + |
| 308 commons.Escaper.ecapeVariable('$accountId') + |
| 309 '/clients/' + |
| 310 commons.Escaper.ecapeVariable('$clientAccountId') + |
| 311 '/invitations'; |
| 308 | 312 |
| 309 var _response = _requester.request(_url, | 313 var _response = _requester.request(_url, "POST", |
| 310 "POST", | 314 body: _body, |
| 311 body: _body, | 315 queryParams: _queryParams, |
| 312 queryParams: _queryParams, | 316 uploadOptions: _uploadOptions, |
| 313 uploadOptions: _uploadOptions, | 317 uploadMedia: _uploadMedia, |
| 314 uploadMedia: _uploadMedia, | 318 downloadOptions: _downloadOptions); |
| 315 downloadOptions: _downloadOptions); | |
| 316 return _response.then((data) => new ClientUserInvitation.fromJson(data)); | 319 return _response.then((data) => new ClientUserInvitation.fromJson(data)); |
| 317 } | 320 } |
| 318 | 321 |
| 319 /** | 322 /// Retrieves an existing client user invitation. |
| 320 * Retrieves an existing client user invitation. | 323 /// |
| 321 * | 324 /// Request parameters: |
| 322 * Request parameters: | 325 /// |
| 323 * | 326 /// [accountId] - Numerical account ID of the client's sponsor buyer. |
| 324 * [accountId] - Numerical account ID of the client's sponsor buyer. | 327 /// (required) |
| 325 * (required) | 328 /// |
| 326 * | 329 /// [clientAccountId] - Numerical account ID of the client buyer that the |
| 327 * [clientAccountId] - Numerical account ID of the client buyer that the user | 330 /// user invitation |
| 328 * invitation | 331 /// to be retrieved is associated with. (required) |
| 329 * to be retrieved is associated with. (required) | 332 /// |
| 330 * | 333 /// [invitationId] - Numerical identifier of the user invitation to retrieve. |
| 331 * [invitationId] - Numerical identifier of the user invitation to retrieve. | 334 /// (required) |
| 332 * (required) | 335 /// |
| 333 * | 336 /// Completes with a [ClientUserInvitation]. |
| 334 * Completes with a [ClientUserInvitation]. | 337 /// |
| 335 * | 338 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 336 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 339 /// an error. |
| 337 * error. | 340 /// |
| 338 * | 341 /// If the used [http.Client] completes with an error when making a REST |
| 339 * If the used [http.Client] completes with an error when making a REST call, | 342 /// call, this method will complete with the same error. |
| 340 * this method will complete with the same error. | 343 async.Future<ClientUserInvitation> get(core.String accountId, |
| 341 */ | 344 core.String clientAccountId, core.String invitationId) { |
| 342 async.Future<ClientUserInvitation> get(core.String accountId, core.String clie
ntAccountId, core.String invitationId) { | |
| 343 var _url = null; | 345 var _url = null; |
| 344 var _queryParams = new core.Map(); | 346 var _queryParams = new core.Map(); |
| 345 var _uploadMedia = null; | 347 var _uploadMedia = null; |
| 346 var _uploadOptions = null; | 348 var _uploadOptions = null; |
| 347 var _downloadOptions = commons.DownloadOptions.Metadata; | 349 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 348 var _body = null; | 350 var _body = null; |
| 349 | 351 |
| 350 if (accountId == null) { | 352 if (accountId == null) { |
| 351 throw new core.ArgumentError("Parameter accountId is required."); | 353 throw new core.ArgumentError("Parameter accountId is required."); |
| 352 } | 354 } |
| 353 if (clientAccountId == null) { | 355 if (clientAccountId == null) { |
| 354 throw new core.ArgumentError("Parameter clientAccountId is required."); | 356 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 355 } | 357 } |
| 356 if (invitationId == null) { | 358 if (invitationId == null) { |
| 357 throw new core.ArgumentError("Parameter invitationId is required."); | 359 throw new core.ArgumentError("Parameter invitationId is required."); |
| 358 } | 360 } |
| 359 | 361 |
| 360 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/invitations/'
+ commons.Escaper.ecapeVariable('$invitationId'); | 362 _url = 'v2beta1/accounts/' + |
| 363 commons.Escaper.ecapeVariable('$accountId') + |
| 364 '/clients/' + |
| 365 commons.Escaper.ecapeVariable('$clientAccountId') + |
| 366 '/invitations/' + |
| 367 commons.Escaper.ecapeVariable('$invitationId'); |
| 361 | 368 |
| 362 var _response = _requester.request(_url, | 369 var _response = _requester.request(_url, "GET", |
| 363 "GET", | 370 body: _body, |
| 364 body: _body, | 371 queryParams: _queryParams, |
| 365 queryParams: _queryParams, | 372 uploadOptions: _uploadOptions, |
| 366 uploadOptions: _uploadOptions, | 373 uploadMedia: _uploadMedia, |
| 367 uploadMedia: _uploadMedia, | 374 downloadOptions: _downloadOptions); |
| 368 downloadOptions: _downloadOptions); | |
| 369 return _response.then((data) => new ClientUserInvitation.fromJson(data)); | 375 return _response.then((data) => new ClientUserInvitation.fromJson(data)); |
| 370 } | 376 } |
| 371 | 377 |
| 372 /** | 378 /// Lists all the client users invitations for a client |
| 373 * Lists all the client users invitations for a client | 379 /// with a given account ID. |
| 374 * with a given account ID. | 380 /// |
| 375 * | 381 /// Request parameters: |
| 376 * Request parameters: | 382 /// |
| 377 * | 383 /// [accountId] - Numerical account ID of the client's sponsor buyer. |
| 378 * [accountId] - Numerical account ID of the client's sponsor buyer. | 384 /// (required) |
| 379 * (required) | 385 /// |
| 380 * | 386 /// [clientAccountId] - Numerical account ID of the client buyer to list |
| 381 * [clientAccountId] - Numerical account ID of the client buyer to list | 387 /// invitations for. |
| 382 * invitations for. | 388 /// (required) |
| 383 * (required) | 389 /// You must either specify a string representation of a |
| 384 * You must either specify a string representation of a | 390 /// numerical account identifier or the `-` character |
| 385 * numerical account identifier or the `-` character | 391 /// to list all the invitations for all the clients |
| 386 * to list all the invitations for all the clients | 392 /// of a given sponsor buyer. |
| 387 * of a given sponsor buyer. | 393 /// |
| 388 * | 394 /// [pageToken] - A token identifying a page of results the server should |
| 389 * [pageToken] - A token identifying a page of results the server should | 395 /// return. |
| 390 * return. | 396 /// Typically, this is the value of |
| 391 * Typically, this is the value of | 397 /// ListClientUserInvitationsResponse.nextPageToken |
| 392 * ListClientUserInvitationsResponse.nextPageToken | 398 /// returned from the previous call to the |
| 393 * returned from the previous call to the | 399 /// clients.invitations.list |
| 394 * clients.invitations.list | 400 /// method. |
| 395 * method. | 401 /// |
| 396 * | 402 /// [pageSize] - Requested page size. Server may return fewer clients than |
| 397 * [pageSize] - Requested page size. Server may return fewer clients than | 403 /// requested. |
| 398 * requested. | 404 /// If unspecified, server will pick an appropriate default. |
| 399 * If unspecified, server will pick an appropriate default. | 405 /// |
| 400 * | 406 /// Completes with a [ListClientUserInvitationsResponse]. |
| 401 * Completes with a [ListClientUserInvitationsResponse]. | 407 /// |
| 402 * | 408 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 403 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 409 /// an error. |
| 404 * error. | 410 /// |
| 405 * | 411 /// If the used [http.Client] completes with an error when making a REST |
| 406 * If the used [http.Client] completes with an error when making a REST call, | 412 /// call, this method will complete with the same error. |
| 407 * this method will complete with the same error. | 413 async.Future<ListClientUserInvitationsResponse> list( |
| 408 */ | 414 core.String accountId, core.String clientAccountId, |
| 409 async.Future<ListClientUserInvitationsResponse> list(core.String accountId, co
re.String clientAccountId, {core.String pageToken, core.int pageSize}) { | 415 {core.String pageToken, core.int pageSize}) { |
| 410 var _url = null; | 416 var _url = null; |
| 411 var _queryParams = new core.Map(); | 417 var _queryParams = new core.Map(); |
| 412 var _uploadMedia = null; | 418 var _uploadMedia = null; |
| 413 var _uploadOptions = null; | 419 var _uploadOptions = null; |
| 414 var _downloadOptions = commons.DownloadOptions.Metadata; | 420 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 415 var _body = null; | 421 var _body = null; |
| 416 | 422 |
| 417 if (accountId == null) { | 423 if (accountId == null) { |
| 418 throw new core.ArgumentError("Parameter accountId is required."); | 424 throw new core.ArgumentError("Parameter accountId is required."); |
| 419 } | 425 } |
| 420 if (clientAccountId == null) { | 426 if (clientAccountId == null) { |
| 421 throw new core.ArgumentError("Parameter clientAccountId is required."); | 427 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 422 } | 428 } |
| 423 if (pageToken != null) { | 429 if (pageToken != null) { |
| 424 _queryParams["pageToken"] = [pageToken]; | 430 _queryParams["pageToken"] = [pageToken]; |
| 425 } | 431 } |
| 426 if (pageSize != null) { | 432 if (pageSize != null) { |
| 427 _queryParams["pageSize"] = ["${pageSize}"]; | 433 _queryParams["pageSize"] = ["${pageSize}"]; |
| 428 } | 434 } |
| 429 | 435 |
| 430 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/invitations'; | 436 _url = 'v2beta1/accounts/' + |
| 437 commons.Escaper.ecapeVariable('$accountId') + |
| 438 '/clients/' + |
| 439 commons.Escaper.ecapeVariable('$clientAccountId') + |
| 440 '/invitations'; |
| 431 | 441 |
| 432 var _response = _requester.request(_url, | 442 var _response = _requester.request(_url, "GET", |
| 433 "GET", | 443 body: _body, |
| 434 body: _body, | 444 queryParams: _queryParams, |
| 435 queryParams: _queryParams, | 445 uploadOptions: _uploadOptions, |
| 436 uploadOptions: _uploadOptions, | 446 uploadMedia: _uploadMedia, |
| 437 uploadMedia: _uploadMedia, | 447 downloadOptions: _downloadOptions); |
| 438 downloadOptions: _downloadOptions); | 448 return _response |
| 439 return _response.then((data) => new ListClientUserInvitationsResponse.fromJs
on(data)); | 449 .then((data) => new ListClientUserInvitationsResponse.fromJson(data)); |
| 440 } | 450 } |
| 441 | |
| 442 } | 451 } |
| 443 | 452 |
| 444 | |
| 445 class AccountsClientsUsersResourceApi { | 453 class AccountsClientsUsersResourceApi { |
| 446 final commons.ApiRequester _requester; | 454 final commons.ApiRequester _requester; |
| 447 | 455 |
| 448 AccountsClientsUsersResourceApi(commons.ApiRequester client) : | 456 AccountsClientsUsersResourceApi(commons.ApiRequester client) |
| 449 _requester = client; | 457 : _requester = client; |
| 450 | 458 |
| 451 /** | 459 /// Retrieves an existing client user. |
| 452 * Retrieves an existing client user. | 460 /// |
| 453 * | 461 /// Request parameters: |
| 454 * Request parameters: | 462 /// |
| 455 * | 463 /// [accountId] - Numerical account ID of the client's sponsor buyer. |
| 456 * [accountId] - Numerical account ID of the client's sponsor buyer. | 464 /// (required) |
| 457 * (required) | 465 /// |
| 458 * | 466 /// [clientAccountId] - Numerical account ID of the client buyer |
| 459 * [clientAccountId] - Numerical account ID of the client buyer | 467 /// that the user to be retrieved is associated with. (required) |
| 460 * that the user to be retrieved is associated with. (required) | 468 /// |
| 461 * | 469 /// [userId] - Numerical identifier of the user to retrieve. (required) |
| 462 * [userId] - Numerical identifier of the user to retrieve. (required) | 470 /// |
| 463 * | 471 /// Completes with a [ClientUser]. |
| 464 * Completes with a [ClientUser]. | 472 /// |
| 465 * | 473 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 466 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 474 /// an error. |
| 467 * error. | 475 /// |
| 468 * | 476 /// If the used [http.Client] completes with an error when making a REST |
| 469 * If the used [http.Client] completes with an error when making a REST call, | 477 /// call, this method will complete with the same error. |
| 470 * this method will complete with the same error. | 478 async.Future<ClientUser> get( |
| 471 */ | 479 core.String accountId, core.String clientAccountId, core.String userId) { |
| 472 async.Future<ClientUser> get(core.String accountId, core.String clientAccountI
d, core.String userId) { | |
| 473 var _url = null; | 480 var _url = null; |
| 474 var _queryParams = new core.Map(); | 481 var _queryParams = new core.Map(); |
| 475 var _uploadMedia = null; | 482 var _uploadMedia = null; |
| 476 var _uploadOptions = null; | 483 var _uploadOptions = null; |
| 477 var _downloadOptions = commons.DownloadOptions.Metadata; | 484 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 478 var _body = null; | 485 var _body = null; |
| 479 | 486 |
| 480 if (accountId == null) { | 487 if (accountId == null) { |
| 481 throw new core.ArgumentError("Parameter accountId is required."); | 488 throw new core.ArgumentError("Parameter accountId is required."); |
| 482 } | 489 } |
| 483 if (clientAccountId == null) { | 490 if (clientAccountId == null) { |
| 484 throw new core.ArgumentError("Parameter clientAccountId is required."); | 491 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 485 } | 492 } |
| 486 if (userId == null) { | 493 if (userId == null) { |
| 487 throw new core.ArgumentError("Parameter userId is required."); | 494 throw new core.ArgumentError("Parameter userId is required."); |
| 488 } | 495 } |
| 489 | 496 |
| 490 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users/' + com
mons.Escaper.ecapeVariable('$userId'); | 497 _url = 'v2beta1/accounts/' + |
| 498 commons.Escaper.ecapeVariable('$accountId') + |
| 499 '/clients/' + |
| 500 commons.Escaper.ecapeVariable('$clientAccountId') + |
| 501 '/users/' + |
| 502 commons.Escaper.ecapeVariable('$userId'); |
| 491 | 503 |
| 492 var _response = _requester.request(_url, | 504 var _response = _requester.request(_url, "GET", |
| 493 "GET", | 505 body: _body, |
| 494 body: _body, | 506 queryParams: _queryParams, |
| 495 queryParams: _queryParams, | 507 uploadOptions: _uploadOptions, |
| 496 uploadOptions: _uploadOptions, | 508 uploadMedia: _uploadMedia, |
| 497 uploadMedia: _uploadMedia, | 509 downloadOptions: _downloadOptions); |
| 498 downloadOptions: _downloadOptions); | |
| 499 return _response.then((data) => new ClientUser.fromJson(data)); | 510 return _response.then((data) => new ClientUser.fromJson(data)); |
| 500 } | 511 } |
| 501 | 512 |
| 502 /** | 513 /// Lists all the known client users for a specified |
| 503 * Lists all the known client users for a specified | 514 /// sponsor buyer account ID. |
| 504 * sponsor buyer account ID. | 515 /// |
| 505 * | 516 /// Request parameters: |
| 506 * Request parameters: | 517 /// |
| 507 * | 518 /// [accountId] - Numerical account ID of the sponsor buyer of the client to |
| 508 * [accountId] - Numerical account ID of the sponsor buyer of the client to | 519 /// list users for. |
| 509 * list users for. | 520 /// (required) |
| 510 * (required) | 521 /// |
| 511 * | 522 /// [clientAccountId] - The account ID of the client buyer to list users for. |
| 512 * [clientAccountId] - The account ID of the client buyer to list users for. | 523 /// (required) |
| 513 * (required) | 524 /// You must specify either a string representation of a |
| 514 * You must specify either a string representation of a | 525 /// numerical account identifier or the `-` character |
| 515 * numerical account identifier or the `-` character | 526 /// to list all the client users for all the clients |
| 516 * to list all the client users for all the clients | 527 /// of a given sponsor buyer. |
| 517 * of a given sponsor buyer. | 528 /// |
| 518 * | 529 /// [pageToken] - A token identifying a page of results the server should |
| 519 * [pageSize] - Requested page size. The server may return fewer clients than | 530 /// return. |
| 520 * requested. | 531 /// Typically, this is the value of |
| 521 * If unspecified, the server will pick an appropriate default. | 532 /// ListClientUsersResponse.nextPageToken |
| 522 * | 533 /// returned from the previous call to the |
| 523 * [pageToken] - A token identifying a page of results the server should | 534 /// accounts.clients.users.list method. |
| 524 * return. | 535 /// |
| 525 * Typically, this is the value of | 536 /// [pageSize] - Requested page size. The server may return fewer clients |
| 526 * ListClientUsersResponse.nextPageToken | 537 /// than requested. |
| 527 * returned from the previous call to the | 538 /// If unspecified, the server will pick an appropriate default. |
| 528 * accounts.clients.users.list method. | 539 /// |
| 529 * | 540 /// Completes with a [ListClientUsersResponse]. |
| 530 * Completes with a [ListClientUsersResponse]. | 541 /// |
| 531 * | 542 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 543 /// an error. |
| 533 * error. | 544 /// |
| 534 * | 545 /// If the used [http.Client] completes with an error when making a REST |
| 535 * If the used [http.Client] completes with an error when making a REST call, | 546 /// call, this method will complete with the same error. |
| 536 * this method will complete with the same error. | 547 async.Future<ListClientUsersResponse> list( |
| 537 */ | 548 core.String accountId, core.String clientAccountId, |
| 538 async.Future<ListClientUsersResponse> list(core.String accountId, core.String
clientAccountId, {core.int pageSize, core.String pageToken}) { | 549 {core.String pageToken, core.int pageSize}) { |
| 539 var _url = null; | 550 var _url = null; |
| 540 var _queryParams = new core.Map(); | 551 var _queryParams = new core.Map(); |
| 541 var _uploadMedia = null; | 552 var _uploadMedia = null; |
| 542 var _uploadOptions = null; | 553 var _uploadOptions = null; |
| 543 var _downloadOptions = commons.DownloadOptions.Metadata; | 554 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 544 var _body = null; | 555 var _body = null; |
| 545 | 556 |
| 546 if (accountId == null) { | 557 if (accountId == null) { |
| 547 throw new core.ArgumentError("Parameter accountId is required."); | 558 throw new core.ArgumentError("Parameter accountId is required."); |
| 548 } | 559 } |
| 549 if (clientAccountId == null) { | 560 if (clientAccountId == null) { |
| 550 throw new core.ArgumentError("Parameter clientAccountId is required."); | 561 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 551 } | 562 } |
| 563 if (pageToken != null) { |
| 564 _queryParams["pageToken"] = [pageToken]; |
| 565 } |
| 552 if (pageSize != null) { | 566 if (pageSize != null) { |
| 553 _queryParams["pageSize"] = ["${pageSize}"]; | 567 _queryParams["pageSize"] = ["${pageSize}"]; |
| 554 } | 568 } |
| 555 if (pageToken != null) { | |
| 556 _queryParams["pageToken"] = [pageToken]; | |
| 557 } | |
| 558 | 569 |
| 559 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users'; | 570 _url = 'v2beta1/accounts/' + |
| 571 commons.Escaper.ecapeVariable('$accountId') + |
| 572 '/clients/' + |
| 573 commons.Escaper.ecapeVariable('$clientAccountId') + |
| 574 '/users'; |
| 560 | 575 |
| 561 var _response = _requester.request(_url, | 576 var _response = _requester.request(_url, "GET", |
| 562 "GET", | 577 body: _body, |
| 563 body: _body, | 578 queryParams: _queryParams, |
| 564 queryParams: _queryParams, | 579 uploadOptions: _uploadOptions, |
| 565 uploadOptions: _uploadOptions, | 580 uploadMedia: _uploadMedia, |
| 566 uploadMedia: _uploadMedia, | 581 downloadOptions: _downloadOptions); |
| 567 downloadOptions: _downloadOptions); | |
| 568 return _response.then((data) => new ListClientUsersResponse.fromJson(data)); | 582 return _response.then((data) => new ListClientUsersResponse.fromJson(data)); |
| 569 } | 583 } |
| 570 | 584 |
| 571 /** | 585 /// Updates an existing client user. |
| 572 * Updates an existing client user. | 586 /// Only the user status can be changed on update. |
| 573 * Only the user status can be changed on update. | 587 /// |
| 574 * | 588 /// [request] - The metadata request object. |
| 575 * [request] - The metadata request object. | 589 /// |
| 576 * | 590 /// Request parameters: |
| 577 * Request parameters: | 591 /// |
| 578 * | 592 /// [accountId] - Numerical account ID of the client's sponsor buyer. |
| 579 * [accountId] - Numerical account ID of the client's sponsor buyer. | 593 /// (required) |
| 580 * (required) | 594 /// |
| 581 * | 595 /// [clientAccountId] - Numerical account ID of the client buyer that the |
| 582 * [clientAccountId] - Numerical account ID of the client buyer that the user | 596 /// user to be retrieved |
| 583 * to be retrieved | 597 /// is associated with. (required) |
| 584 * is associated with. (required) | 598 /// |
| 585 * | 599 /// [userId] - Numerical identifier of the user to retrieve. (required) |
| 586 * [userId] - Numerical identifier of the user to retrieve. (required) | 600 /// |
| 587 * | 601 /// Completes with a [ClientUser]. |
| 588 * Completes with a [ClientUser]. | 602 /// |
| 589 * | 603 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 590 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 604 /// an error. |
| 591 * error. | 605 /// |
| 592 * | 606 /// If the used [http.Client] completes with an error when making a REST |
| 593 * If the used [http.Client] completes with an error when making a REST call, | 607 /// call, this method will complete with the same error. |
| 594 * this method will complete with the same error. | 608 async.Future<ClientUser> update(ClientUser request, core.String accountId, |
| 595 */ | 609 core.String clientAccountId, core.String userId) { |
| 596 async.Future<ClientUser> update(ClientUser request, core.String accountId, cor
e.String clientAccountId, core.String userId) { | |
| 597 var _url = null; | 610 var _url = null; |
| 598 var _queryParams = new core.Map(); | 611 var _queryParams = new core.Map(); |
| 599 var _uploadMedia = null; | 612 var _uploadMedia = null; |
| 600 var _uploadOptions = null; | 613 var _uploadOptions = null; |
| 601 var _downloadOptions = commons.DownloadOptions.Metadata; | 614 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 602 var _body = null; | 615 var _body = null; |
| 603 | 616 |
| 604 if (request != null) { | 617 if (request != null) { |
| 605 _body = convert.JSON.encode((request).toJson()); | 618 _body = convert.JSON.encode((request).toJson()); |
| 606 } | 619 } |
| 607 if (accountId == null) { | 620 if (accountId == null) { |
| 608 throw new core.ArgumentError("Parameter accountId is required."); | 621 throw new core.ArgumentError("Parameter accountId is required."); |
| 609 } | 622 } |
| 610 if (clientAccountId == null) { | 623 if (clientAccountId == null) { |
| 611 throw new core.ArgumentError("Parameter clientAccountId is required."); | 624 throw new core.ArgumentError("Parameter clientAccountId is required."); |
| 612 } | 625 } |
| 613 if (userId == null) { | 626 if (userId == null) { |
| 614 throw new core.ArgumentError("Parameter userId is required."); | 627 throw new core.ArgumentError("Parameter userId is required."); |
| 615 } | 628 } |
| 616 | 629 |
| 617 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users/' + com
mons.Escaper.ecapeVariable('$userId'); | 630 _url = 'v2beta1/accounts/' + |
| 631 commons.Escaper.ecapeVariable('$accountId') + |
| 632 '/clients/' + |
| 633 commons.Escaper.ecapeVariable('$clientAccountId') + |
| 634 '/users/' + |
| 635 commons.Escaper.ecapeVariable('$userId'); |
| 618 | 636 |
| 619 var _response = _requester.request(_url, | 637 var _response = _requester.request(_url, "PUT", |
| 620 "PUT", | 638 body: _body, |
| 621 body: _body, | 639 queryParams: _queryParams, |
| 622 queryParams: _queryParams, | 640 uploadOptions: _uploadOptions, |
| 623 uploadOptions: _uploadOptions, | 641 uploadMedia: _uploadMedia, |
| 624 uploadMedia: _uploadMedia, | 642 downloadOptions: _downloadOptions); |
| 625 downloadOptions: _downloadOptions); | |
| 626 return _response.then((data) => new ClientUser.fromJson(data)); | 643 return _response.then((data) => new ClientUser.fromJson(data)); |
| 627 } | 644 } |
| 628 | |
| 629 } | 645 } |
| 630 | 646 |
| 631 | |
| 632 class AccountsCreativesResourceApi { | 647 class AccountsCreativesResourceApi { |
| 633 final commons.ApiRequester _requester; | 648 final commons.ApiRequester _requester; |
| 634 | 649 |
| 635 AccountsCreativesDealAssociationsResourceApi get dealAssociations => new Accou
ntsCreativesDealAssociationsResourceApi(_requester); | 650 AccountsCreativesDealAssociationsResourceApi get dealAssociations => |
| 651 new AccountsCreativesDealAssociationsResourceApi(_requester); |
| 636 | 652 |
| 637 AccountsCreativesResourceApi(commons.ApiRequester client) : | 653 AccountsCreativesResourceApi(commons.ApiRequester client) |
| 638 _requester = client; | 654 : _requester = client; |
| 639 | 655 |
| 640 /** | 656 /// Creates a creative. |
| 641 * Creates a creative. | 657 /// |
| 642 * | 658 /// [request] - The metadata request object. |
| 643 * [request] - The metadata request object. | 659 /// |
| 644 * | 660 /// Request parameters: |
| 645 * Request parameters: | 661 /// |
| 646 * | 662 /// [accountId] - The account that this creative belongs to. |
| 647 * [accountId] - The account that this creative belongs to. | 663 /// Can be used to filter the response of the |
| 648 * Can be used to filter the response of the | 664 /// creatives.list |
| 649 * creatives.list | 665 /// method. |
| 650 * method. | 666 /// |
| 651 * | 667 /// [duplicateIdMode] - Indicates if multiple creatives can share an ID or |
| 652 * [duplicateIdMode] - Indicates if multiple creatives can share an ID or not. | 668 /// not. Default is |
| 653 * Default is | 669 /// NO_DUPLICATES (one ID per creative). |
| 654 * NO_DUPLICATES (one ID per creative). | 670 /// Possible string values are: |
| 655 * Possible string values are: | 671 /// - "NO_DUPLICATES" : A NO_DUPLICATES. |
| 656 * - "NO_DUPLICATES" : A NO_DUPLICATES. | 672 /// - "FORCE_ENABLE_DUPLICATE_IDS" : A FORCE_ENABLE_DUPLICATE_IDS. |
| 657 * - "FORCE_ENABLE_DUPLICATE_IDS" : A FORCE_ENABLE_DUPLICATE_IDS. | 673 /// |
| 658 * | 674 /// Completes with a [Creative]. |
| 659 * Completes with a [Creative]. | 675 /// |
| 660 * | 676 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 661 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 677 /// an error. |
| 662 * error. | 678 /// |
| 663 * | 679 /// If the used [http.Client] completes with an error when making a REST |
| 664 * If the used [http.Client] completes with an error when making a REST call, | 680 /// call, this method will complete with the same error. |
| 665 * this method will complete with the same error. | 681 async.Future<Creative> create(Creative request, core.String accountId, |
| 666 */ | 682 {core.String duplicateIdMode}) { |
| 667 async.Future<Creative> create(Creative request, core.String accountId, {core.S
tring duplicateIdMode}) { | |
| 668 var _url = null; | 683 var _url = null; |
| 669 var _queryParams = new core.Map(); | 684 var _queryParams = new core.Map(); |
| 670 var _uploadMedia = null; | 685 var _uploadMedia = null; |
| 671 var _uploadOptions = null; | 686 var _uploadOptions = null; |
| 672 var _downloadOptions = commons.DownloadOptions.Metadata; | 687 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 673 var _body = null; | 688 var _body = null; |
| 674 | 689 |
| 675 if (request != null) { | 690 if (request != null) { |
| 676 _body = convert.JSON.encode((request).toJson()); | 691 _body = convert.JSON.encode((request).toJson()); |
| 677 } | 692 } |
| 678 if (accountId == null) { | 693 if (accountId == null) { |
| 679 throw new core.ArgumentError("Parameter accountId is required."); | 694 throw new core.ArgumentError("Parameter accountId is required."); |
| 680 } | 695 } |
| 681 if (duplicateIdMode != null) { | 696 if (duplicateIdMode != null) { |
| 682 _queryParams["duplicateIdMode"] = [duplicateIdMode]; | 697 _queryParams["duplicateIdMode"] = [duplicateIdMode]; |
| 683 } | 698 } |
| 684 | 699 |
| 685 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives'; | 700 _url = 'v2beta1/accounts/' + |
| 701 commons.Escaper.ecapeVariable('$accountId') + |
| 702 '/creatives'; |
| 686 | 703 |
| 687 var _response = _requester.request(_url, | 704 var _response = _requester.request(_url, "POST", |
| 688 "POST", | 705 body: _body, |
| 689 body: _body, | 706 queryParams: _queryParams, |
| 690 queryParams: _queryParams, | 707 uploadOptions: _uploadOptions, |
| 691 uploadOptions: _uploadOptions, | 708 uploadMedia: _uploadMedia, |
| 692 uploadMedia: _uploadMedia, | 709 downloadOptions: _downloadOptions); |
| 693 downloadOptions: _downloadOptions); | |
| 694 return _response.then((data) => new Creative.fromJson(data)); | 710 return _response.then((data) => new Creative.fromJson(data)); |
| 695 } | 711 } |
| 696 | 712 |
| 697 /** | 713 /// Gets a creative. |
| 698 * Gets a creative. | 714 /// |
| 699 * | 715 /// Request parameters: |
| 700 * Request parameters: | 716 /// |
| 701 * | 717 /// [accountId] - The account the creative belongs to. |
| 702 * [accountId] - The account the creative belongs to. | 718 /// |
| 703 * | 719 /// [creativeId] - The ID of the creative to retrieve. |
| 704 * [creativeId] - The ID of the creative to retrieve. | 720 /// |
| 705 * | 721 /// Completes with a [Creative]. |
| 706 * Completes with a [Creative]. | 722 /// |
| 707 * | 723 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 708 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 724 /// an error. |
| 709 * error. | 725 /// |
| 710 * | 726 /// If the used [http.Client] completes with an error when making a REST |
| 711 * If the used [http.Client] completes with an error when making a REST call, | 727 /// call, this method will complete with the same error. |
| 712 * this method will complete with the same error. | |
| 713 */ | |
| 714 async.Future<Creative> get(core.String accountId, core.String creativeId) { | 728 async.Future<Creative> get(core.String accountId, core.String creativeId) { |
| 715 var _url = null; | 729 var _url = null; |
| 716 var _queryParams = new core.Map(); | 730 var _queryParams = new core.Map(); |
| 717 var _uploadMedia = null; | 731 var _uploadMedia = null; |
| 718 var _uploadOptions = null; | 732 var _uploadOptions = null; |
| 719 var _downloadOptions = commons.DownloadOptions.Metadata; | 733 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 720 var _body = null; | 734 var _body = null; |
| 721 | 735 |
| 722 if (accountId == null) { | 736 if (accountId == null) { |
| 723 throw new core.ArgumentError("Parameter accountId is required."); | 737 throw new core.ArgumentError("Parameter accountId is required."); |
| 724 } | 738 } |
| 725 if (creativeId == null) { | 739 if (creativeId == null) { |
| 726 throw new core.ArgumentError("Parameter creativeId is required."); | 740 throw new core.ArgumentError("Parameter creativeId is required."); |
| 727 } | 741 } |
| 728 | 742 |
| 729 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId'); | 743 _url = 'v2beta1/accounts/' + |
| 744 commons.Escaper.ecapeVariable('$accountId') + |
| 745 '/creatives/' + |
| 746 commons.Escaper.ecapeVariable('$creativeId'); |
| 730 | 747 |
| 731 var _response = _requester.request(_url, | 748 var _response = _requester.request(_url, "GET", |
| 732 "GET", | 749 body: _body, |
| 733 body: _body, | 750 queryParams: _queryParams, |
| 734 queryParams: _queryParams, | 751 uploadOptions: _uploadOptions, |
| 735 uploadOptions: _uploadOptions, | 752 uploadMedia: _uploadMedia, |
| 736 uploadMedia: _uploadMedia, | 753 downloadOptions: _downloadOptions); |
| 737 downloadOptions: _downloadOptions); | |
| 738 return _response.then((data) => new Creative.fromJson(data)); | 754 return _response.then((data) => new Creative.fromJson(data)); |
| 739 } | 755 } |
| 740 | 756 |
| 741 /** | 757 /// Lists creatives. |
| 742 * Lists creatives. | 758 /// |
| 743 * | 759 /// Request parameters: |
| 744 * Request parameters: | 760 /// |
| 745 * | 761 /// [accountId] - The account to list the creatives from. |
| 746 * [accountId] - The account to list the creatives from. | 762 /// Specify "-" to list all creatives the current user has access to. |
| 747 * Specify "-" to list all creatives the current user has access to. | 763 /// |
| 748 * | 764 /// [query] - An optional query string to filter creatives. If no filter is |
| 749 * [pageToken] - A token identifying a page of results the server should | 765 /// specified, |
| 750 * return. | 766 /// all active creatives will be returned. |
| 751 * Typically, this is the value of | 767 /// Supported queries are: |
| 752 * ListCreativesResponse.next_page_token | 768 /// <ul> |
| 753 * returned from the previous call to 'ListCreatives' method. | 769 /// <li>accountId=<i>account_id_string</i> |
| 754 * | 770 /// <li>creativeId=<i>creative_id_string</i> |
| 755 * [pageSize] - Requested page size. The server may return fewer creatives | 771 /// <li>dealsStatus: {approved, conditionally_approved, disapproved, |
| 756 * than requested | 772 /// not_checked} |
| 757 * (due to timeout constraint) even if more are available via another call. | 773 /// <li>openAuctionStatus: {approved, conditionally_approved, disapproved, |
| 758 * If unspecified, server will pick an appropriate default. | 774 /// not_checked} |
| 759 * Acceptable values are 1 to 1000, inclusive. | 775 /// <li>attribute: {a numeric attribute from the list of attributes} |
| 760 * | 776 /// <li>disapprovalReason: {a reason from DisapprovalReason |
| 761 * [query] - An optional query string to filter creatives. If no filter is | 777 /// </ul> |
| 762 * specified, | 778 /// Example: 'accountId=12345 AND (dealsStatus:disapproved AND |
| 763 * all active creatives will be returned. | 779 /// disapprovalReason:unacceptable_content) OR attribute:47' |
| 764 * Supported queries are: | 780 /// |
| 765 * <ul> | 781 /// [pageToken] - A token identifying a page of results the server should |
| 766 * <li>accountId=<i>account_id_string</i> | 782 /// return. |
| 767 * <li>creativeId=<i>creative_id_string</i> | 783 /// Typically, this is the value of |
| 768 * <li>dealsStatus: {approved, conditionally_approved, disapproved, | 784 /// ListCreativesResponse.next_page_token |
| 769 * not_checked} | 785 /// returned from the previous call to 'ListCreatives' method. |
| 770 * <li>openAuctionStatus: {approved, conditionally_approved, disapproved, | 786 /// |
| 771 * not_checked} | 787 /// [pageSize] - Requested page size. The server may return fewer creatives |
| 772 * <li>attribute: {a numeric attribute from the list of attributes} | 788 /// than requested |
| 773 * <li>disapprovalReason: {a reason from DisapprovalReason | 789 /// (due to timeout constraint) even if more are available via another call. |
| 774 * </ul> | 790 /// If unspecified, server will pick an appropriate default. |
| 775 * Example: 'accountId=12345 AND (dealsStatus:disapproved AND | 791 /// Acceptable values are 1 to 1000, inclusive. |
| 776 * disapprovalReason:unacceptable_content) OR attribute:47' | 792 /// |
| 777 * | 793 /// Completes with a [ListCreativesResponse]. |
| 778 * Completes with a [ListCreativesResponse]. | 794 /// |
| 779 * | 795 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 780 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 796 /// an error. |
| 781 * error. | 797 /// |
| 782 * | 798 /// If the used [http.Client] completes with an error when making a REST |
| 783 * If the used [http.Client] completes with an error when making a REST call, | 799 /// call, this method will complete with the same error. |
| 784 * this method will complete with the same error. | 800 async.Future<ListCreativesResponse> list(core.String accountId, |
| 785 */ | 801 {core.String query, core.String pageToken, core.int pageSize}) { |
| 786 async.Future<ListCreativesResponse> list(core.String accountId, {core.String p
ageToken, core.int pageSize, core.String query}) { | |
| 787 var _url = null; | 802 var _url = null; |
| 788 var _queryParams = new core.Map(); | 803 var _queryParams = new core.Map(); |
| 789 var _uploadMedia = null; | 804 var _uploadMedia = null; |
| 790 var _uploadOptions = null; | 805 var _uploadOptions = null; |
| 791 var _downloadOptions = commons.DownloadOptions.Metadata; | 806 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 792 var _body = null; | 807 var _body = null; |
| 793 | 808 |
| 794 if (accountId == null) { | 809 if (accountId == null) { |
| 795 throw new core.ArgumentError("Parameter accountId is required."); | 810 throw new core.ArgumentError("Parameter accountId is required."); |
| 796 } | 811 } |
| 812 if (query != null) { |
| 813 _queryParams["query"] = [query]; |
| 814 } |
| 797 if (pageToken != null) { | 815 if (pageToken != null) { |
| 798 _queryParams["pageToken"] = [pageToken]; | 816 _queryParams["pageToken"] = [pageToken]; |
| 799 } | 817 } |
| 800 if (pageSize != null) { | 818 if (pageSize != null) { |
| 801 _queryParams["pageSize"] = ["${pageSize}"]; | 819 _queryParams["pageSize"] = ["${pageSize}"]; |
| 802 } | 820 } |
| 803 if (query != null) { | |
| 804 _queryParams["query"] = [query]; | |
| 805 } | |
| 806 | 821 |
| 807 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives'; | 822 _url = 'v2beta1/accounts/' + |
| 823 commons.Escaper.ecapeVariable('$accountId') + |
| 824 '/creatives'; |
| 808 | 825 |
| 809 var _response = _requester.request(_url, | 826 var _response = _requester.request(_url, "GET", |
| 810 "GET", | 827 body: _body, |
| 811 body: _body, | 828 queryParams: _queryParams, |
| 812 queryParams: _queryParams, | 829 uploadOptions: _uploadOptions, |
| 813 uploadOptions: _uploadOptions, | 830 uploadMedia: _uploadMedia, |
| 814 uploadMedia: _uploadMedia, | 831 downloadOptions: _downloadOptions); |
| 815 downloadOptions: _downloadOptions); | |
| 816 return _response.then((data) => new ListCreativesResponse.fromJson(data)); | 832 return _response.then((data) => new ListCreativesResponse.fromJson(data)); |
| 817 } | 833 } |
| 818 | 834 |
| 819 /** | 835 /// Stops watching a creative. Will stop push notifications being sent to the |
| 820 * Stops watching a creative. Will stop push notifications being sent to the | 836 /// topics when the creative changes status. |
| 821 * topics when the creative changes status. | 837 /// |
| 822 * | 838 /// [request] - The metadata request object. |
| 823 * [request] - The metadata request object. | 839 /// |
| 824 * | 840 /// Request parameters: |
| 825 * Request parameters: | 841 /// |
| 826 * | 842 /// [accountId] - The account of the creative to stop notifications for. |
| 827 * [accountId] - The account of the creative to stop notifications for. | 843 /// |
| 828 * | 844 /// [creativeId] - The creative ID of the creative to stop notifications for. |
| 829 * [creativeId] - The creative ID of the creative to stop notifications for. | 845 /// Specify "-" to specify stopping account level notifications. |
| 830 * Specify "-" to specify stopping account level notifications. | 846 /// |
| 831 * | 847 /// Completes with a [Empty]. |
| 832 * Completes with a [Empty]. | 848 /// |
| 833 * | 849 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 834 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 850 /// an error. |
| 835 * error. | 851 /// |
| 836 * | 852 /// If the used [http.Client] completes with an error when making a REST |
| 837 * If the used [http.Client] completes with an error when making a REST call, | 853 /// call, this method will complete with the same error. |
| 838 * this method will complete with the same error. | 854 async.Future<Empty> stopWatching(StopWatchingCreativeRequest request, |
| 839 */ | 855 core.String accountId, core.String creativeId) { |
| 840 async.Future<Empty> stopWatching(StopWatchingCreativeRequest request, core.Str
ing accountId, core.String creativeId) { | |
| 841 var _url = null; | 856 var _url = null; |
| 842 var _queryParams = new core.Map(); | 857 var _queryParams = new core.Map(); |
| 843 var _uploadMedia = null; | 858 var _uploadMedia = null; |
| 844 var _uploadOptions = null; | 859 var _uploadOptions = null; |
| 845 var _downloadOptions = commons.DownloadOptions.Metadata; | 860 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 846 var _body = null; | 861 var _body = null; |
| 847 | 862 |
| 848 if (request != null) { | 863 if (request != null) { |
| 849 _body = convert.JSON.encode((request).toJson()); | 864 _body = convert.JSON.encode((request).toJson()); |
| 850 } | 865 } |
| 851 if (accountId == null) { | 866 if (accountId == null) { |
| 852 throw new core.ArgumentError("Parameter accountId is required."); | 867 throw new core.ArgumentError("Parameter accountId is required."); |
| 853 } | 868 } |
| 854 if (creativeId == null) { | 869 if (creativeId == null) { |
| 855 throw new core.ArgumentError("Parameter creativeId is required."); | 870 throw new core.ArgumentError("Parameter creativeId is required."); |
| 856 } | 871 } |
| 857 | 872 |
| 858 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + ':stopWatching'; | 873 _url = 'v2beta1/accounts/' + |
| 874 commons.Escaper.ecapeVariable('$accountId') + |
| 875 '/creatives/' + |
| 876 commons.Escaper.ecapeVariable('$creativeId') + |
| 877 ':stopWatching'; |
| 859 | 878 |
| 860 var _response = _requester.request(_url, | 879 var _response = _requester.request(_url, "POST", |
| 861 "POST", | 880 body: _body, |
| 862 body: _body, | 881 queryParams: _queryParams, |
| 863 queryParams: _queryParams, | 882 uploadOptions: _uploadOptions, |
| 864 uploadOptions: _uploadOptions, | 883 uploadMedia: _uploadMedia, |
| 865 uploadMedia: _uploadMedia, | 884 downloadOptions: _downloadOptions); |
| 866 downloadOptions: _downloadOptions); | |
| 867 return _response.then((data) => new Empty.fromJson(data)); | 885 return _response.then((data) => new Empty.fromJson(data)); |
| 868 } | 886 } |
| 869 | 887 |
| 870 /** | 888 /// Updates a creative. |
| 871 * Updates a creative. | 889 /// |
| 872 * | 890 /// [request] - The metadata request object. |
| 873 * [request] - The metadata request object. | 891 /// |
| 874 * | 892 /// Request parameters: |
| 875 * Request parameters: | 893 /// |
| 876 * | 894 /// [accountId] - The account that this creative belongs to. |
| 877 * [accountId] - The account that this creative belongs to. | 895 /// Can be used to filter the response of the |
| 878 * Can be used to filter the response of the | 896 /// creatives.list |
| 879 * creatives.list | 897 /// method. |
| 880 * method. | 898 /// |
| 881 * | 899 /// [creativeId] - The buyer-defined creative ID of this creative. |
| 882 * [creativeId] - The buyer-defined creative ID of this creative. | 900 /// Can be used to filter the response of the |
| 883 * Can be used to filter the response of the | 901 /// creatives.list |
| 884 * creatives.list | 902 /// method. |
| 885 * method. | 903 /// |
| 886 * | 904 /// Completes with a [Creative]. |
| 887 * Completes with a [Creative]. | 905 /// |
| 888 * | 906 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 889 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 907 /// an error. |
| 890 * error. | 908 /// |
| 891 * | 909 /// If the used [http.Client] completes with an error when making a REST |
| 892 * If the used [http.Client] completes with an error when making a REST call, | 910 /// call, this method will complete with the same error. |
| 893 * this method will complete with the same error. | 911 async.Future<Creative> update( |
| 894 */ | 912 Creative request, core.String accountId, core.String creativeId) { |
| 895 async.Future<Creative> update(Creative request, core.String accountId, core.St
ring creativeId) { | |
| 896 var _url = null; | 913 var _url = null; |
| 897 var _queryParams = new core.Map(); | 914 var _queryParams = new core.Map(); |
| 898 var _uploadMedia = null; | 915 var _uploadMedia = null; |
| 899 var _uploadOptions = null; | 916 var _uploadOptions = null; |
| 900 var _downloadOptions = commons.DownloadOptions.Metadata; | 917 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 901 var _body = null; | 918 var _body = null; |
| 902 | 919 |
| 903 if (request != null) { | 920 if (request != null) { |
| 904 _body = convert.JSON.encode((request).toJson()); | 921 _body = convert.JSON.encode((request).toJson()); |
| 905 } | 922 } |
| 906 if (accountId == null) { | 923 if (accountId == null) { |
| 907 throw new core.ArgumentError("Parameter accountId is required."); | 924 throw new core.ArgumentError("Parameter accountId is required."); |
| 908 } | 925 } |
| 909 if (creativeId == null) { | 926 if (creativeId == null) { |
| 910 throw new core.ArgumentError("Parameter creativeId is required."); | 927 throw new core.ArgumentError("Parameter creativeId is required."); |
| 911 } | 928 } |
| 912 | 929 |
| 913 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId'); | 930 _url = 'v2beta1/accounts/' + |
| 931 commons.Escaper.ecapeVariable('$accountId') + |
| 932 '/creatives/' + |
| 933 commons.Escaper.ecapeVariable('$creativeId'); |
| 914 | 934 |
| 915 var _response = _requester.request(_url, | 935 var _response = _requester.request(_url, "PUT", |
| 916 "PUT", | 936 body: _body, |
| 917 body: _body, | 937 queryParams: _queryParams, |
| 918 queryParams: _queryParams, | 938 uploadOptions: _uploadOptions, |
| 919 uploadOptions: _uploadOptions, | 939 uploadMedia: _uploadMedia, |
| 920 uploadMedia: _uploadMedia, | 940 downloadOptions: _downloadOptions); |
| 921 downloadOptions: _downloadOptions); | |
| 922 return _response.then((data) => new Creative.fromJson(data)); | 941 return _response.then((data) => new Creative.fromJson(data)); |
| 923 } | 942 } |
| 924 | 943 |
| 925 /** | 944 /// Watches a creative. Will result in push notifications being sent to the |
| 926 * Watches a creative. Will result in push notifications being sent to the | 945 /// topic when the creative changes status. |
| 927 * topic when the creative changes status. | 946 /// |
| 928 * | 947 /// [request] - The metadata request object. |
| 929 * [request] - The metadata request object. | 948 /// |
| 930 * | 949 /// Request parameters: |
| 931 * Request parameters: | 950 /// |
| 932 * | 951 /// [accountId] - The account of the creative to watch. |
| 933 * [accountId] - The account of the creative to watch. | 952 /// |
| 934 * | 953 /// [creativeId] - The creative ID to watch for status changes. |
| 935 * [creativeId] - The creative ID to watch for status changes. | 954 /// Specify "-" to watch all creatives under the above account. |
| 936 * Specify "-" to watch all creatives under the above account. | 955 /// If both creative-level and account-level notifications are |
| 937 * If both creative-level and account-level notifications are | 956 /// sent, only a single notification will be sent to the |
| 938 * sent, only a single notification will be sent to the | 957 /// creative-level notification topic. |
| 939 * creative-level notification topic. | 958 /// |
| 940 * | 959 /// Completes with a [Empty]. |
| 941 * Completes with a [Empty]. | 960 /// |
| 942 * | 961 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 943 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 962 /// an error. |
| 944 * error. | 963 /// |
| 945 * | 964 /// If the used [http.Client] completes with an error when making a REST |
| 946 * If the used [http.Client] completes with an error when making a REST call, | 965 /// call, this method will complete with the same error. |
| 947 * this method will complete with the same error. | 966 async.Future<Empty> watch(WatchCreativeRequest request, core.String accountId, |
| 948 */ | 967 core.String creativeId) { |
| 949 async.Future<Empty> watch(WatchCreativeRequest request, core.String accountId,
core.String creativeId) { | |
| 950 var _url = null; | 968 var _url = null; |
| 951 var _queryParams = new core.Map(); | 969 var _queryParams = new core.Map(); |
| 952 var _uploadMedia = null; | 970 var _uploadMedia = null; |
| 953 var _uploadOptions = null; | 971 var _uploadOptions = null; |
| 954 var _downloadOptions = commons.DownloadOptions.Metadata; | 972 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 955 var _body = null; | 973 var _body = null; |
| 956 | 974 |
| 957 if (request != null) { | 975 if (request != null) { |
| 958 _body = convert.JSON.encode((request).toJson()); | 976 _body = convert.JSON.encode((request).toJson()); |
| 959 } | 977 } |
| 960 if (accountId == null) { | 978 if (accountId == null) { |
| 961 throw new core.ArgumentError("Parameter accountId is required."); | 979 throw new core.ArgumentError("Parameter accountId is required."); |
| 962 } | 980 } |
| 963 if (creativeId == null) { | 981 if (creativeId == null) { |
| 964 throw new core.ArgumentError("Parameter creativeId is required."); | 982 throw new core.ArgumentError("Parameter creativeId is required."); |
| 965 } | 983 } |
| 966 | 984 |
| 967 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + ':watch'; | 985 _url = 'v2beta1/accounts/' + |
| 986 commons.Escaper.ecapeVariable('$accountId') + |
| 987 '/creatives/' + |
| 988 commons.Escaper.ecapeVariable('$creativeId') + |
| 989 ':watch'; |
| 968 | 990 |
| 969 var _response = _requester.request(_url, | 991 var _response = _requester.request(_url, "POST", |
| 970 "POST", | 992 body: _body, |
| 971 body: _body, | 993 queryParams: _queryParams, |
| 972 queryParams: _queryParams, | 994 uploadOptions: _uploadOptions, |
| 973 uploadOptions: _uploadOptions, | 995 uploadMedia: _uploadMedia, |
| 974 uploadMedia: _uploadMedia, | 996 downloadOptions: _downloadOptions); |
| 975 downloadOptions: _downloadOptions); | |
| 976 return _response.then((data) => new Empty.fromJson(data)); | 997 return _response.then((data) => new Empty.fromJson(data)); |
| 977 } | 998 } |
| 978 | |
| 979 } | 999 } |
| 980 | 1000 |
| 981 | |
| 982 class AccountsCreativesDealAssociationsResourceApi { | 1001 class AccountsCreativesDealAssociationsResourceApi { |
| 983 final commons.ApiRequester _requester; | 1002 final commons.ApiRequester _requester; |
| 984 | 1003 |
| 985 AccountsCreativesDealAssociationsResourceApi(commons.ApiRequester client) : | 1004 AccountsCreativesDealAssociationsResourceApi(commons.ApiRequester client) |
| 986 _requester = client; | 1005 : _requester = client; |
| 987 | 1006 |
| 988 /** | 1007 /// Associate an existing deal with a creative. |
| 989 * Associate an existing deal with a creative. | 1008 /// |
| 990 * | 1009 /// [request] - The metadata request object. |
| 991 * [request] - The metadata request object. | 1010 /// |
| 992 * | 1011 /// Request parameters: |
| 993 * Request parameters: | 1012 /// |
| 994 * | 1013 /// [accountId] - The account the creative belongs to. |
| 995 * [accountId] - The account the creative belongs to. | 1014 /// |
| 996 * | 1015 /// [creativeId] - The ID of the creative associated with the deal. |
| 997 * [creativeId] - The ID of the creative associated with the deal. | 1016 /// |
| 998 * | 1017 /// Completes with a [Empty]. |
| 999 * Completes with a [Empty]. | 1018 /// |
| 1000 * | 1019 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1020 /// an error. |
| 1002 * error. | 1021 /// |
| 1003 * | 1022 /// If the used [http.Client] completes with an error when making a REST |
| 1004 * If the used [http.Client] completes with an error when making a REST call, | 1023 /// call, this method will complete with the same error. |
| 1005 * this method will complete with the same error. | 1024 async.Future<Empty> add(AddDealAssociationRequest request, |
| 1006 */ | 1025 core.String accountId, core.String creativeId) { |
| 1007 async.Future<Empty> add(AddDealAssociationRequest request, core.String account
Id, core.String creativeId) { | |
| 1008 var _url = null; | 1026 var _url = null; |
| 1009 var _queryParams = new core.Map(); | 1027 var _queryParams = new core.Map(); |
| 1010 var _uploadMedia = null; | 1028 var _uploadMedia = null; |
| 1011 var _uploadOptions = null; | 1029 var _uploadOptions = null; |
| 1012 var _downloadOptions = commons.DownloadOptions.Metadata; | 1030 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1013 var _body = null; | 1031 var _body = null; |
| 1014 | 1032 |
| 1015 if (request != null) { | 1033 if (request != null) { |
| 1016 _body = convert.JSON.encode((request).toJson()); | 1034 _body = convert.JSON.encode((request).toJson()); |
| 1017 } | 1035 } |
| 1018 if (accountId == null) { | 1036 if (accountId == null) { |
| 1019 throw new core.ArgumentError("Parameter accountId is required."); | 1037 throw new core.ArgumentError("Parameter accountId is required."); |
| 1020 } | 1038 } |
| 1021 if (creativeId == null) { | 1039 if (creativeId == null) { |
| 1022 throw new core.ArgumentError("Parameter creativeId is required."); | 1040 throw new core.ArgumentError("Parameter creativeId is required."); |
| 1023 } | 1041 } |
| 1024 | 1042 |
| 1025 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations
:add'; | 1043 _url = 'v2beta1/accounts/' + |
| 1044 commons.Escaper.ecapeVariable('$accountId') + |
| 1045 '/creatives/' + |
| 1046 commons.Escaper.ecapeVariable('$creativeId') + |
| 1047 '/dealAssociations:add'; |
| 1026 | 1048 |
| 1027 var _response = _requester.request(_url, | 1049 var _response = _requester.request(_url, "POST", |
| 1028 "POST", | 1050 body: _body, |
| 1029 body: _body, | 1051 queryParams: _queryParams, |
| 1030 queryParams: _queryParams, | 1052 uploadOptions: _uploadOptions, |
| 1031 uploadOptions: _uploadOptions, | 1053 uploadMedia: _uploadMedia, |
| 1032 uploadMedia: _uploadMedia, | 1054 downloadOptions: _downloadOptions); |
| 1033 downloadOptions: _downloadOptions); | |
| 1034 return _response.then((data) => new Empty.fromJson(data)); | 1055 return _response.then((data) => new Empty.fromJson(data)); |
| 1035 } | 1056 } |
| 1036 | 1057 |
| 1037 /** | 1058 /// List all creative-deal associations. |
| 1038 * List all creative-deal associations. | 1059 /// |
| 1039 * | 1060 /// Request parameters: |
| 1040 * Request parameters: | 1061 /// |
| 1041 * | 1062 /// [accountId] - The account to list the associations from. |
| 1042 * [accountId] - The account to list the associations from. | 1063 /// Specify "-" to list all creatives the current user has access to. |
| 1043 * Specify "-" to list all creatives the current user has access to. | 1064 /// |
| 1044 * | 1065 /// [creativeId] - The creative ID to list the associations from. |
| 1045 * [creativeId] - The creative ID to list the associations from. | 1066 /// Specify "-" to list all creatives under the above account. |
| 1046 * Specify "-" to list all creatives under the above account. | 1067 /// |
| 1047 * | 1068 /// [pageToken] - A token identifying a page of results the server should |
| 1048 * [pageSize] - Requested page size. Server may return fewer associations than | 1069 /// return. |
| 1049 * requested. | 1070 /// Typically, this is the value of |
| 1050 * If unspecified, server will pick an appropriate default. | 1071 /// ListDealAssociationsResponse.next_page_token |
| 1051 * | 1072 /// returned from the previous call to 'ListDealAssociations' method. |
| 1052 * [query] - An optional query string to filter deal associations. If no | 1073 /// |
| 1053 * filter is | 1074 /// [pageSize] - Requested page size. Server may return fewer associations |
| 1054 * specified, all associations will be returned. | 1075 /// than requested. |
| 1055 * Supported queries are: | 1076 /// If unspecified, server will pick an appropriate default. |
| 1056 * <ul> | 1077 /// |
| 1057 * <li>accountId=<i>account_id_string</i> | 1078 /// [query] - An optional query string to filter deal associations. If no |
| 1058 * <li>creativeId=<i>creative_id_string</i> | 1079 /// filter is |
| 1059 * <li>dealsId=<i>deals_id_string</i> | 1080 /// specified, all associations will be returned. |
| 1060 * <li>dealsStatus:{approved, conditionally_approved, disapproved, | 1081 /// Supported queries are: |
| 1061 * not_checked} | 1082 /// <ul> |
| 1062 * <li>openAuctionStatus:{approved, conditionally_approved, disapproved, | 1083 /// <li>accountId=<i>account_id_string</i> |
| 1063 * not_checked} | 1084 /// <li>creativeId=<i>creative_id_string</i> |
| 1064 * </ul> | 1085 /// <li>dealsId=<i>deals_id_string</i> |
| 1065 * Example: 'dealsId=12345 AND dealsStatus:disapproved' | 1086 /// <li>dealsStatus:{approved, conditionally_approved, disapproved, |
| 1066 * | 1087 /// not_checked} |
| 1067 * [pageToken] - A token identifying a page of results the server should | 1088 /// <li>openAuctionStatus:{approved, conditionally_approved, disapproved, |
| 1068 * return. | 1089 /// not_checked} |
| 1069 * Typically, this is the value of | 1090 /// </ul> |
| 1070 * ListDealAssociationsResponse.next_page_token | 1091 /// Example: 'dealsId=12345 AND dealsStatus:disapproved' |
| 1071 * returned from the previous call to 'ListDealAssociations' method. | 1092 /// |
| 1072 * | 1093 /// Completes with a [ListDealAssociationsResponse]. |
| 1073 * Completes with a [ListDealAssociationsResponse]. | 1094 /// |
| 1074 * | 1095 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1096 /// an error. |
| 1076 * error. | 1097 /// |
| 1077 * | 1098 /// If the used [http.Client] completes with an error when making a REST |
| 1078 * If the used [http.Client] completes with an error when making a REST call, | 1099 /// call, this method will complete with the same error. |
| 1079 * this method will complete with the same error. | 1100 async.Future<ListDealAssociationsResponse> list( |
| 1080 */ | 1101 core.String accountId, core.String creativeId, |
| 1081 async.Future<ListDealAssociationsResponse> list(core.String accountId, core.St
ring creativeId, {core.int pageSize, core.String query, core.String pageToken})
{ | 1102 {core.String pageToken, core.int pageSize, core.String query}) { |
| 1082 var _url = null; | 1103 var _url = null; |
| 1083 var _queryParams = new core.Map(); | 1104 var _queryParams = new core.Map(); |
| 1084 var _uploadMedia = null; | 1105 var _uploadMedia = null; |
| 1085 var _uploadOptions = null; | 1106 var _uploadOptions = null; |
| 1086 var _downloadOptions = commons.DownloadOptions.Metadata; | 1107 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1087 var _body = null; | 1108 var _body = null; |
| 1088 | 1109 |
| 1089 if (accountId == null) { | 1110 if (accountId == null) { |
| 1090 throw new core.ArgumentError("Parameter accountId is required."); | 1111 throw new core.ArgumentError("Parameter accountId is required."); |
| 1091 } | 1112 } |
| 1092 if (creativeId == null) { | 1113 if (creativeId == null) { |
| 1093 throw new core.ArgumentError("Parameter creativeId is required."); | 1114 throw new core.ArgumentError("Parameter creativeId is required."); |
| 1094 } | 1115 } |
| 1116 if (pageToken != null) { |
| 1117 _queryParams["pageToken"] = [pageToken]; |
| 1118 } |
| 1095 if (pageSize != null) { | 1119 if (pageSize != null) { |
| 1096 _queryParams["pageSize"] = ["${pageSize}"]; | 1120 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1097 } | 1121 } |
| 1098 if (query != null) { | 1122 if (query != null) { |
| 1099 _queryParams["query"] = [query]; | 1123 _queryParams["query"] = [query]; |
| 1100 } | 1124 } |
| 1101 if (pageToken != null) { | |
| 1102 _queryParams["pageToken"] = [pageToken]; | |
| 1103 } | |
| 1104 | 1125 |
| 1105 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations
'; | 1126 _url = 'v2beta1/accounts/' + |
| 1127 commons.Escaper.ecapeVariable('$accountId') + |
| 1128 '/creatives/' + |
| 1129 commons.Escaper.ecapeVariable('$creativeId') + |
| 1130 '/dealAssociations'; |
| 1106 | 1131 |
| 1107 var _response = _requester.request(_url, | 1132 var _response = _requester.request(_url, "GET", |
| 1108 "GET", | 1133 body: _body, |
| 1109 body: _body, | 1134 queryParams: _queryParams, |
| 1110 queryParams: _queryParams, | 1135 uploadOptions: _uploadOptions, |
| 1111 uploadOptions: _uploadOptions, | 1136 uploadMedia: _uploadMedia, |
| 1112 uploadMedia: _uploadMedia, | 1137 downloadOptions: _downloadOptions); |
| 1113 downloadOptions: _downloadOptions); | 1138 return _response |
| 1114 return _response.then((data) => new ListDealAssociationsResponse.fromJson(da
ta)); | 1139 .then((data) => new ListDealAssociationsResponse.fromJson(data)); |
| 1115 } | 1140 } |
| 1116 | 1141 |
| 1117 /** | 1142 /// Remove the association between a deal and a creative. |
| 1118 * Remove the association between a deal and a creative. | 1143 /// |
| 1119 * | 1144 /// [request] - The metadata request object. |
| 1120 * [request] - The metadata request object. | 1145 /// |
| 1121 * | 1146 /// Request parameters: |
| 1122 * Request parameters: | 1147 /// |
| 1123 * | 1148 /// [accountId] - The account the creative belongs to. |
| 1124 * [accountId] - The account the creative belongs to. | 1149 /// |
| 1125 * | 1150 /// [creativeId] - The ID of the creative associated with the deal. |
| 1126 * [creativeId] - The ID of the creative associated with the deal. | 1151 /// |
| 1127 * | 1152 /// Completes with a [Empty]. |
| 1128 * Completes with a [Empty]. | 1153 /// |
| 1129 * | 1154 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1130 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1155 /// an error. |
| 1131 * error. | 1156 /// |
| 1132 * | 1157 /// If the used [http.Client] completes with an error when making a REST |
| 1133 * If the used [http.Client] completes with an error when making a REST call, | 1158 /// call, this method will complete with the same error. |
| 1134 * this method will complete with the same error. | 1159 async.Future<Empty> remove(RemoveDealAssociationRequest request, |
| 1135 */ | 1160 core.String accountId, core.String creativeId) { |
| 1136 async.Future<Empty> remove(RemoveDealAssociationRequest request, core.String a
ccountId, core.String creativeId) { | |
| 1137 var _url = null; | 1161 var _url = null; |
| 1138 var _queryParams = new core.Map(); | 1162 var _queryParams = new core.Map(); |
| 1139 var _uploadMedia = null; | 1163 var _uploadMedia = null; |
| 1140 var _uploadOptions = null; | 1164 var _uploadOptions = null; |
| 1141 var _downloadOptions = commons.DownloadOptions.Metadata; | 1165 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1142 var _body = null; | 1166 var _body = null; |
| 1143 | 1167 |
| 1144 if (request != null) { | 1168 if (request != null) { |
| 1145 _body = convert.JSON.encode((request).toJson()); | 1169 _body = convert.JSON.encode((request).toJson()); |
| 1146 } | 1170 } |
| 1147 if (accountId == null) { | 1171 if (accountId == null) { |
| 1148 throw new core.ArgumentError("Parameter accountId is required."); | 1172 throw new core.ArgumentError("Parameter accountId is required."); |
| 1149 } | 1173 } |
| 1150 if (creativeId == null) { | 1174 if (creativeId == null) { |
| 1151 throw new core.ArgumentError("Parameter creativeId is required."); | 1175 throw new core.ArgumentError("Parameter creativeId is required."); |
| 1152 } | 1176 } |
| 1153 | 1177 |
| 1154 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations
:remove'; | 1178 _url = 'v2beta1/accounts/' + |
| 1179 commons.Escaper.ecapeVariable('$accountId') + |
| 1180 '/creatives/' + |
| 1181 commons.Escaper.ecapeVariable('$creativeId') + |
| 1182 '/dealAssociations:remove'; |
| 1155 | 1183 |
| 1156 var _response = _requester.request(_url, | 1184 var _response = _requester.request(_url, "POST", |
| 1157 "POST", | 1185 body: _body, |
| 1158 body: _body, | 1186 queryParams: _queryParams, |
| 1159 queryParams: _queryParams, | 1187 uploadOptions: _uploadOptions, |
| 1160 uploadOptions: _uploadOptions, | 1188 uploadMedia: _uploadMedia, |
| 1161 uploadMedia: _uploadMedia, | 1189 downloadOptions: _downloadOptions); |
| 1162 downloadOptions: _downloadOptions); | |
| 1163 return _response.then((data) => new Empty.fromJson(data)); | 1190 return _response.then((data) => new Empty.fromJson(data)); |
| 1164 } | 1191 } |
| 1165 | |
| 1166 } | 1192 } |
| 1167 | 1193 |
| 1168 | |
| 1169 class AccountsFilterSetsResourceApi { | 1194 class AccountsFilterSetsResourceApi { |
| 1170 final commons.ApiRequester _requester; | 1195 final commons.ApiRequester _requester; |
| 1171 | 1196 |
| 1172 AccountsFilterSetsBidMetricsResourceApi get bidMetrics => new AccountsFilterSe
tsBidMetricsResourceApi(_requester); | 1197 AccountsFilterSetsBidMetricsResourceApi get bidMetrics => |
| 1173 AccountsFilterSetsBidResponseErrorsResourceApi get bidResponseErrors => new Ac
countsFilterSetsBidResponseErrorsResourceApi(_requester); | 1198 new AccountsFilterSetsBidMetricsResourceApi(_requester); |
| 1174 AccountsFilterSetsBidResponsesWithoutBidsResourceApi get bidResponsesWithoutBi
ds => new AccountsFilterSetsBidResponsesWithoutBidsResourceApi(_requester); | 1199 AccountsFilterSetsBidResponseErrorsResourceApi get bidResponseErrors => |
| 1175 AccountsFilterSetsFilteredBidRequestsResourceApi get filteredBidRequests => ne
w AccountsFilterSetsFilteredBidRequestsResourceApi(_requester); | 1200 new AccountsFilterSetsBidResponseErrorsResourceApi(_requester); |
| 1176 AccountsFilterSetsFilteredBidsResourceApi get filteredBids => new AccountsFilt
erSetsFilteredBidsResourceApi(_requester); | 1201 AccountsFilterSetsBidResponsesWithoutBidsResourceApi |
| 1177 AccountsFilterSetsImpressionMetricsResourceApi get impressionMetrics => new Ac
countsFilterSetsImpressionMetricsResourceApi(_requester); | 1202 get bidResponsesWithoutBids => |
| 1178 AccountsFilterSetsLosingBidsResourceApi get losingBids => new AccountsFilterSe
tsLosingBidsResourceApi(_requester); | 1203 new AccountsFilterSetsBidResponsesWithoutBidsResourceApi(_requester); |
| 1179 AccountsFilterSetsNonBillableWinningBidsResourceApi get nonBillableWinningBids
=> new AccountsFilterSetsNonBillableWinningBidsResourceApi(_requester); | 1204 AccountsFilterSetsFilteredBidRequestsResourceApi get filteredBidRequests => |
| 1205 new AccountsFilterSetsFilteredBidRequestsResourceApi(_requester); |
| 1206 AccountsFilterSetsFilteredBidsResourceApi get filteredBids => |
| 1207 new AccountsFilterSetsFilteredBidsResourceApi(_requester); |
| 1208 AccountsFilterSetsImpressionMetricsResourceApi get impressionMetrics => |
| 1209 new AccountsFilterSetsImpressionMetricsResourceApi(_requester); |
| 1210 AccountsFilterSetsLosingBidsResourceApi get losingBids => |
| 1211 new AccountsFilterSetsLosingBidsResourceApi(_requester); |
| 1212 AccountsFilterSetsNonBillableWinningBidsResourceApi |
| 1213 get nonBillableWinningBids => |
| 1214 new AccountsFilterSetsNonBillableWinningBidsResourceApi(_requester); |
| 1180 | 1215 |
| 1181 AccountsFilterSetsResourceApi(commons.ApiRequester client) : | 1216 AccountsFilterSetsResourceApi(commons.ApiRequester client) |
| 1182 _requester = client; | 1217 : _requester = client; |
| 1183 | 1218 |
| 1184 /** | 1219 /// Creates the specified filter set for the account with the given account |
| 1185 * Creates the specified filter set for the account with the given account ID. | 1220 /// ID. |
| 1186 * | 1221 /// |
| 1187 * [request] - The metadata request object. | 1222 /// [request] - The metadata request object. |
| 1188 * | 1223 /// |
| 1189 * Request parameters: | 1224 /// Request parameters: |
| 1190 * | 1225 /// |
| 1191 * [accountId] - Account ID of the buyer. | 1226 /// [accountId] - Account ID of the buyer. |
| 1192 * | 1227 /// |
| 1193 * [isTransient] - Whether the filter set is transient, or should be persisted | 1228 /// [isTransient] - Whether the filter set is transient, or should be |
| 1194 * indefinitely. | 1229 /// persisted indefinitely. |
| 1195 * By default, filter sets are not transient. | 1230 /// By default, filter sets are not transient. |
| 1196 * If transient, it will be available for at least 1 hour after creation. | 1231 /// If transient, it will be available for at least 1 hour after creation. |
| 1197 * | 1232 /// |
| 1198 * Completes with a [FilterSet]. | 1233 /// Completes with a [FilterSet]. |
| 1199 * | 1234 /// |
| 1200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1235 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1201 * error. | 1236 /// an error. |
| 1202 * | 1237 /// |
| 1203 * If the used [http.Client] completes with an error when making a REST call, | 1238 /// If the used [http.Client] completes with an error when making a REST |
| 1204 * this method will complete with the same error. | 1239 /// call, this method will complete with the same error. |
| 1205 */ | 1240 async.Future<FilterSet> create(FilterSet request, core.String accountId, |
| 1206 async.Future<FilterSet> create(FilterSet request, core.String accountId, {core
.bool isTransient}) { | 1241 {core.bool isTransient}) { |
| 1207 var _url = null; | 1242 var _url = null; |
| 1208 var _queryParams = new core.Map(); | 1243 var _queryParams = new core.Map(); |
| 1209 var _uploadMedia = null; | 1244 var _uploadMedia = null; |
| 1210 var _uploadOptions = null; | 1245 var _uploadOptions = null; |
| 1211 var _downloadOptions = commons.DownloadOptions.Metadata; | 1246 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1212 var _body = null; | 1247 var _body = null; |
| 1213 | 1248 |
| 1214 if (request != null) { | 1249 if (request != null) { |
| 1215 _body = convert.JSON.encode((request).toJson()); | 1250 _body = convert.JSON.encode((request).toJson()); |
| 1216 } | 1251 } |
| 1217 if (accountId == null) { | 1252 if (accountId == null) { |
| 1218 throw new core.ArgumentError("Parameter accountId is required."); | 1253 throw new core.ArgumentError("Parameter accountId is required."); |
| 1219 } | 1254 } |
| 1220 if (isTransient != null) { | 1255 if (isTransient != null) { |
| 1221 _queryParams["isTransient"] = ["${isTransient}"]; | 1256 _queryParams["isTransient"] = ["${isTransient}"]; |
| 1222 } | 1257 } |
| 1223 | 1258 |
| 1224 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets'; | 1259 _url = 'v2beta1/accounts/' + |
| 1260 commons.Escaper.ecapeVariable('$accountId') + |
| 1261 '/filterSets'; |
| 1225 | 1262 |
| 1226 var _response = _requester.request(_url, | 1263 var _response = _requester.request(_url, "POST", |
| 1227 "POST", | 1264 body: _body, |
| 1228 body: _body, | 1265 queryParams: _queryParams, |
| 1229 queryParams: _queryParams, | 1266 uploadOptions: _uploadOptions, |
| 1230 uploadOptions: _uploadOptions, | 1267 uploadMedia: _uploadMedia, |
| 1231 uploadMedia: _uploadMedia, | 1268 downloadOptions: _downloadOptions); |
| 1232 downloadOptions: _downloadOptions); | |
| 1233 return _response.then((data) => new FilterSet.fromJson(data)); | 1269 return _response.then((data) => new FilterSet.fromJson(data)); |
| 1234 } | 1270 } |
| 1235 | 1271 |
| 1236 /** | 1272 /// Deletes the requested filter set from the account with the given account |
| 1237 * Deletes the requested filter set from the account with the given account | 1273 /// ID. |
| 1238 * ID. | 1274 /// |
| 1239 * | 1275 /// Request parameters: |
| 1240 * Request parameters: | 1276 /// |
| 1241 * | 1277 /// [accountId] - Account ID of the buyer. |
| 1242 * [accountId] - Account ID of the buyer. | 1278 /// |
| 1243 * | 1279 /// [filterSetId] - The ID of the filter set to delete. |
| 1244 * [filterSetId] - The ID of the filter set to delete. | 1280 /// |
| 1245 * | 1281 /// Completes with a [Empty]. |
| 1246 * Completes with a [Empty]. | 1282 /// |
| 1247 * | 1283 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1248 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1284 /// an error. |
| 1249 * error. | 1285 /// |
| 1250 * | 1286 /// If the used [http.Client] completes with an error when making a REST |
| 1251 * If the used [http.Client] completes with an error when making a REST call, | 1287 /// call, this method will complete with the same error. |
| 1252 * this method will complete with the same error. | |
| 1253 */ | |
| 1254 async.Future<Empty> delete(core.String accountId, core.String filterSetId) { | 1288 async.Future<Empty> delete(core.String accountId, core.String filterSetId) { |
| 1255 var _url = null; | 1289 var _url = null; |
| 1256 var _queryParams = new core.Map(); | 1290 var _queryParams = new core.Map(); |
| 1257 var _uploadMedia = null; | 1291 var _uploadMedia = null; |
| 1258 var _uploadOptions = null; | 1292 var _uploadOptions = null; |
| 1259 var _downloadOptions = commons.DownloadOptions.Metadata; | 1293 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1260 var _body = null; | 1294 var _body = null; |
| 1261 | 1295 |
| 1262 if (accountId == null) { | 1296 if (accountId == null) { |
| 1263 throw new core.ArgumentError("Parameter accountId is required."); | 1297 throw new core.ArgumentError("Parameter accountId is required."); |
| 1264 } | 1298 } |
| 1265 if (filterSetId == null) { | 1299 if (filterSetId == null) { |
| 1266 throw new core.ArgumentError("Parameter filterSetId is required."); | 1300 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1267 } | 1301 } |
| 1268 | 1302 |
| 1269 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId'); | 1303 _url = 'v2beta1/accounts/' + |
| 1304 commons.Escaper.ecapeVariable('$accountId') + |
| 1305 '/filterSets/' + |
| 1306 commons.Escaper.ecapeVariable('$filterSetId'); |
| 1270 | 1307 |
| 1271 var _response = _requester.request(_url, | 1308 var _response = _requester.request(_url, "DELETE", |
| 1272 "DELETE", | 1309 body: _body, |
| 1273 body: _body, | 1310 queryParams: _queryParams, |
| 1274 queryParams: _queryParams, | 1311 uploadOptions: _uploadOptions, |
| 1275 uploadOptions: _uploadOptions, | 1312 uploadMedia: _uploadMedia, |
| 1276 uploadMedia: _uploadMedia, | 1313 downloadOptions: _downloadOptions); |
| 1277 downloadOptions: _downloadOptions); | |
| 1278 return _response.then((data) => new Empty.fromJson(data)); | 1314 return _response.then((data) => new Empty.fromJson(data)); |
| 1279 } | 1315 } |
| 1280 | 1316 |
| 1281 /** | 1317 /// Retrieves the requested filter set for the account with the given account |
| 1282 * Retrieves the requested filter set for the account with the given account | 1318 /// ID. |
| 1283 * ID. | 1319 /// |
| 1284 * | 1320 /// Request parameters: |
| 1285 * Request parameters: | 1321 /// |
| 1286 * | 1322 /// [accountId] - Account ID of the buyer. |
| 1287 * [accountId] - Account ID of the buyer. | 1323 /// |
| 1288 * | 1324 /// [filterSetId] - The ID of the filter set to get. |
| 1289 * [filterSetId] - The ID of the filter set to get. | 1325 /// |
| 1290 * | 1326 /// Completes with a [FilterSet]. |
| 1291 * Completes with a [FilterSet]. | 1327 /// |
| 1292 * | 1328 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1329 /// an error. |
| 1294 * error. | 1330 /// |
| 1295 * | 1331 /// If the used [http.Client] completes with an error when making a REST |
| 1296 * If the used [http.Client] completes with an error when making a REST call, | 1332 /// call, this method will complete with the same error. |
| 1297 * this method will complete with the same error. | |
| 1298 */ | |
| 1299 async.Future<FilterSet> get(core.String accountId, core.String filterSetId) { | 1333 async.Future<FilterSet> get(core.String accountId, core.String filterSetId) { |
| 1300 var _url = null; | 1334 var _url = null; |
| 1301 var _queryParams = new core.Map(); | 1335 var _queryParams = new core.Map(); |
| 1302 var _uploadMedia = null; | 1336 var _uploadMedia = null; |
| 1303 var _uploadOptions = null; | 1337 var _uploadOptions = null; |
| 1304 var _downloadOptions = commons.DownloadOptions.Metadata; | 1338 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1305 var _body = null; | 1339 var _body = null; |
| 1306 | 1340 |
| 1307 if (accountId == null) { | 1341 if (accountId == null) { |
| 1308 throw new core.ArgumentError("Parameter accountId is required."); | 1342 throw new core.ArgumentError("Parameter accountId is required."); |
| 1309 } | 1343 } |
| 1310 if (filterSetId == null) { | 1344 if (filterSetId == null) { |
| 1311 throw new core.ArgumentError("Parameter filterSetId is required."); | 1345 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1312 } | 1346 } |
| 1313 | 1347 |
| 1314 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId'); | 1348 _url = 'v2beta1/accounts/' + |
| 1349 commons.Escaper.ecapeVariable('$accountId') + |
| 1350 '/filterSets/' + |
| 1351 commons.Escaper.ecapeVariable('$filterSetId'); |
| 1315 | 1352 |
| 1316 var _response = _requester.request(_url, | 1353 var _response = _requester.request(_url, "GET", |
| 1317 "GET", | 1354 body: _body, |
| 1318 body: _body, | 1355 queryParams: _queryParams, |
| 1319 queryParams: _queryParams, | 1356 uploadOptions: _uploadOptions, |
| 1320 uploadOptions: _uploadOptions, | 1357 uploadMedia: _uploadMedia, |
| 1321 uploadMedia: _uploadMedia, | 1358 downloadOptions: _downloadOptions); |
| 1322 downloadOptions: _downloadOptions); | |
| 1323 return _response.then((data) => new FilterSet.fromJson(data)); | 1359 return _response.then((data) => new FilterSet.fromJson(data)); |
| 1324 } | 1360 } |
| 1325 | 1361 |
| 1326 /** | 1362 /// Lists all filter sets for the account with the given account ID. |
| 1327 * Lists all filter sets for the account with the given account ID. | 1363 /// |
| 1328 * | 1364 /// Request parameters: |
| 1329 * Request parameters: | 1365 /// |
| 1330 * | 1366 /// [accountId] - Account ID of the buyer. |
| 1331 * [accountId] - Account ID of the buyer. | 1367 /// |
| 1332 * | 1368 /// [pageToken] - A token identifying a page of results the server should |
| 1333 * [pageToken] - A token identifying a page of results the server should | 1369 /// return. |
| 1334 * return. | 1370 /// Typically, this is the value of |
| 1335 * Typically, this is the value of | 1371 /// ListFilterSetsResponse.nextPageToken |
| 1336 * ListFilterSetsResponse.nextPageToken | 1372 /// returned from the previous call to the |
| 1337 * returned from the previous call to the | 1373 /// accounts.filterSets.list |
| 1338 * accounts.filterSets.list | 1374 /// method. |
| 1339 * method. | 1375 /// |
| 1340 * | 1376 /// [pageSize] - Requested page size. The server may return fewer results |
| 1341 * [pageSize] - Requested page size. The server may return fewer results than | 1377 /// than requested. |
| 1342 * requested. | 1378 /// If unspecified, the server will pick an appropriate default. |
| 1343 * If unspecified, the server will pick an appropriate default. | 1379 /// |
| 1344 * | 1380 /// Completes with a [ListFilterSetsResponse]. |
| 1345 * Completes with a [ListFilterSetsResponse]. | 1381 /// |
| 1346 * | 1382 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1347 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1383 /// an error. |
| 1348 * error. | 1384 /// |
| 1349 * | 1385 /// If the used [http.Client] completes with an error when making a REST |
| 1350 * If the used [http.Client] completes with an error when making a REST call, | 1386 /// call, this method will complete with the same error. |
| 1351 * this method will complete with the same error. | 1387 async.Future<ListFilterSetsResponse> list(core.String accountId, |
| 1352 */ | 1388 {core.String pageToken, core.int pageSize}) { |
| 1353 async.Future<ListFilterSetsResponse> list(core.String accountId, {core.String
pageToken, core.int pageSize}) { | |
| 1354 var _url = null; | 1389 var _url = null; |
| 1355 var _queryParams = new core.Map(); | 1390 var _queryParams = new core.Map(); |
| 1356 var _uploadMedia = null; | 1391 var _uploadMedia = null; |
| 1357 var _uploadOptions = null; | 1392 var _uploadOptions = null; |
| 1358 var _downloadOptions = commons.DownloadOptions.Metadata; | 1393 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1359 var _body = null; | 1394 var _body = null; |
| 1360 | 1395 |
| 1361 if (accountId == null) { | 1396 if (accountId == null) { |
| 1362 throw new core.ArgumentError("Parameter accountId is required."); | 1397 throw new core.ArgumentError("Parameter accountId is required."); |
| 1363 } | 1398 } |
| 1364 if (pageToken != null) { | 1399 if (pageToken != null) { |
| 1365 _queryParams["pageToken"] = [pageToken]; | 1400 _queryParams["pageToken"] = [pageToken]; |
| 1366 } | 1401 } |
| 1367 if (pageSize != null) { | 1402 if (pageSize != null) { |
| 1368 _queryParams["pageSize"] = ["${pageSize}"]; | 1403 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1369 } | 1404 } |
| 1370 | 1405 |
| 1371 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets'; | 1406 _url = 'v2beta1/accounts/' + |
| 1407 commons.Escaper.ecapeVariable('$accountId') + |
| 1408 '/filterSets'; |
| 1372 | 1409 |
| 1373 var _response = _requester.request(_url, | 1410 var _response = _requester.request(_url, "GET", |
| 1374 "GET", | 1411 body: _body, |
| 1375 body: _body, | 1412 queryParams: _queryParams, |
| 1376 queryParams: _queryParams, | 1413 uploadOptions: _uploadOptions, |
| 1377 uploadOptions: _uploadOptions, | 1414 uploadMedia: _uploadMedia, |
| 1378 uploadMedia: _uploadMedia, | 1415 downloadOptions: _downloadOptions); |
| 1379 downloadOptions: _downloadOptions); | |
| 1380 return _response.then((data) => new ListFilterSetsResponse.fromJson(data)); | 1416 return _response.then((data) => new ListFilterSetsResponse.fromJson(data)); |
| 1381 } | 1417 } |
| 1382 | |
| 1383 } | 1418 } |
| 1384 | 1419 |
| 1385 | |
| 1386 class AccountsFilterSetsBidMetricsResourceApi { | 1420 class AccountsFilterSetsBidMetricsResourceApi { |
| 1387 final commons.ApiRequester _requester; | 1421 final commons.ApiRequester _requester; |
| 1388 | 1422 |
| 1389 AccountsFilterSetsBidMetricsResourceApi(commons.ApiRequester client) : | 1423 AccountsFilterSetsBidMetricsResourceApi(commons.ApiRequester client) |
| 1390 _requester = client; | 1424 : _requester = client; |
| 1391 | 1425 |
| 1392 /** | 1426 /// Lists all metrics that are measured in terms of number of bids. |
| 1393 * Lists all metrics that are measured in terms of number of bids. | 1427 /// |
| 1394 * | 1428 /// Request parameters: |
| 1395 * Request parameters: | 1429 /// |
| 1396 * | 1430 /// [accountId] - Account ID of the buyer. |
| 1397 * [accountId] - Account ID of the buyer. | 1431 /// |
| 1398 * | 1432 /// [filterSetId] - The ID of the filter set to apply. |
| 1399 * [filterSetId] - The ID of the filter set to apply. | 1433 /// |
| 1400 * | 1434 /// [pageToken] - A token identifying a page of results the server should |
| 1401 * [pageSize] - Requested page size. The server may return fewer results than | 1435 /// return. |
| 1402 * requested. | 1436 /// Typically, this is the value of |
| 1403 * If unspecified, the server will pick an appropriate default. | 1437 /// ListBidMetricsResponse.nextPageToken |
| 1404 * | 1438 /// returned from the previous call to the |
| 1405 * [pageToken] - A token identifying a page of results the server should | 1439 /// accounts.filterSets.bidMetrics.list |
| 1406 * return. | 1440 /// method. |
| 1407 * Typically, this is the value of | 1441 /// |
| 1408 * ListBidMetricsResponse.nextPageToken | 1442 /// [pageSize] - Requested page size. The server may return fewer results |
| 1409 * returned from the previous call to the | 1443 /// than requested. |
| 1410 * accounts.filterSets.bidMetrics.list | 1444 /// If unspecified, the server will pick an appropriate default. |
| 1411 * method. | 1445 /// |
| 1412 * | 1446 /// Completes with a [ListBidMetricsResponse]. |
| 1413 * Completes with a [ListBidMetricsResponse]. | 1447 /// |
| 1414 * | 1448 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1449 /// an error. |
| 1416 * error. | 1450 /// |
| 1417 * | 1451 /// If the used [http.Client] completes with an error when making a REST |
| 1418 * If the used [http.Client] completes with an error when making a REST call, | 1452 /// call, this method will complete with the same error. |
| 1419 * this method will complete with the same error. | 1453 async.Future<ListBidMetricsResponse> list( |
| 1420 */ | 1454 core.String accountId, core.String filterSetId, |
| 1421 async.Future<ListBidMetricsResponse> list(core.String accountId, core.String f
ilterSetId, {core.int pageSize, core.String pageToken}) { | 1455 {core.String pageToken, core.int pageSize}) { |
| 1422 var _url = null; | 1456 var _url = null; |
| 1423 var _queryParams = new core.Map(); | 1457 var _queryParams = new core.Map(); |
| 1424 var _uploadMedia = null; | 1458 var _uploadMedia = null; |
| 1425 var _uploadOptions = null; | 1459 var _uploadOptions = null; |
| 1426 var _downloadOptions = commons.DownloadOptions.Metadata; | 1460 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1427 var _body = null; | 1461 var _body = null; |
| 1428 | 1462 |
| 1429 if (accountId == null) { | 1463 if (accountId == null) { |
| 1430 throw new core.ArgumentError("Parameter accountId is required."); | 1464 throw new core.ArgumentError("Parameter accountId is required."); |
| 1431 } | 1465 } |
| 1432 if (filterSetId == null) { | 1466 if (filterSetId == null) { |
| 1433 throw new core.ArgumentError("Parameter filterSetId is required."); | 1467 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1434 } | 1468 } |
| 1469 if (pageToken != null) { |
| 1470 _queryParams["pageToken"] = [pageToken]; |
| 1471 } |
| 1435 if (pageSize != null) { | 1472 if (pageSize != null) { |
| 1436 _queryParams["pageSize"] = ["${pageSize}"]; | 1473 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1437 } | 1474 } |
| 1438 if (pageToken != null) { | |
| 1439 _queryParams["pageToken"] = [pageToken]; | |
| 1440 } | |
| 1441 | 1475 |
| 1442 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidMetrics'; | 1476 _url = 'v2beta1/accounts/' + |
| 1477 commons.Escaper.ecapeVariable('$accountId') + |
| 1478 '/filterSets/' + |
| 1479 commons.Escaper.ecapeVariable('$filterSetId') + |
| 1480 '/bidMetrics'; |
| 1443 | 1481 |
| 1444 var _response = _requester.request(_url, | 1482 var _response = _requester.request(_url, "GET", |
| 1445 "GET", | 1483 body: _body, |
| 1446 body: _body, | 1484 queryParams: _queryParams, |
| 1447 queryParams: _queryParams, | 1485 uploadOptions: _uploadOptions, |
| 1448 uploadOptions: _uploadOptions, | 1486 uploadMedia: _uploadMedia, |
| 1449 uploadMedia: _uploadMedia, | 1487 downloadOptions: _downloadOptions); |
| 1450 downloadOptions: _downloadOptions); | |
| 1451 return _response.then((data) => new ListBidMetricsResponse.fromJson(data)); | 1488 return _response.then((data) => new ListBidMetricsResponse.fromJson(data)); |
| 1452 } | 1489 } |
| 1453 | |
| 1454 } | 1490 } |
| 1455 | 1491 |
| 1456 | |
| 1457 class AccountsFilterSetsBidResponseErrorsResourceApi { | 1492 class AccountsFilterSetsBidResponseErrorsResourceApi { |
| 1458 final commons.ApiRequester _requester; | 1493 final commons.ApiRequester _requester; |
| 1459 | 1494 |
| 1460 AccountsFilterSetsBidResponseErrorsResourceApi(commons.ApiRequester client) : | 1495 AccountsFilterSetsBidResponseErrorsResourceApi(commons.ApiRequester client) |
| 1461 _requester = client; | 1496 : _requester = client; |
| 1462 | 1497 |
| 1463 /** | 1498 /// List all errors that occurred in bid responses, with the number of bid |
| 1464 * List all errors that occurred in bid responses, with the number of bid | 1499 /// responses affected for each reason. |
| 1465 * responses affected for each reason. | 1500 /// |
| 1466 * | 1501 /// Request parameters: |
| 1467 * Request parameters: | 1502 /// |
| 1468 * | 1503 /// [accountId] - Account ID of the buyer. |
| 1469 * [accountId] - Account ID of the buyer. | 1504 /// |
| 1470 * | 1505 /// [filterSetId] - The ID of the filter set to apply. |
| 1471 * [filterSetId] - The ID of the filter set to apply. | 1506 /// |
| 1472 * | 1507 /// [pageToken] - A token identifying a page of results the server should |
| 1473 * [pageSize] - Requested page size. The server may return fewer results than | 1508 /// return. |
| 1474 * requested. | 1509 /// Typically, this is the value of |
| 1475 * If unspecified, the server will pick an appropriate default. | 1510 /// ListBidResponseErrorsResponse.nextPageToken |
| 1476 * | 1511 /// returned from the previous call to the |
| 1477 * [pageToken] - A token identifying a page of results the server should | 1512 /// accounts.filterSets.bidResponseErrors.list |
| 1478 * return. | 1513 /// method. |
| 1479 * Typically, this is the value of | 1514 /// |
| 1480 * ListBidResponseErrorsResponse.nextPageToken | 1515 /// [pageSize] - Requested page size. The server may return fewer results |
| 1481 * returned from the previous call to the | 1516 /// than requested. |
| 1482 * accounts.filterSets.bidResponseErrors.list | 1517 /// If unspecified, the server will pick an appropriate default. |
| 1483 * method. | 1518 /// |
| 1484 * | 1519 /// Completes with a [ListBidResponseErrorsResponse]. |
| 1485 * Completes with a [ListBidResponseErrorsResponse]. | 1520 /// |
| 1486 * | 1521 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1522 /// an error. |
| 1488 * error. | 1523 /// |
| 1489 * | 1524 /// If the used [http.Client] completes with an error when making a REST |
| 1490 * If the used [http.Client] completes with an error when making a REST call, | 1525 /// call, this method will complete with the same error. |
| 1491 * this method will complete with the same error. | 1526 async.Future<ListBidResponseErrorsResponse> list( |
| 1492 */ | 1527 core.String accountId, core.String filterSetId, |
| 1493 async.Future<ListBidResponseErrorsResponse> list(core.String accountId, core.S
tring filterSetId, {core.int pageSize, core.String pageToken}) { | 1528 {core.String pageToken, core.int pageSize}) { |
| 1494 var _url = null; | 1529 var _url = null; |
| 1495 var _queryParams = new core.Map(); | 1530 var _queryParams = new core.Map(); |
| 1496 var _uploadMedia = null; | 1531 var _uploadMedia = null; |
| 1497 var _uploadOptions = null; | 1532 var _uploadOptions = null; |
| 1498 var _downloadOptions = commons.DownloadOptions.Metadata; | 1533 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1499 var _body = null; | 1534 var _body = null; |
| 1500 | 1535 |
| 1501 if (accountId == null) { | 1536 if (accountId == null) { |
| 1502 throw new core.ArgumentError("Parameter accountId is required."); | 1537 throw new core.ArgumentError("Parameter accountId is required."); |
| 1503 } | 1538 } |
| 1504 if (filterSetId == null) { | 1539 if (filterSetId == null) { |
| 1505 throw new core.ArgumentError("Parameter filterSetId is required."); | 1540 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1506 } | 1541 } |
| 1542 if (pageToken != null) { |
| 1543 _queryParams["pageToken"] = [pageToken]; |
| 1544 } |
| 1507 if (pageSize != null) { | 1545 if (pageSize != null) { |
| 1508 _queryParams["pageSize"] = ["${pageSize}"]; | 1546 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1509 } | 1547 } |
| 1510 if (pageToken != null) { | |
| 1511 _queryParams["pageToken"] = [pageToken]; | |
| 1512 } | |
| 1513 | 1548 |
| 1514 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponseErr
ors'; | 1549 _url = 'v2beta1/accounts/' + |
| 1550 commons.Escaper.ecapeVariable('$accountId') + |
| 1551 '/filterSets/' + |
| 1552 commons.Escaper.ecapeVariable('$filterSetId') + |
| 1553 '/bidResponseErrors'; |
| 1515 | 1554 |
| 1516 var _response = _requester.request(_url, | 1555 var _response = _requester.request(_url, "GET", |
| 1517 "GET", | 1556 body: _body, |
| 1518 body: _body, | 1557 queryParams: _queryParams, |
| 1519 queryParams: _queryParams, | 1558 uploadOptions: _uploadOptions, |
| 1520 uploadOptions: _uploadOptions, | 1559 uploadMedia: _uploadMedia, |
| 1521 uploadMedia: _uploadMedia, | 1560 downloadOptions: _downloadOptions); |
| 1522 downloadOptions: _downloadOptions); | 1561 return _response |
| 1523 return _response.then((data) => new ListBidResponseErrorsResponse.fromJson(d
ata)); | 1562 .then((data) => new ListBidResponseErrorsResponse.fromJson(data)); |
| 1524 } | 1563 } |
| 1525 | |
| 1526 } | 1564 } |
| 1527 | 1565 |
| 1528 | |
| 1529 class AccountsFilterSetsBidResponsesWithoutBidsResourceApi { | 1566 class AccountsFilterSetsBidResponsesWithoutBidsResourceApi { |
| 1530 final commons.ApiRequester _requester; | 1567 final commons.ApiRequester _requester; |
| 1531 | 1568 |
| 1532 AccountsFilterSetsBidResponsesWithoutBidsResourceApi(commons.ApiRequester clie
nt) : | 1569 AccountsFilterSetsBidResponsesWithoutBidsResourceApi( |
| 1533 _requester = client; | 1570 commons.ApiRequester client) |
| 1571 : _requester = client; |
| 1534 | 1572 |
| 1535 /** | 1573 /// List all reasons for which bid responses were considered to have no |
| 1536 * List all reasons for which bid responses were considered to have no | 1574 /// applicable bids, with the number of bid responses affected for each |
| 1537 * applicable bids, with the number of bid responses affected for each reason. | 1575 /// reason. |
| 1538 * | 1576 /// |
| 1539 * Request parameters: | 1577 /// Request parameters: |
| 1540 * | 1578 /// |
| 1541 * [accountId] - Account ID of the buyer. | 1579 /// [accountId] - Account ID of the buyer. |
| 1542 * | 1580 /// |
| 1543 * [filterSetId] - The ID of the filter set to apply. | 1581 /// [filterSetId] - The ID of the filter set to apply. |
| 1544 * | 1582 /// |
| 1545 * [pageToken] - A token identifying a page of results the server should | 1583 /// [pageToken] - A token identifying a page of results the server should |
| 1546 * return. | 1584 /// return. |
| 1547 * Typically, this is the value of | 1585 /// Typically, this is the value of |
| 1548 * ListBidResponsesWithoutBidsResponse.nextPageToken | 1586 /// ListBidResponsesWithoutBidsResponse.nextPageToken |
| 1549 * returned from the previous call to the | 1587 /// returned from the previous call to the |
| 1550 * accounts.filterSets.bidResponsesWithoutBids.list | 1588 /// accounts.filterSets.bidResponsesWithoutBids.list |
| 1551 * method. | 1589 /// method. |
| 1552 * | 1590 /// |
| 1553 * [pageSize] - Requested page size. The server may return fewer results than | 1591 /// [pageSize] - Requested page size. The server may return fewer results |
| 1554 * requested. | 1592 /// than requested. |
| 1555 * If unspecified, the server will pick an appropriate default. | 1593 /// If unspecified, the server will pick an appropriate default. |
| 1556 * | 1594 /// |
| 1557 * Completes with a [ListBidResponsesWithoutBidsResponse]. | 1595 /// Completes with a [ListBidResponsesWithoutBidsResponse]. |
| 1558 * | 1596 /// |
| 1559 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1597 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1560 * error. | 1598 /// an error. |
| 1561 * | 1599 /// |
| 1562 * If the used [http.Client] completes with an error when making a REST call, | 1600 /// If the used [http.Client] completes with an error when making a REST |
| 1563 * this method will complete with the same error. | 1601 /// call, this method will complete with the same error. |
| 1564 */ | 1602 async.Future<ListBidResponsesWithoutBidsResponse> list( |
| 1565 async.Future<ListBidResponsesWithoutBidsResponse> list(core.String accountId,
core.String filterSetId, {core.String pageToken, core.int pageSize}) { | 1603 core.String accountId, core.String filterSetId, |
| 1604 {core.String pageToken, core.int pageSize}) { |
| 1566 var _url = null; | 1605 var _url = null; |
| 1567 var _queryParams = new core.Map(); | 1606 var _queryParams = new core.Map(); |
| 1568 var _uploadMedia = null; | 1607 var _uploadMedia = null; |
| 1569 var _uploadOptions = null; | 1608 var _uploadOptions = null; |
| 1570 var _downloadOptions = commons.DownloadOptions.Metadata; | 1609 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1571 var _body = null; | 1610 var _body = null; |
| 1572 | 1611 |
| 1573 if (accountId == null) { | 1612 if (accountId == null) { |
| 1574 throw new core.ArgumentError("Parameter accountId is required."); | 1613 throw new core.ArgumentError("Parameter accountId is required."); |
| 1575 } | 1614 } |
| 1576 if (filterSetId == null) { | 1615 if (filterSetId == null) { |
| 1577 throw new core.ArgumentError("Parameter filterSetId is required."); | 1616 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1578 } | 1617 } |
| 1579 if (pageToken != null) { | 1618 if (pageToken != null) { |
| 1580 _queryParams["pageToken"] = [pageToken]; | 1619 _queryParams["pageToken"] = [pageToken]; |
| 1581 } | 1620 } |
| 1582 if (pageSize != null) { | 1621 if (pageSize != null) { |
| 1583 _queryParams["pageSize"] = ["${pageSize}"]; | 1622 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1584 } | 1623 } |
| 1585 | 1624 |
| 1586 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/bidResponsesWi
thoutBids'; | 1625 _url = 'v2beta1/accounts/' + |
| 1626 commons.Escaper.ecapeVariable('$accountId') + |
| 1627 '/filterSets/' + |
| 1628 commons.Escaper.ecapeVariable('$filterSetId') + |
| 1629 '/bidResponsesWithoutBids'; |
| 1587 | 1630 |
| 1588 var _response = _requester.request(_url, | 1631 var _response = _requester.request(_url, "GET", |
| 1589 "GET", | 1632 body: _body, |
| 1590 body: _body, | 1633 queryParams: _queryParams, |
| 1591 queryParams: _queryParams, | 1634 uploadOptions: _uploadOptions, |
| 1592 uploadOptions: _uploadOptions, | 1635 uploadMedia: _uploadMedia, |
| 1593 uploadMedia: _uploadMedia, | 1636 downloadOptions: _downloadOptions); |
| 1594 downloadOptions: _downloadOptions); | 1637 return _response |
| 1595 return _response.then((data) => new ListBidResponsesWithoutBidsResponse.from
Json(data)); | 1638 .then((data) => new ListBidResponsesWithoutBidsResponse.fromJson(data)); |
| 1596 } | 1639 } |
| 1597 | |
| 1598 } | 1640 } |
| 1599 | 1641 |
| 1600 | |
| 1601 class AccountsFilterSetsFilteredBidRequestsResourceApi { | 1642 class AccountsFilterSetsFilteredBidRequestsResourceApi { |
| 1602 final commons.ApiRequester _requester; | 1643 final commons.ApiRequester _requester; |
| 1603 | 1644 |
| 1604 AccountsFilterSetsFilteredBidRequestsResourceApi(commons.ApiRequester client)
: | 1645 AccountsFilterSetsFilteredBidRequestsResourceApi(commons.ApiRequester client) |
| 1605 _requester = client; | 1646 : _requester = client; |
| 1606 | 1647 |
| 1607 /** | 1648 /// List all reasons that caused a bid request not to be sent for an |
| 1608 * List all reasons that caused a bid request not to be sent for an | 1649 /// impression, with the number of bid requests not sent for each reason. |
| 1609 * impression, with the number of bid requests not sent for each reason. | 1650 /// |
| 1610 * | 1651 /// Request parameters: |
| 1611 * Request parameters: | 1652 /// |
| 1612 * | 1653 /// [accountId] - Account ID of the buyer. |
| 1613 * [accountId] - Account ID of the buyer. | 1654 /// |
| 1614 * | 1655 /// [filterSetId] - The ID of the filter set to apply. |
| 1615 * [filterSetId] - The ID of the filter set to apply. | 1656 /// |
| 1616 * | 1657 /// [pageToken] - A token identifying a page of results the server should |
| 1617 * [pageSize] - Requested page size. The server may return fewer results than | 1658 /// return. |
| 1618 * requested. | 1659 /// Typically, this is the value of |
| 1619 * If unspecified, the server will pick an appropriate default. | 1660 /// ListFilteredBidRequestsResponse.nextPageToken |
| 1620 * | 1661 /// returned from the previous call to the |
| 1621 * [pageToken] - A token identifying a page of results the server should | 1662 /// accounts.filterSets.filteredBidRequests.list |
| 1622 * return. | 1663 /// method. |
| 1623 * Typically, this is the value of | 1664 /// |
| 1624 * ListFilteredBidRequestsResponse.nextPageToken | 1665 /// [pageSize] - Requested page size. The server may return fewer results |
| 1625 * returned from the previous call to the | 1666 /// than requested. |
| 1626 * accounts.filterSets.filteredBidRequests.list | 1667 /// If unspecified, the server will pick an appropriate default. |
| 1627 * method. | 1668 /// |
| 1628 * | 1669 /// Completes with a [ListFilteredBidRequestsResponse]. |
| 1629 * Completes with a [ListFilteredBidRequestsResponse]. | 1670 /// |
| 1630 * | 1671 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1631 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1672 /// an error. |
| 1632 * error. | 1673 /// |
| 1633 * | 1674 /// If the used [http.Client] completes with an error when making a REST |
| 1634 * If the used [http.Client] completes with an error when making a REST call, | 1675 /// call, this method will complete with the same error. |
| 1635 * this method will complete with the same error. | 1676 async.Future<ListFilteredBidRequestsResponse> list( |
| 1636 */ | 1677 core.String accountId, core.String filterSetId, |
| 1637 async.Future<ListFilteredBidRequestsResponse> list(core.String accountId, core
.String filterSetId, {core.int pageSize, core.String pageToken}) { | 1678 {core.String pageToken, core.int pageSize}) { |
| 1638 var _url = null; | 1679 var _url = null; |
| 1639 var _queryParams = new core.Map(); | 1680 var _queryParams = new core.Map(); |
| 1640 var _uploadMedia = null; | 1681 var _uploadMedia = null; |
| 1641 var _uploadOptions = null; | 1682 var _uploadOptions = null; |
| 1642 var _downloadOptions = commons.DownloadOptions.Metadata; | 1683 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1643 var _body = null; | 1684 var _body = null; |
| 1644 | 1685 |
| 1645 if (accountId == null) { | 1686 if (accountId == null) { |
| 1646 throw new core.ArgumentError("Parameter accountId is required."); | 1687 throw new core.ArgumentError("Parameter accountId is required."); |
| 1647 } | 1688 } |
| 1648 if (filterSetId == null) { | 1689 if (filterSetId == null) { |
| 1649 throw new core.ArgumentError("Parameter filterSetId is required."); | 1690 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1650 } | 1691 } |
| 1692 if (pageToken != null) { |
| 1693 _queryParams["pageToken"] = [pageToken]; |
| 1694 } |
| 1651 if (pageSize != null) { | 1695 if (pageSize != null) { |
| 1652 _queryParams["pageSize"] = ["${pageSize}"]; | 1696 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1653 } | 1697 } |
| 1654 if (pageToken != null) { | |
| 1655 _queryParams["pageToken"] = [pageToken]; | |
| 1656 } | |
| 1657 | 1698 |
| 1658 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBidReq
uests'; | 1699 _url = 'v2beta1/accounts/' + |
| 1700 commons.Escaper.ecapeVariable('$accountId') + |
| 1701 '/filterSets/' + |
| 1702 commons.Escaper.ecapeVariable('$filterSetId') + |
| 1703 '/filteredBidRequests'; |
| 1659 | 1704 |
| 1660 var _response = _requester.request(_url, | 1705 var _response = _requester.request(_url, "GET", |
| 1661 "GET", | 1706 body: _body, |
| 1662 body: _body, | 1707 queryParams: _queryParams, |
| 1663 queryParams: _queryParams, | 1708 uploadOptions: _uploadOptions, |
| 1664 uploadOptions: _uploadOptions, | 1709 uploadMedia: _uploadMedia, |
| 1665 uploadMedia: _uploadMedia, | 1710 downloadOptions: _downloadOptions); |
| 1666 downloadOptions: _downloadOptions); | 1711 return _response |
| 1667 return _response.then((data) => new ListFilteredBidRequestsResponse.fromJson
(data)); | 1712 .then((data) => new ListFilteredBidRequestsResponse.fromJson(data)); |
| 1668 } | 1713 } |
| 1669 | |
| 1670 } | 1714 } |
| 1671 | 1715 |
| 1672 | |
| 1673 class AccountsFilterSetsFilteredBidsResourceApi { | 1716 class AccountsFilterSetsFilteredBidsResourceApi { |
| 1674 final commons.ApiRequester _requester; | 1717 final commons.ApiRequester _requester; |
| 1675 | 1718 |
| 1676 AccountsFilterSetsFilteredBidsCreativesResourceApi get creatives => new Accoun
tsFilterSetsFilteredBidsCreativesResourceApi(_requester); | 1719 AccountsFilterSetsFilteredBidsCreativesResourceApi get creatives => |
| 1677 AccountsFilterSetsFilteredBidsDetailsResourceApi get details => new AccountsFi
lterSetsFilteredBidsDetailsResourceApi(_requester); | 1720 new AccountsFilterSetsFilteredBidsCreativesResourceApi(_requester); |
| 1721 AccountsFilterSetsFilteredBidsDetailsResourceApi get details => |
| 1722 new AccountsFilterSetsFilteredBidsDetailsResourceApi(_requester); |
| 1678 | 1723 |
| 1679 AccountsFilterSetsFilteredBidsResourceApi(commons.ApiRequester client) : | 1724 AccountsFilterSetsFilteredBidsResourceApi(commons.ApiRequester client) |
| 1680 _requester = client; | 1725 : _requester = client; |
| 1681 | 1726 |
| 1682 /** | 1727 /// List all reasons for which bids were filtered, with the number of bids |
| 1683 * List all reasons for which bids were filtered, with the number of bids | 1728 /// filtered for each reason. |
| 1684 * filtered for each reason. | 1729 /// |
| 1685 * | 1730 /// Request parameters: |
| 1686 * Request parameters: | 1731 /// |
| 1687 * | 1732 /// [accountId] - Account ID of the buyer. |
| 1688 * [accountId] - Account ID of the buyer. | 1733 /// |
| 1689 * | 1734 /// [filterSetId] - The ID of the filter set to apply. |
| 1690 * [filterSetId] - The ID of the filter set to apply. | 1735 /// |
| 1691 * | 1736 /// [pageToken] - A token identifying a page of results the server should |
| 1692 * [pageToken] - A token identifying a page of results the server should | 1737 /// return. |
| 1693 * return. | 1738 /// Typically, this is the value of |
| 1694 * Typically, this is the value of | 1739 /// ListFilteredBidsResponse.nextPageToken |
| 1695 * ListFilteredBidsResponse.nextPageToken | 1740 /// returned from the previous call to the |
| 1696 * returned from the previous call to the | 1741 /// accounts.filterSets.filteredBids.list |
| 1697 * accounts.filterSets.filteredBids.list | 1742 /// method. |
| 1698 * method. | 1743 /// |
| 1699 * | 1744 /// [pageSize] - Requested page size. The server may return fewer results |
| 1700 * [pageSize] - Requested page size. The server may return fewer results than | 1745 /// than requested. |
| 1701 * requested. | 1746 /// If unspecified, the server will pick an appropriate default. |
| 1702 * If unspecified, the server will pick an appropriate default. | 1747 /// |
| 1703 * | 1748 /// Completes with a [ListFilteredBidsResponse]. |
| 1704 * Completes with a [ListFilteredBidsResponse]. | 1749 /// |
| 1705 * | 1750 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1751 /// an error. |
| 1707 * error. | 1752 /// |
| 1708 * | 1753 /// If the used [http.Client] completes with an error when making a REST |
| 1709 * If the used [http.Client] completes with an error when making a REST call, | 1754 /// call, this method will complete with the same error. |
| 1710 * this method will complete with the same error. | 1755 async.Future<ListFilteredBidsResponse> list( |
| 1711 */ | 1756 core.String accountId, core.String filterSetId, |
| 1712 async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String
filterSetId, {core.String pageToken, core.int pageSize}) { | 1757 {core.String pageToken, core.int pageSize}) { |
| 1713 var _url = null; | 1758 var _url = null; |
| 1714 var _queryParams = new core.Map(); | 1759 var _queryParams = new core.Map(); |
| 1715 var _uploadMedia = null; | 1760 var _uploadMedia = null; |
| 1716 var _uploadOptions = null; | 1761 var _uploadOptions = null; |
| 1717 var _downloadOptions = commons.DownloadOptions.Metadata; | 1762 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1718 var _body = null; | 1763 var _body = null; |
| 1719 | 1764 |
| 1720 if (accountId == null) { | 1765 if (accountId == null) { |
| 1721 throw new core.ArgumentError("Parameter accountId is required."); | 1766 throw new core.ArgumentError("Parameter accountId is required."); |
| 1722 } | 1767 } |
| 1723 if (filterSetId == null) { | 1768 if (filterSetId == null) { |
| 1724 throw new core.ArgumentError("Parameter filterSetId is required."); | 1769 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1725 } | 1770 } |
| 1726 if (pageToken != null) { | 1771 if (pageToken != null) { |
| 1727 _queryParams["pageToken"] = [pageToken]; | 1772 _queryParams["pageToken"] = [pageToken]; |
| 1728 } | 1773 } |
| 1729 if (pageSize != null) { | 1774 if (pageSize != null) { |
| 1730 _queryParams["pageSize"] = ["${pageSize}"]; | 1775 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1731 } | 1776 } |
| 1732 | 1777 |
| 1733 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; | 1778 _url = 'v2beta1/accounts/' + |
| 1779 commons.Escaper.ecapeVariable('$accountId') + |
| 1780 '/filterSets/' + |
| 1781 commons.Escaper.ecapeVariable('$filterSetId') + |
| 1782 '/filteredBids'; |
| 1734 | 1783 |
| 1735 var _response = _requester.request(_url, | 1784 var _response = _requester.request(_url, "GET", |
| 1736 "GET", | 1785 body: _body, |
| 1737 body: _body, | 1786 queryParams: _queryParams, |
| 1738 queryParams: _queryParams, | 1787 uploadOptions: _uploadOptions, |
| 1739 uploadOptions: _uploadOptions, | 1788 uploadMedia: _uploadMedia, |
| 1740 uploadMedia: _uploadMedia, | 1789 downloadOptions: _downloadOptions); |
| 1741 downloadOptions: _downloadOptions); | 1790 return _response |
| 1742 return _response.then((data) => new ListFilteredBidsResponse.fromJson(data))
; | 1791 .then((data) => new ListFilteredBidsResponse.fromJson(data)); |
| 1743 } | 1792 } |
| 1744 | |
| 1745 } | 1793 } |
| 1746 | 1794 |
| 1747 | |
| 1748 class AccountsFilterSetsFilteredBidsCreativesResourceApi { | 1795 class AccountsFilterSetsFilteredBidsCreativesResourceApi { |
| 1749 final commons.ApiRequester _requester; | 1796 final commons.ApiRequester _requester; |
| 1750 | 1797 |
| 1751 AccountsFilterSetsFilteredBidsCreativesResourceApi(commons.ApiRequester client
) : | 1798 AccountsFilterSetsFilteredBidsCreativesResourceApi( |
| 1752 _requester = client; | 1799 commons.ApiRequester client) |
| 1800 : _requester = client; |
| 1753 | 1801 |
| 1754 /** | 1802 /// List all creatives associated with a specific reason for which bids were |
| 1755 * List all creatives associated with a specific reason for which bids were | 1803 /// filtered, with the number of bids filtered for each creative. |
| 1756 * filtered, with the number of bids filtered for each creative. | 1804 /// |
| 1757 * | 1805 /// Request parameters: |
| 1758 * Request parameters: | 1806 /// |
| 1759 * | 1807 /// [accountId] - Account ID of the buyer. |
| 1760 * [accountId] - Account ID of the buyer. | 1808 /// |
| 1761 * | 1809 /// [filterSetId] - The ID of the filter set to apply. |
| 1762 * [filterSetId] - The ID of the filter set to apply. | 1810 /// |
| 1763 * | 1811 /// [creativeStatusId] - The ID of the creative status for which to retrieve |
| 1764 * [creativeStatusId] - The ID of the creative status for which to retrieve a | 1812 /// a breakdown by |
| 1765 * breakdown by | 1813 /// creative. |
| 1766 * creative. | 1814 /// See |
| 1767 * See | 1815 /// [creative-status-codes](https://developers.google.com/ad-exchange/rtb/down
loads/creative-status-codes). |
| 1768 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 1816 /// |
| 1769 * | 1817 /// [pageToken] - A token identifying a page of results the server should |
| 1770 * [pageToken] - A token identifying a page of results the server should | 1818 /// return. |
| 1771 * return. | 1819 /// Typically, this is the value of |
| 1772 * Typically, this is the value of | 1820 /// ListCreativeStatusBreakdownByCreativeResponse.nextPageToken |
| 1773 * ListCreativeStatusBreakdownByCreativeResponse.nextPageToken | 1821 /// returned from the previous call to the |
| 1774 * returned from the previous call to the | 1822 /// accounts.filterSets.filteredBids.creatives.list |
| 1775 * accounts.filterSets.filteredBids.creatives.list | 1823 /// method. |
| 1776 * method. | 1824 /// |
| 1777 * | 1825 /// [pageSize] - Requested page size. The server may return fewer results |
| 1778 * [pageSize] - Requested page size. The server may return fewer results than | 1826 /// than requested. |
| 1779 * requested. | 1827 /// If unspecified, the server will pick an appropriate default. |
| 1780 * If unspecified, the server will pick an appropriate default. | 1828 /// |
| 1781 * | 1829 /// Completes with a [ListCreativeStatusBreakdownByCreativeResponse]. |
| 1782 * Completes with a [ListCreativeStatusBreakdownByCreativeResponse]. | 1830 /// |
| 1783 * | 1831 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1784 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1832 /// an error. |
| 1785 * error. | 1833 /// |
| 1786 * | 1834 /// If the used [http.Client] completes with an error when making a REST |
| 1787 * If the used [http.Client] completes with an error when making a REST call, | 1835 /// call, this method will complete with the same error. |
| 1788 * this method will complete with the same error. | 1836 async.Future<ListCreativeStatusBreakdownByCreativeResponse> list( |
| 1789 */ | 1837 core.String accountId, core.String filterSetId, core.int creativeStatusId, |
| 1790 async.Future<ListCreativeStatusBreakdownByCreativeResponse> list(core.String a
ccountId, core.String filterSetId, core.int creativeStatusId, {core.String pageT
oken, core.int pageSize}) { | 1838 {core.String pageToken, core.int pageSize}) { |
| 1791 var _url = null; | 1839 var _url = null; |
| 1792 var _queryParams = new core.Map(); | 1840 var _queryParams = new core.Map(); |
| 1793 var _uploadMedia = null; | 1841 var _uploadMedia = null; |
| 1794 var _uploadOptions = null; | 1842 var _uploadOptions = null; |
| 1795 var _downloadOptions = commons.DownloadOptions.Metadata; | 1843 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1796 var _body = null; | 1844 var _body = null; |
| 1797 | 1845 |
| 1798 if (accountId == null) { | 1846 if (accountId == null) { |
| 1799 throw new core.ArgumentError("Parameter accountId is required."); | 1847 throw new core.ArgumentError("Parameter accountId is required."); |
| 1800 } | 1848 } |
| 1801 if (filterSetId == null) { | 1849 if (filterSetId == null) { |
| 1802 throw new core.ArgumentError("Parameter filterSetId is required."); | 1850 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1803 } | 1851 } |
| 1804 if (creativeStatusId == null) { | 1852 if (creativeStatusId == null) { |
| 1805 throw new core.ArgumentError("Parameter creativeStatusId is required."); | 1853 throw new core.ArgumentError("Parameter creativeStatusId is required."); |
| 1806 } | 1854 } |
| 1807 if (pageToken != null) { | 1855 if (pageToken != null) { |
| 1808 _queryParams["pageToken"] = [pageToken]; | 1856 _queryParams["pageToken"] = [pageToken]; |
| 1809 } | 1857 } |
| 1810 if (pageSize != null) { | 1858 if (pageSize != null) { |
| 1811 _queryParams["pageSize"] = ["${pageSize}"]; | 1859 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1812 } | 1860 } |
| 1813 | 1861 |
| 1814 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/'
+ commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives'; | 1862 _url = 'v2beta1/accounts/' + |
| 1863 commons.Escaper.ecapeVariable('$accountId') + |
| 1864 '/filterSets/' + |
| 1865 commons.Escaper.ecapeVariable('$filterSetId') + |
| 1866 '/filteredBids/' + |
| 1867 commons.Escaper.ecapeVariable('$creativeStatusId') + |
| 1868 '/creatives'; |
| 1815 | 1869 |
| 1816 var _response = _requester.request(_url, | 1870 var _response = _requester.request(_url, "GET", |
| 1817 "GET", | 1871 body: _body, |
| 1818 body: _body, | 1872 queryParams: _queryParams, |
| 1819 queryParams: _queryParams, | 1873 uploadOptions: _uploadOptions, |
| 1820 uploadOptions: _uploadOptions, | 1874 uploadMedia: _uploadMedia, |
| 1821 uploadMedia: _uploadMedia, | 1875 downloadOptions: _downloadOptions); |
| 1822 downloadOptions: _downloadOptions); | 1876 return _response.then((data) => |
| 1823 return _response.then((data) => new ListCreativeStatusBreakdownByCreativeRes
ponse.fromJson(data)); | 1877 new ListCreativeStatusBreakdownByCreativeResponse.fromJson(data)); |
| 1824 } | 1878 } |
| 1825 | |
| 1826 } | 1879 } |
| 1827 | 1880 |
| 1828 | |
| 1829 class AccountsFilterSetsFilteredBidsDetailsResourceApi { | 1881 class AccountsFilterSetsFilteredBidsDetailsResourceApi { |
| 1830 final commons.ApiRequester _requester; | 1882 final commons.ApiRequester _requester; |
| 1831 | 1883 |
| 1832 AccountsFilterSetsFilteredBidsDetailsResourceApi(commons.ApiRequester client)
: | 1884 AccountsFilterSetsFilteredBidsDetailsResourceApi(commons.ApiRequester client) |
| 1833 _requester = client; | 1885 : _requester = client; |
| 1834 | 1886 |
| 1835 /** | 1887 /// List all details associated with a specific reason for which bids were |
| 1836 * List all details associated with a specific reason for which bids were | 1888 /// filtered, with the number of bids filtered for each detail. |
| 1837 * filtered, with the number of bids filtered for each detail. | 1889 /// |
| 1838 * | 1890 /// Request parameters: |
| 1839 * Request parameters: | 1891 /// |
| 1840 * | 1892 /// [accountId] - Account ID of the buyer. |
| 1841 * [accountId] - Account ID of the buyer. | 1893 /// |
| 1842 * | 1894 /// [filterSetId] - The ID of the filter set to apply. |
| 1843 * [filterSetId] - The ID of the filter set to apply. | 1895 /// |
| 1844 * | 1896 /// [creativeStatusId] - The ID of the creative status for which to retrieve |
| 1845 * [creativeStatusId] - The ID of the creative status for which to retrieve a | 1897 /// a breakdown by detail. |
| 1846 * breakdown by detail. | 1898 /// See |
| 1847 * See | 1899 /// [creative-status-codes](https://developers.google.com/ad-exchange/rtb/down
loads/creative-status-codes). |
| 1848 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 1900 /// Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and |
| 1849 * Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87. | 1901 /// 87. |
| 1850 * | 1902 /// |
| 1851 * [pageToken] - A token identifying a page of results the server should | 1903 /// [pageSize] - Requested page size. The server may return fewer results |
| 1852 * return. | 1904 /// than requested. |
| 1853 * Typically, this is the value of | 1905 /// If unspecified, the server will pick an appropriate default. |
| 1854 * ListCreativeStatusBreakdownByDetailResponse.nextPageToken | 1906 /// |
| 1855 * returned from the previous call to the | 1907 /// [pageToken] - A token identifying a page of results the server should |
| 1856 * accounts.filterSets.filteredBids.details.list | 1908 /// return. |
| 1857 * method. | 1909 /// Typically, this is the value of |
| 1858 * | 1910 /// ListCreativeStatusBreakdownByDetailResponse.nextPageToken |
| 1859 * [pageSize] - Requested page size. The server may return fewer results than | 1911 /// returned from the previous call to the |
| 1860 * requested. | 1912 /// accounts.filterSets.filteredBids.details.list |
| 1861 * If unspecified, the server will pick an appropriate default. | 1913 /// method. |
| 1862 * | 1914 /// |
| 1863 * Completes with a [ListCreativeStatusBreakdownByDetailResponse]. | 1915 /// Completes with a [ListCreativeStatusBreakdownByDetailResponse]. |
| 1864 * | 1916 /// |
| 1865 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1917 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1866 * error. | 1918 /// an error. |
| 1867 * | 1919 /// |
| 1868 * If the used [http.Client] completes with an error when making a REST call, | 1920 /// If the used [http.Client] completes with an error when making a REST |
| 1869 * this method will complete with the same error. | 1921 /// call, this method will complete with the same error. |
| 1870 */ | 1922 async.Future<ListCreativeStatusBreakdownByDetailResponse> list( |
| 1871 async.Future<ListCreativeStatusBreakdownByDetailResponse> list(core.String acc
ountId, core.String filterSetId, core.int creativeStatusId, {core.String pageTok
en, core.int pageSize}) { | 1923 core.String accountId, core.String filterSetId, core.int creativeStatusId, |
| 1924 {core.int pageSize, core.String pageToken}) { |
| 1872 var _url = null; | 1925 var _url = null; |
| 1873 var _queryParams = new core.Map(); | 1926 var _queryParams = new core.Map(); |
| 1874 var _uploadMedia = null; | 1927 var _uploadMedia = null; |
| 1875 var _uploadOptions = null; | 1928 var _uploadOptions = null; |
| 1876 var _downloadOptions = commons.DownloadOptions.Metadata; | 1929 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1877 var _body = null; | 1930 var _body = null; |
| 1878 | 1931 |
| 1879 if (accountId == null) { | 1932 if (accountId == null) { |
| 1880 throw new core.ArgumentError("Parameter accountId is required."); | 1933 throw new core.ArgumentError("Parameter accountId is required."); |
| 1881 } | 1934 } |
| 1882 if (filterSetId == null) { | 1935 if (filterSetId == null) { |
| 1883 throw new core.ArgumentError("Parameter filterSetId is required."); | 1936 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1884 } | 1937 } |
| 1885 if (creativeStatusId == null) { | 1938 if (creativeStatusId == null) { |
| 1886 throw new core.ArgumentError("Parameter creativeStatusId is required."); | 1939 throw new core.ArgumentError("Parameter creativeStatusId is required."); |
| 1887 } | 1940 } |
| 1941 if (pageSize != null) { |
| 1942 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1943 } |
| 1888 if (pageToken != null) { | 1944 if (pageToken != null) { |
| 1889 _queryParams["pageToken"] = [pageToken]; | 1945 _queryParams["pageToken"] = [pageToken]; |
| 1890 } | 1946 } |
| 1891 if (pageSize != null) { | |
| 1892 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1893 } | |
| 1894 | 1947 |
| 1895 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/'
+ commons.Escaper.ecapeVariable('$creativeStatusId') + '/details'; | 1948 _url = 'v2beta1/accounts/' + |
| 1949 commons.Escaper.ecapeVariable('$accountId') + |
| 1950 '/filterSets/' + |
| 1951 commons.Escaper.ecapeVariable('$filterSetId') + |
| 1952 '/filteredBids/' + |
| 1953 commons.Escaper.ecapeVariable('$creativeStatusId') + |
| 1954 '/details'; |
| 1896 | 1955 |
| 1897 var _response = _requester.request(_url, | 1956 var _response = _requester.request(_url, "GET", |
| 1898 "GET", | 1957 body: _body, |
| 1899 body: _body, | 1958 queryParams: _queryParams, |
| 1900 queryParams: _queryParams, | 1959 uploadOptions: _uploadOptions, |
| 1901 uploadOptions: _uploadOptions, | 1960 uploadMedia: _uploadMedia, |
| 1902 uploadMedia: _uploadMedia, | 1961 downloadOptions: _downloadOptions); |
| 1903 downloadOptions: _downloadOptions); | 1962 return _response.then((data) => |
| 1904 return _response.then((data) => new ListCreativeStatusBreakdownByDetailRespo
nse.fromJson(data)); | 1963 new ListCreativeStatusBreakdownByDetailResponse.fromJson(data)); |
| 1905 } | 1964 } |
| 1906 | |
| 1907 } | 1965 } |
| 1908 | 1966 |
| 1909 | |
| 1910 class AccountsFilterSetsImpressionMetricsResourceApi { | 1967 class AccountsFilterSetsImpressionMetricsResourceApi { |
| 1911 final commons.ApiRequester _requester; | 1968 final commons.ApiRequester _requester; |
| 1912 | 1969 |
| 1913 AccountsFilterSetsImpressionMetricsResourceApi(commons.ApiRequester client) : | 1970 AccountsFilterSetsImpressionMetricsResourceApi(commons.ApiRequester client) |
| 1914 _requester = client; | 1971 : _requester = client; |
| 1915 | 1972 |
| 1916 /** | 1973 /// Lists all metrics that are measured in terms of number of impressions. |
| 1917 * Lists all metrics that are measured in terms of number of impressions. | 1974 /// |
| 1918 * | 1975 /// Request parameters: |
| 1919 * Request parameters: | 1976 /// |
| 1920 * | 1977 /// [accountId] - Account ID of the buyer. |
| 1921 * [accountId] - Account ID of the buyer. | 1978 /// |
| 1922 * | 1979 /// [filterSetId] - The ID of the filter set to apply. |
| 1923 * [filterSetId] - The ID of the filter set to apply. | 1980 /// |
| 1924 * | 1981 /// [pageSize] - Requested page size. The server may return fewer results |
| 1925 * [pageToken] - A token identifying a page of results the server should | 1982 /// than requested. |
| 1926 * return. | 1983 /// If unspecified, the server will pick an appropriate default. |
| 1927 * Typically, this is the value of | 1984 /// |
| 1928 * ListImpressionMetricsResponse.nextPageToken | 1985 /// [pageToken] - A token identifying a page of results the server should |
| 1929 * returned from the previous call to the | 1986 /// return. |
| 1930 * accounts.filterSets.impressionMetrics.list | 1987 /// Typically, this is the value of |
| 1931 * method. | 1988 /// ListImpressionMetricsResponse.nextPageToken |
| 1932 * | 1989 /// returned from the previous call to the |
| 1933 * [pageSize] - Requested page size. The server may return fewer results than | 1990 /// accounts.filterSets.impressionMetrics.list |
| 1934 * requested. | 1991 /// method. |
| 1935 * If unspecified, the server will pick an appropriate default. | 1992 /// |
| 1936 * | 1993 /// Completes with a [ListImpressionMetricsResponse]. |
| 1937 * Completes with a [ListImpressionMetricsResponse]. | 1994 /// |
| 1938 * | 1995 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1939 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1996 /// an error. |
| 1940 * error. | 1997 /// |
| 1941 * | 1998 /// If the used [http.Client] completes with an error when making a REST |
| 1942 * If the used [http.Client] completes with an error when making a REST call, | 1999 /// call, this method will complete with the same error. |
| 1943 * this method will complete with the same error. | 2000 async.Future<ListImpressionMetricsResponse> list( |
| 1944 */ | 2001 core.String accountId, core.String filterSetId, |
| 1945 async.Future<ListImpressionMetricsResponse> list(core.String accountId, core.S
tring filterSetId, {core.String pageToken, core.int pageSize}) { | 2002 {core.int pageSize, core.String pageToken}) { |
| 1946 var _url = null; | 2003 var _url = null; |
| 1947 var _queryParams = new core.Map(); | 2004 var _queryParams = new core.Map(); |
| 1948 var _uploadMedia = null; | 2005 var _uploadMedia = null; |
| 1949 var _uploadOptions = null; | 2006 var _uploadOptions = null; |
| 1950 var _downloadOptions = commons.DownloadOptions.Metadata; | 2007 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1951 var _body = null; | 2008 var _body = null; |
| 1952 | 2009 |
| 1953 if (accountId == null) { | 2010 if (accountId == null) { |
| 1954 throw new core.ArgumentError("Parameter accountId is required."); | 2011 throw new core.ArgumentError("Parameter accountId is required."); |
| 1955 } | 2012 } |
| 1956 if (filterSetId == null) { | 2013 if (filterSetId == null) { |
| 1957 throw new core.ArgumentError("Parameter filterSetId is required."); | 2014 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 1958 } | 2015 } |
| 2016 if (pageSize != null) { |
| 2017 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2018 } |
| 1959 if (pageToken != null) { | 2019 if (pageToken != null) { |
| 1960 _queryParams["pageToken"] = [pageToken]; | 2020 _queryParams["pageToken"] = [pageToken]; |
| 1961 } | 2021 } |
| 1962 if (pageSize != null) { | |
| 1963 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1964 } | |
| 1965 | 2022 |
| 1966 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/impressionMetr
ics'; | 2023 _url = 'v2beta1/accounts/' + |
| 2024 commons.Escaper.ecapeVariable('$accountId') + |
| 2025 '/filterSets/' + |
| 2026 commons.Escaper.ecapeVariable('$filterSetId') + |
| 2027 '/impressionMetrics'; |
| 1967 | 2028 |
| 1968 var _response = _requester.request(_url, | 2029 var _response = _requester.request(_url, "GET", |
| 1969 "GET", | 2030 body: _body, |
| 1970 body: _body, | 2031 queryParams: _queryParams, |
| 1971 queryParams: _queryParams, | 2032 uploadOptions: _uploadOptions, |
| 1972 uploadOptions: _uploadOptions, | 2033 uploadMedia: _uploadMedia, |
| 1973 uploadMedia: _uploadMedia, | 2034 downloadOptions: _downloadOptions); |
| 1974 downloadOptions: _downloadOptions); | 2035 return _response |
| 1975 return _response.then((data) => new ListImpressionMetricsResponse.fromJson(d
ata)); | 2036 .then((data) => new ListImpressionMetricsResponse.fromJson(data)); |
| 1976 } | 2037 } |
| 1977 | |
| 1978 } | 2038 } |
| 1979 | 2039 |
| 1980 | |
| 1981 class AccountsFilterSetsLosingBidsResourceApi { | 2040 class AccountsFilterSetsLosingBidsResourceApi { |
| 1982 final commons.ApiRequester _requester; | 2041 final commons.ApiRequester _requester; |
| 1983 | 2042 |
| 1984 AccountsFilterSetsLosingBidsResourceApi(commons.ApiRequester client) : | 2043 AccountsFilterSetsLosingBidsResourceApi(commons.ApiRequester client) |
| 1985 _requester = client; | 2044 : _requester = client; |
| 1986 | 2045 |
| 1987 /** | 2046 /// List all reasons for which bids lost in the auction, with the number of |
| 1988 * List all reasons for which bids lost in the auction, with the number of | 2047 /// bids that lost for each reason. |
| 1989 * bids that lost for each reason. | 2048 /// |
| 1990 * | 2049 /// Request parameters: |
| 1991 * Request parameters: | 2050 /// |
| 1992 * | 2051 /// [accountId] - Account ID of the buyer. |
| 1993 * [accountId] - Account ID of the buyer. | 2052 /// |
| 1994 * | 2053 /// [filterSetId] - The ID of the filter set to apply. |
| 1995 * [filterSetId] - The ID of the filter set to apply. | 2054 /// |
| 1996 * | 2055 /// [pageToken] - A token identifying a page of results the server should |
| 1997 * [pageSize] - Requested page size. The server may return fewer results than | 2056 /// return. |
| 1998 * requested. | 2057 /// Typically, this is the value of |
| 1999 * If unspecified, the server will pick an appropriate default. | 2058 /// ListLosingBidsResponse.nextPageToken |
| 2000 * | 2059 /// returned from the previous call to the |
| 2001 * [pageToken] - A token identifying a page of results the server should | 2060 /// accounts.filterSets.losingBids.list |
| 2002 * return. | 2061 /// method. |
| 2003 * Typically, this is the value of | 2062 /// |
| 2004 * ListLosingBidsResponse.nextPageToken | 2063 /// [pageSize] - Requested page size. The server may return fewer results |
| 2005 * returned from the previous call to the | 2064 /// than requested. |
| 2006 * accounts.filterSets.losingBids.list | 2065 /// If unspecified, the server will pick an appropriate default. |
| 2007 * method. | 2066 /// |
| 2008 * | 2067 /// Completes with a [ListLosingBidsResponse]. |
| 2009 * Completes with a [ListLosingBidsResponse]. | 2068 /// |
| 2010 * | 2069 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2070 /// an error. |
| 2012 * error. | 2071 /// |
| 2013 * | 2072 /// If the used [http.Client] completes with an error when making a REST |
| 2014 * If the used [http.Client] completes with an error when making a REST call, | 2073 /// call, this method will complete with the same error. |
| 2015 * this method will complete with the same error. | 2074 async.Future<ListLosingBidsResponse> list( |
| 2016 */ | 2075 core.String accountId, core.String filterSetId, |
| 2017 async.Future<ListLosingBidsResponse> list(core.String accountId, core.String f
ilterSetId, {core.int pageSize, core.String pageToken}) { | 2076 {core.String pageToken, core.int pageSize}) { |
| 2018 var _url = null; | 2077 var _url = null; |
| 2019 var _queryParams = new core.Map(); | 2078 var _queryParams = new core.Map(); |
| 2020 var _uploadMedia = null; | 2079 var _uploadMedia = null; |
| 2021 var _uploadOptions = null; | 2080 var _uploadOptions = null; |
| 2022 var _downloadOptions = commons.DownloadOptions.Metadata; | 2081 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2023 var _body = null; | 2082 var _body = null; |
| 2024 | 2083 |
| 2025 if (accountId == null) { | 2084 if (accountId == null) { |
| 2026 throw new core.ArgumentError("Parameter accountId is required."); | 2085 throw new core.ArgumentError("Parameter accountId is required."); |
| 2027 } | 2086 } |
| 2028 if (filterSetId == null) { | 2087 if (filterSetId == null) { |
| 2029 throw new core.ArgumentError("Parameter filterSetId is required."); | 2088 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2030 } | 2089 } |
| 2090 if (pageToken != null) { |
| 2091 _queryParams["pageToken"] = [pageToken]; |
| 2092 } |
| 2031 if (pageSize != null) { | 2093 if (pageSize != null) { |
| 2032 _queryParams["pageSize"] = ["${pageSize}"]; | 2094 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2033 } | 2095 } |
| 2034 if (pageToken != null) { | |
| 2035 _queryParams["pageToken"] = [pageToken]; | |
| 2036 } | |
| 2037 | 2096 |
| 2038 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/losingBids'; | 2097 _url = 'v2beta1/accounts/' + |
| 2098 commons.Escaper.ecapeVariable('$accountId') + |
| 2099 '/filterSets/' + |
| 2100 commons.Escaper.ecapeVariable('$filterSetId') + |
| 2101 '/losingBids'; |
| 2039 | 2102 |
| 2040 var _response = _requester.request(_url, | 2103 var _response = _requester.request(_url, "GET", |
| 2041 "GET", | 2104 body: _body, |
| 2042 body: _body, | 2105 queryParams: _queryParams, |
| 2043 queryParams: _queryParams, | 2106 uploadOptions: _uploadOptions, |
| 2044 uploadOptions: _uploadOptions, | 2107 uploadMedia: _uploadMedia, |
| 2045 uploadMedia: _uploadMedia, | 2108 downloadOptions: _downloadOptions); |
| 2046 downloadOptions: _downloadOptions); | |
| 2047 return _response.then((data) => new ListLosingBidsResponse.fromJson(data)); | 2109 return _response.then((data) => new ListLosingBidsResponse.fromJson(data)); |
| 2048 } | 2110 } |
| 2049 | |
| 2050 } | 2111 } |
| 2051 | 2112 |
| 2052 | |
| 2053 class AccountsFilterSetsNonBillableWinningBidsResourceApi { | 2113 class AccountsFilterSetsNonBillableWinningBidsResourceApi { |
| 2054 final commons.ApiRequester _requester; | 2114 final commons.ApiRequester _requester; |
| 2055 | 2115 |
| 2056 AccountsFilterSetsNonBillableWinningBidsResourceApi(commons.ApiRequester clien
t) : | 2116 AccountsFilterSetsNonBillableWinningBidsResourceApi( |
| 2057 _requester = client; | 2117 commons.ApiRequester client) |
| 2118 : _requester = client; |
| 2058 | 2119 |
| 2059 /** | 2120 /// List all reasons for which winning bids were not billable, with the |
| 2060 * List all reasons for which winning bids were not billable, with the number | 2121 /// number |
| 2061 * of bids not billed for each reason. | 2122 /// of bids not billed for each reason. |
| 2062 * | 2123 /// |
| 2063 * Request parameters: | 2124 /// Request parameters: |
| 2064 * | 2125 /// |
| 2065 * [accountId] - Account ID of the buyer. | 2126 /// [accountId] - Account ID of the buyer. |
| 2066 * | 2127 /// |
| 2067 * [filterSetId] - The ID of the filter set to apply. | 2128 /// [filterSetId] - The ID of the filter set to apply. |
| 2068 * | 2129 /// |
| 2069 * [pageToken] - A token identifying a page of results the server should | 2130 /// [pageToken] - A token identifying a page of results the server should |
| 2070 * return. | 2131 /// return. |
| 2071 * Typically, this is the value of | 2132 /// Typically, this is the value of |
| 2072 * ListNonBillableWinningBidsResponse.nextPageToken | 2133 /// ListNonBillableWinningBidsResponse.nextPageToken |
| 2073 * returned from the previous call to the | 2134 /// returned from the previous call to the |
| 2074 * accounts.filterSets.nonBillableWinningBids.list | 2135 /// accounts.filterSets.nonBillableWinningBids.list |
| 2075 * method. | 2136 /// method. |
| 2076 * | 2137 /// |
| 2077 * [pageSize] - Requested page size. The server may return fewer results than | 2138 /// [pageSize] - Requested page size. The server may return fewer results |
| 2078 * requested. | 2139 /// than requested. |
| 2079 * If unspecified, the server will pick an appropriate default. | 2140 /// If unspecified, the server will pick an appropriate default. |
| 2080 * | 2141 /// |
| 2081 * Completes with a [ListNonBillableWinningBidsResponse]. | 2142 /// Completes with a [ListNonBillableWinningBidsResponse]. |
| 2082 * | 2143 /// |
| 2083 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2144 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2084 * error. | 2145 /// an error. |
| 2085 * | 2146 /// |
| 2086 * If the used [http.Client] completes with an error when making a REST call, | 2147 /// If the used [http.Client] completes with an error when making a REST |
| 2087 * this method will complete with the same error. | 2148 /// call, this method will complete with the same error. |
| 2088 */ | 2149 async.Future<ListNonBillableWinningBidsResponse> list( |
| 2089 async.Future<ListNonBillableWinningBidsResponse> list(core.String accountId, c
ore.String filterSetId, {core.String pageToken, core.int pageSize}) { | 2150 core.String accountId, core.String filterSetId, |
| 2151 {core.String pageToken, core.int pageSize}) { |
| 2090 var _url = null; | 2152 var _url = null; |
| 2091 var _queryParams = new core.Map(); | 2153 var _queryParams = new core.Map(); |
| 2092 var _uploadMedia = null; | 2154 var _uploadMedia = null; |
| 2093 var _uploadOptions = null; | 2155 var _uploadOptions = null; |
| 2094 var _downloadOptions = commons.DownloadOptions.Metadata; | 2156 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2095 var _body = null; | 2157 var _body = null; |
| 2096 | 2158 |
| 2097 if (accountId == null) { | 2159 if (accountId == null) { |
| 2098 throw new core.ArgumentError("Parameter accountId is required."); | 2160 throw new core.ArgumentError("Parameter accountId is required."); |
| 2099 } | 2161 } |
| 2100 if (filterSetId == null) { | 2162 if (filterSetId == null) { |
| 2101 throw new core.ArgumentError("Parameter filterSetId is required."); | 2163 throw new core.ArgumentError("Parameter filterSetId is required."); |
| 2102 } | 2164 } |
| 2103 if (pageToken != null) { | 2165 if (pageToken != null) { |
| 2104 _queryParams["pageToken"] = [pageToken]; | 2166 _queryParams["pageToken"] = [pageToken]; |
| 2105 } | 2167 } |
| 2106 if (pageSize != null) { | 2168 if (pageSize != null) { |
| 2107 _queryParams["pageSize"] = ["${pageSize}"]; | 2169 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2108 } | 2170 } |
| 2109 | 2171 |
| 2110 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/nonBillableWin
ningBids'; | 2172 _url = 'v2beta1/accounts/' + |
| 2173 commons.Escaper.ecapeVariable('$accountId') + |
| 2174 '/filterSets/' + |
| 2175 commons.Escaper.ecapeVariable('$filterSetId') + |
| 2176 '/nonBillableWinningBids'; |
| 2111 | 2177 |
| 2112 var _response = _requester.request(_url, | 2178 var _response = _requester.request(_url, "GET", |
| 2113 "GET", | 2179 body: _body, |
| 2114 body: _body, | 2180 queryParams: _queryParams, |
| 2115 queryParams: _queryParams, | 2181 uploadOptions: _uploadOptions, |
| 2116 uploadOptions: _uploadOptions, | 2182 uploadMedia: _uploadMedia, |
| 2117 uploadMedia: _uploadMedia, | 2183 downloadOptions: _downloadOptions); |
| 2118 downloadOptions: _downloadOptions); | 2184 return _response |
| 2119 return _response.then((data) => new ListNonBillableWinningBidsResponse.fromJ
son(data)); | 2185 .then((data) => new ListNonBillableWinningBidsResponse.fromJson(data)); |
| 2120 } | 2186 } |
| 2121 | |
| 2122 } | 2187 } |
| 2123 | 2188 |
| 2189 /// An absolute date range, specified by its start date and end date. |
| 2190 /// The supported range of dates begins 30 days before today and ends today. |
| 2191 /// Validity checked upon filter set creation. If a filter set with an absolute |
| 2192 /// date range is run at a later date more than 30 days after start_date, it |
| 2193 /// will |
| 2194 /// fail. |
| 2195 class AbsoluteDateRange { |
| 2196 /// The end date of the range (inclusive). |
| 2197 /// Must be within the 30 days leading up to current date, and must be equal |
| 2198 /// to |
| 2199 /// or after start_date. |
| 2200 Date endDate; |
| 2124 | 2201 |
| 2125 | 2202 /// The start date of the range (inclusive). |
| 2126 /** | 2203 /// Must be within the 30 days leading up to current date, and must be equal |
| 2127 * An absolute date range, specified by its start date and end date. | 2204 /// to |
| 2128 * The supported range of dates begins 30 days before today and ends today. | 2205 /// or before end_date. |
| 2129 * Validity checked upon filter set creation. If a filter set with an absolute | |
| 2130 * date range is run at a later date more than 30 days after start_date, it will | |
| 2131 * fail. | |
| 2132 */ | |
| 2133 class AbsoluteDateRange { | |
| 2134 /** | |
| 2135 * The end date of the range (inclusive). | |
| 2136 * Must be within the 30 days leading up to current date, and must be equal to | |
| 2137 * or after start_date. | |
| 2138 */ | |
| 2139 Date endDate; | |
| 2140 /** | |
| 2141 * The start date of the range (inclusive). | |
| 2142 * Must be within the 30 days leading up to current date, and must be equal to | |
| 2143 * or before end_date. | |
| 2144 */ | |
| 2145 Date startDate; | 2206 Date startDate; |
| 2146 | 2207 |
| 2147 AbsoluteDateRange(); | 2208 AbsoluteDateRange(); |
| 2148 | 2209 |
| 2149 AbsoluteDateRange.fromJson(core.Map _json) { | 2210 AbsoluteDateRange.fromJson(core.Map _json) { |
| 2150 if (_json.containsKey("endDate")) { | 2211 if (_json.containsKey("endDate")) { |
| 2151 endDate = new Date.fromJson(_json["endDate"]); | 2212 endDate = new Date.fromJson(_json["endDate"]); |
| 2152 } | 2213 } |
| 2153 if (_json.containsKey("startDate")) { | 2214 if (_json.containsKey("startDate")) { |
| 2154 startDate = new Date.fromJson(_json["startDate"]); | 2215 startDate = new Date.fromJson(_json["startDate"]); |
| 2155 } | 2216 } |
| 2156 } | 2217 } |
| 2157 | 2218 |
| 2158 core.Map<core.String, core.Object> toJson() { | 2219 core.Map<core.String, core.Object> toJson() { |
| 2159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2220 final core.Map<core.String, core.Object> _json = |
| 2221 new core.Map<core.String, core.Object>(); |
| 2160 if (endDate != null) { | 2222 if (endDate != null) { |
| 2161 _json["endDate"] = (endDate).toJson(); | 2223 _json["endDate"] = (endDate).toJson(); |
| 2162 } | 2224 } |
| 2163 if (startDate != null) { | 2225 if (startDate != null) { |
| 2164 _json["startDate"] = (startDate).toJson(); | 2226 _json["startDate"] = (startDate).toJson(); |
| 2165 } | 2227 } |
| 2166 return _json; | 2228 return _json; |
| 2167 } | 2229 } |
| 2168 } | 2230 } |
| 2169 | 2231 |
| 2170 /** A request for associating a deal and a creative. */ | 2232 /// A request for associating a deal and a creative. |
| 2171 class AddDealAssociationRequest { | 2233 class AddDealAssociationRequest { |
| 2172 /** The association between a creative and a deal that should be added. */ | 2234 /// The association between a creative and a deal that should be added. |
| 2173 CreativeDealAssociation association; | 2235 CreativeDealAssociation association; |
| 2174 | 2236 |
| 2175 AddDealAssociationRequest(); | 2237 AddDealAssociationRequest(); |
| 2176 | 2238 |
| 2177 AddDealAssociationRequest.fromJson(core.Map _json) { | 2239 AddDealAssociationRequest.fromJson(core.Map _json) { |
| 2178 if (_json.containsKey("association")) { | 2240 if (_json.containsKey("association")) { |
| 2179 association = new CreativeDealAssociation.fromJson(_json["association"]); | 2241 association = new CreativeDealAssociation.fromJson(_json["association"]); |
| 2180 } | 2242 } |
| 2181 } | 2243 } |
| 2182 | 2244 |
| 2183 core.Map<core.String, core.Object> toJson() { | 2245 core.Map<core.String, core.Object> toJson() { |
| 2184 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2246 final core.Map<core.String, core.Object> _json = |
| 2247 new core.Map<core.String, core.Object>(); |
| 2185 if (association != null) { | 2248 if (association != null) { |
| 2186 _json["association"] = (association).toJson(); | 2249 _json["association"] = (association).toJson(); |
| 2187 } | 2250 } |
| 2188 return _json; | 2251 return _json; |
| 2189 } | 2252 } |
| 2190 } | 2253 } |
| 2191 | 2254 |
| 2192 /** @OutputOnly The app type the restriction applies to for mobile device. */ | 2255 /// @OutputOnly The app type the restriction applies to for mobile device. |
| 2193 class AppContext { | 2256 class AppContext { |
| 2194 /** The app types this restriction applies to. */ | 2257 /// The app types this restriction applies to. |
| 2195 core.List<core.String> appTypes; | 2258 core.List<core.String> appTypes; |
| 2196 | 2259 |
| 2197 AppContext(); | 2260 AppContext(); |
| 2198 | 2261 |
| 2199 AppContext.fromJson(core.Map _json) { | 2262 AppContext.fromJson(core.Map _json) { |
| 2200 if (_json.containsKey("appTypes")) { | 2263 if (_json.containsKey("appTypes")) { |
| 2201 appTypes = _json["appTypes"]; | 2264 appTypes = _json["appTypes"]; |
| 2202 } | 2265 } |
| 2203 } | 2266 } |
| 2204 | 2267 |
| 2205 core.Map<core.String, core.Object> toJson() { | 2268 core.Map<core.String, core.Object> toJson() { |
| 2206 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2269 final core.Map<core.String, core.Object> _json = |
| 2270 new core.Map<core.String, core.Object>(); |
| 2207 if (appTypes != null) { | 2271 if (appTypes != null) { |
| 2208 _json["appTypes"] = appTypes; | 2272 _json["appTypes"] = appTypes; |
| 2209 } | 2273 } |
| 2210 return _json; | 2274 return _json; |
| 2211 } | 2275 } |
| 2212 } | 2276 } |
| 2213 | 2277 |
| 2214 /** @OutputOnly The auction type the restriction applies to. */ | 2278 /// @OutputOnly The auction type the restriction applies to. |
| 2215 class AuctionContext { | 2279 class AuctionContext { |
| 2216 /** The auction types this restriction applies to. */ | 2280 /// The auction types this restriction applies to. |
| 2217 core.List<core.String> auctionTypes; | 2281 core.List<core.String> auctionTypes; |
| 2218 | 2282 |
| 2219 AuctionContext(); | 2283 AuctionContext(); |
| 2220 | 2284 |
| 2221 AuctionContext.fromJson(core.Map _json) { | 2285 AuctionContext.fromJson(core.Map _json) { |
| 2222 if (_json.containsKey("auctionTypes")) { | 2286 if (_json.containsKey("auctionTypes")) { |
| 2223 auctionTypes = _json["auctionTypes"]; | 2287 auctionTypes = _json["auctionTypes"]; |
| 2224 } | 2288 } |
| 2225 } | 2289 } |
| 2226 | 2290 |
| 2227 core.Map<core.String, core.Object> toJson() { | 2291 core.Map<core.String, core.Object> toJson() { |
| 2228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2292 final core.Map<core.String, core.Object> _json = |
| 2293 new core.Map<core.String, core.Object>(); |
| 2229 if (auctionTypes != null) { | 2294 if (auctionTypes != null) { |
| 2230 _json["auctionTypes"] = auctionTypes; | 2295 _json["auctionTypes"] = auctionTypes; |
| 2231 } | 2296 } |
| 2232 return _json; | 2297 return _json; |
| 2233 } | 2298 } |
| 2234 } | 2299 } |
| 2235 | 2300 |
| 2236 /** | 2301 /// The set of metrics that are measured in numbers of bids, representing how |
| 2237 * The set of metrics that are measured in numbers of bids, representing how | 2302 /// many bids with the specified dimension values were considered eligible at |
| 2238 * many bids with the specified dimension values were considered eligible at | 2303 /// each stage of the bidding funnel; |
| 2239 * each stage of the bidding funnel; | |
| 2240 */ | |
| 2241 class BidMetricsRow { | 2304 class BidMetricsRow { |
| 2242 /** The number of bids that Ad Exchange received from the buyer. */ | 2305 /// The number of bids that Ad Exchange received from the buyer. |
| 2243 MetricValue bids; | 2306 MetricValue bids; |
| 2244 /** The number of bids that were permitted to compete in the auction. */ | 2307 |
| 2308 /// The number of bids that were permitted to compete in the auction. |
| 2245 MetricValue bidsInAuction; | 2309 MetricValue bidsInAuction; |
| 2246 /** The number of bids for which the buyer was billed. */ | 2310 |
| 2311 /// The number of bids for which the buyer was billed. |
| 2247 MetricValue billedImpressions; | 2312 MetricValue billedImpressions; |
| 2248 /** The number of bids that won an impression. */ | 2313 |
| 2314 /// The number of bids that won an impression. |
| 2249 MetricValue impressionsWon; | 2315 MetricValue impressionsWon; |
| 2250 /** | 2316 |
| 2251 * The number of bids for which the corresponding impression was measurable | 2317 /// The number of bids for which the corresponding impression was measurable |
| 2252 * for viewability (as defined by Active View). | 2318 /// for viewability (as defined by Active View). |
| 2253 */ | |
| 2254 MetricValue measurableImpressions; | 2319 MetricValue measurableImpressions; |
| 2255 /** | 2320 |
| 2256 * The values of all dimensions associated with metric values in this row. | 2321 /// The values of all dimensions associated with metric values in this row. |
| 2257 */ | |
| 2258 RowDimensions rowDimensions; | 2322 RowDimensions rowDimensions; |
| 2259 /** | 2323 |
| 2260 * The number of bids for which the corresponding impression was viewable (as | 2324 /// The number of bids for which the corresponding impression was viewable |
| 2261 * defined by Active View). | 2325 /// (as |
| 2262 */ | 2326 /// defined by Active View). |
| 2263 MetricValue viewableImpressions; | 2327 MetricValue viewableImpressions; |
| 2264 | 2328 |
| 2265 BidMetricsRow(); | 2329 BidMetricsRow(); |
| 2266 | 2330 |
| 2267 BidMetricsRow.fromJson(core.Map _json) { | 2331 BidMetricsRow.fromJson(core.Map _json) { |
| 2268 if (_json.containsKey("bids")) { | 2332 if (_json.containsKey("bids")) { |
| 2269 bids = new MetricValue.fromJson(_json["bids"]); | 2333 bids = new MetricValue.fromJson(_json["bids"]); |
| 2270 } | 2334 } |
| 2271 if (_json.containsKey("bidsInAuction")) { | 2335 if (_json.containsKey("bidsInAuction")) { |
| 2272 bidsInAuction = new MetricValue.fromJson(_json["bidsInAuction"]); | 2336 bidsInAuction = new MetricValue.fromJson(_json["bidsInAuction"]); |
| 2273 } | 2337 } |
| 2274 if (_json.containsKey("billedImpressions")) { | 2338 if (_json.containsKey("billedImpressions")) { |
| 2275 billedImpressions = new MetricValue.fromJson(_json["billedImpressions"]); | 2339 billedImpressions = new MetricValue.fromJson(_json["billedImpressions"]); |
| 2276 } | 2340 } |
| 2277 if (_json.containsKey("impressionsWon")) { | 2341 if (_json.containsKey("impressionsWon")) { |
| 2278 impressionsWon = new MetricValue.fromJson(_json["impressionsWon"]); | 2342 impressionsWon = new MetricValue.fromJson(_json["impressionsWon"]); |
| 2279 } | 2343 } |
| 2280 if (_json.containsKey("measurableImpressions")) { | 2344 if (_json.containsKey("measurableImpressions")) { |
| 2281 measurableImpressions = new MetricValue.fromJson(_json["measurableImpressi
ons"]); | 2345 measurableImpressions = |
| 2346 new MetricValue.fromJson(_json["measurableImpressions"]); |
| 2282 } | 2347 } |
| 2283 if (_json.containsKey("rowDimensions")) { | 2348 if (_json.containsKey("rowDimensions")) { |
| 2284 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 2349 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 2285 } | 2350 } |
| 2286 if (_json.containsKey("viewableImpressions")) { | 2351 if (_json.containsKey("viewableImpressions")) { |
| 2287 viewableImpressions = new MetricValue.fromJson(_json["viewableImpressions"
]); | 2352 viewableImpressions = |
| 2353 new MetricValue.fromJson(_json["viewableImpressions"]); |
| 2288 } | 2354 } |
| 2289 } | 2355 } |
| 2290 | 2356 |
| 2291 core.Map<core.String, core.Object> toJson() { | 2357 core.Map<core.String, core.Object> toJson() { |
| 2292 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2358 final core.Map<core.String, core.Object> _json = |
| 2359 new core.Map<core.String, core.Object>(); |
| 2293 if (bids != null) { | 2360 if (bids != null) { |
| 2294 _json["bids"] = (bids).toJson(); | 2361 _json["bids"] = (bids).toJson(); |
| 2295 } | 2362 } |
| 2296 if (bidsInAuction != null) { | 2363 if (bidsInAuction != null) { |
| 2297 _json["bidsInAuction"] = (bidsInAuction).toJson(); | 2364 _json["bidsInAuction"] = (bidsInAuction).toJson(); |
| 2298 } | 2365 } |
| 2299 if (billedImpressions != null) { | 2366 if (billedImpressions != null) { |
| 2300 _json["billedImpressions"] = (billedImpressions).toJson(); | 2367 _json["billedImpressions"] = (billedImpressions).toJson(); |
| 2301 } | 2368 } |
| 2302 if (impressionsWon != null) { | 2369 if (impressionsWon != null) { |
| 2303 _json["impressionsWon"] = (impressionsWon).toJson(); | 2370 _json["impressionsWon"] = (impressionsWon).toJson(); |
| 2304 } | 2371 } |
| 2305 if (measurableImpressions != null) { | 2372 if (measurableImpressions != null) { |
| 2306 _json["measurableImpressions"] = (measurableImpressions).toJson(); | 2373 _json["measurableImpressions"] = (measurableImpressions).toJson(); |
| 2307 } | 2374 } |
| 2308 if (rowDimensions != null) { | 2375 if (rowDimensions != null) { |
| 2309 _json["rowDimensions"] = (rowDimensions).toJson(); | 2376 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 2310 } | 2377 } |
| 2311 if (viewableImpressions != null) { | 2378 if (viewableImpressions != null) { |
| 2312 _json["viewableImpressions"] = (viewableImpressions).toJson(); | 2379 _json["viewableImpressions"] = (viewableImpressions).toJson(); |
| 2313 } | 2380 } |
| 2314 return _json; | 2381 return _json; |
| 2315 } | 2382 } |
| 2316 } | 2383 } |
| 2317 | 2384 |
| 2318 /** | 2385 /// The number of impressions with the specified dimension values that were |
| 2319 * The number of impressions with the specified dimension values that were | 2386 /// considered to have no applicable bids, as described by the specified |
| 2320 * considered to have no applicable bids, as described by the specified status. | 2387 /// status. |
| 2321 */ | |
| 2322 class BidResponseWithoutBidsStatusRow { | 2388 class BidResponseWithoutBidsStatusRow { |
| 2323 /** | 2389 /// The number of impressions for which there was a bid response with the |
| 2324 * The number of impressions for which there was a bid response with the | 2390 /// specified status. |
| 2325 * specified status. | |
| 2326 */ | |
| 2327 MetricValue impressionCount; | 2391 MetricValue impressionCount; |
| 2328 /** | 2392 |
| 2329 * The values of all dimensions associated with metric values in this row. | 2393 /// The values of all dimensions associated with metric values in this row. |
| 2330 */ | |
| 2331 RowDimensions rowDimensions; | 2394 RowDimensions rowDimensions; |
| 2332 /** | 2395 |
| 2333 * The status specifying why the bid responses were considered to have no | 2396 /// The status specifying why the bid responses were considered to have no |
| 2334 * applicable bids. | 2397 /// applicable bids. |
| 2335 * Possible string values are: | 2398 /// Possible string values are: |
| 2336 * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. | 2399 /// - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. |
| 2337 * This value will never be returned in responses. | 2400 /// This value will never be returned in responses. |
| 2338 * - "RESPONSES_WITHOUT_BIDS" : The response had no bids. | 2401 /// - "RESPONSES_WITHOUT_BIDS" : The response had no bids. |
| 2339 * - "RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT" : The response had no bids for the | 2402 /// - "RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT" : The response had no bids for the |
| 2340 * specified account, though it may have | 2403 /// specified account, though it may have |
| 2341 * included bids on behalf of other accounts. | 2404 /// included bids on behalf of other accounts. |
| 2342 * - "RESPONSES_WITHOUT_BIDS_FOR_DEAL" : The response had no bids for the | 2405 /// - "RESPONSES_WITHOUT_BIDS_FOR_DEAL" : The response had no bids for the |
| 2343 * specified deal, though it may have | 2406 /// specified deal, though it may have |
| 2344 * included bids on other deals on behalf of the account to which the deal | 2407 /// included bids on other deals on behalf of the account to which the deal |
| 2345 * belongs. | 2408 /// belongs. |
| 2346 */ | |
| 2347 core.String status; | 2409 core.String status; |
| 2348 | 2410 |
| 2349 BidResponseWithoutBidsStatusRow(); | 2411 BidResponseWithoutBidsStatusRow(); |
| 2350 | 2412 |
| 2351 BidResponseWithoutBidsStatusRow.fromJson(core.Map _json) { | 2413 BidResponseWithoutBidsStatusRow.fromJson(core.Map _json) { |
| 2352 if (_json.containsKey("impressionCount")) { | 2414 if (_json.containsKey("impressionCount")) { |
| 2353 impressionCount = new MetricValue.fromJson(_json["impressionCount"]); | 2415 impressionCount = new MetricValue.fromJson(_json["impressionCount"]); |
| 2354 } | 2416 } |
| 2355 if (_json.containsKey("rowDimensions")) { | 2417 if (_json.containsKey("rowDimensions")) { |
| 2356 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 2418 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 2357 } | 2419 } |
| 2358 if (_json.containsKey("status")) { | 2420 if (_json.containsKey("status")) { |
| 2359 status = _json["status"]; | 2421 status = _json["status"]; |
| 2360 } | 2422 } |
| 2361 } | 2423 } |
| 2362 | 2424 |
| 2363 core.Map<core.String, core.Object> toJson() { | 2425 core.Map<core.String, core.Object> toJson() { |
| 2364 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2426 final core.Map<core.String, core.Object> _json = |
| 2427 new core.Map<core.String, core.Object>(); |
| 2365 if (impressionCount != null) { | 2428 if (impressionCount != null) { |
| 2366 _json["impressionCount"] = (impressionCount).toJson(); | 2429 _json["impressionCount"] = (impressionCount).toJson(); |
| 2367 } | 2430 } |
| 2368 if (rowDimensions != null) { | 2431 if (rowDimensions != null) { |
| 2369 _json["rowDimensions"] = (rowDimensions).toJson(); | 2432 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 2370 } | 2433 } |
| 2371 if (status != null) { | 2434 if (status != null) { |
| 2372 _json["status"] = status; | 2435 _json["status"] = status; |
| 2373 } | 2436 } |
| 2374 return _json; | 2437 return _json; |
| 2375 } | 2438 } |
| 2376 } | 2439 } |
| 2377 | 2440 |
| 2378 /** | 2441 /// The number of impressions with the specified dimension values where the |
| 2379 * The number of impressions with the specified dimension values where the | 2442 /// corresponding bid request or bid response was not successful, as described |
| 2380 * corresponding bid request or bid response was not successful, as described by | 2443 /// by |
| 2381 * the specified callout status. | 2444 /// the specified callout status. |
| 2382 */ | |
| 2383 class CalloutStatusRow { | 2445 class CalloutStatusRow { |
| 2384 /** | 2446 /// The ID of the callout status. |
| 2385 * The ID of the callout status. | 2447 /// See |
| 2386 * See | 2448 /// [callout-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/callout-status-codes). |
| 2387 * [callout-status-codes](https://developers.google.com/ad-exchange/rtb/downlo
ads/callout-status-codes). | |
| 2388 */ | |
| 2389 core.int calloutStatusId; | 2449 core.int calloutStatusId; |
| 2390 /** | 2450 |
| 2391 * The number of impressions for which there was a bid request or bid response | 2451 /// The number of impressions for which there was a bid request or bid |
| 2392 * with the specified callout status. | 2452 /// response |
| 2393 */ | 2453 /// with the specified callout status. |
| 2394 MetricValue impressionCount; | 2454 MetricValue impressionCount; |
| 2395 /** | 2455 |
| 2396 * The values of all dimensions associated with metric values in this row. | 2456 /// The values of all dimensions associated with metric values in this row. |
| 2397 */ | |
| 2398 RowDimensions rowDimensions; | 2457 RowDimensions rowDimensions; |
| 2399 | 2458 |
| 2400 CalloutStatusRow(); | 2459 CalloutStatusRow(); |
| 2401 | 2460 |
| 2402 CalloutStatusRow.fromJson(core.Map _json) { | 2461 CalloutStatusRow.fromJson(core.Map _json) { |
| 2403 if (_json.containsKey("calloutStatusId")) { | 2462 if (_json.containsKey("calloutStatusId")) { |
| 2404 calloutStatusId = _json["calloutStatusId"]; | 2463 calloutStatusId = _json["calloutStatusId"]; |
| 2405 } | 2464 } |
| 2406 if (_json.containsKey("impressionCount")) { | 2465 if (_json.containsKey("impressionCount")) { |
| 2407 impressionCount = new MetricValue.fromJson(_json["impressionCount"]); | 2466 impressionCount = new MetricValue.fromJson(_json["impressionCount"]); |
| 2408 } | 2467 } |
| 2409 if (_json.containsKey("rowDimensions")) { | 2468 if (_json.containsKey("rowDimensions")) { |
| 2410 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 2469 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 2411 } | 2470 } |
| 2412 } | 2471 } |
| 2413 | 2472 |
| 2414 core.Map<core.String, core.Object> toJson() { | 2473 core.Map<core.String, core.Object> toJson() { |
| 2415 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2474 final core.Map<core.String, core.Object> _json = |
| 2475 new core.Map<core.String, core.Object>(); |
| 2416 if (calloutStatusId != null) { | 2476 if (calloutStatusId != null) { |
| 2417 _json["calloutStatusId"] = calloutStatusId; | 2477 _json["calloutStatusId"] = calloutStatusId; |
| 2418 } | 2478 } |
| 2419 if (impressionCount != null) { | 2479 if (impressionCount != null) { |
| 2420 _json["impressionCount"] = (impressionCount).toJson(); | 2480 _json["impressionCount"] = (impressionCount).toJson(); |
| 2421 } | 2481 } |
| 2422 if (rowDimensions != null) { | 2482 if (rowDimensions != null) { |
| 2423 _json["rowDimensions"] = (rowDimensions).toJson(); | 2483 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 2424 } | 2484 } |
| 2425 return _json; | 2485 return _json; |
| 2426 } | 2486 } |
| 2427 } | 2487 } |
| 2428 | 2488 |
| 2429 /** | 2489 /// A client resource represents a client buyer—an agency, |
| 2430 * A client resource represents a client buyer—an agency, | 2490 /// a brand, or an advertiser customer of the sponsor buyer. |
| 2431 * a brand, or an advertiser customer of the sponsor buyer. | 2491 /// Users associated with the client buyer have restricted access to |
| 2432 * Users associated with the client buyer have restricted access to | 2492 /// the Ad Exchange Marketplace and certain other sections |
| 2433 * the Ad Exchange Marketplace and certain other sections | 2493 /// of the Ad Exchange Buyer UI based on the role |
| 2434 * of the Ad Exchange Buyer UI based on the role | 2494 /// granted to the client buyer. |
| 2435 * granted to the client buyer. | 2495 /// All fields are required unless otherwise specified. |
| 2436 * All fields are required unless otherwise specified. | |
| 2437 */ | |
| 2438 class Client { | 2496 class Client { |
| 2439 /** | 2497 /// The globally-unique numerical ID of the client. |
| 2440 * The globally-unique numerical ID of the client. | 2498 /// The value of this field is ignored in create and update operations. |
| 2441 * The value of this field is ignored in create and update operations. | |
| 2442 */ | |
| 2443 core.String clientAccountId; | 2499 core.String clientAccountId; |
| 2444 /** | 2500 |
| 2445 * Name used to represent this client to publishers. | 2501 /// Name used to represent this client to publishers. |
| 2446 * You may have multiple clients that map to the same entity, | 2502 /// You may have multiple clients that map to the same entity, |
| 2447 * but for each client the combination of `clientName` and entity | 2503 /// but for each client the combination of `clientName` and entity |
| 2448 * must be unique. | 2504 /// must be unique. |
| 2449 * You can specify this field as empty. | 2505 /// You can specify this field as empty. |
| 2450 */ | |
| 2451 core.String clientName; | 2506 core.String clientName; |
| 2452 /** | 2507 |
| 2453 * Numerical identifier of the client entity. | 2508 /// Numerical identifier of the client entity. |
| 2454 * The entity can be an advertiser, a brand, or an agency. | 2509 /// The entity can be an advertiser, a brand, or an agency. |
| 2455 * This identifier is unique among all the entities with the same type. | 2510 /// This identifier is unique among all the entities with the same type. |
| 2456 * | 2511 /// |
| 2457 * A list of all known advertisers with their identifiers is available in the | 2512 /// A list of all known advertisers with their identifiers is available in |
| 2458 * [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/adver
tisers.txt) | 2513 /// the |
| 2459 * file. | 2514 /// [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/adve
rtisers.txt) |
| 2460 * | 2515 /// file. |
| 2461 * A list of all known brands with their identifiers is available in the | 2516 /// |
| 2462 * [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt
) | 2517 /// A list of all known brands with their identifiers is available in the |
| 2463 * file. | 2518 /// [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.tx
t) |
| 2464 * | 2519 /// file. |
| 2465 * A list of all known agencies with their identifiers is available in the | 2520 /// |
| 2466 * [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies
.txt) | 2521 /// A list of all known agencies with their identifiers is available in the |
| 2467 * file. | 2522 /// [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencie
s.txt) |
| 2468 */ | 2523 /// file. |
| 2469 core.String entityId; | 2524 core.String entityId; |
| 2470 /** | 2525 |
| 2471 * The name of the entity. This field is automatically fetched based on | 2526 /// The name of the entity. This field is automatically fetched based on |
| 2472 * the type and ID. | 2527 /// the type and ID. |
| 2473 * The value of this field is ignored in create and update operations. | 2528 /// The value of this field is ignored in create and update operations. |
| 2474 */ | |
| 2475 core.String entityName; | 2529 core.String entityName; |
| 2476 /** | 2530 |
| 2477 * The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. | 2531 /// The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. |
| 2478 * Possible string values are: | 2532 /// Possible string values are: |
| 2479 * - "ENTITY_TYPE_UNSPECIFIED" : A placeholder for an undefined client entity | 2533 /// - "ENTITY_TYPE_UNSPECIFIED" : A placeholder for an undefined client |
| 2480 * type. Should not be used. | 2534 /// entity type. Should not be used. |
| 2481 * - "ADVERTISER" : An advertiser. | 2535 /// - "ADVERTISER" : An advertiser. |
| 2482 * - "BRAND" : A brand. | 2536 /// - "BRAND" : A brand. |
| 2483 * - "AGENCY" : An advertising agency. | 2537 /// - "AGENCY" : An advertising agency. |
| 2484 */ | |
| 2485 core.String entityType; | 2538 core.String entityType; |
| 2486 /** | 2539 |
| 2487 * The role which is assigned to the client buyer. Each role implies a set of | 2540 /// The role which is assigned to the client buyer. Each role implies a set |
| 2488 * permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, | 2541 /// of |
| 2489 * `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. | 2542 /// permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, |
| 2490 * Possible string values are: | 2543 /// `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. |
| 2491 * - "CLIENT_ROLE_UNSPECIFIED" : A placeholder for an undefined client role. | 2544 /// Possible string values are: |
| 2492 * - "CLIENT_DEAL_VIEWER" : Users associated with this client can see | 2545 /// - "CLIENT_ROLE_UNSPECIFIED" : A placeholder for an undefined client role. |
| 2493 * publisher deal offers | 2546 /// - "CLIENT_DEAL_VIEWER" : Users associated with this client can see |
| 2494 * in the Marketplace. | 2547 /// publisher deal offers |
| 2495 * They can neither negotiate proposals nor approve deals. | 2548 /// in the Marketplace. |
| 2496 * If this client is visible to publishers, they can send deal proposals | 2549 /// They can neither negotiate proposals nor approve deals. |
| 2497 * to this client. | 2550 /// If this client is visible to publishers, they can send deal proposals |
| 2498 * - "CLIENT_DEAL_NEGOTIATOR" : Users associated with this client can respond | 2551 /// to this client. |
| 2499 * to deal proposals | 2552 /// - "CLIENT_DEAL_NEGOTIATOR" : Users associated with this client can |
| 2500 * sent to them by publishers. They can also initiate deal proposals | 2553 /// respond to deal proposals |
| 2501 * of their own. | 2554 /// sent to them by publishers. They can also initiate deal proposals |
| 2502 * - "CLIENT_DEAL_APPROVER" : Users associated with this client can approve | 2555 /// of their own. |
| 2503 * eligible deals | 2556 /// - "CLIENT_DEAL_APPROVER" : Users associated with this client can approve |
| 2504 * on your behalf. Some deals may still explicitly require publisher | 2557 /// eligible deals |
| 2505 * finalization. If this role is not selected, the sponsor buyer | 2558 /// on your behalf. Some deals may still explicitly require publisher |
| 2506 * will need to manually approve each of their deals. | 2559 /// finalization. If this role is not selected, the sponsor buyer |
| 2507 */ | 2560 /// will need to manually approve each of their deals. |
| 2508 core.String role; | 2561 core.String role; |
| 2509 /** | 2562 |
| 2510 * The status of the client buyer. | 2563 /// The status of the client buyer. |
| 2511 * Possible string values are: | 2564 /// Possible string values are: |
| 2512 * - "CLIENT_STATUS_UNSPECIFIED" : A placeholder for an undefined client | 2565 /// - "CLIENT_STATUS_UNSPECIFIED" : A placeholder for an undefined client |
| 2513 * status. | 2566 /// status. |
| 2514 * - "DISABLED" : A client that is currently disabled. | 2567 /// - "DISABLED" : A client that is currently disabled. |
| 2515 * - "ACTIVE" : A client that is currently active. | 2568 /// - "ACTIVE" : A client that is currently active. |
| 2516 */ | |
| 2517 core.String status; | 2569 core.String status; |
| 2518 /** Whether the client buyer will be visible to sellers. */ | 2570 |
| 2571 /// Whether the client buyer will be visible to sellers. |
| 2519 core.bool visibleToSeller; | 2572 core.bool visibleToSeller; |
| 2520 | 2573 |
| 2521 Client(); | 2574 Client(); |
| 2522 | 2575 |
| 2523 Client.fromJson(core.Map _json) { | 2576 Client.fromJson(core.Map _json) { |
| 2524 if (_json.containsKey("clientAccountId")) { | 2577 if (_json.containsKey("clientAccountId")) { |
| 2525 clientAccountId = _json["clientAccountId"]; | 2578 clientAccountId = _json["clientAccountId"]; |
| 2526 } | 2579 } |
| 2527 if (_json.containsKey("clientName")) { | 2580 if (_json.containsKey("clientName")) { |
| 2528 clientName = _json["clientName"]; | 2581 clientName = _json["clientName"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2541 } | 2594 } |
| 2542 if (_json.containsKey("status")) { | 2595 if (_json.containsKey("status")) { |
| 2543 status = _json["status"]; | 2596 status = _json["status"]; |
| 2544 } | 2597 } |
| 2545 if (_json.containsKey("visibleToSeller")) { | 2598 if (_json.containsKey("visibleToSeller")) { |
| 2546 visibleToSeller = _json["visibleToSeller"]; | 2599 visibleToSeller = _json["visibleToSeller"]; |
| 2547 } | 2600 } |
| 2548 } | 2601 } |
| 2549 | 2602 |
| 2550 core.Map<core.String, core.Object> toJson() { | 2603 core.Map<core.String, core.Object> toJson() { |
| 2551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2604 final core.Map<core.String, core.Object> _json = |
| 2605 new core.Map<core.String, core.Object>(); |
| 2552 if (clientAccountId != null) { | 2606 if (clientAccountId != null) { |
| 2553 _json["clientAccountId"] = clientAccountId; | 2607 _json["clientAccountId"] = clientAccountId; |
| 2554 } | 2608 } |
| 2555 if (clientName != null) { | 2609 if (clientName != null) { |
| 2556 _json["clientName"] = clientName; | 2610 _json["clientName"] = clientName; |
| 2557 } | 2611 } |
| 2558 if (entityId != null) { | 2612 if (entityId != null) { |
| 2559 _json["entityId"] = entityId; | 2613 _json["entityId"] = entityId; |
| 2560 } | 2614 } |
| 2561 if (entityName != null) { | 2615 if (entityName != null) { |
| 2562 _json["entityName"] = entityName; | 2616 _json["entityName"] = entityName; |
| 2563 } | 2617 } |
| 2564 if (entityType != null) { | 2618 if (entityType != null) { |
| 2565 _json["entityType"] = entityType; | 2619 _json["entityType"] = entityType; |
| 2566 } | 2620 } |
| 2567 if (role != null) { | 2621 if (role != null) { |
| 2568 _json["role"] = role; | 2622 _json["role"] = role; |
| 2569 } | 2623 } |
| 2570 if (status != null) { | 2624 if (status != null) { |
| 2571 _json["status"] = status; | 2625 _json["status"] = status; |
| 2572 } | 2626 } |
| 2573 if (visibleToSeller != null) { | 2627 if (visibleToSeller != null) { |
| 2574 _json["visibleToSeller"] = visibleToSeller; | 2628 _json["visibleToSeller"] = visibleToSeller; |
| 2575 } | 2629 } |
| 2576 return _json; | 2630 return _json; |
| 2577 } | 2631 } |
| 2578 } | 2632 } |
| 2579 | 2633 |
| 2580 /** | 2634 /// A client user is created under a client buyer and has restricted access to |
| 2581 * A client user is created under a client buyer and has restricted access to | 2635 /// the Ad Exchange Marketplace and certain other sections |
| 2582 * the Ad Exchange Marketplace and certain other sections | 2636 /// of the Ad Exchange Buyer UI based on the role |
| 2583 * of the Ad Exchange Buyer UI based on the role | 2637 /// granted to the associated client buyer. |
| 2584 * granted to the associated client buyer. | 2638 /// |
| 2585 * | 2639 /// The only way a new client user can be created is via accepting an |
| 2586 * The only way a new client user can be created is via accepting an | 2640 /// email invitation |
| 2587 * email invitation | 2641 /// (see the |
| 2588 * (see the | 2642 /// accounts.clients.invitations.create |
| 2589 * accounts.clients.invitations.create | 2643 /// method). |
| 2590 * method). | 2644 /// |
| 2591 * | 2645 /// All fields are required unless otherwise specified. |
| 2592 * All fields are required unless otherwise specified. | |
| 2593 */ | |
| 2594 class ClientUser { | 2646 class ClientUser { |
| 2595 /** | 2647 /// Numerical account ID of the client buyer |
| 2596 * Numerical account ID of the client buyer | 2648 /// with which the user is associated; the |
| 2597 * with which the user is associated; the | 2649 /// buyer must be a client of the current sponsor buyer. |
| 2598 * buyer must be a client of the current sponsor buyer. | 2650 /// The value of this field is ignored in an update operation. |
| 2599 * The value of this field is ignored in an update operation. | |
| 2600 */ | |
| 2601 core.String clientAccountId; | 2651 core.String clientAccountId; |
| 2602 /** | 2652 |
| 2603 * User's email address. The value of this field | 2653 /// User's email address. The value of this field |
| 2604 * is ignored in an update operation. | 2654 /// is ignored in an update operation. |
| 2605 */ | |
| 2606 core.String email; | 2655 core.String email; |
| 2607 /** | 2656 |
| 2608 * The status of the client user. | 2657 /// The status of the client user. |
| 2609 * Possible string values are: | 2658 /// Possible string values are: |
| 2610 * - "USER_STATUS_UNSPECIFIED" : A placeholder for an undefined user status. | 2659 /// - "USER_STATUS_UNSPECIFIED" : A placeholder for an undefined user status. |
| 2611 * - "PENDING" : A user who was already created but hasn't accepted the | 2660 /// - "PENDING" : A user who was already created but hasn't accepted the |
| 2612 * invitation yet. | 2661 /// invitation yet. |
| 2613 * - "ACTIVE" : A user that is currently active. | 2662 /// - "ACTIVE" : A user that is currently active. |
| 2614 * - "DISABLED" : A user that is currently disabled. | 2663 /// - "DISABLED" : A user that is currently disabled. |
| 2615 */ | |
| 2616 core.String status; | 2664 core.String status; |
| 2617 /** | 2665 |
| 2618 * The unique numerical ID of the client user | 2666 /// The unique numerical ID of the client user |
| 2619 * that has accepted an invitation. | 2667 /// that has accepted an invitation. |
| 2620 * The value of this field is ignored in an update operation. | 2668 /// The value of this field is ignored in an update operation. |
| 2621 */ | |
| 2622 core.String userId; | 2669 core.String userId; |
| 2623 | 2670 |
| 2624 ClientUser(); | 2671 ClientUser(); |
| 2625 | 2672 |
| 2626 ClientUser.fromJson(core.Map _json) { | 2673 ClientUser.fromJson(core.Map _json) { |
| 2627 if (_json.containsKey("clientAccountId")) { | 2674 if (_json.containsKey("clientAccountId")) { |
| 2628 clientAccountId = _json["clientAccountId"]; | 2675 clientAccountId = _json["clientAccountId"]; |
| 2629 } | 2676 } |
| 2630 if (_json.containsKey("email")) { | 2677 if (_json.containsKey("email")) { |
| 2631 email = _json["email"]; | 2678 email = _json["email"]; |
| 2632 } | 2679 } |
| 2633 if (_json.containsKey("status")) { | 2680 if (_json.containsKey("status")) { |
| 2634 status = _json["status"]; | 2681 status = _json["status"]; |
| 2635 } | 2682 } |
| 2636 if (_json.containsKey("userId")) { | 2683 if (_json.containsKey("userId")) { |
| 2637 userId = _json["userId"]; | 2684 userId = _json["userId"]; |
| 2638 } | 2685 } |
| 2639 } | 2686 } |
| 2640 | 2687 |
| 2641 core.Map<core.String, core.Object> toJson() { | 2688 core.Map<core.String, core.Object> toJson() { |
| 2642 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2689 final core.Map<core.String, core.Object> _json = |
| 2690 new core.Map<core.String, core.Object>(); |
| 2643 if (clientAccountId != null) { | 2691 if (clientAccountId != null) { |
| 2644 _json["clientAccountId"] = clientAccountId; | 2692 _json["clientAccountId"] = clientAccountId; |
| 2645 } | 2693 } |
| 2646 if (email != null) { | 2694 if (email != null) { |
| 2647 _json["email"] = email; | 2695 _json["email"] = email; |
| 2648 } | 2696 } |
| 2649 if (status != null) { | 2697 if (status != null) { |
| 2650 _json["status"] = status; | 2698 _json["status"] = status; |
| 2651 } | 2699 } |
| 2652 if (userId != null) { | 2700 if (userId != null) { |
| 2653 _json["userId"] = userId; | 2701 _json["userId"] = userId; |
| 2654 } | 2702 } |
| 2655 return _json; | 2703 return _json; |
| 2656 } | 2704 } |
| 2657 } | 2705 } |
| 2658 | 2706 |
| 2659 /** | 2707 /// An invitation for a new client user to get access to the Ad Exchange |
| 2660 * An invitation for a new client user to get access to the Ad Exchange | 2708 /// Buyer UI. |
| 2661 * Buyer UI. | 2709 /// All fields are required unless otherwise specified. |
| 2662 * All fields are required unless otherwise specified. | |
| 2663 */ | |
| 2664 class ClientUserInvitation { | 2710 class ClientUserInvitation { |
| 2665 /** | 2711 /// Numerical account ID of the client buyer |
| 2666 * Numerical account ID of the client buyer | 2712 /// that the invited user is associated with. |
| 2667 * that the invited user is associated with. | 2713 /// The value of this field is ignored in create operations. |
| 2668 * The value of this field is ignored in create operations. | |
| 2669 */ | |
| 2670 core.String clientAccountId; | 2714 core.String clientAccountId; |
| 2671 /** | 2715 |
| 2672 * The email address to which the invitation is sent. Email | 2716 /// The email address to which the invitation is sent. Email |
| 2673 * addresses should be unique among all client users under each sponsor | 2717 /// addresses should be unique among all client users under each sponsor |
| 2674 * buyer. | 2718 /// buyer. |
| 2675 */ | |
| 2676 core.String email; | 2719 core.String email; |
| 2677 /** | 2720 |
| 2678 * The unique numerical ID of the invitation that is sent to the user. | 2721 /// The unique numerical ID of the invitation that is sent to the user. |
| 2679 * The value of this field is ignored in create operations. | 2722 /// The value of this field is ignored in create operations. |
| 2680 */ | |
| 2681 core.String invitationId; | 2723 core.String invitationId; |
| 2682 | 2724 |
| 2683 ClientUserInvitation(); | 2725 ClientUserInvitation(); |
| 2684 | 2726 |
| 2685 ClientUserInvitation.fromJson(core.Map _json) { | 2727 ClientUserInvitation.fromJson(core.Map _json) { |
| 2686 if (_json.containsKey("clientAccountId")) { | 2728 if (_json.containsKey("clientAccountId")) { |
| 2687 clientAccountId = _json["clientAccountId"]; | 2729 clientAccountId = _json["clientAccountId"]; |
| 2688 } | 2730 } |
| 2689 if (_json.containsKey("email")) { | 2731 if (_json.containsKey("email")) { |
| 2690 email = _json["email"]; | 2732 email = _json["email"]; |
| 2691 } | 2733 } |
| 2692 if (_json.containsKey("invitationId")) { | 2734 if (_json.containsKey("invitationId")) { |
| 2693 invitationId = _json["invitationId"]; | 2735 invitationId = _json["invitationId"]; |
| 2694 } | 2736 } |
| 2695 } | 2737 } |
| 2696 | 2738 |
| 2697 core.Map<core.String, core.Object> toJson() { | 2739 core.Map<core.String, core.Object> toJson() { |
| 2698 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2740 final core.Map<core.String, core.Object> _json = |
| 2741 new core.Map<core.String, core.Object>(); |
| 2699 if (clientAccountId != null) { | 2742 if (clientAccountId != null) { |
| 2700 _json["clientAccountId"] = clientAccountId; | 2743 _json["clientAccountId"] = clientAccountId; |
| 2701 } | 2744 } |
| 2702 if (email != null) { | 2745 if (email != null) { |
| 2703 _json["email"] = email; | 2746 _json["email"] = email; |
| 2704 } | 2747 } |
| 2705 if (invitationId != null) { | 2748 if (invitationId != null) { |
| 2706 _json["invitationId"] = invitationId; | 2749 _json["invitationId"] = invitationId; |
| 2707 } | 2750 } |
| 2708 return _json; | 2751 return _json; |
| 2709 } | 2752 } |
| 2710 } | 2753 } |
| 2711 | 2754 |
| 2712 /** @OutputOnly Shows any corrections that were applied to this creative. */ | 2755 /// @OutputOnly Shows any corrections that were applied to this creative. |
| 2713 class Correction { | 2756 class Correction { |
| 2714 /** The contexts for the correction. */ | 2757 /// The contexts for the correction. |
| 2715 core.List<ServingContext> contexts; | 2758 core.List<ServingContext> contexts; |
| 2716 /** Additional details about what was corrected. */ | 2759 |
| 2760 /// Additional details about what was corrected. |
| 2717 core.List<core.String> details; | 2761 core.List<core.String> details; |
| 2718 /** | 2762 |
| 2719 * The type of correction that was applied to the creative. | 2763 /// The type of correction that was applied to the creative. |
| 2720 * Possible string values are: | 2764 /// Possible string values are: |
| 2721 * - "CORRECTION_TYPE_UNSPECIFIED" : The correction type is unknown. Refer to | 2765 /// - "CORRECTION_TYPE_UNSPECIFIED" : The correction type is unknown. Refer |
| 2722 * the details for more information. | 2766 /// to the details for more information. |
| 2723 * - "VENDOR_IDS_ADDED" : The ad's declared vendors did not match the vendors | 2767 /// - "VENDOR_IDS_ADDED" : The ad's declared vendors did not match the |
| 2724 * that were detected. | 2768 /// vendors that were detected. |
| 2725 * The detected vendors were added. | 2769 /// The detected vendors were added. |
| 2726 * - "SSL_ATTRIBUTE_REMOVED" : The ad had the SSL attribute declared but was | 2770 /// - "SSL_ATTRIBUTE_REMOVED" : The ad had the SSL attribute declared but was |
| 2727 * not SSL-compliant. | 2771 /// not SSL-compliant. |
| 2728 * The SSL attribute was removed. | 2772 /// The SSL attribute was removed. |
| 2729 * - "FLASH_FREE_ATTRIBUTE_REMOVED" : The ad was declared as Flash-free but | 2773 /// - "FLASH_FREE_ATTRIBUTE_REMOVED" : The ad was declared as Flash-free but |
| 2730 * contained Flash, so the Flash-free | 2774 /// contained Flash, so the Flash-free |
| 2731 * attribute was removed. | 2775 /// attribute was removed. |
| 2732 * - "FLASH_FREE_ATTRIBUTE_ADDED" : The ad was not declared as Flash-free but | 2776 /// - "FLASH_FREE_ATTRIBUTE_ADDED" : The ad was not declared as Flash-free |
| 2733 * it did not reference any flash | 2777 /// but it did not reference any flash |
| 2734 * content, so the Flash-free attribute was added. | 2778 /// content, so the Flash-free attribute was added. |
| 2735 * - "REQUIRED_ATTRIBUTE_ADDED" : The ad did not declare a required creative | 2779 /// - "REQUIRED_ATTRIBUTE_ADDED" : The ad did not declare a required creative |
| 2736 * attribute. | 2780 /// attribute. |
| 2737 * The attribute was added. | 2781 /// The attribute was added. |
| 2738 * - "REQUIRED_VENDOR_ADDED" : The ad did not declare a required technology | 2782 /// - "REQUIRED_VENDOR_ADDED" : The ad did not declare a required technology |
| 2739 * vendor. | 2783 /// vendor. |
| 2740 * The technology vendor was added. | 2784 /// The technology vendor was added. |
| 2741 * - "SSL_ATTRIBUTE_ADDED" : The ad did not declare the SSL attribute but was | 2785 /// - "SSL_ATTRIBUTE_ADDED" : The ad did not declare the SSL attribute but |
| 2742 * SSL-compliant, so the | 2786 /// was SSL-compliant, so the |
| 2743 * SSL attribute was added. | 2787 /// SSL attribute was added. |
| 2744 * - "IN_BANNER_VIDEO_ATTRIBUTE_ADDED" : Properties consistent with In-banner | 2788 /// - "IN_BANNER_VIDEO_ATTRIBUTE_ADDED" : Properties consistent with |
| 2745 * video were found, so an | 2789 /// In-banner video were found, so an |
| 2746 * In-Banner Video attribute was added. | 2790 /// In-Banner Video attribute was added. |
| 2747 * - "MRAID_ATTRIBUTE_ADDED" : The ad makes calls to the MRAID API so the | 2791 /// - "MRAID_ATTRIBUTE_ADDED" : The ad makes calls to the MRAID API so the |
| 2748 * MRAID attribute was added. | 2792 /// MRAID attribute was added. |
| 2749 * - "FLASH_ATTRIBUTE_REMOVED" : The ad unnecessarily declared the Flash | 2793 /// - "FLASH_ATTRIBUTE_REMOVED" : The ad unnecessarily declared the Flash |
| 2750 * attribute, so the Flash attribute | 2794 /// attribute, so the Flash attribute |
| 2751 * was removed. | 2795 /// was removed. |
| 2752 * - "VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED" : The ad contains video content. | 2796 /// - "VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED" : The ad contains video content. |
| 2753 */ | |
| 2754 core.String type; | 2797 core.String type; |
| 2755 | 2798 |
| 2756 Correction(); | 2799 Correction(); |
| 2757 | 2800 |
| 2758 Correction.fromJson(core.Map _json) { | 2801 Correction.fromJson(core.Map _json) { |
| 2759 if (_json.containsKey("contexts")) { | 2802 if (_json.containsKey("contexts")) { |
| 2760 contexts = _json["contexts"].map((value) => new ServingContext.fromJson(va
lue)).toList(); | 2803 contexts = _json["contexts"] |
| 2804 .map((value) => new ServingContext.fromJson(value)) |
| 2805 .toList(); |
| 2761 } | 2806 } |
| 2762 if (_json.containsKey("details")) { | 2807 if (_json.containsKey("details")) { |
| 2763 details = _json["details"]; | 2808 details = _json["details"]; |
| 2764 } | 2809 } |
| 2765 if (_json.containsKey("type")) { | 2810 if (_json.containsKey("type")) { |
| 2766 type = _json["type"]; | 2811 type = _json["type"]; |
| 2767 } | 2812 } |
| 2768 } | 2813 } |
| 2769 | 2814 |
| 2770 core.Map<core.String, core.Object> toJson() { | 2815 core.Map<core.String, core.Object> toJson() { |
| 2771 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2816 final core.Map<core.String, core.Object> _json = |
| 2817 new core.Map<core.String, core.Object>(); |
| 2772 if (contexts != null) { | 2818 if (contexts != null) { |
| 2773 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); | 2819 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); |
| 2774 } | 2820 } |
| 2775 if (details != null) { | 2821 if (details != null) { |
| 2776 _json["details"] = details; | 2822 _json["details"] = details; |
| 2777 } | 2823 } |
| 2778 if (type != null) { | 2824 if (type != null) { |
| 2779 _json["type"] = type; | 2825 _json["type"] = type; |
| 2780 } | 2826 } |
| 2781 return _json; | 2827 return _json; |
| 2782 } | 2828 } |
| 2783 } | 2829 } |
| 2784 | 2830 |
| 2785 /** A creative and its classification data. */ | 2831 /// A creative and its classification data. |
| 2786 class Creative { | 2832 class Creative { |
| 2787 /** | 2833 /// The account that this creative belongs to. |
| 2788 * The account that this creative belongs to. | 2834 /// Can be used to filter the response of the |
| 2789 * Can be used to filter the response of the | 2835 /// creatives.list |
| 2790 * creatives.list | 2836 /// method. |
| 2791 * method. | |
| 2792 */ | |
| 2793 core.String accountId; | 2837 core.String accountId; |
| 2794 /** The link to AdChoices destination page. */ | 2838 |
| 2839 /// The link to AdChoices destination page. |
| 2795 core.String adChoicesDestinationUrl; | 2840 core.String adChoicesDestinationUrl; |
| 2796 /** The name of the company being advertised in the creative. */ | 2841 |
| 2842 /// The name of the company being advertised in the creative. |
| 2797 core.String advertiserName; | 2843 core.String advertiserName; |
| 2798 /** The agency ID for this creative. */ | 2844 |
| 2845 /// The agency ID for this creative. |
| 2799 core.String agencyId; | 2846 core.String agencyId; |
| 2800 /** @OutputOnly The last update timestamp of the creative via API. */ | 2847 |
| 2848 /// @OutputOnly The last update timestamp of the creative via API. |
| 2801 core.String apiUpdateTime; | 2849 core.String apiUpdateTime; |
| 2802 /** | 2850 |
| 2803 * All attributes for the ads that may be shown from this creative. | 2851 /// All attributes for the ads that may be shown from this creative. |
| 2804 * Can be used to filter the response of the | 2852 /// Can be used to filter the response of the |
| 2805 * creatives.list | 2853 /// creatives.list |
| 2806 * method. | 2854 /// method. |
| 2807 */ | |
| 2808 core.List<core.String> attributes; | 2855 core.List<core.String> attributes; |
| 2809 /** The set of destination URLs for the creative. */ | 2856 |
| 2857 /// The set of destination URLs for the creative. |
| 2810 core.List<core.String> clickThroughUrls; | 2858 core.List<core.String> clickThroughUrls; |
| 2811 /** @OutputOnly Shows any corrections that were applied to this creative. */ | 2859 |
| 2860 /// @OutputOnly Shows any corrections that were applied to this creative. |
| 2812 core.List<Correction> corrections; | 2861 core.List<Correction> corrections; |
| 2813 /** | 2862 |
| 2814 * The buyer-defined creative ID of this creative. | 2863 /// The buyer-defined creative ID of this creative. |
| 2815 * Can be used to filter the response of the | 2864 /// Can be used to filter the response of the |
| 2816 * creatives.list | 2865 /// creatives.list |
| 2817 * method. | 2866 /// method. |
| 2818 */ | |
| 2819 core.String creativeId; | 2867 core.String creativeId; |
| 2820 /** | 2868 |
| 2821 * @OutputOnly The top-level deals status of this creative. | 2869 /// @OutputOnly The top-level deals status of this creative. |
| 2822 * If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in | 2870 /// If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in |
| 2823 * serving_restrictions will also exist. Note | 2871 /// serving_restrictions will also exist. Note |
| 2824 * that this may be nuanced with other contextual restrictions, in which case, | 2872 /// that this may be nuanced with other contextual restrictions, in which |
| 2825 * it may be preferable to read from serving_restrictions directly. | 2873 /// case, |
| 2826 * Can be used to filter the response of the | 2874 /// it may be preferable to read from serving_restrictions directly. |
| 2827 * creatives.list | 2875 /// Can be used to filter the response of the |
| 2828 * method. | 2876 /// creatives.list |
| 2829 * Possible string values are: | 2877 /// method. |
| 2830 * - "STATUS_UNSPECIFIED" : The status is unknown. | 2878 /// Possible string values are: |
| 2831 * - "NOT_CHECKED" : The creative has not been checked. | 2879 /// - "STATUS_UNSPECIFIED" : The status is unknown. |
| 2832 * - "CONDITIONALLY_APPROVED" : The creative has been conditionally approved. | 2880 /// - "NOT_CHECKED" : The creative has not been checked. |
| 2833 * See serving_restrictions for details. | 2881 /// - "CONDITIONALLY_APPROVED" : The creative has been conditionally |
| 2834 * - "APPROVED" : The creative has been approved. | 2882 /// approved. |
| 2835 * - "DISAPPROVED" : The creative has been disapproved. | 2883 /// See serving_restrictions for details. |
| 2836 */ | 2884 /// - "APPROVED" : The creative has been approved. |
| 2885 /// - "DISAPPROVED" : The creative has been disapproved. |
| 2837 core.String dealsStatus; | 2886 core.String dealsStatus; |
| 2838 /** @OutputOnly Detected advertiser IDs, if any. */ | 2887 |
| 2888 /// @OutputOnly Detected advertiser IDs, if any. |
| 2839 core.List<core.String> detectedAdvertiserIds; | 2889 core.List<core.String> detectedAdvertiserIds; |
| 2840 /** | 2890 |
| 2841 * @OutputOnly | 2891 /// @OutputOnly |
| 2842 * The detected domains for this creative. | 2892 /// The detected domains for this creative. |
| 2843 */ | |
| 2844 core.List<core.String> detectedDomains; | 2893 core.List<core.String> detectedDomains; |
| 2845 /** | 2894 |
| 2846 * @OutputOnly | 2895 /// @OutputOnly |
| 2847 * The detected languages for this creative. The order is arbitrary. The codes | 2896 /// The detected languages for this creative. The order is arbitrary. The |
| 2848 * are 2 or 5 characters and are documented at | 2897 /// codes |
| 2849 * https://developers.google.com/adwords/api/docs/appendix/languagecodes. | 2898 /// are 2 or 5 characters and are documented at |
| 2850 */ | 2899 /// https://developers.google.com/adwords/api/docs/appendix/languagecodes. |
| 2851 core.List<core.String> detectedLanguages; | 2900 core.List<core.String> detectedLanguages; |
| 2852 /** | 2901 |
| 2853 * @OutputOnly Detected product categories, if any. | 2902 /// @OutputOnly Detected product categories, if any. |
| 2854 * See the ad-product-categories.txt file in the technical documentation | 2903 /// See the ad-product-categories.txt file in the technical documentation |
| 2855 * for a list of IDs. | 2904 /// for a list of IDs. |
| 2856 */ | |
| 2857 core.List<core.int> detectedProductCategories; | 2905 core.List<core.int> detectedProductCategories; |
| 2858 /** | 2906 |
| 2859 * @OutputOnly Detected sensitive categories, if any. | 2907 /// @OutputOnly Detected sensitive categories, if any. |
| 2860 * See the ad-sensitive-categories.txt file in the technical documentation for | 2908 /// See the ad-sensitive-categories.txt file in the technical documentation |
| 2861 * a list of IDs. You should use these IDs along with the | 2909 /// for |
| 2862 * excluded-sensitive-category field in the bid request to filter your bids. | 2910 /// a list of IDs. You should use these IDs along with the |
| 2863 */ | 2911 /// excluded-sensitive-category field in the bid request to filter your bids. |
| 2864 core.List<core.int> detectedSensitiveCategories; | 2912 core.List<core.int> detectedSensitiveCategories; |
| 2865 /** @OutputOnly The filtering stats for this creative. */ | 2913 |
| 2914 /// @OutputOnly The filtering stats for this creative. |
| 2866 FilteringStats filteringStats; | 2915 FilteringStats filteringStats; |
| 2867 /** An HTML creative. */ | 2916 |
| 2917 /// An HTML creative. |
| 2868 HtmlContent html; | 2918 HtmlContent html; |
| 2869 /** The set of URLs to be called to record an impression. */ | 2919 |
| 2920 /// The set of URLs to be called to record an impression. |
| 2870 core.List<core.String> impressionTrackingUrls; | 2921 core.List<core.String> impressionTrackingUrls; |
| 2871 /** A native creative. */ | 2922 |
| 2923 /// A native creative. |
| 2872 NativeContent native; | 2924 NativeContent native; |
| 2873 /** | 2925 |
| 2874 * @OutputOnly The top-level open auction status of this creative. | 2926 /// @OutputOnly The top-level open auction status of this creative. |
| 2875 * If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in | 2927 /// If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in |
| 2876 * serving_restrictions will also exist. Note | 2928 /// serving_restrictions will also exist. Note |
| 2877 * that this may be nuanced with other contextual restrictions, in which case, | 2929 /// that this may be nuanced with other contextual restrictions, in which |
| 2878 * it may be preferable to read from serving_restrictions directly. | 2930 /// case, |
| 2879 * Can be used to filter the response of the | 2931 /// it may be preferable to read from serving_restrictions directly. |
| 2880 * creatives.list | 2932 /// Can be used to filter the response of the |
| 2881 * method. | 2933 /// creatives.list |
| 2882 * Possible string values are: | 2934 /// method. |
| 2883 * - "STATUS_UNSPECIFIED" : The status is unknown. | 2935 /// Possible string values are: |
| 2884 * - "NOT_CHECKED" : The creative has not been checked. | 2936 /// - "STATUS_UNSPECIFIED" : The status is unknown. |
| 2885 * - "CONDITIONALLY_APPROVED" : The creative has been conditionally approved. | 2937 /// - "NOT_CHECKED" : The creative has not been checked. |
| 2886 * See serving_restrictions for details. | 2938 /// - "CONDITIONALLY_APPROVED" : The creative has been conditionally |
| 2887 * - "APPROVED" : The creative has been approved. | 2939 /// approved. |
| 2888 * - "DISAPPROVED" : The creative has been disapproved. | 2940 /// See serving_restrictions for details. |
| 2889 */ | 2941 /// - "APPROVED" : The creative has been approved. |
| 2942 /// - "DISAPPROVED" : The creative has been disapproved. |
| 2890 core.String openAuctionStatus; | 2943 core.String openAuctionStatus; |
| 2891 /** | 2944 |
| 2892 * All restricted categories for the ads that may be shown from this creative. | 2945 /// All restricted categories for the ads that may be shown from this |
| 2893 */ | 2946 /// creative. |
| 2894 core.List<core.String> restrictedCategories; | 2947 core.List<core.String> restrictedCategories; |
| 2895 /** | 2948 |
| 2896 * @OutputOnly The granular status of this ad in specific contexts. | 2949 /// @OutputOnly The granular status of this ad in specific contexts. |
| 2897 * A context here relates to where something ultimately serves (for example, | 2950 /// A context here relates to where something ultimately serves (for example, |
| 2898 * a physical location, a platform, an HTTPS vs HTTP request, or the type | 2951 /// a physical location, a platform, an HTTPS vs HTTP request, or the type |
| 2899 * of auction). | 2952 /// of auction). |
| 2900 */ | |
| 2901 core.List<ServingRestriction> servingRestrictions; | 2953 core.List<ServingRestriction> servingRestrictions; |
| 2902 /** | 2954 |
| 2903 * All vendor IDs for the ads that may be shown from this creative. | 2955 /// All vendor IDs for the ads that may be shown from this creative. |
| 2904 * See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt | 2956 /// See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt |
| 2905 * for possible values. | 2957 /// for possible values. |
| 2906 */ | |
| 2907 core.List<core.int> vendorIds; | 2958 core.List<core.int> vendorIds; |
| 2908 /** @OutputOnly The version of this creative. */ | 2959 |
| 2960 /// @OutputOnly The version of this creative. |
| 2909 core.int version; | 2961 core.int version; |
| 2910 /** A video creative. */ | 2962 |
| 2963 /// A video creative. |
| 2911 VideoContent video; | 2964 VideoContent video; |
| 2912 | 2965 |
| 2913 Creative(); | 2966 Creative(); |
| 2914 | 2967 |
| 2915 Creative.fromJson(core.Map _json) { | 2968 Creative.fromJson(core.Map _json) { |
| 2916 if (_json.containsKey("accountId")) { | 2969 if (_json.containsKey("accountId")) { |
| 2917 accountId = _json["accountId"]; | 2970 accountId = _json["accountId"]; |
| 2918 } | 2971 } |
| 2919 if (_json.containsKey("adChoicesDestinationUrl")) { | 2972 if (_json.containsKey("adChoicesDestinationUrl")) { |
| 2920 adChoicesDestinationUrl = _json["adChoicesDestinationUrl"]; | 2973 adChoicesDestinationUrl = _json["adChoicesDestinationUrl"]; |
| 2921 } | 2974 } |
| 2922 if (_json.containsKey("advertiserName")) { | 2975 if (_json.containsKey("advertiserName")) { |
| 2923 advertiserName = _json["advertiserName"]; | 2976 advertiserName = _json["advertiserName"]; |
| 2924 } | 2977 } |
| 2925 if (_json.containsKey("agencyId")) { | 2978 if (_json.containsKey("agencyId")) { |
| 2926 agencyId = _json["agencyId"]; | 2979 agencyId = _json["agencyId"]; |
| 2927 } | 2980 } |
| 2928 if (_json.containsKey("apiUpdateTime")) { | 2981 if (_json.containsKey("apiUpdateTime")) { |
| 2929 apiUpdateTime = _json["apiUpdateTime"]; | 2982 apiUpdateTime = _json["apiUpdateTime"]; |
| 2930 } | 2983 } |
| 2931 if (_json.containsKey("attributes")) { | 2984 if (_json.containsKey("attributes")) { |
| 2932 attributes = _json["attributes"]; | 2985 attributes = _json["attributes"]; |
| 2933 } | 2986 } |
| 2934 if (_json.containsKey("clickThroughUrls")) { | 2987 if (_json.containsKey("clickThroughUrls")) { |
| 2935 clickThroughUrls = _json["clickThroughUrls"]; | 2988 clickThroughUrls = _json["clickThroughUrls"]; |
| 2936 } | 2989 } |
| 2937 if (_json.containsKey("corrections")) { | 2990 if (_json.containsKey("corrections")) { |
| 2938 corrections = _json["corrections"].map((value) => new Correction.fromJson(
value)).toList(); | 2991 corrections = _json["corrections"] |
| 2992 .map((value) => new Correction.fromJson(value)) |
| 2993 .toList(); |
| 2939 } | 2994 } |
| 2940 if (_json.containsKey("creativeId")) { | 2995 if (_json.containsKey("creativeId")) { |
| 2941 creativeId = _json["creativeId"]; | 2996 creativeId = _json["creativeId"]; |
| 2942 } | 2997 } |
| 2943 if (_json.containsKey("dealsStatus")) { | 2998 if (_json.containsKey("dealsStatus")) { |
| 2944 dealsStatus = _json["dealsStatus"]; | 2999 dealsStatus = _json["dealsStatus"]; |
| 2945 } | 3000 } |
| 2946 if (_json.containsKey("detectedAdvertiserIds")) { | 3001 if (_json.containsKey("detectedAdvertiserIds")) { |
| 2947 detectedAdvertiserIds = _json["detectedAdvertiserIds"]; | 3002 detectedAdvertiserIds = _json["detectedAdvertiserIds"]; |
| 2948 } | 3003 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2970 if (_json.containsKey("native")) { | 3025 if (_json.containsKey("native")) { |
| 2971 native = new NativeContent.fromJson(_json["native"]); | 3026 native = new NativeContent.fromJson(_json["native"]); |
| 2972 } | 3027 } |
| 2973 if (_json.containsKey("openAuctionStatus")) { | 3028 if (_json.containsKey("openAuctionStatus")) { |
| 2974 openAuctionStatus = _json["openAuctionStatus"]; | 3029 openAuctionStatus = _json["openAuctionStatus"]; |
| 2975 } | 3030 } |
| 2976 if (_json.containsKey("restrictedCategories")) { | 3031 if (_json.containsKey("restrictedCategories")) { |
| 2977 restrictedCategories = _json["restrictedCategories"]; | 3032 restrictedCategories = _json["restrictedCategories"]; |
| 2978 } | 3033 } |
| 2979 if (_json.containsKey("servingRestrictions")) { | 3034 if (_json.containsKey("servingRestrictions")) { |
| 2980 servingRestrictions = _json["servingRestrictions"].map((value) => new Serv
ingRestriction.fromJson(value)).toList(); | 3035 servingRestrictions = _json["servingRestrictions"] |
| 3036 .map((value) => new ServingRestriction.fromJson(value)) |
| 3037 .toList(); |
| 2981 } | 3038 } |
| 2982 if (_json.containsKey("vendorIds")) { | 3039 if (_json.containsKey("vendorIds")) { |
| 2983 vendorIds = _json["vendorIds"]; | 3040 vendorIds = _json["vendorIds"]; |
| 2984 } | 3041 } |
| 2985 if (_json.containsKey("version")) { | 3042 if (_json.containsKey("version")) { |
| 2986 version = _json["version"]; | 3043 version = _json["version"]; |
| 2987 } | 3044 } |
| 2988 if (_json.containsKey("video")) { | 3045 if (_json.containsKey("video")) { |
| 2989 video = new VideoContent.fromJson(_json["video"]); | 3046 video = new VideoContent.fromJson(_json["video"]); |
| 2990 } | 3047 } |
| 2991 } | 3048 } |
| 2992 | 3049 |
| 2993 core.Map<core.String, core.Object> toJson() { | 3050 core.Map<core.String, core.Object> toJson() { |
| 2994 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3051 final core.Map<core.String, core.Object> _json = |
| 3052 new core.Map<core.String, core.Object>(); |
| 2995 if (accountId != null) { | 3053 if (accountId != null) { |
| 2996 _json["accountId"] = accountId; | 3054 _json["accountId"] = accountId; |
| 2997 } | 3055 } |
| 2998 if (adChoicesDestinationUrl != null) { | 3056 if (adChoicesDestinationUrl != null) { |
| 2999 _json["adChoicesDestinationUrl"] = adChoicesDestinationUrl; | 3057 _json["adChoicesDestinationUrl"] = adChoicesDestinationUrl; |
| 3000 } | 3058 } |
| 3001 if (advertiserName != null) { | 3059 if (advertiserName != null) { |
| 3002 _json["advertiserName"] = advertiserName; | 3060 _json["advertiserName"] = advertiserName; |
| 3003 } | 3061 } |
| 3004 if (agencyId != null) { | 3062 if (agencyId != null) { |
| 3005 _json["agencyId"] = agencyId; | 3063 _json["agencyId"] = agencyId; |
| 3006 } | 3064 } |
| 3007 if (apiUpdateTime != null) { | 3065 if (apiUpdateTime != null) { |
| 3008 _json["apiUpdateTime"] = apiUpdateTime; | 3066 _json["apiUpdateTime"] = apiUpdateTime; |
| 3009 } | 3067 } |
| 3010 if (attributes != null) { | 3068 if (attributes != null) { |
| 3011 _json["attributes"] = attributes; | 3069 _json["attributes"] = attributes; |
| 3012 } | 3070 } |
| 3013 if (clickThroughUrls != null) { | 3071 if (clickThroughUrls != null) { |
| 3014 _json["clickThroughUrls"] = clickThroughUrls; | 3072 _json["clickThroughUrls"] = clickThroughUrls; |
| 3015 } | 3073 } |
| 3016 if (corrections != null) { | 3074 if (corrections != null) { |
| 3017 _json["corrections"] = corrections.map((value) => (value).toJson()).toList
(); | 3075 _json["corrections"] = |
| 3076 corrections.map((value) => (value).toJson()).toList(); |
| 3018 } | 3077 } |
| 3019 if (creativeId != null) { | 3078 if (creativeId != null) { |
| 3020 _json["creativeId"] = creativeId; | 3079 _json["creativeId"] = creativeId; |
| 3021 } | 3080 } |
| 3022 if (dealsStatus != null) { | 3081 if (dealsStatus != null) { |
| 3023 _json["dealsStatus"] = dealsStatus; | 3082 _json["dealsStatus"] = dealsStatus; |
| 3024 } | 3083 } |
| 3025 if (detectedAdvertiserIds != null) { | 3084 if (detectedAdvertiserIds != null) { |
| 3026 _json["detectedAdvertiserIds"] = detectedAdvertiserIds; | 3085 _json["detectedAdvertiserIds"] = detectedAdvertiserIds; |
| 3027 } | 3086 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3049 if (native != null) { | 3108 if (native != null) { |
| 3050 _json["native"] = (native).toJson(); | 3109 _json["native"] = (native).toJson(); |
| 3051 } | 3110 } |
| 3052 if (openAuctionStatus != null) { | 3111 if (openAuctionStatus != null) { |
| 3053 _json["openAuctionStatus"] = openAuctionStatus; | 3112 _json["openAuctionStatus"] = openAuctionStatus; |
| 3054 } | 3113 } |
| 3055 if (restrictedCategories != null) { | 3114 if (restrictedCategories != null) { |
| 3056 _json["restrictedCategories"] = restrictedCategories; | 3115 _json["restrictedCategories"] = restrictedCategories; |
| 3057 } | 3116 } |
| 3058 if (servingRestrictions != null) { | 3117 if (servingRestrictions != null) { |
| 3059 _json["servingRestrictions"] = servingRestrictions.map((value) => (value).
toJson()).toList(); | 3118 _json["servingRestrictions"] = |
| 3119 servingRestrictions.map((value) => (value).toJson()).toList(); |
| 3060 } | 3120 } |
| 3061 if (vendorIds != null) { | 3121 if (vendorIds != null) { |
| 3062 _json["vendorIds"] = vendorIds; | 3122 _json["vendorIds"] = vendorIds; |
| 3063 } | 3123 } |
| 3064 if (version != null) { | 3124 if (version != null) { |
| 3065 _json["version"] = version; | 3125 _json["version"] = version; |
| 3066 } | 3126 } |
| 3067 if (video != null) { | 3127 if (video != null) { |
| 3068 _json["video"] = (video).toJson(); | 3128 _json["video"] = (video).toJson(); |
| 3069 } | 3129 } |
| 3070 return _json; | 3130 return _json; |
| 3071 } | 3131 } |
| 3072 } | 3132 } |
| 3073 | 3133 |
| 3074 /** The association between a creative and a deal. */ | 3134 /// The association between a creative and a deal. |
| 3075 class CreativeDealAssociation { | 3135 class CreativeDealAssociation { |
| 3076 /** The account the creative belongs to. */ | 3136 /// The account the creative belongs to. |
| 3077 core.String accountId; | 3137 core.String accountId; |
| 3078 /** The ID of the creative associated with the deal. */ | 3138 |
| 3139 /// The ID of the creative associated with the deal. |
| 3079 core.String creativeId; | 3140 core.String creativeId; |
| 3080 /** The externalDealId for the deal associated with the creative. */ | 3141 |
| 3142 /// The externalDealId for the deal associated with the creative. |
| 3081 core.String dealsId; | 3143 core.String dealsId; |
| 3082 | 3144 |
| 3083 CreativeDealAssociation(); | 3145 CreativeDealAssociation(); |
| 3084 | 3146 |
| 3085 CreativeDealAssociation.fromJson(core.Map _json) { | 3147 CreativeDealAssociation.fromJson(core.Map _json) { |
| 3086 if (_json.containsKey("accountId")) { | 3148 if (_json.containsKey("accountId")) { |
| 3087 accountId = _json["accountId"]; | 3149 accountId = _json["accountId"]; |
| 3088 } | 3150 } |
| 3089 if (_json.containsKey("creativeId")) { | 3151 if (_json.containsKey("creativeId")) { |
| 3090 creativeId = _json["creativeId"]; | 3152 creativeId = _json["creativeId"]; |
| 3091 } | 3153 } |
| 3092 if (_json.containsKey("dealsId")) { | 3154 if (_json.containsKey("dealsId")) { |
| 3093 dealsId = _json["dealsId"]; | 3155 dealsId = _json["dealsId"]; |
| 3094 } | 3156 } |
| 3095 } | 3157 } |
| 3096 | 3158 |
| 3097 core.Map<core.String, core.Object> toJson() { | 3159 core.Map<core.String, core.Object> toJson() { |
| 3098 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3160 final core.Map<core.String, core.Object> _json = |
| 3161 new core.Map<core.String, core.Object>(); |
| 3099 if (accountId != null) { | 3162 if (accountId != null) { |
| 3100 _json["accountId"] = accountId; | 3163 _json["accountId"] = accountId; |
| 3101 } | 3164 } |
| 3102 if (creativeId != null) { | 3165 if (creativeId != null) { |
| 3103 _json["creativeId"] = creativeId; | 3166 _json["creativeId"] = creativeId; |
| 3104 } | 3167 } |
| 3105 if (dealsId != null) { | 3168 if (dealsId != null) { |
| 3106 _json["dealsId"] = dealsId; | 3169 _json["dealsId"] = dealsId; |
| 3107 } | 3170 } |
| 3108 return _json; | 3171 return _json; |
| 3109 } | 3172 } |
| 3110 } | 3173 } |
| 3111 | 3174 |
| 3112 /** | 3175 /// The number of bids with the specified dimension values that did not win the |
| 3113 * The number of bids with the specified dimension values that did not win the | 3176 /// auction (either were filtered pre-auction or lost the auction), as |
| 3114 * auction (either were filtered pre-auction or lost the auction), as described | 3177 /// described |
| 3115 * by the specified creative status. | 3178 /// by the specified creative status. |
| 3116 */ | |
| 3117 class CreativeStatusRow { | 3179 class CreativeStatusRow { |
| 3118 /** The number of bids with the specified status. */ | 3180 /// The number of bids with the specified status. |
| 3119 MetricValue bidCount; | 3181 MetricValue bidCount; |
| 3120 /** | 3182 |
| 3121 * The ID of the creative status. | 3183 /// The ID of the creative status. |
| 3122 * See | 3184 /// See |
| 3123 * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downl
oads/creative-status-codes). | 3185 /// [creative-status-codes](https://developers.google.com/ad-exchange/rtb/down
loads/creative-status-codes). |
| 3124 */ | |
| 3125 core.int creativeStatusId; | 3186 core.int creativeStatusId; |
| 3126 /** | 3187 |
| 3127 * The values of all dimensions associated with metric values in this row. | 3188 /// The values of all dimensions associated with metric values in this row. |
| 3128 */ | |
| 3129 RowDimensions rowDimensions; | 3189 RowDimensions rowDimensions; |
| 3130 | 3190 |
| 3131 CreativeStatusRow(); | 3191 CreativeStatusRow(); |
| 3132 | 3192 |
| 3133 CreativeStatusRow.fromJson(core.Map _json) { | 3193 CreativeStatusRow.fromJson(core.Map _json) { |
| 3134 if (_json.containsKey("bidCount")) { | 3194 if (_json.containsKey("bidCount")) { |
| 3135 bidCount = new MetricValue.fromJson(_json["bidCount"]); | 3195 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 3136 } | 3196 } |
| 3137 if (_json.containsKey("creativeStatusId")) { | 3197 if (_json.containsKey("creativeStatusId")) { |
| 3138 creativeStatusId = _json["creativeStatusId"]; | 3198 creativeStatusId = _json["creativeStatusId"]; |
| 3139 } | 3199 } |
| 3140 if (_json.containsKey("rowDimensions")) { | 3200 if (_json.containsKey("rowDimensions")) { |
| 3141 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 3201 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3142 } | 3202 } |
| 3143 } | 3203 } |
| 3144 | 3204 |
| 3145 core.Map<core.String, core.Object> toJson() { | 3205 core.Map<core.String, core.Object> toJson() { |
| 3146 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3206 final core.Map<core.String, core.Object> _json = |
| 3207 new core.Map<core.String, core.Object>(); |
| 3147 if (bidCount != null) { | 3208 if (bidCount != null) { |
| 3148 _json["bidCount"] = (bidCount).toJson(); | 3209 _json["bidCount"] = (bidCount).toJson(); |
| 3149 } | 3210 } |
| 3150 if (creativeStatusId != null) { | 3211 if (creativeStatusId != null) { |
| 3151 _json["creativeStatusId"] = creativeStatusId; | 3212 _json["creativeStatusId"] = creativeStatusId; |
| 3152 } | 3213 } |
| 3153 if (rowDimensions != null) { | 3214 if (rowDimensions != null) { |
| 3154 _json["rowDimensions"] = (rowDimensions).toJson(); | 3215 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3155 } | 3216 } |
| 3156 return _json; | 3217 return _json; |
| 3157 } | 3218 } |
| 3158 } | 3219 } |
| 3159 | 3220 |
| 3160 /** | 3221 /// Represents a whole calendar date, e.g. date of birth. The time of day and |
| 3161 * Represents a whole calendar date, e.g. date of birth. The time of day and | 3222 /// time zone are either specified elsewhere or are not significant. The date |
| 3162 * time zone are either specified elsewhere or are not significant. The date | 3223 /// is relative to the Proleptic Gregorian Calendar. The day may be 0 to |
| 3163 * is relative to the Proleptic Gregorian Calendar. The day may be 0 to | 3224 /// represent a year and month where the day is not significant, e.g. credit |
| 3164 * represent a year and month where the day is not significant, e.g. credit card | 3225 /// card |
| 3165 * expiration date. The year may be 0 to represent a month and day independent | 3226 /// expiration date. The year may be 0 to represent a month and day independent |
| 3166 * of year, e.g. anniversary date. Related types are google.type.TimeOfDay | 3227 /// of year, e.g. anniversary date. Related types are google.type.TimeOfDay |
| 3167 * and `google.protobuf.Timestamp`. | 3228 /// and `google.protobuf.Timestamp`. |
| 3168 */ | |
| 3169 class Date { | 3229 class Date { |
| 3170 /** | 3230 /// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 |
| 3171 * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 | 3231 /// if specifying a year/month where the day is not significant. |
| 3172 * if specifying a year/month where the day is not significant. | |
| 3173 */ | |
| 3174 core.int day; | 3232 core.int day; |
| 3175 /** Month of year. Must be from 1 to 12. */ | 3233 |
| 3234 /// Month of year. Must be from 1 to 12. |
| 3176 core.int month; | 3235 core.int month; |
| 3177 /** | 3236 |
| 3178 * Year of date. Must be from 1 to 9999, or 0 if specifying a date without | 3237 /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without |
| 3179 * a year. | 3238 /// a year. |
| 3180 */ | |
| 3181 core.int year; | 3239 core.int year; |
| 3182 | 3240 |
| 3183 Date(); | 3241 Date(); |
| 3184 | 3242 |
| 3185 Date.fromJson(core.Map _json) { | 3243 Date.fromJson(core.Map _json) { |
| 3186 if (_json.containsKey("day")) { | 3244 if (_json.containsKey("day")) { |
| 3187 day = _json["day"]; | 3245 day = _json["day"]; |
| 3188 } | 3246 } |
| 3189 if (_json.containsKey("month")) { | 3247 if (_json.containsKey("month")) { |
| 3190 month = _json["month"]; | 3248 month = _json["month"]; |
| 3191 } | 3249 } |
| 3192 if (_json.containsKey("year")) { | 3250 if (_json.containsKey("year")) { |
| 3193 year = _json["year"]; | 3251 year = _json["year"]; |
| 3194 } | 3252 } |
| 3195 } | 3253 } |
| 3196 | 3254 |
| 3197 core.Map<core.String, core.Object> toJson() { | 3255 core.Map<core.String, core.Object> toJson() { |
| 3198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3256 final core.Map<core.String, core.Object> _json = |
| 3257 new core.Map<core.String, core.Object>(); |
| 3199 if (day != null) { | 3258 if (day != null) { |
| 3200 _json["day"] = day; | 3259 _json["day"] = day; |
| 3201 } | 3260 } |
| 3202 if (month != null) { | 3261 if (month != null) { |
| 3203 _json["month"] = month; | 3262 _json["month"] = month; |
| 3204 } | 3263 } |
| 3205 if (year != null) { | 3264 if (year != null) { |
| 3206 _json["year"] = year; | 3265 _json["year"] = year; |
| 3207 } | 3266 } |
| 3208 return _json; | 3267 return _json; |
| 3209 } | 3268 } |
| 3210 } | 3269 } |
| 3211 | 3270 |
| 3212 /** @OutputOnly The reason and details for a disapproval. */ | 3271 /// @OutputOnly The reason and details for a disapproval. |
| 3213 class Disapproval { | 3272 class Disapproval { |
| 3214 /** Additional details about the reason for disapproval. */ | 3273 /// Additional details about the reason for disapproval. |
| 3215 core.List<core.String> details; | 3274 core.List<core.String> details; |
| 3216 /** | 3275 |
| 3217 * The categorized reason for disapproval. | 3276 /// The categorized reason for disapproval. |
| 3218 * Possible string values are: | 3277 /// Possible string values are: |
| 3219 * - "LENGTH_OF_IMAGE_ANIMATION" : The length of the image animation is longer | 3278 /// - "LENGTH_OF_IMAGE_ANIMATION" : The length of the image animation is |
| 3220 * than allowed. | 3279 /// longer than allowed. |
| 3221 * - "BROKEN_URL" : The click through URL doesn't work properly. | 3280 /// - "BROKEN_URL" : The click through URL doesn't work properly. |
| 3222 * - "MEDIA_NOT_FUNCTIONAL" : Something is wrong with the creative itself. | 3281 /// - "MEDIA_NOT_FUNCTIONAL" : Something is wrong with the creative itself. |
| 3223 * - "INVALID_FOURTH_PARTY_CALL" : The ad makes a fourth party call to an | 3282 /// - "INVALID_FOURTH_PARTY_CALL" : The ad makes a fourth party call to an |
| 3224 * unapproved vendor. | 3283 /// unapproved vendor. |
| 3225 * - "INCORRECT_REMARKETING_DECLARATION" : The ad targets consumers using | 3284 /// - "INCORRECT_REMARKETING_DECLARATION" : The ad targets consumers using |
| 3226 * remarketing lists and/or collects | 3285 /// remarketing lists and/or collects |
| 3227 * data for subsequent use in retargeting, but does not correctly declare | 3286 /// data for subsequent use in retargeting, but does not correctly declare |
| 3228 * that use. | 3287 /// that use. |
| 3229 * - "LANDING_PAGE_ERROR" : Clicking on the ad leads to an error page. | 3288 /// - "LANDING_PAGE_ERROR" : Clicking on the ad leads to an error page. |
| 3230 * - "AD_SIZE_DOES_NOT_MATCH_AD_SLOT" : The ad size when rendered does not | 3289 /// - "AD_SIZE_DOES_NOT_MATCH_AD_SLOT" : The ad size when rendered does not |
| 3231 * match the declaration. | 3290 /// match the declaration. |
| 3232 * - "NO_BORDER" : Ads with a white background require a border, which was | 3291 /// - "NO_BORDER" : Ads with a white background require a border, which was |
| 3233 * missing. | 3292 /// missing. |
| 3234 * - "FOURTH_PARTY_BROWSER_COOKIES" : The creative attempts to set cookies | 3293 /// - "FOURTH_PARTY_BROWSER_COOKIES" : The creative attempts to set cookies |
| 3235 * from a fourth party that is not | 3294 /// from a fourth party that is not |
| 3236 * certified. | 3295 /// certified. |
| 3237 * - "LSO_OBJECTS" : The creative sets an LSO object. | 3296 /// - "LSO_OBJECTS" : The creative sets an LSO object. |
| 3238 * - "BLANK_CREATIVE" : The ad serves a blank. | 3297 /// - "BLANK_CREATIVE" : The ad serves a blank. |
| 3239 * - "DESTINATION_URLS_UNDECLARED" : The ad uses rotation, but not all | 3298 /// - "DESTINATION_URLS_UNDECLARED" : The ad uses rotation, but not all |
| 3240 * destination URLs were declared. | 3299 /// destination URLs were declared. |
| 3241 * - "PROBLEM_WITH_CLICK_MACRO" : There is a problem with the way the click | 3300 /// - "PROBLEM_WITH_CLICK_MACRO" : There is a problem with the way the click |
| 3242 * macro is used. | 3301 /// macro is used. |
| 3243 * - "INCORRECT_AD_TECHNOLOGY_DECLARATION" : The ad technology declaration is | 3302 /// - "INCORRECT_AD_TECHNOLOGY_DECLARATION" : The ad technology declaration |
| 3244 * not accurate. | 3303 /// is not accurate. |
| 3245 * - "INCORRECT_DESTINATION_URL_DECLARATION" : The actual destination URL does | 3304 /// - "INCORRECT_DESTINATION_URL_DECLARATION" : The actual destination URL |
| 3246 * not match the declared destination URL. | 3305 /// does not match the declared destination URL. |
| 3247 * - "EXPANDABLE_INCORRECT_DIRECTION" : The declared expanding direction does | 3306 /// - "EXPANDABLE_INCORRECT_DIRECTION" : The declared expanding direction |
| 3248 * not match the actual direction. | 3307 /// does not match the actual direction. |
| 3249 * - "EXPANDABLE_DIRECTION_NOT_SUPPORTED" : The ad does not expand in a | 3308 /// - "EXPANDABLE_DIRECTION_NOT_SUPPORTED" : The ad does not expand in a |
| 3250 * supported direction. | 3309 /// supported direction. |
| 3251 * - "EXPANDABLE_INVALID_VENDOR" : The ad uses an expandable vendor that is | 3310 /// - "EXPANDABLE_INVALID_VENDOR" : The ad uses an expandable vendor that is |
| 3252 * not supported. | 3311 /// not supported. |
| 3253 * - "EXPANDABLE_FUNCTIONALITY" : There was an issue with the expandable ad. | 3312 /// - "EXPANDABLE_FUNCTIONALITY" : There was an issue with the expandable ad. |
| 3254 * - "VIDEO_INVALID_VENDOR" : The ad uses a video vendor that is not | 3313 /// - "VIDEO_INVALID_VENDOR" : The ad uses a video vendor that is not |
| 3255 * supported. | 3314 /// supported. |
| 3256 * - "VIDEO_UNSUPPORTED_LENGTH" : The length of the video ad is not supported. | 3315 /// - "VIDEO_UNSUPPORTED_LENGTH" : The length of the video ad is not |
| 3257 * - "VIDEO_UNSUPPORTED_FORMAT" : The format of the video ad is not supported. | 3316 /// supported. |
| 3258 * - "VIDEO_FUNCTIONALITY" : There was an issue with the video ad. | 3317 /// - "VIDEO_UNSUPPORTED_FORMAT" : The format of the video ad is not |
| 3259 * - "LANDING_PAGE_DISABLED" : The landing page does not conform to Ad | 3318 /// supported. |
| 3260 * Exchange policy. | 3319 /// - "VIDEO_FUNCTIONALITY" : There was an issue with the video ad. |
| 3261 * - "MALWARE_SUSPECTED" : The ad or the landing page may contain malware. | 3320 /// - "LANDING_PAGE_DISABLED" : The landing page does not conform to Ad |
| 3262 * - "ADULT_IMAGE_OR_VIDEO" : The ad contains adult images or video content. | 3321 /// Exchange policy. |
| 3263 * - "INACCURATE_AD_TEXT" : The ad contains text that is unclear or | 3322 /// - "MALWARE_SUSPECTED" : The ad or the landing page may contain malware. |
| 3264 * inaccurate. | 3323 /// - "ADULT_IMAGE_OR_VIDEO" : The ad contains adult images or video content. |
| 3265 * - "COUNTERFEIT_DESIGNER_GOODS" : The ad promotes counterfeit designer | 3324 /// - "INACCURATE_AD_TEXT" : The ad contains text that is unclear or |
| 3266 * goods. | 3325 /// inaccurate. |
| 3267 * - "POP_UP" : The ad causes a popup window to appear. | 3326 /// - "COUNTERFEIT_DESIGNER_GOODS" : The ad promotes counterfeit designer |
| 3268 * - "INVALID_RTB_PROTOCOL_USAGE" : The creative does not follow policies set | 3327 /// goods. |
| 3269 * for the RTB protocol. | 3328 /// - "POP_UP" : The ad causes a popup window to appear. |
| 3270 * - "RAW_IP_ADDRESS_IN_SNIPPET" : The ad contains a URL that uses a numeric | 3329 /// - "INVALID_RTB_PROTOCOL_USAGE" : The creative does not follow policies |
| 3271 * IP address for the domain. | 3330 /// set for the RTB protocol. |
| 3272 * - "UNACCEPTABLE_CONTENT_SOFTWARE" : The ad or landing page contains | 3331 /// - "RAW_IP_ADDRESS_IN_SNIPPET" : The ad contains a URL that uses a numeric |
| 3273 * unacceptable content because it initiated | 3332 /// IP address for the domain. |
| 3274 * a software or executable download. | 3333 /// - "UNACCEPTABLE_CONTENT_SOFTWARE" : The ad or landing page contains |
| 3275 * - "UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN" : The ad set an unauthorized | 3334 /// unacceptable content because it initiated |
| 3276 * cookie on a Google domain. | 3335 /// a software or executable download. |
| 3277 * - "UNDECLARED_FLASH_OBJECTS" : Flash content found when no flash was | 3336 /// - "UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN" : The ad set an unauthorized |
| 3278 * declared. | 3337 /// cookie on a Google domain. |
| 3279 * - "INVALID_SSL_DECLARATION" : SSL support declared but not working | 3338 /// - "UNDECLARED_FLASH_OBJECTS" : Flash content found when no flash was |
| 3280 * correctly. | 3339 /// declared. |
| 3281 * - "DIRECT_DOWNLOAD_IN_AD" : Rich Media - Direct Download in Ad (ex. PDF | 3340 /// - "INVALID_SSL_DECLARATION" : SSL support declared but not working |
| 3282 * download). | 3341 /// correctly. |
| 3283 * - "MAXIMUM_DOWNLOAD_SIZE_EXCEEDED" : Maximum download size exceeded. | 3342 /// - "DIRECT_DOWNLOAD_IN_AD" : Rich Media - Direct Download in Ad (ex. PDF |
| 3284 * - "DESTINATION_URL_SITE_NOT_CRAWLABLE" : Bad Destination URL: Site Not | 3343 /// download). |
| 3285 * Crawlable. | 3344 /// - "MAXIMUM_DOWNLOAD_SIZE_EXCEEDED" : Maximum download size exceeded. |
| 3286 * - "BAD_URL_LEGAL_DISAPPROVAL" : Bad URL: Legal disapproval. | 3345 /// - "DESTINATION_URL_SITE_NOT_CRAWLABLE" : Bad Destination URL: Site Not |
| 3287 * - "PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED" : Pharmaceuticals, Gambling, | 3346 /// Crawlable. |
| 3288 * Alcohol not allowed and at least one was | 3347 /// - "BAD_URL_LEGAL_DISAPPROVAL" : Bad URL: Legal disapproval. |
| 3289 * detected. | 3348 /// - "PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED" : Pharmaceuticals, Gambling, |
| 3290 * - "DYNAMIC_DNS_AT_DESTINATION_URL" : Dynamic DNS at Destination URL. | 3349 /// Alcohol not allowed and at least one was |
| 3291 * - "POOR_IMAGE_OR_VIDEO_QUALITY" : Poor Image / Video Quality. | 3350 /// detected. |
| 3292 * - "UNACCEPTABLE_IMAGE_CONTENT" : For example, Image Trick to Click. | 3351 /// - "DYNAMIC_DNS_AT_DESTINATION_URL" : Dynamic DNS at Destination URL. |
| 3293 * - "INCORRECT_IMAGE_LAYOUT" : Incorrect Image Layout. | 3352 /// - "POOR_IMAGE_OR_VIDEO_QUALITY" : Poor Image / Video Quality. |
| 3294 * - "IRRELEVANT_IMAGE_OR_VIDEO" : Irrelevant Image / Video. | 3353 /// - "UNACCEPTABLE_IMAGE_CONTENT" : For example, Image Trick to Click. |
| 3295 * - "DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK" : Broken back button. | 3354 /// - "INCORRECT_IMAGE_LAYOUT" : Incorrect Image Layout. |
| 3296 * - "MISLEADING_CLAIMS_IN_AD" : Misleading/Inaccurate claims in ads. | 3355 /// - "IRRELEVANT_IMAGE_OR_VIDEO" : Irrelevant Image / Video. |
| 3297 * - "RESTRICTED_PRODUCTS" : Restricted Products. | 3356 /// - "DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK" : Broken back button. |
| 3298 * - "UNACCEPTABLE_CONTENT" : Unacceptable content. For example, malware. | 3357 /// - "MISLEADING_CLAIMS_IN_AD" : Misleading/Inaccurate claims in ads. |
| 3299 * - "AUTOMATED_AD_CLICKING" : The ad automatically redirects to the | 3358 /// - "RESTRICTED_PRODUCTS" : Restricted Products. |
| 3300 * destination site without a click, | 3359 /// - "UNACCEPTABLE_CONTENT" : Unacceptable content. For example, malware. |
| 3301 * or reports a click when none were made. | 3360 /// - "AUTOMATED_AD_CLICKING" : The ad automatically redirects to the |
| 3302 * - "INVALID_URL_PROTOCOL" : The ad uses URL protocols that do not exist or | 3361 /// destination site without a click, |
| 3303 * are not allowed on AdX. | 3362 /// or reports a click when none were made. |
| 3304 * - "UNDECLARED_RESTRICTED_CONTENT" : Restricted content (for example, | 3363 /// - "INVALID_URL_PROTOCOL" : The ad uses URL protocols that do not exist or |
| 3305 * alcohol) was found in the ad but not | 3364 /// are not allowed on AdX. |
| 3306 * declared. | 3365 /// - "UNDECLARED_RESTRICTED_CONTENT" : Restricted content (for example, |
| 3307 * - "INVALID_REMARKETING_LIST_USAGE" : Violation of the remarketing list | 3366 /// alcohol) was found in the ad but not |
| 3308 * policy. | 3367 /// declared. |
| 3309 * - "DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT" : The destination site's | 3368 /// - "INVALID_REMARKETING_LIST_USAGE" : Violation of the remarketing list |
| 3310 * robot.txt file prevents it from being crawled. | 3369 /// policy. |
| 3311 * - "CLICK_TO_DOWNLOAD_NOT_AN_APP" : Click to download must link to an app. | 3370 /// - "DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT" : The destination site's |
| 3312 * - "INACCURATE_REVIEW_EXTENSION" : A review extension must be an accurate | 3371 /// robot.txt file prevents it from being crawled. |
| 3313 * review. | 3372 /// - "CLICK_TO_DOWNLOAD_NOT_AN_APP" : Click to download must link to an app. |
| 3314 * - "SEXUALLY_EXPLICIT_CONTENT" : Sexually explicit content. | 3373 /// - "INACCURATE_REVIEW_EXTENSION" : A review extension must be an accurate |
| 3315 * - "GAINING_AN_UNFAIR_ADVANTAGE" : The ad tries to gain an unfair traffic | 3374 /// review. |
| 3316 * advantage. | 3375 /// - "SEXUALLY_EXPLICIT_CONTENT" : Sexually explicit content. |
| 3317 * - "GAMING_THE_GOOGLE_NETWORK" : The ad tries to circumvent Google's | 3376 /// - "GAINING_AN_UNFAIR_ADVANTAGE" : The ad tries to gain an unfair traffic |
| 3318 * advertising systems. | 3377 /// advantage. |
| 3319 * - "DANGEROUS_PRODUCTS_KNIVES" : The ad promotes dangerous knives. | 3378 /// - "GAMING_THE_GOOGLE_NETWORK" : The ad tries to circumvent Google's |
| 3320 * - "DANGEROUS_PRODUCTS_EXPLOSIVES" : The ad promotes explosives. | 3379 /// advertising systems. |
| 3321 * - "DANGEROUS_PRODUCTS_GUNS" : The ad promotes guns & parts. | 3380 /// - "DANGEROUS_PRODUCTS_KNIVES" : The ad promotes dangerous knives. |
| 3322 * - "DANGEROUS_PRODUCTS_DRUGS" : The ad promotes recreational drugs/services | 3381 /// - "DANGEROUS_PRODUCTS_EXPLOSIVES" : The ad promotes explosives. |
| 3323 * & related equipment. | 3382 /// - "DANGEROUS_PRODUCTS_GUNS" : The ad promotes guns & parts. |
| 3324 * - "DANGEROUS_PRODUCTS_TOBACCO" : The ad promotes tobacco products/services | 3383 /// - "DANGEROUS_PRODUCTS_DRUGS" : The ad promotes recreational |
| 3325 * & related equipment. | 3384 /// drugs/services & related equipment. |
| 3326 * - "DANGEROUS_PRODUCTS_WEAPONS" : The ad promotes weapons. | 3385 /// - "DANGEROUS_PRODUCTS_TOBACCO" : The ad promotes tobacco |
| 3327 * - "UNCLEAR_OR_IRRELEVANT_AD" : The ad is unclear or irrelevant to the | 3386 /// products/services & related equipment. |
| 3328 * destination site. | 3387 /// - "DANGEROUS_PRODUCTS_WEAPONS" : The ad promotes weapons. |
| 3329 * - "PROFESSIONAL_STANDARDS" : The ad does not meet professional standards. | 3388 /// - "UNCLEAR_OR_IRRELEVANT_AD" : The ad is unclear or irrelevant to the |
| 3330 * - "DYSFUNCTIONAL_PROMOTION" : The promotion is unnecessarily difficult to | 3389 /// destination site. |
| 3331 * navigate. | 3390 /// - "PROFESSIONAL_STANDARDS" : The ad does not meet professional standards. |
| 3332 * - "INVALID_INTEREST_BASED_AD" : Violation of Google's policy for | 3391 /// - "DYSFUNCTIONAL_PROMOTION" : The promotion is unnecessarily difficult to |
| 3333 * interest-based ads. | 3392 /// navigate. |
| 3334 * - "MISUSE_OF_PERSONAL_INFORMATION" : Misuse of personal information. | 3393 /// - "INVALID_INTEREST_BASED_AD" : Violation of Google's policy for |
| 3335 * - "OMISSION_OF_RELEVANT_INFORMATION" : Omission of relevant information. | 3394 /// interest-based ads. |
| 3336 * - "UNAVAILABLE_PROMOTIONS" : Unavailable promotions. | 3395 /// - "MISUSE_OF_PERSONAL_INFORMATION" : Misuse of personal information. |
| 3337 * - "MISLEADING_PROMOTIONS" : Misleading or unrealistic promotions. | 3396 /// - "OMISSION_OF_RELEVANT_INFORMATION" : Omission of relevant information. |
| 3338 * - "INAPPROPRIATE_CONTENT" : Offensive or inappropriate content. | 3397 /// - "UNAVAILABLE_PROMOTIONS" : Unavailable promotions. |
| 3339 * - "SENSITIVE_EVENTS" : Capitalizing on sensitive events. | 3398 /// - "MISLEADING_PROMOTIONS" : Misleading or unrealistic promotions. |
| 3340 * - "SHOCKING_CONTENT" : Shocking content. | 3399 /// - "INAPPROPRIATE_CONTENT" : Offensive or inappropriate content. |
| 3341 * - "ENABLING_DISHONEST_BEHAVIOR" : Products & Services that enable dishonest | 3400 /// - "SENSITIVE_EVENTS" : Capitalizing on sensitive events. |
| 3342 * behavior. | 3401 /// - "SHOCKING_CONTENT" : Shocking content. |
| 3343 * - "TECHNICAL_REQUIREMENTS" : The ad does not meet technical requirements. | 3402 /// - "ENABLING_DISHONEST_BEHAVIOR" : Products & Services that enable |
| 3344 * - "RESTRICTED_POLITICAL_CONTENT" : Restricted political content. | 3403 /// dishonest behavior. |
| 3345 * - "UNSUPPORTED_CONTENT" : Unsupported content. | 3404 /// - "TECHNICAL_REQUIREMENTS" : The ad does not meet technical requirements. |
| 3346 * - "INVALID_BIDDING_METHOD" : Invalid bidding method. | 3405 /// - "RESTRICTED_POLITICAL_CONTENT" : Restricted political content. |
| 3347 * - "VIDEO_TOO_LONG" : Video length exceeds limits. | 3406 /// - "UNSUPPORTED_CONTENT" : Unsupported content. |
| 3348 * - "VIOLATES_JAPANESE_PHARMACY_LAW" : Unacceptable content: Japanese | 3407 /// - "INVALID_BIDDING_METHOD" : Invalid bidding method. |
| 3349 * healthcare. | 3408 /// - "VIDEO_TOO_LONG" : Video length exceeds limits. |
| 3350 * - "UNACCREDITED_PET_PHARMACY" : Online pharmacy ID required. | 3409 /// - "VIOLATES_JAPANESE_PHARMACY_LAW" : Unacceptable content: Japanese |
| 3351 * - "ABORTION" : Unacceptable content: Abortion. | 3410 /// healthcare. |
| 3352 * - "CONTRACEPTIVES" : Unacceptable content: Birth control. | 3411 /// - "UNACCREDITED_PET_PHARMACY" : Online pharmacy ID required. |
| 3353 * - "NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA" : Restricted in China. | 3412 /// - "ABORTION" : Unacceptable content: Abortion. |
| 3354 * - "KCDSP_REGISTRATION" : Unacceptable content: Korean healthcare. | 3413 /// - "CONTRACEPTIVES" : Unacceptable content: Birth control. |
| 3355 * - "NOT_FAMILY_SAFE" : Non-family safe or adult content. | 3414 /// - "NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA" : Restricted in China. |
| 3356 * - "CLINICAL_TRIAL_RECRUITMENT" : Clinical trial recruitment. | 3415 /// - "KCDSP_REGISTRATION" : Unacceptable content: Korean healthcare. |
| 3357 * - "MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED" : Maximum number of HTTP calls | 3416 /// - "NOT_FAMILY_SAFE" : Non-family safe or adult content. |
| 3358 * exceeded. | 3417 /// - "CLINICAL_TRIAL_RECRUITMENT" : Clinical trial recruitment. |
| 3359 * - "MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED" : Maximum number of cookies | 3418 /// - "MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED" : Maximum number of HTTP calls |
| 3360 * exceeded. | 3419 /// exceeded. |
| 3361 * - "PERSONAL_LOANS" : Financial service ad does not adhere to | 3420 /// - "MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED" : Maximum number of cookies |
| 3362 * specifications. | 3421 /// exceeded. |
| 3363 * - "UNSUPPORTED_FLASH_CONTENT" : Flash content was found in an unsupported | 3422 /// - "PERSONAL_LOANS" : Financial service ad does not adhere to |
| 3364 * context. | 3423 /// specifications. |
| 3365 */ | 3424 /// - "UNSUPPORTED_FLASH_CONTENT" : Flash content was found in an unsupported |
| 3425 /// context. |
| 3366 core.String reason; | 3426 core.String reason; |
| 3367 | 3427 |
| 3368 Disapproval(); | 3428 Disapproval(); |
| 3369 | 3429 |
| 3370 Disapproval.fromJson(core.Map _json) { | 3430 Disapproval.fromJson(core.Map _json) { |
| 3371 if (_json.containsKey("details")) { | 3431 if (_json.containsKey("details")) { |
| 3372 details = _json["details"]; | 3432 details = _json["details"]; |
| 3373 } | 3433 } |
| 3374 if (_json.containsKey("reason")) { | 3434 if (_json.containsKey("reason")) { |
| 3375 reason = _json["reason"]; | 3435 reason = _json["reason"]; |
| 3376 } | 3436 } |
| 3377 } | 3437 } |
| 3378 | 3438 |
| 3379 core.Map<core.String, core.Object> toJson() { | 3439 core.Map<core.String, core.Object> toJson() { |
| 3380 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3440 final core.Map<core.String, core.Object> _json = |
| 3441 new core.Map<core.String, core.Object>(); |
| 3381 if (details != null) { | 3442 if (details != null) { |
| 3382 _json["details"] = details; | 3443 _json["details"] = details; |
| 3383 } | 3444 } |
| 3384 if (reason != null) { | 3445 if (reason != null) { |
| 3385 _json["reason"] = reason; | 3446 _json["reason"] = reason; |
| 3386 } | 3447 } |
| 3387 return _json; | 3448 return _json; |
| 3388 } | 3449 } |
| 3389 } | 3450 } |
| 3390 | 3451 |
| 3391 /** | 3452 /// A generic empty message that you can re-use to avoid defining duplicated |
| 3392 * A generic empty message that you can re-use to avoid defining duplicated | 3453 /// empty messages in your APIs. A typical example is to use it as the request |
| 3393 * empty messages in your APIs. A typical example is to use it as the request | 3454 /// or the response type of an API method. For instance: |
| 3394 * or the response type of an API method. For instance: | 3455 /// |
| 3395 * | 3456 /// service Foo { |
| 3396 * service Foo { | 3457 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 3397 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 3458 /// } |
| 3398 * } | 3459 /// |
| 3399 * | 3460 /// The JSON representation for `Empty` is empty JSON object `{}`. |
| 3400 * The JSON representation for `Empty` is empty JSON object `{}`. | |
| 3401 */ | |
| 3402 class Empty { | 3461 class Empty { |
| 3403 | |
| 3404 Empty(); | 3462 Empty(); |
| 3405 | 3463 |
| 3406 Empty.fromJson(core.Map _json) { | 3464 Empty.fromJson(core.Map _json) {} |
| 3407 } | |
| 3408 | 3465 |
| 3409 core.Map<core.String, core.Object> toJson() { | 3466 core.Map<core.String, core.Object> toJson() { |
| 3410 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3467 final core.Map<core.String, core.Object> _json = |
| 3468 new core.Map<core.String, core.Object>(); |
| 3411 return _json; | 3469 return _json; |
| 3412 } | 3470 } |
| 3413 } | 3471 } |
| 3414 | 3472 |
| 3415 /** | 3473 /// A set of filters that is applied to a request for data. |
| 3416 * A set of filters that is applied to a request for data. | 3474 /// Within a filter set, an AND operation is performed across the filters |
| 3417 * Within a filter set, an AND operation is performed across the filters | 3475 /// represented by each field. An OR operation is performed across the filters |
| 3418 * represented by each field. An OR operation is performed across the filters | 3476 /// represented by the multiple values of a repeated field. E.g. |
| 3419 * represented by the multiple values of a repeated field. E.g. | 3477 /// "format=VIDEO AND deal_id=12 AND (seller_network_id=34 OR |
| 3420 * "format=VIDEO AND deal_id=12 AND (seller_network_id=34 OR | 3478 /// seller_network_id=56)" |
| 3421 * seller_network_id=56)" | |
| 3422 */ | |
| 3423 class FilterSet { | 3479 class FilterSet { |
| 3424 /** | 3480 /// An absolute date range, defined by a start date and an end date. |
| 3425 * An absolute date range, defined by a start date and an end date. | 3481 /// Interpreted relative to Pacific time zone. |
| 3426 * Interpreted relative to Pacific time zone. | |
| 3427 */ | |
| 3428 AbsoluteDateRange absoluteDateRange; | 3482 AbsoluteDateRange absoluteDateRange; |
| 3429 /** The ID of the buyer account on which to filter; optional. */ | 3483 |
| 3484 /// The ID of the buyer account on which to filter; optional. |
| 3430 core.String buyerAccountId; | 3485 core.String buyerAccountId; |
| 3431 /** The ID of the creative on which to filter; optional. */ | 3486 |
| 3487 /// The ID of the creative on which to filter; optional. |
| 3432 core.String creativeId; | 3488 core.String creativeId; |
| 3433 /** The ID of the deal on which to filter; optional. */ | 3489 |
| 3490 /// The ID of the deal on which to filter; optional. |
| 3434 core.String dealId; | 3491 core.String dealId; |
| 3435 /** | 3492 |
| 3436 * The environment on which to filter; optional. | 3493 /// The environment on which to filter; optional. |
| 3437 * Possible string values are: | 3494 /// Possible string values are: |
| 3438 * - "ENVIRONMENT_UNSPECIFIED" : A placeholder for an undefined environment; | 3495 /// - "ENVIRONMENT_UNSPECIFIED" : A placeholder for an undefined environment; |
| 3439 * indicates that no environment | 3496 /// indicates that no environment |
| 3440 * filter will be applied. | 3497 /// filter will be applied. |
| 3441 * - "WEB" : The ad impression appears on the web. | 3498 /// - "WEB" : The ad impression appears on the web. |
| 3442 * - "APP" : The ad impression appears in an app. | 3499 /// - "APP" : The ad impression appears in an app. |
| 3443 */ | |
| 3444 core.String environment; | 3500 core.String environment; |
| 3445 /** | 3501 |
| 3446 * The ID of the filter set; unique within the account of the filter set | 3502 /// The ID of the filter set; unique within the account of the filter set |
| 3447 * owner. | 3503 /// owner. |
| 3448 * The value of this field is ignored in create operations. | 3504 /// The value of this field is ignored in create operations. |
| 3449 */ | |
| 3450 core.String filterSetId; | 3505 core.String filterSetId; |
| 3451 /** | 3506 |
| 3452 * The format on which to filter; optional. | 3507 /// The format on which to filter; optional. |
| 3453 * Possible string values are: | 3508 /// Possible string values are: |
| 3454 * - "FORMAT_UNSPECIFIED" : A placeholder for an undefined format; indicates | 3509 /// - "FORMAT_UNSPECIFIED" : A placeholder for an undefined format; indicates |
| 3455 * that no format filter | 3510 /// that no format filter |
| 3456 * will be applied. | 3511 /// will be applied. |
| 3457 * - "DISPLAY" : The ad impression is display format (i.e. an image). | 3512 /// - "DISPLAY" : The ad impression is display format (i.e. an image). |
| 3458 * - "VIDEO" : The ad impression is video format. | 3513 /// - "VIDEO" : The ad impression is video format. |
| 3459 */ | |
| 3460 core.String format; | 3514 core.String format; |
| 3461 /** | 3515 |
| 3462 * The account ID of the buyer who owns this filter set. | 3516 /// The account ID of the buyer who owns this filter set. |
| 3463 * The value of this field is ignored in create operations. | 3517 /// The value of this field is ignored in create operations. |
| 3464 */ | |
| 3465 core.String ownerAccountId; | 3518 core.String ownerAccountId; |
| 3466 /** | 3519 |
| 3467 * The list of platforms on which to filter; may be empty. The filters | 3520 /// The list of platforms on which to filter; may be empty. The filters |
| 3468 * represented by multiple platforms are ORed together (i.e. if non-empty, | 3521 /// represented by multiple platforms are ORed together (i.e. if non-empty, |
| 3469 * results must match any one of the platforms). | 3522 /// results must match any one of the platforms). |
| 3470 */ | |
| 3471 core.List<core.String> platforms; | 3523 core.List<core.String> platforms; |
| 3472 /** | 3524 |
| 3473 * An open-ended realtime time range, defined by the aggregation start | 3525 /// An open-ended realtime time range, defined by the aggregation start |
| 3474 * timestamp. | 3526 /// timestamp. |
| 3475 */ | |
| 3476 RealtimeTimeRange realtimeTimeRange; | 3527 RealtimeTimeRange realtimeTimeRange; |
| 3477 /** | 3528 |
| 3478 * A relative date range, defined by an offset from today and a duration. | 3529 /// A relative date range, defined by an offset from today and a duration. |
| 3479 * Interpreted relative to Pacific time zone. | 3530 /// Interpreted relative to Pacific time zone. |
| 3480 */ | |
| 3481 RelativeDateRange relativeDateRange; | 3531 RelativeDateRange relativeDateRange; |
| 3482 /** | 3532 |
| 3483 * The list of IDs of the seller (publisher) networks on which to filter; | 3533 /// The list of IDs of the seller (publisher) networks on which to filter; |
| 3484 * may be empty. The filters represented by multiple seller network IDs are | 3534 /// may be empty. The filters represented by multiple seller network IDs are |
| 3485 * ORed together (i.e. if non-empty, results must match any one of the | 3535 /// ORed together (i.e. if non-empty, results must match any one of the |
| 3486 * publisher networks). | 3536 /// publisher networks). |
| 3487 * See | 3537 /// See |
| 3488 * [seller-network-ids](https://developers.google.com/ad-exchange/rtb/download
s/seller-network-ids) | 3538 /// [seller-network-ids](https://developers.google.com/ad-exchange/rtb/downloa
ds/seller-network-ids) |
| 3489 * file for the set of existing seller network IDs. | 3539 /// file for the set of existing seller network IDs. |
| 3490 */ | |
| 3491 core.List<core.int> sellerNetworkIds; | 3540 core.List<core.int> sellerNetworkIds; |
| 3492 /** | 3541 |
| 3493 * The granularity of time intervals if a time series breakdown is desired; | 3542 /// The granularity of time intervals if a time series breakdown is desired; |
| 3494 * optional. | 3543 /// optional. |
| 3495 * Possible string values are: | 3544 /// Possible string values are: |
| 3496 * - "TIME_SERIES_GRANULARITY_UNSPECIFIED" : A placeholder for an unspecified | 3545 /// - "TIME_SERIES_GRANULARITY_UNSPECIFIED" : A placeholder for an |
| 3497 * interval; no time series is applied. | 3546 /// unspecified interval; no time series is applied. |
| 3498 * All rows in response will contain data for the entire requested time range. | 3547 /// All rows in response will contain data for the entire requested time |
| 3499 * - "HOURLY" : Indicates that data will be broken down by the hour. | 3548 /// range. |
| 3500 * - "DAILY" : Indicates that data will be broken down by the day. | 3549 /// - "HOURLY" : Indicates that data will be broken down by the hour. |
| 3501 */ | 3550 /// - "DAILY" : Indicates that data will be broken down by the day. |
| 3502 core.String timeSeriesGranularity; | 3551 core.String timeSeriesGranularity; |
| 3503 | 3552 |
| 3504 FilterSet(); | 3553 FilterSet(); |
| 3505 | 3554 |
| 3506 FilterSet.fromJson(core.Map _json) { | 3555 FilterSet.fromJson(core.Map _json) { |
| 3507 if (_json.containsKey("absoluteDateRange")) { | 3556 if (_json.containsKey("absoluteDateRange")) { |
| 3508 absoluteDateRange = new AbsoluteDateRange.fromJson(_json["absoluteDateRang
e"]); | 3557 absoluteDateRange = |
| 3558 new AbsoluteDateRange.fromJson(_json["absoluteDateRange"]); |
| 3509 } | 3559 } |
| 3510 if (_json.containsKey("buyerAccountId")) { | 3560 if (_json.containsKey("buyerAccountId")) { |
| 3511 buyerAccountId = _json["buyerAccountId"]; | 3561 buyerAccountId = _json["buyerAccountId"]; |
| 3512 } | 3562 } |
| 3513 if (_json.containsKey("creativeId")) { | 3563 if (_json.containsKey("creativeId")) { |
| 3514 creativeId = _json["creativeId"]; | 3564 creativeId = _json["creativeId"]; |
| 3515 } | 3565 } |
| 3516 if (_json.containsKey("dealId")) { | 3566 if (_json.containsKey("dealId")) { |
| 3517 dealId = _json["dealId"]; | 3567 dealId = _json["dealId"]; |
| 3518 } | 3568 } |
| 3519 if (_json.containsKey("environment")) { | 3569 if (_json.containsKey("environment")) { |
| 3520 environment = _json["environment"]; | 3570 environment = _json["environment"]; |
| 3521 } | 3571 } |
| 3522 if (_json.containsKey("filterSetId")) { | 3572 if (_json.containsKey("filterSetId")) { |
| 3523 filterSetId = _json["filterSetId"]; | 3573 filterSetId = _json["filterSetId"]; |
| 3524 } | 3574 } |
| 3525 if (_json.containsKey("format")) { | 3575 if (_json.containsKey("format")) { |
| 3526 format = _json["format"]; | 3576 format = _json["format"]; |
| 3527 } | 3577 } |
| 3528 if (_json.containsKey("ownerAccountId")) { | 3578 if (_json.containsKey("ownerAccountId")) { |
| 3529 ownerAccountId = _json["ownerAccountId"]; | 3579 ownerAccountId = _json["ownerAccountId"]; |
| 3530 } | 3580 } |
| 3531 if (_json.containsKey("platforms")) { | 3581 if (_json.containsKey("platforms")) { |
| 3532 platforms = _json["platforms"]; | 3582 platforms = _json["platforms"]; |
| 3533 } | 3583 } |
| 3534 if (_json.containsKey("realtimeTimeRange")) { | 3584 if (_json.containsKey("realtimeTimeRange")) { |
| 3535 realtimeTimeRange = new RealtimeTimeRange.fromJson(_json["realtimeTimeRang
e"]); | 3585 realtimeTimeRange = |
| 3586 new RealtimeTimeRange.fromJson(_json["realtimeTimeRange"]); |
| 3536 } | 3587 } |
| 3537 if (_json.containsKey("relativeDateRange")) { | 3588 if (_json.containsKey("relativeDateRange")) { |
| 3538 relativeDateRange = new RelativeDateRange.fromJson(_json["relativeDateRang
e"]); | 3589 relativeDateRange = |
| 3590 new RelativeDateRange.fromJson(_json["relativeDateRange"]); |
| 3539 } | 3591 } |
| 3540 if (_json.containsKey("sellerNetworkIds")) { | 3592 if (_json.containsKey("sellerNetworkIds")) { |
| 3541 sellerNetworkIds = _json["sellerNetworkIds"]; | 3593 sellerNetworkIds = _json["sellerNetworkIds"]; |
| 3542 } | 3594 } |
| 3543 if (_json.containsKey("timeSeriesGranularity")) { | 3595 if (_json.containsKey("timeSeriesGranularity")) { |
| 3544 timeSeriesGranularity = _json["timeSeriesGranularity"]; | 3596 timeSeriesGranularity = _json["timeSeriesGranularity"]; |
| 3545 } | 3597 } |
| 3546 } | 3598 } |
| 3547 | 3599 |
| 3548 core.Map<core.String, core.Object> toJson() { | 3600 core.Map<core.String, core.Object> toJson() { |
| 3549 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3601 final core.Map<core.String, core.Object> _json = |
| 3602 new core.Map<core.String, core.Object>(); |
| 3550 if (absoluteDateRange != null) { | 3603 if (absoluteDateRange != null) { |
| 3551 _json["absoluteDateRange"] = (absoluteDateRange).toJson(); | 3604 _json["absoluteDateRange"] = (absoluteDateRange).toJson(); |
| 3552 } | 3605 } |
| 3553 if (buyerAccountId != null) { | 3606 if (buyerAccountId != null) { |
| 3554 _json["buyerAccountId"] = buyerAccountId; | 3607 _json["buyerAccountId"] = buyerAccountId; |
| 3555 } | 3608 } |
| 3556 if (creativeId != null) { | 3609 if (creativeId != null) { |
| 3557 _json["creativeId"] = creativeId; | 3610 _json["creativeId"] = creativeId; |
| 3558 } | 3611 } |
| 3559 if (dealId != null) { | 3612 if (dealId != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3583 if (sellerNetworkIds != null) { | 3636 if (sellerNetworkIds != null) { |
| 3584 _json["sellerNetworkIds"] = sellerNetworkIds; | 3637 _json["sellerNetworkIds"] = sellerNetworkIds; |
| 3585 } | 3638 } |
| 3586 if (timeSeriesGranularity != null) { | 3639 if (timeSeriesGranularity != null) { |
| 3587 _json["timeSeriesGranularity"] = timeSeriesGranularity; | 3640 _json["timeSeriesGranularity"] = timeSeriesGranularity; |
| 3588 } | 3641 } |
| 3589 return _json; | 3642 return _json; |
| 3590 } | 3643 } |
| 3591 } | 3644 } |
| 3592 | 3645 |
| 3593 /** | 3646 /// The number of filtered bids with the specified dimension values that have |
| 3594 * The number of filtered bids with the specified dimension values that have the | 3647 /// the |
| 3595 * specified creative. | 3648 /// specified creative. |
| 3596 */ | |
| 3597 class FilteredBidCreativeRow { | 3649 class FilteredBidCreativeRow { |
| 3598 /** The number of bids with the specified creative. */ | 3650 /// The number of bids with the specified creative. |
| 3599 MetricValue bidCount; | 3651 MetricValue bidCount; |
| 3600 /** The ID of the creative. */ | 3652 |
| 3653 /// The ID of the creative. |
| 3601 core.String creativeId; | 3654 core.String creativeId; |
| 3602 /** | 3655 |
| 3603 * The values of all dimensions associated with metric values in this row. | 3656 /// The values of all dimensions associated with metric values in this row. |
| 3604 */ | |
| 3605 RowDimensions rowDimensions; | 3657 RowDimensions rowDimensions; |
| 3606 | 3658 |
| 3607 FilteredBidCreativeRow(); | 3659 FilteredBidCreativeRow(); |
| 3608 | 3660 |
| 3609 FilteredBidCreativeRow.fromJson(core.Map _json) { | 3661 FilteredBidCreativeRow.fromJson(core.Map _json) { |
| 3610 if (_json.containsKey("bidCount")) { | 3662 if (_json.containsKey("bidCount")) { |
| 3611 bidCount = new MetricValue.fromJson(_json["bidCount"]); | 3663 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 3612 } | 3664 } |
| 3613 if (_json.containsKey("creativeId")) { | 3665 if (_json.containsKey("creativeId")) { |
| 3614 creativeId = _json["creativeId"]; | 3666 creativeId = _json["creativeId"]; |
| 3615 } | 3667 } |
| 3616 if (_json.containsKey("rowDimensions")) { | 3668 if (_json.containsKey("rowDimensions")) { |
| 3617 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 3669 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3618 } | 3670 } |
| 3619 } | 3671 } |
| 3620 | 3672 |
| 3621 core.Map<core.String, core.Object> toJson() { | 3673 core.Map<core.String, core.Object> toJson() { |
| 3622 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3674 final core.Map<core.String, core.Object> _json = |
| 3675 new core.Map<core.String, core.Object>(); |
| 3623 if (bidCount != null) { | 3676 if (bidCount != null) { |
| 3624 _json["bidCount"] = (bidCount).toJson(); | 3677 _json["bidCount"] = (bidCount).toJson(); |
| 3625 } | 3678 } |
| 3626 if (creativeId != null) { | 3679 if (creativeId != null) { |
| 3627 _json["creativeId"] = creativeId; | 3680 _json["creativeId"] = creativeId; |
| 3628 } | 3681 } |
| 3629 if (rowDimensions != null) { | 3682 if (rowDimensions != null) { |
| 3630 _json["rowDimensions"] = (rowDimensions).toJson(); | 3683 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3631 } | 3684 } |
| 3632 return _json; | 3685 return _json; |
| 3633 } | 3686 } |
| 3634 } | 3687 } |
| 3635 | 3688 |
| 3636 /** | 3689 /// The number of filtered bids with the specified dimension values, among |
| 3637 * The number of filtered bids with the specified dimension values, among those | 3690 /// those |
| 3638 * filtered due to the requested filtering reason (i.e. creative status), that | 3691 /// filtered due to the requested filtering reason (i.e. creative status), that |
| 3639 * have the specified detail. | 3692 /// have the specified detail. |
| 3640 */ | |
| 3641 class FilteredBidDetailRow { | 3693 class FilteredBidDetailRow { |
| 3642 /** The number of bids with the specified detail. */ | 3694 /// The number of bids with the specified detail. |
| 3643 MetricValue bidCount; | 3695 MetricValue bidCount; |
| 3644 /** | 3696 |
| 3645 * The ID of the detail. The associated value can be looked up in the | 3697 /// The ID of the detail. The associated value can be looked up in the |
| 3646 * dictionary file corresponding to the DetailType in the response message. | 3698 /// dictionary file corresponding to the DetailType in the response message. |
| 3647 */ | |
| 3648 core.int detailId; | 3699 core.int detailId; |
| 3649 /** | 3700 |
| 3650 * The values of all dimensions associated with metric values in this row. | 3701 /// The values of all dimensions associated with metric values in this row. |
| 3651 */ | |
| 3652 RowDimensions rowDimensions; | 3702 RowDimensions rowDimensions; |
| 3653 | 3703 |
| 3654 FilteredBidDetailRow(); | 3704 FilteredBidDetailRow(); |
| 3655 | 3705 |
| 3656 FilteredBidDetailRow.fromJson(core.Map _json) { | 3706 FilteredBidDetailRow.fromJson(core.Map _json) { |
| 3657 if (_json.containsKey("bidCount")) { | 3707 if (_json.containsKey("bidCount")) { |
| 3658 bidCount = new MetricValue.fromJson(_json["bidCount"]); | 3708 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 3659 } | 3709 } |
| 3660 if (_json.containsKey("detailId")) { | 3710 if (_json.containsKey("detailId")) { |
| 3661 detailId = _json["detailId"]; | 3711 detailId = _json["detailId"]; |
| 3662 } | 3712 } |
| 3663 if (_json.containsKey("rowDimensions")) { | 3713 if (_json.containsKey("rowDimensions")) { |
| 3664 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 3714 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3665 } | 3715 } |
| 3666 } | 3716 } |
| 3667 | 3717 |
| 3668 core.Map<core.String, core.Object> toJson() { | 3718 core.Map<core.String, core.Object> toJson() { |
| 3669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3719 final core.Map<core.String, core.Object> _json = |
| 3720 new core.Map<core.String, core.Object>(); |
| 3670 if (bidCount != null) { | 3721 if (bidCount != null) { |
| 3671 _json["bidCount"] = (bidCount).toJson(); | 3722 _json["bidCount"] = (bidCount).toJson(); |
| 3672 } | 3723 } |
| 3673 if (detailId != null) { | 3724 if (detailId != null) { |
| 3674 _json["detailId"] = detailId; | 3725 _json["detailId"] = detailId; |
| 3675 } | 3726 } |
| 3676 if (rowDimensions != null) { | 3727 if (rowDimensions != null) { |
| 3677 _json["rowDimensions"] = (rowDimensions).toJson(); | 3728 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3678 } | 3729 } |
| 3679 return _json; | 3730 return _json; |
| 3680 } | 3731 } |
| 3681 } | 3732 } |
| 3682 | 3733 |
| 3683 /** | 3734 /// @OutputOnly Filtering reasons for this creative during a period of a single |
| 3684 * @OutputOnly Filtering reasons for this creative during a period of a single | 3735 /// day (from midnight to midnight Pacific). |
| 3685 * day (from midnight to midnight Pacific). | |
| 3686 */ | |
| 3687 class FilteringStats { | 3736 class FilteringStats { |
| 3688 /** | 3737 /// The day during which the data was collected. |
| 3689 * The day during which the data was collected. | 3738 /// The data is collected from 00:00:00 to 23:59:59 PT. |
| 3690 * The data is collected from 00:00:00 to 23:59:59 PT. | 3739 /// During switches from PST to PDT and back, the day may |
| 3691 * During switches from PST to PDT and back, the day may | 3740 /// contain 23 or 25 hours of data instead of the usual 24. |
| 3692 * contain 23 or 25 hours of data instead of the usual 24. | |
| 3693 */ | |
| 3694 Date date; | 3741 Date date; |
| 3695 /** The set of filtering reasons for this date. */ | 3742 |
| 3743 /// The set of filtering reasons for this date. |
| 3696 core.List<Reason> reasons; | 3744 core.List<Reason> reasons; |
| 3697 | 3745 |
| 3698 FilteringStats(); | 3746 FilteringStats(); |
| 3699 | 3747 |
| 3700 FilteringStats.fromJson(core.Map _json) { | 3748 FilteringStats.fromJson(core.Map _json) { |
| 3701 if (_json.containsKey("date")) { | 3749 if (_json.containsKey("date")) { |
| 3702 date = new Date.fromJson(_json["date"]); | 3750 date = new Date.fromJson(_json["date"]); |
| 3703 } | 3751 } |
| 3704 if (_json.containsKey("reasons")) { | 3752 if (_json.containsKey("reasons")) { |
| 3705 reasons = _json["reasons"].map((value) => new Reason.fromJson(value)).toLi
st(); | 3753 reasons = |
| 3754 _json["reasons"].map((value) => new Reason.fromJson(value)).toList(); |
| 3706 } | 3755 } |
| 3707 } | 3756 } |
| 3708 | 3757 |
| 3709 core.Map<core.String, core.Object> toJson() { | 3758 core.Map<core.String, core.Object> toJson() { |
| 3710 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3759 final core.Map<core.String, core.Object> _json = |
| 3760 new core.Map<core.String, core.Object>(); |
| 3711 if (date != null) { | 3761 if (date != null) { |
| 3712 _json["date"] = (date).toJson(); | 3762 _json["date"] = (date).toJson(); |
| 3713 } | 3763 } |
| 3714 if (reasons != null) { | 3764 if (reasons != null) { |
| 3715 _json["reasons"] = reasons.map((value) => (value).toJson()).toList(); | 3765 _json["reasons"] = reasons.map((value) => (value).toJson()).toList(); |
| 3716 } | 3766 } |
| 3717 return _json; | 3767 return _json; |
| 3718 } | 3768 } |
| 3719 } | 3769 } |
| 3720 | 3770 |
| 3721 /** HTML content for a creative. */ | 3771 /// HTML content for a creative. |
| 3722 class HtmlContent { | 3772 class HtmlContent { |
| 3723 /** The height of the HTML snippet in pixels. */ | 3773 /// The height of the HTML snippet in pixels. |
| 3724 core.int height; | 3774 core.int height; |
| 3725 /** The HTML snippet that displays the ad when inserted in the web page. */ | 3775 |
| 3776 /// The HTML snippet that displays the ad when inserted in the web page. |
| 3726 core.String snippet; | 3777 core.String snippet; |
| 3727 /** The width of the HTML snippet in pixels. */ | 3778 |
| 3779 /// The width of the HTML snippet in pixels. |
| 3728 core.int width; | 3780 core.int width; |
| 3729 | 3781 |
| 3730 HtmlContent(); | 3782 HtmlContent(); |
| 3731 | 3783 |
| 3732 HtmlContent.fromJson(core.Map _json) { | 3784 HtmlContent.fromJson(core.Map _json) { |
| 3733 if (_json.containsKey("height")) { | 3785 if (_json.containsKey("height")) { |
| 3734 height = _json["height"]; | 3786 height = _json["height"]; |
| 3735 } | 3787 } |
| 3736 if (_json.containsKey("snippet")) { | 3788 if (_json.containsKey("snippet")) { |
| 3737 snippet = _json["snippet"]; | 3789 snippet = _json["snippet"]; |
| 3738 } | 3790 } |
| 3739 if (_json.containsKey("width")) { | 3791 if (_json.containsKey("width")) { |
| 3740 width = _json["width"]; | 3792 width = _json["width"]; |
| 3741 } | 3793 } |
| 3742 } | 3794 } |
| 3743 | 3795 |
| 3744 core.Map<core.String, core.Object> toJson() { | 3796 core.Map<core.String, core.Object> toJson() { |
| 3745 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3797 final core.Map<core.String, core.Object> _json = |
| 3798 new core.Map<core.String, core.Object>(); |
| 3746 if (height != null) { | 3799 if (height != null) { |
| 3747 _json["height"] = height; | 3800 _json["height"] = height; |
| 3748 } | 3801 } |
| 3749 if (snippet != null) { | 3802 if (snippet != null) { |
| 3750 _json["snippet"] = snippet; | 3803 _json["snippet"] = snippet; |
| 3751 } | 3804 } |
| 3752 if (width != null) { | 3805 if (width != null) { |
| 3753 _json["width"] = width; | 3806 _json["width"] = width; |
| 3754 } | 3807 } |
| 3755 return _json; | 3808 return _json; |
| 3756 } | 3809 } |
| 3757 } | 3810 } |
| 3758 | 3811 |
| 3759 /** | 3812 /// An image resource. You may provide a larger image than was requested, |
| 3760 * An image resource. You may provide a larger image than was requested, | 3813 /// so long as the aspect ratio is preserved. |
| 3761 * so long as the aspect ratio is preserved. | |
| 3762 */ | |
| 3763 class Image { | 3814 class Image { |
| 3764 /** Image height in pixels. */ | 3815 /// Image height in pixels. |
| 3765 core.int height; | 3816 core.int height; |
| 3766 /** The URL of the image. */ | 3817 |
| 3818 /// The URL of the image. |
| 3767 core.String url; | 3819 core.String url; |
| 3768 /** Image width in pixels. */ | 3820 |
| 3821 /// Image width in pixels. |
| 3769 core.int width; | 3822 core.int width; |
| 3770 | 3823 |
| 3771 Image(); | 3824 Image(); |
| 3772 | 3825 |
| 3773 Image.fromJson(core.Map _json) { | 3826 Image.fromJson(core.Map _json) { |
| 3774 if (_json.containsKey("height")) { | 3827 if (_json.containsKey("height")) { |
| 3775 height = _json["height"]; | 3828 height = _json["height"]; |
| 3776 } | 3829 } |
| 3777 if (_json.containsKey("url")) { | 3830 if (_json.containsKey("url")) { |
| 3778 url = _json["url"]; | 3831 url = _json["url"]; |
| 3779 } | 3832 } |
| 3780 if (_json.containsKey("width")) { | 3833 if (_json.containsKey("width")) { |
| 3781 width = _json["width"]; | 3834 width = _json["width"]; |
| 3782 } | 3835 } |
| 3783 } | 3836 } |
| 3784 | 3837 |
| 3785 core.Map<core.String, core.Object> toJson() { | 3838 core.Map<core.String, core.Object> toJson() { |
| 3786 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3839 final core.Map<core.String, core.Object> _json = |
| 3840 new core.Map<core.String, core.Object>(); |
| 3787 if (height != null) { | 3841 if (height != null) { |
| 3788 _json["height"] = height; | 3842 _json["height"] = height; |
| 3789 } | 3843 } |
| 3790 if (url != null) { | 3844 if (url != null) { |
| 3791 _json["url"] = url; | 3845 _json["url"] = url; |
| 3792 } | 3846 } |
| 3793 if (width != null) { | 3847 if (width != null) { |
| 3794 _json["width"] = width; | 3848 _json["width"] = width; |
| 3795 } | 3849 } |
| 3796 return _json; | 3850 return _json; |
| 3797 } | 3851 } |
| 3798 } | 3852 } |
| 3799 | 3853 |
| 3800 /** | 3854 /// The set of metrics that are measured in numbers of impressions, |
| 3801 * The set of metrics that are measured in numbers of impressions, representing | 3855 /// representing |
| 3802 * how many impressions with the specified dimension values were considered | 3856 /// how many impressions with the specified dimension values were considered |
| 3803 * eligible at each stage of the bidding funnel. | 3857 /// eligible at each stage of the bidding funnel. |
| 3804 */ | |
| 3805 class ImpressionMetricsRow { | 3858 class ImpressionMetricsRow { |
| 3806 /** | 3859 /// The number of impressions available to the buyer on Ad Exchange. |
| 3807 * The number of impressions available to the buyer on Ad Exchange. | 3860 /// In some cases this value may be unavailable. |
| 3808 * In some cases this value may be unavailable. | |
| 3809 */ | |
| 3810 MetricValue availableImpressions; | 3861 MetricValue availableImpressions; |
| 3811 /** | 3862 |
| 3812 * The number of impressions for which Ad Exchange sent the buyer a bid | 3863 /// The number of impressions for which Ad Exchange sent the buyer a bid |
| 3813 * request. | 3864 /// request. |
| 3814 */ | |
| 3815 MetricValue bidRequests; | 3865 MetricValue bidRequests; |
| 3816 /** | 3866 |
| 3817 * The number of impressions that match the buyer's inventory pretargeting. | 3867 /// The number of impressions that match the buyer's inventory pretargeting. |
| 3818 */ | |
| 3819 MetricValue inventoryMatches; | 3868 MetricValue inventoryMatches; |
| 3820 /** | 3869 |
| 3821 * The number of impressions for which Ad Exchange received a response from | 3870 /// The number of impressions for which Ad Exchange received a response from |
| 3822 * the buyer that contained at least one applicable bid. | 3871 /// the buyer that contained at least one applicable bid. |
| 3823 */ | |
| 3824 MetricValue responsesWithBids; | 3872 MetricValue responsesWithBids; |
| 3825 /** | 3873 |
| 3826 * The values of all dimensions associated with metric values in this row. | 3874 /// The values of all dimensions associated with metric values in this row. |
| 3827 */ | |
| 3828 RowDimensions rowDimensions; | 3875 RowDimensions rowDimensions; |
| 3829 /** | 3876 |
| 3830 * The number of impressions for which the buyer successfully sent a response | 3877 /// The number of impressions for which the buyer successfully sent a |
| 3831 * to Ad Exchange. | 3878 /// response |
| 3832 */ | 3879 /// to Ad Exchange. |
| 3833 MetricValue successfulResponses; | 3880 MetricValue successfulResponses; |
| 3834 | 3881 |
| 3835 ImpressionMetricsRow(); | 3882 ImpressionMetricsRow(); |
| 3836 | 3883 |
| 3837 ImpressionMetricsRow.fromJson(core.Map _json) { | 3884 ImpressionMetricsRow.fromJson(core.Map _json) { |
| 3838 if (_json.containsKey("availableImpressions")) { | 3885 if (_json.containsKey("availableImpressions")) { |
| 3839 availableImpressions = new MetricValue.fromJson(_json["availableImpression
s"]); | 3886 availableImpressions = |
| 3887 new MetricValue.fromJson(_json["availableImpressions"]); |
| 3840 } | 3888 } |
| 3841 if (_json.containsKey("bidRequests")) { | 3889 if (_json.containsKey("bidRequests")) { |
| 3842 bidRequests = new MetricValue.fromJson(_json["bidRequests"]); | 3890 bidRequests = new MetricValue.fromJson(_json["bidRequests"]); |
| 3843 } | 3891 } |
| 3844 if (_json.containsKey("inventoryMatches")) { | 3892 if (_json.containsKey("inventoryMatches")) { |
| 3845 inventoryMatches = new MetricValue.fromJson(_json["inventoryMatches"]); | 3893 inventoryMatches = new MetricValue.fromJson(_json["inventoryMatches"]); |
| 3846 } | 3894 } |
| 3847 if (_json.containsKey("responsesWithBids")) { | 3895 if (_json.containsKey("responsesWithBids")) { |
| 3848 responsesWithBids = new MetricValue.fromJson(_json["responsesWithBids"]); | 3896 responsesWithBids = new MetricValue.fromJson(_json["responsesWithBids"]); |
| 3849 } | 3897 } |
| 3850 if (_json.containsKey("rowDimensions")) { | 3898 if (_json.containsKey("rowDimensions")) { |
| 3851 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 3899 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 3852 } | 3900 } |
| 3853 if (_json.containsKey("successfulResponses")) { | 3901 if (_json.containsKey("successfulResponses")) { |
| 3854 successfulResponses = new MetricValue.fromJson(_json["successfulResponses"
]); | 3902 successfulResponses = |
| 3903 new MetricValue.fromJson(_json["successfulResponses"]); |
| 3855 } | 3904 } |
| 3856 } | 3905 } |
| 3857 | 3906 |
| 3858 core.Map<core.String, core.Object> toJson() { | 3907 core.Map<core.String, core.Object> toJson() { |
| 3859 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3908 final core.Map<core.String, core.Object> _json = |
| 3909 new core.Map<core.String, core.Object>(); |
| 3860 if (availableImpressions != null) { | 3910 if (availableImpressions != null) { |
| 3861 _json["availableImpressions"] = (availableImpressions).toJson(); | 3911 _json["availableImpressions"] = (availableImpressions).toJson(); |
| 3862 } | 3912 } |
| 3863 if (bidRequests != null) { | 3913 if (bidRequests != null) { |
| 3864 _json["bidRequests"] = (bidRequests).toJson(); | 3914 _json["bidRequests"] = (bidRequests).toJson(); |
| 3865 } | 3915 } |
| 3866 if (inventoryMatches != null) { | 3916 if (inventoryMatches != null) { |
| 3867 _json["inventoryMatches"] = (inventoryMatches).toJson(); | 3917 _json["inventoryMatches"] = (inventoryMatches).toJson(); |
| 3868 } | 3918 } |
| 3869 if (responsesWithBids != null) { | 3919 if (responsesWithBids != null) { |
| 3870 _json["responsesWithBids"] = (responsesWithBids).toJson(); | 3920 _json["responsesWithBids"] = (responsesWithBids).toJson(); |
| 3871 } | 3921 } |
| 3872 if (rowDimensions != null) { | 3922 if (rowDimensions != null) { |
| 3873 _json["rowDimensions"] = (rowDimensions).toJson(); | 3923 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 3874 } | 3924 } |
| 3875 if (successfulResponses != null) { | 3925 if (successfulResponses != null) { |
| 3876 _json["successfulResponses"] = (successfulResponses).toJson(); | 3926 _json["successfulResponses"] = (successfulResponses).toJson(); |
| 3877 } | 3927 } |
| 3878 return _json; | 3928 return _json; |
| 3879 } | 3929 } |
| 3880 } | 3930 } |
| 3881 | 3931 |
| 3882 /** | 3932 /// Response message for listing the metrics that are measured in number of |
| 3883 * Response message for listing the metrics that are measured in number of bids. | 3933 /// bids. |
| 3884 */ | |
| 3885 class ListBidMetricsResponse { | 3934 class ListBidMetricsResponse { |
| 3886 /** List of rows, each containing a set of bid metrics. */ | 3935 /// List of rows, each containing a set of bid metrics. |
| 3887 core.List<BidMetricsRow> bidMetricsRows; | 3936 core.List<BidMetricsRow> bidMetricsRows; |
| 3888 /** | 3937 |
| 3889 * A token to retrieve the next page of results. | 3938 /// A token to retrieve the next page of results. |
| 3890 * Pass this value in the | 3939 /// Pass this value in the |
| 3891 * ListBidMetricsRequest.pageToken | 3940 /// ListBidMetricsRequest.pageToken |
| 3892 * field in the subsequent call to the | 3941 /// field in the subsequent call to the |
| 3893 * accounts.filterSets.bidMetrics.list | 3942 /// accounts.filterSets.bidMetrics.list |
| 3894 * method to retrieve the next page of results. | 3943 /// method to retrieve the next page of results. |
| 3895 */ | |
| 3896 core.String nextPageToken; | 3944 core.String nextPageToken; |
| 3897 | 3945 |
| 3898 ListBidMetricsResponse(); | 3946 ListBidMetricsResponse(); |
| 3899 | 3947 |
| 3900 ListBidMetricsResponse.fromJson(core.Map _json) { | 3948 ListBidMetricsResponse.fromJson(core.Map _json) { |
| 3901 if (_json.containsKey("bidMetricsRows")) { | 3949 if (_json.containsKey("bidMetricsRows")) { |
| 3902 bidMetricsRows = _json["bidMetricsRows"].map((value) => new BidMetricsRow.
fromJson(value)).toList(); | 3950 bidMetricsRows = _json["bidMetricsRows"] |
| 3951 .map((value) => new BidMetricsRow.fromJson(value)) |
| 3952 .toList(); |
| 3903 } | 3953 } |
| 3904 if (_json.containsKey("nextPageToken")) { | 3954 if (_json.containsKey("nextPageToken")) { |
| 3905 nextPageToken = _json["nextPageToken"]; | 3955 nextPageToken = _json["nextPageToken"]; |
| 3906 } | 3956 } |
| 3907 } | 3957 } |
| 3908 | 3958 |
| 3909 core.Map<core.String, core.Object> toJson() { | 3959 core.Map<core.String, core.Object> toJson() { |
| 3910 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3960 final core.Map<core.String, core.Object> _json = |
| 3961 new core.Map<core.String, core.Object>(); |
| 3911 if (bidMetricsRows != null) { | 3962 if (bidMetricsRows != null) { |
| 3912 _json["bidMetricsRows"] = bidMetricsRows.map((value) => (value).toJson()).
toList(); | 3963 _json["bidMetricsRows"] = |
| 3964 bidMetricsRows.map((value) => (value).toJson()).toList(); |
| 3913 } | 3965 } |
| 3914 if (nextPageToken != null) { | 3966 if (nextPageToken != null) { |
| 3915 _json["nextPageToken"] = nextPageToken; | 3967 _json["nextPageToken"] = nextPageToken; |
| 3916 } | 3968 } |
| 3917 return _json; | 3969 return _json; |
| 3918 } | 3970 } |
| 3919 } | 3971 } |
| 3920 | 3972 |
| 3921 /** | 3973 /// Response message for listing all reasons that bid responses resulted in an |
| 3922 * Response message for listing all reasons that bid responses resulted in an | 3974 /// error. |
| 3923 * error. | |
| 3924 */ | |
| 3925 class ListBidResponseErrorsResponse { | 3975 class ListBidResponseErrorsResponse { |
| 3926 /** | 3976 /// List of rows, with counts of bid responses aggregated by callout status. |
| 3927 * List of rows, with counts of bid responses aggregated by callout status. | |
| 3928 */ | |
| 3929 core.List<CalloutStatusRow> calloutStatusRows; | 3977 core.List<CalloutStatusRow> calloutStatusRows; |
| 3930 /** | 3978 |
| 3931 * A token to retrieve the next page of results. | 3979 /// A token to retrieve the next page of results. |
| 3932 * Pass this value in the | 3980 /// Pass this value in the |
| 3933 * ListBidResponseErrorsRequest.pageToken | 3981 /// ListBidResponseErrorsRequest.pageToken |
| 3934 * field in the subsequent call to the | 3982 /// field in the subsequent call to the |
| 3935 * accounts.filterSets.bidResponseErrors.list | 3983 /// accounts.filterSets.bidResponseErrors.list |
| 3936 * method to retrieve the next page of results. | 3984 /// method to retrieve the next page of results. |
| 3937 */ | |
| 3938 core.String nextPageToken; | 3985 core.String nextPageToken; |
| 3939 | 3986 |
| 3940 ListBidResponseErrorsResponse(); | 3987 ListBidResponseErrorsResponse(); |
| 3941 | 3988 |
| 3942 ListBidResponseErrorsResponse.fromJson(core.Map _json) { | 3989 ListBidResponseErrorsResponse.fromJson(core.Map _json) { |
| 3943 if (_json.containsKey("calloutStatusRows")) { | 3990 if (_json.containsKey("calloutStatusRows")) { |
| 3944 calloutStatusRows = _json["calloutStatusRows"].map((value) => new CalloutS
tatusRow.fromJson(value)).toList(); | 3991 calloutStatusRows = _json["calloutStatusRows"] |
| 3992 .map((value) => new CalloutStatusRow.fromJson(value)) |
| 3993 .toList(); |
| 3945 } | 3994 } |
| 3946 if (_json.containsKey("nextPageToken")) { | 3995 if (_json.containsKey("nextPageToken")) { |
| 3947 nextPageToken = _json["nextPageToken"]; | 3996 nextPageToken = _json["nextPageToken"]; |
| 3948 } | 3997 } |
| 3949 } | 3998 } |
| 3950 | 3999 |
| 3951 core.Map<core.String, core.Object> toJson() { | 4000 core.Map<core.String, core.Object> toJson() { |
| 3952 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4001 final core.Map<core.String, core.Object> _json = |
| 4002 new core.Map<core.String, core.Object>(); |
| 3953 if (calloutStatusRows != null) { | 4003 if (calloutStatusRows != null) { |
| 3954 _json["calloutStatusRows"] = calloutStatusRows.map((value) => (value).toJs
on()).toList(); | 4004 _json["calloutStatusRows"] = |
| 4005 calloutStatusRows.map((value) => (value).toJson()).toList(); |
| 3955 } | 4006 } |
| 3956 if (nextPageToken != null) { | 4007 if (nextPageToken != null) { |
| 3957 _json["nextPageToken"] = nextPageToken; | 4008 _json["nextPageToken"] = nextPageToken; |
| 3958 } | 4009 } |
| 3959 return _json; | 4010 return _json; |
| 3960 } | 4011 } |
| 3961 } | 4012 } |
| 3962 | 4013 |
| 3963 /** | 4014 /// Response message for listing all reasons that bid responses were considered |
| 3964 * Response message for listing all reasons that bid responses were considered | 4015 /// to have no applicable bids. |
| 3965 * to have no applicable bids. | |
| 3966 */ | |
| 3967 class ListBidResponsesWithoutBidsResponse { | 4016 class ListBidResponsesWithoutBidsResponse { |
| 3968 /** | 4017 /// List of rows, with counts of bid responses without bids aggregated by |
| 3969 * List of rows, with counts of bid responses without bids aggregated by | 4018 /// status. |
| 3970 * status. | |
| 3971 */ | |
| 3972 core.List<BidResponseWithoutBidsStatusRow> bidResponseWithoutBidsStatusRows; | 4019 core.List<BidResponseWithoutBidsStatusRow> bidResponseWithoutBidsStatusRows; |
| 3973 /** | 4020 |
| 3974 * A token to retrieve the next page of results. | 4021 /// A token to retrieve the next page of results. |
| 3975 * Pass this value in the | 4022 /// Pass this value in the |
| 3976 * ListBidResponsesWithoutBidsRequest.pageToken | 4023 /// ListBidResponsesWithoutBidsRequest.pageToken |
| 3977 * field in the subsequent call to the | 4024 /// field in the subsequent call to the |
| 3978 * accounts.filterSets.bidResponsesWithoutBids.list | 4025 /// accounts.filterSets.bidResponsesWithoutBids.list |
| 3979 * method to retrieve the next page of results. | 4026 /// method to retrieve the next page of results. |
| 3980 */ | |
| 3981 core.String nextPageToken; | 4027 core.String nextPageToken; |
| 3982 | 4028 |
| 3983 ListBidResponsesWithoutBidsResponse(); | 4029 ListBidResponsesWithoutBidsResponse(); |
| 3984 | 4030 |
| 3985 ListBidResponsesWithoutBidsResponse.fromJson(core.Map _json) { | 4031 ListBidResponsesWithoutBidsResponse.fromJson(core.Map _json) { |
| 3986 if (_json.containsKey("bidResponseWithoutBidsStatusRows")) { | 4032 if (_json.containsKey("bidResponseWithoutBidsStatusRows")) { |
| 3987 bidResponseWithoutBidsStatusRows = _json["bidResponseWithoutBidsStatusRows
"].map((value) => new BidResponseWithoutBidsStatusRow.fromJson(value)).toList(); | 4033 bidResponseWithoutBidsStatusRows = _json[ |
| 4034 "bidResponseWithoutBidsStatusRows"] |
| 4035 .map((value) => new BidResponseWithoutBidsStatusRow.fromJson(value)) |
| 4036 .toList(); |
| 3988 } | 4037 } |
| 3989 if (_json.containsKey("nextPageToken")) { | 4038 if (_json.containsKey("nextPageToken")) { |
| 3990 nextPageToken = _json["nextPageToken"]; | 4039 nextPageToken = _json["nextPageToken"]; |
| 3991 } | 4040 } |
| 3992 } | 4041 } |
| 3993 | 4042 |
| 3994 core.Map<core.String, core.Object> toJson() { | 4043 core.Map<core.String, core.Object> toJson() { |
| 3995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4044 final core.Map<core.String, core.Object> _json = |
| 4045 new core.Map<core.String, core.Object>(); |
| 3996 if (bidResponseWithoutBidsStatusRows != null) { | 4046 if (bidResponseWithoutBidsStatusRows != null) { |
| 3997 _json["bidResponseWithoutBidsStatusRows"] = bidResponseWithoutBidsStatusRo
ws.map((value) => (value).toJson()).toList(); | 4047 _json["bidResponseWithoutBidsStatusRows"] = |
| 4048 bidResponseWithoutBidsStatusRows |
| 4049 .map((value) => (value).toJson()) |
| 4050 .toList(); |
| 3998 } | 4051 } |
| 3999 if (nextPageToken != null) { | 4052 if (nextPageToken != null) { |
| 4000 _json["nextPageToken"] = nextPageToken; | 4053 _json["nextPageToken"] = nextPageToken; |
| 4001 } | 4054 } |
| 4002 return _json; | 4055 return _json; |
| 4003 } | 4056 } |
| 4004 } | 4057 } |
| 4005 | 4058 |
| 4006 class ListClientUserInvitationsResponse { | 4059 class ListClientUserInvitationsResponse { |
| 4007 /** The returned list of client users. */ | 4060 /// The returned list of client users. |
| 4008 core.List<ClientUserInvitation> invitations; | 4061 core.List<ClientUserInvitation> invitations; |
| 4009 /** | 4062 |
| 4010 * A token to retrieve the next page of results. | 4063 /// A token to retrieve the next page of results. |
| 4011 * Pass this value in the | 4064 /// Pass this value in the |
| 4012 * ListClientUserInvitationsRequest.pageToken | 4065 /// ListClientUserInvitationsRequest.pageToken |
| 4013 * field in the subsequent call to the | 4066 /// field in the subsequent call to the |
| 4014 * clients.invitations.list | 4067 /// clients.invitations.list |
| 4015 * method to retrieve the next | 4068 /// method to retrieve the next |
| 4016 * page of results. | 4069 /// page of results. |
| 4017 */ | |
| 4018 core.String nextPageToken; | 4070 core.String nextPageToken; |
| 4019 | 4071 |
| 4020 ListClientUserInvitationsResponse(); | 4072 ListClientUserInvitationsResponse(); |
| 4021 | 4073 |
| 4022 ListClientUserInvitationsResponse.fromJson(core.Map _json) { | 4074 ListClientUserInvitationsResponse.fromJson(core.Map _json) { |
| 4023 if (_json.containsKey("invitations")) { | 4075 if (_json.containsKey("invitations")) { |
| 4024 invitations = _json["invitations"].map((value) => new ClientUserInvitation
.fromJson(value)).toList(); | 4076 invitations = _json["invitations"] |
| 4077 .map((value) => new ClientUserInvitation.fromJson(value)) |
| 4078 .toList(); |
| 4025 } | 4079 } |
| 4026 if (_json.containsKey("nextPageToken")) { | 4080 if (_json.containsKey("nextPageToken")) { |
| 4027 nextPageToken = _json["nextPageToken"]; | 4081 nextPageToken = _json["nextPageToken"]; |
| 4028 } | 4082 } |
| 4029 } | 4083 } |
| 4030 | 4084 |
| 4031 core.Map<core.String, core.Object> toJson() { | 4085 core.Map<core.String, core.Object> toJson() { |
| 4032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4086 final core.Map<core.String, core.Object> _json = |
| 4087 new core.Map<core.String, core.Object>(); |
| 4033 if (invitations != null) { | 4088 if (invitations != null) { |
| 4034 _json["invitations"] = invitations.map((value) => (value).toJson()).toList
(); | 4089 _json["invitations"] = |
| 4090 invitations.map((value) => (value).toJson()).toList(); |
| 4035 } | 4091 } |
| 4036 if (nextPageToken != null) { | 4092 if (nextPageToken != null) { |
| 4037 _json["nextPageToken"] = nextPageToken; | 4093 _json["nextPageToken"] = nextPageToken; |
| 4038 } | 4094 } |
| 4039 return _json; | 4095 return _json; |
| 4040 } | 4096 } |
| 4041 } | 4097 } |
| 4042 | 4098 |
| 4043 class ListClientUsersResponse { | 4099 class ListClientUsersResponse { |
| 4044 /** | 4100 /// A token to retrieve the next page of results. |
| 4045 * A token to retrieve the next page of results. | 4101 /// Pass this value in the |
| 4046 * Pass this value in the | 4102 /// ListClientUsersRequest.pageToken |
| 4047 * ListClientUsersRequest.pageToken | 4103 /// field in the subsequent call to the |
| 4048 * field in the subsequent call to the | 4104 /// clients.invitations.list |
| 4049 * clients.invitations.list | 4105 /// method to retrieve the next |
| 4050 * method to retrieve the next | 4106 /// page of results. |
| 4051 * page of results. | |
| 4052 */ | |
| 4053 core.String nextPageToken; | 4107 core.String nextPageToken; |
| 4054 /** The returned list of client users. */ | 4108 |
| 4109 /// The returned list of client users. |
| 4055 core.List<ClientUser> users; | 4110 core.List<ClientUser> users; |
| 4056 | 4111 |
| 4057 ListClientUsersResponse(); | 4112 ListClientUsersResponse(); |
| 4058 | 4113 |
| 4059 ListClientUsersResponse.fromJson(core.Map _json) { | 4114 ListClientUsersResponse.fromJson(core.Map _json) { |
| 4060 if (_json.containsKey("nextPageToken")) { | 4115 if (_json.containsKey("nextPageToken")) { |
| 4061 nextPageToken = _json["nextPageToken"]; | 4116 nextPageToken = _json["nextPageToken"]; |
| 4062 } | 4117 } |
| 4063 if (_json.containsKey("users")) { | 4118 if (_json.containsKey("users")) { |
| 4064 users = _json["users"].map((value) => new ClientUser.fromJson(value)).toLi
st(); | 4119 users = _json["users"] |
| 4120 .map((value) => new ClientUser.fromJson(value)) |
| 4121 .toList(); |
| 4065 } | 4122 } |
| 4066 } | 4123 } |
| 4067 | 4124 |
| 4068 core.Map<core.String, core.Object> toJson() { | 4125 core.Map<core.String, core.Object> toJson() { |
| 4069 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4126 final core.Map<core.String, core.Object> _json = |
| 4127 new core.Map<core.String, core.Object>(); |
| 4070 if (nextPageToken != null) { | 4128 if (nextPageToken != null) { |
| 4071 _json["nextPageToken"] = nextPageToken; | 4129 _json["nextPageToken"] = nextPageToken; |
| 4072 } | 4130 } |
| 4073 if (users != null) { | 4131 if (users != null) { |
| 4074 _json["users"] = users.map((value) => (value).toJson()).toList(); | 4132 _json["users"] = users.map((value) => (value).toJson()).toList(); |
| 4075 } | 4133 } |
| 4076 return _json; | 4134 return _json; |
| 4077 } | 4135 } |
| 4078 } | 4136 } |
| 4079 | 4137 |
| 4080 class ListClientsResponse { | 4138 class ListClientsResponse { |
| 4081 /** The returned list of clients. */ | 4139 /// The returned list of clients. |
| 4082 core.List<Client> clients; | 4140 core.List<Client> clients; |
| 4083 /** | 4141 |
| 4084 * A token to retrieve the next page of results. | 4142 /// A token to retrieve the next page of results. |
| 4085 * Pass this value in the | 4143 /// Pass this value in the |
| 4086 * ListClientsRequest.pageToken | 4144 /// ListClientsRequest.pageToken |
| 4087 * field in the subsequent call to the | 4145 /// field in the subsequent call to the |
| 4088 * accounts.clients.list method | 4146 /// accounts.clients.list method |
| 4089 * to retrieve the next page of results. | 4147 /// to retrieve the next page of results. |
| 4090 */ | |
| 4091 core.String nextPageToken; | 4148 core.String nextPageToken; |
| 4092 | 4149 |
| 4093 ListClientsResponse(); | 4150 ListClientsResponse(); |
| 4094 | 4151 |
| 4095 ListClientsResponse.fromJson(core.Map _json) { | 4152 ListClientsResponse.fromJson(core.Map _json) { |
| 4096 if (_json.containsKey("clients")) { | 4153 if (_json.containsKey("clients")) { |
| 4097 clients = _json["clients"].map((value) => new Client.fromJson(value)).toLi
st(); | 4154 clients = |
| 4155 _json["clients"].map((value) => new Client.fromJson(value)).toList(); |
| 4098 } | 4156 } |
| 4099 if (_json.containsKey("nextPageToken")) { | 4157 if (_json.containsKey("nextPageToken")) { |
| 4100 nextPageToken = _json["nextPageToken"]; | 4158 nextPageToken = _json["nextPageToken"]; |
| 4101 } | 4159 } |
| 4102 } | 4160 } |
| 4103 | 4161 |
| 4104 core.Map<core.String, core.Object> toJson() { | 4162 core.Map<core.String, core.Object> toJson() { |
| 4105 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4163 final core.Map<core.String, core.Object> _json = |
| 4164 new core.Map<core.String, core.Object>(); |
| 4106 if (clients != null) { | 4165 if (clients != null) { |
| 4107 _json["clients"] = clients.map((value) => (value).toJson()).toList(); | 4166 _json["clients"] = clients.map((value) => (value).toJson()).toList(); |
| 4108 } | 4167 } |
| 4109 if (nextPageToken != null) { | 4168 if (nextPageToken != null) { |
| 4110 _json["nextPageToken"] = nextPageToken; | 4169 _json["nextPageToken"] = nextPageToken; |
| 4111 } | 4170 } |
| 4112 return _json; | 4171 return _json; |
| 4113 } | 4172 } |
| 4114 } | 4173 } |
| 4115 | 4174 |
| 4116 /** | 4175 /// Response message for listing all creatives associated with a given filtered |
| 4117 * Response message for listing all creatives associated with a given filtered | 4176 /// bid reason. |
| 4118 * bid reason. | |
| 4119 */ | |
| 4120 class ListCreativeStatusBreakdownByCreativeResponse { | 4177 class ListCreativeStatusBreakdownByCreativeResponse { |
| 4121 /** | 4178 /// List of rows, with counts of bids with a given creative status aggregated |
| 4122 * List of rows, with counts of bids with a given creative status aggregated | 4179 /// by creative. |
| 4123 * by creative. | |
| 4124 */ | |
| 4125 core.List<FilteredBidCreativeRow> filteredBidCreativeRows; | 4180 core.List<FilteredBidCreativeRow> filteredBidCreativeRows; |
| 4126 /** | 4181 |
| 4127 * A token to retrieve the next page of results. | 4182 /// A token to retrieve the next page of results. |
| 4128 * Pass this value in the | 4183 /// Pass this value in the |
| 4129 * ListCreativeStatusBreakdownByCreativeRequest.pageToken | 4184 /// ListCreativeStatusBreakdownByCreativeRequest.pageToken |
| 4130 * field in the subsequent call to the | 4185 /// field in the subsequent call to the |
| 4131 * accounts.filterSets.filteredBids.creatives.list | 4186 /// accounts.filterSets.filteredBids.creatives.list |
| 4132 * method to retrieve the next page of results. | 4187 /// method to retrieve the next page of results. |
| 4133 */ | |
| 4134 core.String nextPageToken; | 4188 core.String nextPageToken; |
| 4135 | 4189 |
| 4136 ListCreativeStatusBreakdownByCreativeResponse(); | 4190 ListCreativeStatusBreakdownByCreativeResponse(); |
| 4137 | 4191 |
| 4138 ListCreativeStatusBreakdownByCreativeResponse.fromJson(core.Map _json) { | 4192 ListCreativeStatusBreakdownByCreativeResponse.fromJson(core.Map _json) { |
| 4139 if (_json.containsKey("filteredBidCreativeRows")) { | 4193 if (_json.containsKey("filteredBidCreativeRows")) { |
| 4140 filteredBidCreativeRows = _json["filteredBidCreativeRows"].map((value) =>
new FilteredBidCreativeRow.fromJson(value)).toList(); | 4194 filteredBidCreativeRows = _json["filteredBidCreativeRows"] |
| 4195 .map((value) => new FilteredBidCreativeRow.fromJson(value)) |
| 4196 .toList(); |
| 4141 } | 4197 } |
| 4142 if (_json.containsKey("nextPageToken")) { | 4198 if (_json.containsKey("nextPageToken")) { |
| 4143 nextPageToken = _json["nextPageToken"]; | 4199 nextPageToken = _json["nextPageToken"]; |
| 4144 } | 4200 } |
| 4145 } | 4201 } |
| 4146 | 4202 |
| 4147 core.Map<core.String, core.Object> toJson() { | 4203 core.Map<core.String, core.Object> toJson() { |
| 4148 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4204 final core.Map<core.String, core.Object> _json = |
| 4205 new core.Map<core.String, core.Object>(); |
| 4149 if (filteredBidCreativeRows != null) { | 4206 if (filteredBidCreativeRows != null) { |
| 4150 _json["filteredBidCreativeRows"] = filteredBidCreativeRows.map((value) =>
(value).toJson()).toList(); | 4207 _json["filteredBidCreativeRows"] = |
| 4208 filteredBidCreativeRows.map((value) => (value).toJson()).toList(); |
| 4151 } | 4209 } |
| 4152 if (nextPageToken != null) { | 4210 if (nextPageToken != null) { |
| 4153 _json["nextPageToken"] = nextPageToken; | 4211 _json["nextPageToken"] = nextPageToken; |
| 4154 } | 4212 } |
| 4155 return _json; | 4213 return _json; |
| 4156 } | 4214 } |
| 4157 } | 4215 } |
| 4158 | 4216 |
| 4159 /** | 4217 /// Response message for listing all details associated with a given filtered |
| 4160 * Response message for listing all details associated with a given filtered bid | 4218 /// bid |
| 4161 * reason. | 4219 /// reason. |
| 4162 */ | |
| 4163 class ListCreativeStatusBreakdownByDetailResponse { | 4220 class ListCreativeStatusBreakdownByDetailResponse { |
| 4164 /** | 4221 /// The type of detail that the detail IDs represent. |
| 4165 * The type of detail that the detail IDs represent. | 4222 /// Possible string values are: |
| 4166 * Possible string values are: | 4223 /// - "DETAIL_TYPE_UNSPECIFIED" : A placeholder for an undefined status. |
| 4167 * - "DETAIL_TYPE_UNSPECIFIED" : A placeholder for an undefined status. | 4224 /// This value will never be returned in responses. |
| 4168 * This value will never be returned in responses. | 4225 /// - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a |
| 4169 * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative | 4226 /// creative attribute; see |
| 4170 * attribute; see | 4227 /// [publisher-excludable-creative-attributes](https://developers.google.com/a
d-exchange/rtb/downloads/publisher-excludable-creative-attributes). |
| 4171 * [publisher-excludable-creative-attributes](https://developers.google.com/ad
-exchange/rtb/downloads/publisher-excludable-creative-attributes). | 4228 /// - "VENDOR" : Indicates that the detail ID refers to a vendor; see |
| 4172 * - "VENDOR" : Indicates that the detail ID refers to a vendor; see | 4229 /// [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors)
. |
| 4173 * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). | 4230 /// - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a |
| 4174 * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive | 4231 /// sensitive category; see |
| 4175 * category; see | 4232 /// [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/do
wnloads/ad-sensitive-categories). |
| 4176 * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/dow
nloads/ad-sensitive-categories). | 4233 /// - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product |
| 4177 * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product | 4234 /// category; see |
| 4178 * category; see | 4235 /// [ad-product-categories](https://developers.google.com/ad-exchange/rtb/down
loads/ad-product-categories). |
| 4179 * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downl
oads/ad-product-categories). | 4236 /// - "DISAPPROVAL_REASON" : Indicates that the detail ID refers to a |
| 4180 * - "DISAPPROVAL_REASON" : Indicates that the detail ID refers to a | 4237 /// disapproval reason; see |
| 4181 * disapproval reason; see | 4238 /// DisapprovalReason enum in |
| 4182 * DisapprovalReason enum in | 4239 /// [snippet-status-report-proto](https://developers.google.com/ad-exchange/rt
b/downloads/snippet-status-report-proto). |
| 4183 * [snippet-status-report-proto](https://developers.google.com/ad-exchange/rtb
/downloads/snippet-status-report-proto). | |
| 4184 */ | |
| 4185 core.String detailType; | 4240 core.String detailType; |
| 4186 /** | 4241 |
| 4187 * List of rows, with counts of bids with a given creative status aggregated | 4242 /// List of rows, with counts of bids with a given creative status aggregated |
| 4188 * by detail. | 4243 /// by detail. |
| 4189 */ | |
| 4190 core.List<FilteredBidDetailRow> filteredBidDetailRows; | 4244 core.List<FilteredBidDetailRow> filteredBidDetailRows; |
| 4191 /** | 4245 |
| 4192 * A token to retrieve the next page of results. | 4246 /// A token to retrieve the next page of results. |
| 4193 * Pass this value in the | 4247 /// Pass this value in the |
| 4194 * ListCreativeStatusBreakdownByDetailRequest.pageToken | 4248 /// ListCreativeStatusBreakdownByDetailRequest.pageToken |
| 4195 * field in the subsequent call to the | 4249 /// field in the subsequent call to the |
| 4196 * accounts.filterSets.filteredBids.details.list | 4250 /// accounts.filterSets.filteredBids.details.list |
| 4197 * method to retrieve the next page of results. | 4251 /// method to retrieve the next page of results. |
| 4198 */ | |
| 4199 core.String nextPageToken; | 4252 core.String nextPageToken; |
| 4200 | 4253 |
| 4201 ListCreativeStatusBreakdownByDetailResponse(); | 4254 ListCreativeStatusBreakdownByDetailResponse(); |
| 4202 | 4255 |
| 4203 ListCreativeStatusBreakdownByDetailResponse.fromJson(core.Map _json) { | 4256 ListCreativeStatusBreakdownByDetailResponse.fromJson(core.Map _json) { |
| 4204 if (_json.containsKey("detailType")) { | 4257 if (_json.containsKey("detailType")) { |
| 4205 detailType = _json["detailType"]; | 4258 detailType = _json["detailType"]; |
| 4206 } | 4259 } |
| 4207 if (_json.containsKey("filteredBidDetailRows")) { | 4260 if (_json.containsKey("filteredBidDetailRows")) { |
| 4208 filteredBidDetailRows = _json["filteredBidDetailRows"].map((value) => new
FilteredBidDetailRow.fromJson(value)).toList(); | 4261 filteredBidDetailRows = _json["filteredBidDetailRows"] |
| 4262 .map((value) => new FilteredBidDetailRow.fromJson(value)) |
| 4263 .toList(); |
| 4209 } | 4264 } |
| 4210 if (_json.containsKey("nextPageToken")) { | 4265 if (_json.containsKey("nextPageToken")) { |
| 4211 nextPageToken = _json["nextPageToken"]; | 4266 nextPageToken = _json["nextPageToken"]; |
| 4212 } | 4267 } |
| 4213 } | 4268 } |
| 4214 | 4269 |
| 4215 core.Map<core.String, core.Object> toJson() { | 4270 core.Map<core.String, core.Object> toJson() { |
| 4216 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4271 final core.Map<core.String, core.Object> _json = |
| 4272 new core.Map<core.String, core.Object>(); |
| 4217 if (detailType != null) { | 4273 if (detailType != null) { |
| 4218 _json["detailType"] = detailType; | 4274 _json["detailType"] = detailType; |
| 4219 } | 4275 } |
| 4220 if (filteredBidDetailRows != null) { | 4276 if (filteredBidDetailRows != null) { |
| 4221 _json["filteredBidDetailRows"] = filteredBidDetailRows.map((value) => (val
ue).toJson()).toList(); | 4277 _json["filteredBidDetailRows"] = |
| 4278 filteredBidDetailRows.map((value) => (value).toJson()).toList(); |
| 4222 } | 4279 } |
| 4223 if (nextPageToken != null) { | 4280 if (nextPageToken != null) { |
| 4224 _json["nextPageToken"] = nextPageToken; | 4281 _json["nextPageToken"] = nextPageToken; |
| 4225 } | 4282 } |
| 4226 return _json; | 4283 return _json; |
| 4227 } | 4284 } |
| 4228 } | 4285 } |
| 4229 | 4286 |
| 4230 /** A response for listing creatives. */ | 4287 /// A response for listing creatives. |
| 4231 class ListCreativesResponse { | 4288 class ListCreativesResponse { |
| 4232 /** The list of creatives. */ | 4289 /// The list of creatives. |
| 4233 core.List<Creative> creatives; | 4290 core.List<Creative> creatives; |
| 4234 /** | 4291 |
| 4235 * A token to retrieve the next page of results. | 4292 /// A token to retrieve the next page of results. |
| 4236 * Pass this value in the | 4293 /// Pass this value in the |
| 4237 * ListCreativesRequest.page_token | 4294 /// ListCreativesRequest.page_token |
| 4238 * field in the subsequent call to `ListCreatives` method to retrieve the next | 4295 /// field in the subsequent call to `ListCreatives` method to retrieve the |
| 4239 * page of results. | 4296 /// next |
| 4240 */ | 4297 /// page of results. |
| 4241 core.String nextPageToken; | 4298 core.String nextPageToken; |
| 4242 | 4299 |
| 4243 ListCreativesResponse(); | 4300 ListCreativesResponse(); |
| 4244 | 4301 |
| 4245 ListCreativesResponse.fromJson(core.Map _json) { | 4302 ListCreativesResponse.fromJson(core.Map _json) { |
| 4246 if (_json.containsKey("creatives")) { | 4303 if (_json.containsKey("creatives")) { |
| 4247 creatives = _json["creatives"].map((value) => new Creative.fromJson(value)
).toList(); | 4304 creatives = _json["creatives"] |
| 4305 .map((value) => new Creative.fromJson(value)) |
| 4306 .toList(); |
| 4248 } | 4307 } |
| 4249 if (_json.containsKey("nextPageToken")) { | 4308 if (_json.containsKey("nextPageToken")) { |
| 4250 nextPageToken = _json["nextPageToken"]; | 4309 nextPageToken = _json["nextPageToken"]; |
| 4251 } | 4310 } |
| 4252 } | 4311 } |
| 4253 | 4312 |
| 4254 core.Map<core.String, core.Object> toJson() { | 4313 core.Map<core.String, core.Object> toJson() { |
| 4255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4314 final core.Map<core.String, core.Object> _json = |
| 4315 new core.Map<core.String, core.Object>(); |
| 4256 if (creatives != null) { | 4316 if (creatives != null) { |
| 4257 _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); | 4317 _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); |
| 4258 } | 4318 } |
| 4259 if (nextPageToken != null) { | 4319 if (nextPageToken != null) { |
| 4260 _json["nextPageToken"] = nextPageToken; | 4320 _json["nextPageToken"] = nextPageToken; |
| 4261 } | 4321 } |
| 4262 return _json; | 4322 return _json; |
| 4263 } | 4323 } |
| 4264 } | 4324 } |
| 4265 | 4325 |
| 4266 /** A response for listing creative and deal associations */ | 4326 /// A response for listing creative and deal associations |
| 4267 class ListDealAssociationsResponse { | 4327 class ListDealAssociationsResponse { |
| 4268 /** The list of associations. */ | 4328 /// The list of associations. |
| 4269 core.List<CreativeDealAssociation> associations; | 4329 core.List<CreativeDealAssociation> associations; |
| 4270 /** | 4330 |
| 4271 * A token to retrieve the next page of results. | 4331 /// A token to retrieve the next page of results. |
| 4272 * Pass this value in the | 4332 /// Pass this value in the |
| 4273 * ListDealAssociationsRequest.page_token | 4333 /// ListDealAssociationsRequest.page_token |
| 4274 * field in the subsequent call to 'ListDealAssociation' method to retrieve | 4334 /// field in the subsequent call to 'ListDealAssociation' method to retrieve |
| 4275 * the next page of results. | 4335 /// the next page of results. |
| 4276 */ | |
| 4277 core.String nextPageToken; | 4336 core.String nextPageToken; |
| 4278 | 4337 |
| 4279 ListDealAssociationsResponse(); | 4338 ListDealAssociationsResponse(); |
| 4280 | 4339 |
| 4281 ListDealAssociationsResponse.fromJson(core.Map _json) { | 4340 ListDealAssociationsResponse.fromJson(core.Map _json) { |
| 4282 if (_json.containsKey("associations")) { | 4341 if (_json.containsKey("associations")) { |
| 4283 associations = _json["associations"].map((value) => new CreativeDealAssoci
ation.fromJson(value)).toList(); | 4342 associations = _json["associations"] |
| 4343 .map((value) => new CreativeDealAssociation.fromJson(value)) |
| 4344 .toList(); |
| 4284 } | 4345 } |
| 4285 if (_json.containsKey("nextPageToken")) { | 4346 if (_json.containsKey("nextPageToken")) { |
| 4286 nextPageToken = _json["nextPageToken"]; | 4347 nextPageToken = _json["nextPageToken"]; |
| 4287 } | 4348 } |
| 4288 } | 4349 } |
| 4289 | 4350 |
| 4290 core.Map<core.String, core.Object> toJson() { | 4351 core.Map<core.String, core.Object> toJson() { |
| 4291 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4352 final core.Map<core.String, core.Object> _json = |
| 4353 new core.Map<core.String, core.Object>(); |
| 4292 if (associations != null) { | 4354 if (associations != null) { |
| 4293 _json["associations"] = associations.map((value) => (value).toJson()).toLi
st(); | 4355 _json["associations"] = |
| 4356 associations.map((value) => (value).toJson()).toList(); |
| 4294 } | 4357 } |
| 4295 if (nextPageToken != null) { | 4358 if (nextPageToken != null) { |
| 4296 _json["nextPageToken"] = nextPageToken; | 4359 _json["nextPageToken"] = nextPageToken; |
| 4297 } | 4360 } |
| 4298 return _json; | 4361 return _json; |
| 4299 } | 4362 } |
| 4300 } | 4363 } |
| 4301 | 4364 |
| 4302 /** Response message for listing filter sets. */ | 4365 /// Response message for listing filter sets. |
| 4303 class ListFilterSetsResponse { | 4366 class ListFilterSetsResponse { |
| 4304 /** The filter sets belonging to the buyer. */ | 4367 /// The filter sets belonging to the buyer. |
| 4305 core.List<FilterSet> filterSets; | 4368 core.List<FilterSet> filterSets; |
| 4306 /** | 4369 |
| 4307 * A token to retrieve the next page of results. | 4370 /// A token to retrieve the next page of results. |
| 4308 * Pass this value in the | 4371 /// Pass this value in the |
| 4309 * ListFilterSetsRequest.pageToken | 4372 /// ListFilterSetsRequest.pageToken |
| 4310 * field in the subsequent call to the | 4373 /// field in the subsequent call to the |
| 4311 * accounts.filterSets.list | 4374 /// accounts.filterSets.list |
| 4312 * method to retrieve the next page of results. | 4375 /// method to retrieve the next page of results. |
| 4313 */ | |
| 4314 core.String nextPageToken; | 4376 core.String nextPageToken; |
| 4315 | 4377 |
| 4316 ListFilterSetsResponse(); | 4378 ListFilterSetsResponse(); |
| 4317 | 4379 |
| 4318 ListFilterSetsResponse.fromJson(core.Map _json) { | 4380 ListFilterSetsResponse.fromJson(core.Map _json) { |
| 4319 if (_json.containsKey("filterSets")) { | 4381 if (_json.containsKey("filterSets")) { |
| 4320 filterSets = _json["filterSets"].map((value) => new FilterSet.fromJson(val
ue)).toList(); | 4382 filterSets = _json["filterSets"] |
| 4383 .map((value) => new FilterSet.fromJson(value)) |
| 4384 .toList(); |
| 4321 } | 4385 } |
| 4322 if (_json.containsKey("nextPageToken")) { | 4386 if (_json.containsKey("nextPageToken")) { |
| 4323 nextPageToken = _json["nextPageToken"]; | 4387 nextPageToken = _json["nextPageToken"]; |
| 4324 } | 4388 } |
| 4325 } | 4389 } |
| 4326 | 4390 |
| 4327 core.Map<core.String, core.Object> toJson() { | 4391 core.Map<core.String, core.Object> toJson() { |
| 4328 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4392 final core.Map<core.String, core.Object> _json = |
| 4393 new core.Map<core.String, core.Object>(); |
| 4329 if (filterSets != null) { | 4394 if (filterSets != null) { |
| 4330 _json["filterSets"] = filterSets.map((value) => (value).toJson()).toList()
; | 4395 _json["filterSets"] = |
| 4396 filterSets.map((value) => (value).toJson()).toList(); |
| 4331 } | 4397 } |
| 4332 if (nextPageToken != null) { | 4398 if (nextPageToken != null) { |
| 4333 _json["nextPageToken"] = nextPageToken; | 4399 _json["nextPageToken"] = nextPageToken; |
| 4334 } | 4400 } |
| 4335 return _json; | 4401 return _json; |
| 4336 } | 4402 } |
| 4337 } | 4403 } |
| 4338 | 4404 |
| 4339 /** | 4405 /// Response message for listing all reasons that bid requests were filtered |
| 4340 * Response message for listing all reasons that bid requests were filtered and | 4406 /// and |
| 4341 * not sent to the buyer. | 4407 /// not sent to the buyer. |
| 4342 */ | |
| 4343 class ListFilteredBidRequestsResponse { | 4408 class ListFilteredBidRequestsResponse { |
| 4344 /** | 4409 /// List of rows, with counts of filtered bid requests aggregated by callout |
| 4345 * List of rows, with counts of filtered bid requests aggregated by callout | 4410 /// status. |
| 4346 * status. | |
| 4347 */ | |
| 4348 core.List<CalloutStatusRow> calloutStatusRows; | 4411 core.List<CalloutStatusRow> calloutStatusRows; |
| 4349 /** | 4412 |
| 4350 * A token to retrieve the next page of results. | 4413 /// A token to retrieve the next page of results. |
| 4351 * Pass this value in the | 4414 /// Pass this value in the |
| 4352 * ListFilteredBidRequestsRequest.pageToken | 4415 /// ListFilteredBidRequestsRequest.pageToken |
| 4353 * field in the subsequent call to the | 4416 /// field in the subsequent call to the |
| 4354 * accounts.filterSets.filteredBidRequests.list | 4417 /// accounts.filterSets.filteredBidRequests.list |
| 4355 * method to retrieve the next page of results. | 4418 /// method to retrieve the next page of results. |
| 4356 */ | |
| 4357 core.String nextPageToken; | 4419 core.String nextPageToken; |
| 4358 | 4420 |
| 4359 ListFilteredBidRequestsResponse(); | 4421 ListFilteredBidRequestsResponse(); |
| 4360 | 4422 |
| 4361 ListFilteredBidRequestsResponse.fromJson(core.Map _json) { | 4423 ListFilteredBidRequestsResponse.fromJson(core.Map _json) { |
| 4362 if (_json.containsKey("calloutStatusRows")) { | 4424 if (_json.containsKey("calloutStatusRows")) { |
| 4363 calloutStatusRows = _json["calloutStatusRows"].map((value) => new CalloutS
tatusRow.fromJson(value)).toList(); | 4425 calloutStatusRows = _json["calloutStatusRows"] |
| 4426 .map((value) => new CalloutStatusRow.fromJson(value)) |
| 4427 .toList(); |
| 4364 } | 4428 } |
| 4365 if (_json.containsKey("nextPageToken")) { | 4429 if (_json.containsKey("nextPageToken")) { |
| 4366 nextPageToken = _json["nextPageToken"]; | 4430 nextPageToken = _json["nextPageToken"]; |
| 4367 } | 4431 } |
| 4368 } | 4432 } |
| 4369 | 4433 |
| 4370 core.Map<core.String, core.Object> toJson() { | 4434 core.Map<core.String, core.Object> toJson() { |
| 4371 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4435 final core.Map<core.String, core.Object> _json = |
| 4436 new core.Map<core.String, core.Object>(); |
| 4372 if (calloutStatusRows != null) { | 4437 if (calloutStatusRows != null) { |
| 4373 _json["calloutStatusRows"] = calloutStatusRows.map((value) => (value).toJs
on()).toList(); | 4438 _json["calloutStatusRows"] = |
| 4439 calloutStatusRows.map((value) => (value).toJson()).toList(); |
| 4374 } | 4440 } |
| 4375 if (nextPageToken != null) { | 4441 if (nextPageToken != null) { |
| 4376 _json["nextPageToken"] = nextPageToken; | 4442 _json["nextPageToken"] = nextPageToken; |
| 4377 } | 4443 } |
| 4378 return _json; | 4444 return _json; |
| 4379 } | 4445 } |
| 4380 } | 4446 } |
| 4381 | 4447 |
| 4382 /** | 4448 /// Response message for listing all reasons that bids were filtered from the |
| 4383 * Response message for listing all reasons that bids were filtered from the | 4449 /// auction. |
| 4384 * auction. | |
| 4385 */ | |
| 4386 class ListFilteredBidsResponse { | 4450 class ListFilteredBidsResponse { |
| 4387 /** | 4451 /// List of rows, with counts of filtered bids aggregated by filtering reason |
| 4388 * List of rows, with counts of filtered bids aggregated by filtering reason | 4452 /// (i.e. creative status). |
| 4389 * (i.e. creative status). | |
| 4390 */ | |
| 4391 core.List<CreativeStatusRow> creativeStatusRows; | 4453 core.List<CreativeStatusRow> creativeStatusRows; |
| 4392 /** | 4454 |
| 4393 * A token to retrieve the next page of results. | 4455 /// A token to retrieve the next page of results. |
| 4394 * Pass this value in the | 4456 /// Pass this value in the |
| 4395 * ListFilteredBidsRequest.pageToken | 4457 /// ListFilteredBidsRequest.pageToken |
| 4396 * field in the subsequent call to the | 4458 /// field in the subsequent call to the |
| 4397 * accounts.filterSets.filteredBids.list | 4459 /// accounts.filterSets.filteredBids.list |
| 4398 * method to retrieve the next page of results. | 4460 /// method to retrieve the next page of results. |
| 4399 */ | |
| 4400 core.String nextPageToken; | 4461 core.String nextPageToken; |
| 4401 | 4462 |
| 4402 ListFilteredBidsResponse(); | 4463 ListFilteredBidsResponse(); |
| 4403 | 4464 |
| 4404 ListFilteredBidsResponse.fromJson(core.Map _json) { | 4465 ListFilteredBidsResponse.fromJson(core.Map _json) { |
| 4405 if (_json.containsKey("creativeStatusRows")) { | 4466 if (_json.containsKey("creativeStatusRows")) { |
| 4406 creativeStatusRows = _json["creativeStatusRows"].map((value) => new Creati
veStatusRow.fromJson(value)).toList(); | 4467 creativeStatusRows = _json["creativeStatusRows"] |
| 4468 .map((value) => new CreativeStatusRow.fromJson(value)) |
| 4469 .toList(); |
| 4407 } | 4470 } |
| 4408 if (_json.containsKey("nextPageToken")) { | 4471 if (_json.containsKey("nextPageToken")) { |
| 4409 nextPageToken = _json["nextPageToken"]; | 4472 nextPageToken = _json["nextPageToken"]; |
| 4410 } | 4473 } |
| 4411 } | 4474 } |
| 4412 | 4475 |
| 4413 core.Map<core.String, core.Object> toJson() { | 4476 core.Map<core.String, core.Object> toJson() { |
| 4414 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4477 final core.Map<core.String, core.Object> _json = |
| 4478 new core.Map<core.String, core.Object>(); |
| 4415 if (creativeStatusRows != null) { | 4479 if (creativeStatusRows != null) { |
| 4416 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); | 4480 _json["creativeStatusRows"] = |
| 4481 creativeStatusRows.map((value) => (value).toJson()).toList(); |
| 4417 } | 4482 } |
| 4418 if (nextPageToken != null) { | 4483 if (nextPageToken != null) { |
| 4419 _json["nextPageToken"] = nextPageToken; | 4484 _json["nextPageToken"] = nextPageToken; |
| 4420 } | 4485 } |
| 4421 return _json; | 4486 return _json; |
| 4422 } | 4487 } |
| 4423 } | 4488 } |
| 4424 | 4489 |
| 4425 /** | 4490 /// Response message for listing the metrics that are measured in number of |
| 4426 * Response message for listing the metrics that are measured in number of | 4491 /// impressions. |
| 4427 * impressions. | |
| 4428 */ | |
| 4429 class ListImpressionMetricsResponse { | 4492 class ListImpressionMetricsResponse { |
| 4430 /** List of rows, each containing a set of impression metrics. */ | 4493 /// List of rows, each containing a set of impression metrics. |
| 4431 core.List<ImpressionMetricsRow> impressionMetricsRows; | 4494 core.List<ImpressionMetricsRow> impressionMetricsRows; |
| 4432 /** | 4495 |
| 4433 * A token to retrieve the next page of results. | 4496 /// A token to retrieve the next page of results. |
| 4434 * Pass this value in the | 4497 /// Pass this value in the |
| 4435 * ListImpressionMetricsRequest.pageToken | 4498 /// ListImpressionMetricsRequest.pageToken |
| 4436 * field in the subsequent call to the | 4499 /// field in the subsequent call to the |
| 4437 * accounts.filterSets.impressionMetrics.list | 4500 /// accounts.filterSets.impressionMetrics.list |
| 4438 * method to retrieve the next page of results. | 4501 /// method to retrieve the next page of results. |
| 4439 */ | |
| 4440 core.String nextPageToken; | 4502 core.String nextPageToken; |
| 4441 | 4503 |
| 4442 ListImpressionMetricsResponse(); | 4504 ListImpressionMetricsResponse(); |
| 4443 | 4505 |
| 4444 ListImpressionMetricsResponse.fromJson(core.Map _json) { | 4506 ListImpressionMetricsResponse.fromJson(core.Map _json) { |
| 4445 if (_json.containsKey("impressionMetricsRows")) { | 4507 if (_json.containsKey("impressionMetricsRows")) { |
| 4446 impressionMetricsRows = _json["impressionMetricsRows"].map((value) => new
ImpressionMetricsRow.fromJson(value)).toList(); | 4508 impressionMetricsRows = _json["impressionMetricsRows"] |
| 4509 .map((value) => new ImpressionMetricsRow.fromJson(value)) |
| 4510 .toList(); |
| 4447 } | 4511 } |
| 4448 if (_json.containsKey("nextPageToken")) { | 4512 if (_json.containsKey("nextPageToken")) { |
| 4449 nextPageToken = _json["nextPageToken"]; | 4513 nextPageToken = _json["nextPageToken"]; |
| 4450 } | 4514 } |
| 4451 } | 4515 } |
| 4452 | 4516 |
| 4453 core.Map<core.String, core.Object> toJson() { | 4517 core.Map<core.String, core.Object> toJson() { |
| 4454 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4518 final core.Map<core.String, core.Object> _json = |
| 4519 new core.Map<core.String, core.Object>(); |
| 4455 if (impressionMetricsRows != null) { | 4520 if (impressionMetricsRows != null) { |
| 4456 _json["impressionMetricsRows"] = impressionMetricsRows.map((value) => (val
ue).toJson()).toList(); | 4521 _json["impressionMetricsRows"] = |
| 4522 impressionMetricsRows.map((value) => (value).toJson()).toList(); |
| 4457 } | 4523 } |
| 4458 if (nextPageToken != null) { | 4524 if (nextPageToken != null) { |
| 4459 _json["nextPageToken"] = nextPageToken; | 4525 _json["nextPageToken"] = nextPageToken; |
| 4460 } | 4526 } |
| 4461 return _json; | 4527 return _json; |
| 4462 } | 4528 } |
| 4463 } | 4529 } |
| 4464 | 4530 |
| 4465 /** Response message for listing all reasons that bids lost in the auction. */ | 4531 /// Response message for listing all reasons that bids lost in the auction. |
| 4466 class ListLosingBidsResponse { | 4532 class ListLosingBidsResponse { |
| 4467 /** | 4533 /// List of rows, with counts of losing bids aggregated by loss reason (i.e. |
| 4468 * List of rows, with counts of losing bids aggregated by loss reason (i.e. | 4534 /// creative status). |
| 4469 * creative status). | |
| 4470 */ | |
| 4471 core.List<CreativeStatusRow> creativeStatusRows; | 4535 core.List<CreativeStatusRow> creativeStatusRows; |
| 4472 /** | 4536 |
| 4473 * A token to retrieve the next page of results. | 4537 /// A token to retrieve the next page of results. |
| 4474 * Pass this value in the | 4538 /// Pass this value in the |
| 4475 * ListLosingBidsRequest.pageToken | 4539 /// ListLosingBidsRequest.pageToken |
| 4476 * field in the subsequent call to the | 4540 /// field in the subsequent call to the |
| 4477 * accounts.filterSets.losingBids.list | 4541 /// accounts.filterSets.losingBids.list |
| 4478 * method to retrieve the next page of results. | 4542 /// method to retrieve the next page of results. |
| 4479 */ | |
| 4480 core.String nextPageToken; | 4543 core.String nextPageToken; |
| 4481 | 4544 |
| 4482 ListLosingBidsResponse(); | 4545 ListLosingBidsResponse(); |
| 4483 | 4546 |
| 4484 ListLosingBidsResponse.fromJson(core.Map _json) { | 4547 ListLosingBidsResponse.fromJson(core.Map _json) { |
| 4485 if (_json.containsKey("creativeStatusRows")) { | 4548 if (_json.containsKey("creativeStatusRows")) { |
| 4486 creativeStatusRows = _json["creativeStatusRows"].map((value) => new Creati
veStatusRow.fromJson(value)).toList(); | 4549 creativeStatusRows = _json["creativeStatusRows"] |
| 4550 .map((value) => new CreativeStatusRow.fromJson(value)) |
| 4551 .toList(); |
| 4487 } | 4552 } |
| 4488 if (_json.containsKey("nextPageToken")) { | 4553 if (_json.containsKey("nextPageToken")) { |
| 4489 nextPageToken = _json["nextPageToken"]; | 4554 nextPageToken = _json["nextPageToken"]; |
| 4490 } | 4555 } |
| 4491 } | 4556 } |
| 4492 | 4557 |
| 4493 core.Map<core.String, core.Object> toJson() { | 4558 core.Map<core.String, core.Object> toJson() { |
| 4494 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4559 final core.Map<core.String, core.Object> _json = |
| 4560 new core.Map<core.String, core.Object>(); |
| 4495 if (creativeStatusRows != null) { | 4561 if (creativeStatusRows != null) { |
| 4496 _json["creativeStatusRows"] = creativeStatusRows.map((value) => (value).to
Json()).toList(); | 4562 _json["creativeStatusRows"] = |
| 4563 creativeStatusRows.map((value) => (value).toJson()).toList(); |
| 4497 } | 4564 } |
| 4498 if (nextPageToken != null) { | 4565 if (nextPageToken != null) { |
| 4499 _json["nextPageToken"] = nextPageToken; | 4566 _json["nextPageToken"] = nextPageToken; |
| 4500 } | 4567 } |
| 4501 return _json; | 4568 return _json; |
| 4502 } | 4569 } |
| 4503 } | 4570 } |
| 4504 | 4571 |
| 4505 /** | 4572 /// Response message for listing all reasons for which a buyer was not billed |
| 4506 * Response message for listing all reasons for which a buyer was not billed for | 4573 /// for |
| 4507 * a winning bid. | 4574 /// a winning bid. |
| 4508 */ | |
| 4509 class ListNonBillableWinningBidsResponse { | 4575 class ListNonBillableWinningBidsResponse { |
| 4510 /** | 4576 /// A token to retrieve the next page of results. |
| 4511 * A token to retrieve the next page of results. | 4577 /// Pass this value in the |
| 4512 * Pass this value in the | 4578 /// ListNonBillableWinningBidsRequest.pageToken |
| 4513 * ListNonBillableWinningBidsRequest.pageToken | 4579 /// field in the subsequent call to the |
| 4514 * field in the subsequent call to the | 4580 /// accounts.filterSets.nonBillableWinningBids.list |
| 4515 * accounts.filterSets.nonBillableWinningBids.list | 4581 /// method to retrieve the next page of results. |
| 4516 * method to retrieve the next page of results. | |
| 4517 */ | |
| 4518 core.String nextPageToken; | 4582 core.String nextPageToken; |
| 4519 /** List of rows, with counts of bids not billed aggregated by reason. */ | 4583 |
| 4584 /// List of rows, with counts of bids not billed aggregated by reason. |
| 4520 core.List<NonBillableWinningBidStatusRow> nonBillableWinningBidStatusRows; | 4585 core.List<NonBillableWinningBidStatusRow> nonBillableWinningBidStatusRows; |
| 4521 | 4586 |
| 4522 ListNonBillableWinningBidsResponse(); | 4587 ListNonBillableWinningBidsResponse(); |
| 4523 | 4588 |
| 4524 ListNonBillableWinningBidsResponse.fromJson(core.Map _json) { | 4589 ListNonBillableWinningBidsResponse.fromJson(core.Map _json) { |
| 4525 if (_json.containsKey("nextPageToken")) { | 4590 if (_json.containsKey("nextPageToken")) { |
| 4526 nextPageToken = _json["nextPageToken"]; | 4591 nextPageToken = _json["nextPageToken"]; |
| 4527 } | 4592 } |
| 4528 if (_json.containsKey("nonBillableWinningBidStatusRows")) { | 4593 if (_json.containsKey("nonBillableWinningBidStatusRows")) { |
| 4529 nonBillableWinningBidStatusRows = _json["nonBillableWinningBidStatusRows"]
.map((value) => new NonBillableWinningBidStatusRow.fromJson(value)).toList(); | 4594 nonBillableWinningBidStatusRows = _json["nonBillableWinningBidStatusRows"] |
| 4595 .map((value) => new NonBillableWinningBidStatusRow.fromJson(value)) |
| 4596 .toList(); |
| 4530 } | 4597 } |
| 4531 } | 4598 } |
| 4532 | 4599 |
| 4533 core.Map<core.String, core.Object> toJson() { | 4600 core.Map<core.String, core.Object> toJson() { |
| 4534 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4601 final core.Map<core.String, core.Object> _json = |
| 4602 new core.Map<core.String, core.Object>(); |
| 4535 if (nextPageToken != null) { | 4603 if (nextPageToken != null) { |
| 4536 _json["nextPageToken"] = nextPageToken; | 4604 _json["nextPageToken"] = nextPageToken; |
| 4537 } | 4605 } |
| 4538 if (nonBillableWinningBidStatusRows != null) { | 4606 if (nonBillableWinningBidStatusRows != null) { |
| 4539 _json["nonBillableWinningBidStatusRows"] = nonBillableWinningBidStatusRows
.map((value) => (value).toJson()).toList(); | 4607 _json["nonBillableWinningBidStatusRows"] = nonBillableWinningBidStatusRows |
| 4608 .map((value) => (value).toJson()) |
| 4609 .toList(); |
| 4540 } | 4610 } |
| 4541 return _json; | 4611 return _json; |
| 4542 } | 4612 } |
| 4543 } | 4613 } |
| 4544 | 4614 |
| 4545 /** @OutputOnly The Geo criteria the restriction applies to. */ | 4615 /// @OutputOnly The Geo criteria the restriction applies to. |
| 4546 class LocationContext { | 4616 class LocationContext { |
| 4547 /** | 4617 /// IDs representing the geo location for this context. |
| 4548 * IDs representing the geo location for this context. | 4618 /// Please refer to the |
| 4549 * Please refer to the | 4619 /// [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-ta
ble.csv) |
| 4550 * [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-tab
le.csv) | 4620 /// file for different geo criteria IDs. |
| 4551 * file for different geo criteria IDs. | |
| 4552 */ | |
| 4553 core.List<core.int> geoCriteriaIds; | 4621 core.List<core.int> geoCriteriaIds; |
| 4554 | 4622 |
| 4555 LocationContext(); | 4623 LocationContext(); |
| 4556 | 4624 |
| 4557 LocationContext.fromJson(core.Map _json) { | 4625 LocationContext.fromJson(core.Map _json) { |
| 4558 if (_json.containsKey("geoCriteriaIds")) { | 4626 if (_json.containsKey("geoCriteriaIds")) { |
| 4559 geoCriteriaIds = _json["geoCriteriaIds"]; | 4627 geoCriteriaIds = _json["geoCriteriaIds"]; |
| 4560 } | 4628 } |
| 4561 } | 4629 } |
| 4562 | 4630 |
| 4563 core.Map<core.String, core.Object> toJson() { | 4631 core.Map<core.String, core.Object> toJson() { |
| 4564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4632 final core.Map<core.String, core.Object> _json = |
| 4633 new core.Map<core.String, core.Object>(); |
| 4565 if (geoCriteriaIds != null) { | 4634 if (geoCriteriaIds != null) { |
| 4566 _json["geoCriteriaIds"] = geoCriteriaIds; | 4635 _json["geoCriteriaIds"] = geoCriteriaIds; |
| 4567 } | 4636 } |
| 4568 return _json; | 4637 return _json; |
| 4569 } | 4638 } |
| 4570 } | 4639 } |
| 4571 | 4640 |
| 4572 /** | 4641 /// A metric value, with an expected value and a variance; represents a count |
| 4573 * A metric value, with an expected value and a variance; represents a count | 4642 /// that may be either exact or estimated (i.e. when sampled). |
| 4574 * that may be either exact or estimated (i.e. when sampled). | |
| 4575 */ | |
| 4576 class MetricValue { | 4643 class MetricValue { |
| 4577 /** The expected value of the metric. */ | 4644 /// The expected value of the metric. |
| 4578 core.String value; | 4645 core.String value; |
| 4579 /** | 4646 |
| 4580 * The variance (i.e. square of the standard deviation) of the metric value. | 4647 /// The variance (i.e. square of the standard deviation) of the metric value. |
| 4581 * If value is exact, variance is 0. | 4648 /// If value is exact, variance is 0. |
| 4582 * Can be used to calculate margin of error as a percentage of value, using | 4649 /// Can be used to calculate margin of error as a percentage of value, using |
| 4583 * the following formula, where Z is the standard constant that depends on the | 4650 /// the following formula, where Z is the standard constant that depends on |
| 4584 * desired size of the confidence interval (e.g. for 90% confidence interval, | 4651 /// the |
| 4585 * use Z = 1.645): | 4652 /// desired size of the confidence interval (e.g. for 90% confidence |
| 4586 * | 4653 /// interval, |
| 4587 * marginOfError = 100 * Z * sqrt(variance) / value | 4654 /// use Z = 1.645): |
| 4588 */ | 4655 /// |
| 4656 /// marginOfError = 100 * Z * sqrt(variance) / value |
| 4589 core.String variance; | 4657 core.String variance; |
| 4590 | 4658 |
| 4591 MetricValue(); | 4659 MetricValue(); |
| 4592 | 4660 |
| 4593 MetricValue.fromJson(core.Map _json) { | 4661 MetricValue.fromJson(core.Map _json) { |
| 4594 if (_json.containsKey("value")) { | 4662 if (_json.containsKey("value")) { |
| 4595 value = _json["value"]; | 4663 value = _json["value"]; |
| 4596 } | 4664 } |
| 4597 if (_json.containsKey("variance")) { | 4665 if (_json.containsKey("variance")) { |
| 4598 variance = _json["variance"]; | 4666 variance = _json["variance"]; |
| 4599 } | 4667 } |
| 4600 } | 4668 } |
| 4601 | 4669 |
| 4602 core.Map<core.String, core.Object> toJson() { | 4670 core.Map<core.String, core.Object> toJson() { |
| 4603 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4671 final core.Map<core.String, core.Object> _json = |
| 4672 new core.Map<core.String, core.Object>(); |
| 4604 if (value != null) { | 4673 if (value != null) { |
| 4605 _json["value"] = value; | 4674 _json["value"] = value; |
| 4606 } | 4675 } |
| 4607 if (variance != null) { | 4676 if (variance != null) { |
| 4608 _json["variance"] = variance; | 4677 _json["variance"] = variance; |
| 4609 } | 4678 } |
| 4610 return _json; | 4679 return _json; |
| 4611 } | 4680 } |
| 4612 } | 4681 } |
| 4613 | 4682 |
| 4614 /** Native content for a creative. */ | 4683 /// Native content for a creative. |
| 4615 class NativeContent { | 4684 class NativeContent { |
| 4616 /** | 4685 /// The name of the advertiser or sponsor, to be displayed in the ad |
| 4617 * The name of the advertiser or sponsor, to be displayed in the ad creative. | 4686 /// creative. |
| 4618 */ | |
| 4619 core.String advertiserName; | 4687 core.String advertiserName; |
| 4620 /** The app icon, for app download ads. */ | 4688 |
| 4689 /// The app icon, for app download ads. |
| 4621 Image appIcon; | 4690 Image appIcon; |
| 4622 /** A long description of the ad. */ | 4691 |
| 4692 /// A long description of the ad. |
| 4623 core.String body; | 4693 core.String body; |
| 4624 /** A label for the button that the user is supposed to click. */ | 4694 |
| 4695 /// A label for the button that the user is supposed to click. |
| 4625 core.String callToAction; | 4696 core.String callToAction; |
| 4626 /** The URL that the browser/SDK will load when the user clicks the ad. */ | 4697 |
| 4698 /// The URL that the browser/SDK will load when the user clicks the ad. |
| 4627 core.String clickLinkUrl; | 4699 core.String clickLinkUrl; |
| 4628 /** The URL to use for click tracking. */ | 4700 |
| 4701 /// The URL to use for click tracking. |
| 4629 core.String clickTrackingUrl; | 4702 core.String clickTrackingUrl; |
| 4630 /** A short title for the ad. */ | 4703 |
| 4704 /// A short title for the ad. |
| 4631 core.String headline; | 4705 core.String headline; |
| 4632 /** A large image. */ | 4706 |
| 4707 /// A large image. |
| 4633 Image image; | 4708 Image image; |
| 4634 /** A smaller image, for the advertiser's logo. */ | 4709 |
| 4710 /// A smaller image, for the advertiser's logo. |
| 4635 Image logo; | 4711 Image logo; |
| 4636 /** The price of the promoted app including currency info. */ | 4712 |
| 4713 /// The price of the promoted app including currency info. |
| 4637 core.String priceDisplayText; | 4714 core.String priceDisplayText; |
| 4638 /** The app rating in the app store. Must be in the range [0-5]. */ | 4715 |
| 4716 /// The app rating in the app store. Must be in the range [0-5]. |
| 4639 core.double starRating; | 4717 core.double starRating; |
| 4640 /** The URL to the app store to purchase/download the promoted app. */ | 4718 |
| 4719 /// The URL to the app store to purchase/download the promoted app. |
| 4641 core.String storeUrl; | 4720 core.String storeUrl; |
| 4642 /** The URL to fetch a native video ad. */ | 4721 |
| 4722 /// The URL to fetch a native video ad. |
| 4643 core.String videoUrl; | 4723 core.String videoUrl; |
| 4644 | 4724 |
| 4645 NativeContent(); | 4725 NativeContent(); |
| 4646 | 4726 |
| 4647 NativeContent.fromJson(core.Map _json) { | 4727 NativeContent.fromJson(core.Map _json) { |
| 4648 if (_json.containsKey("advertiserName")) { | 4728 if (_json.containsKey("advertiserName")) { |
| 4649 advertiserName = _json["advertiserName"]; | 4729 advertiserName = _json["advertiserName"]; |
| 4650 } | 4730 } |
| 4651 if (_json.containsKey("appIcon")) { | 4731 if (_json.containsKey("appIcon")) { |
| 4652 appIcon = new Image.fromJson(_json["appIcon"]); | 4732 appIcon = new Image.fromJson(_json["appIcon"]); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4680 } | 4760 } |
| 4681 if (_json.containsKey("storeUrl")) { | 4761 if (_json.containsKey("storeUrl")) { |
| 4682 storeUrl = _json["storeUrl"]; | 4762 storeUrl = _json["storeUrl"]; |
| 4683 } | 4763 } |
| 4684 if (_json.containsKey("videoUrl")) { | 4764 if (_json.containsKey("videoUrl")) { |
| 4685 videoUrl = _json["videoUrl"]; | 4765 videoUrl = _json["videoUrl"]; |
| 4686 } | 4766 } |
| 4687 } | 4767 } |
| 4688 | 4768 |
| 4689 core.Map<core.String, core.Object> toJson() { | 4769 core.Map<core.String, core.Object> toJson() { |
| 4690 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4770 final core.Map<core.String, core.Object> _json = |
| 4771 new core.Map<core.String, core.Object>(); |
| 4691 if (advertiserName != null) { | 4772 if (advertiserName != null) { |
| 4692 _json["advertiserName"] = advertiserName; | 4773 _json["advertiserName"] = advertiserName; |
| 4693 } | 4774 } |
| 4694 if (appIcon != null) { | 4775 if (appIcon != null) { |
| 4695 _json["appIcon"] = (appIcon).toJson(); | 4776 _json["appIcon"] = (appIcon).toJson(); |
| 4696 } | 4777 } |
| 4697 if (body != null) { | 4778 if (body != null) { |
| 4698 _json["body"] = body; | 4779 _json["body"] = body; |
| 4699 } | 4780 } |
| 4700 if (callToAction != null) { | 4781 if (callToAction != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4724 if (storeUrl != null) { | 4805 if (storeUrl != null) { |
| 4725 _json["storeUrl"] = storeUrl; | 4806 _json["storeUrl"] = storeUrl; |
| 4726 } | 4807 } |
| 4727 if (videoUrl != null) { | 4808 if (videoUrl != null) { |
| 4728 _json["videoUrl"] = videoUrl; | 4809 _json["videoUrl"] = videoUrl; |
| 4729 } | 4810 } |
| 4730 return _json; | 4811 return _json; |
| 4731 } | 4812 } |
| 4732 } | 4813 } |
| 4733 | 4814 |
| 4734 /** | 4815 /// The number of winning bids with the specified dimension values for which |
| 4735 * The number of winning bids with the specified dimension values for which the | 4816 /// the |
| 4736 * buyer was not billed, as described by the specified status. | 4817 /// buyer was not billed, as described by the specified status. |
| 4737 */ | |
| 4738 class NonBillableWinningBidStatusRow { | 4818 class NonBillableWinningBidStatusRow { |
| 4739 /** The number of bids with the specified status. */ | 4819 /// The number of bids with the specified status. |
| 4740 MetricValue bidCount; | 4820 MetricValue bidCount; |
| 4741 /** | 4821 |
| 4742 * The values of all dimensions associated with metric values in this row. | 4822 /// The values of all dimensions associated with metric values in this row. |
| 4743 */ | |
| 4744 RowDimensions rowDimensions; | 4823 RowDimensions rowDimensions; |
| 4745 /** | 4824 |
| 4746 * The status specifying why the winning bids were not billed. | 4825 /// The status specifying why the winning bids were not billed. |
| 4747 * Possible string values are: | 4826 /// Possible string values are: |
| 4748 * - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. | 4827 /// - "STATUS_UNSPECIFIED" : A placeholder for an undefined status. |
| 4749 * This value will never be returned in responses. | 4828 /// This value will never be returned in responses. |
| 4750 * - "AD_NOT_RENDERED" : The buyer was not billed because the ad was not | 4829 /// - "AD_NOT_RENDERED" : The buyer was not billed because the ad was not |
| 4751 * rendered by the | 4830 /// rendered by the |
| 4752 * publisher. | 4831 /// publisher. |
| 4753 * - "INVALID_IMPRESSION" : The buyer was not billed because the impression | 4832 /// - "INVALID_IMPRESSION" : The buyer was not billed because the impression |
| 4754 * won by the bid was | 4833 /// won by the bid was |
| 4755 * determined to be invalid. | 4834 /// determined to be invalid. |
| 4756 */ | |
| 4757 core.String status; | 4835 core.String status; |
| 4758 | 4836 |
| 4759 NonBillableWinningBidStatusRow(); | 4837 NonBillableWinningBidStatusRow(); |
| 4760 | 4838 |
| 4761 NonBillableWinningBidStatusRow.fromJson(core.Map _json) { | 4839 NonBillableWinningBidStatusRow.fromJson(core.Map _json) { |
| 4762 if (_json.containsKey("bidCount")) { | 4840 if (_json.containsKey("bidCount")) { |
| 4763 bidCount = new MetricValue.fromJson(_json["bidCount"]); | 4841 bidCount = new MetricValue.fromJson(_json["bidCount"]); |
| 4764 } | 4842 } |
| 4765 if (_json.containsKey("rowDimensions")) { | 4843 if (_json.containsKey("rowDimensions")) { |
| 4766 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); | 4844 rowDimensions = new RowDimensions.fromJson(_json["rowDimensions"]); |
| 4767 } | 4845 } |
| 4768 if (_json.containsKey("status")) { | 4846 if (_json.containsKey("status")) { |
| 4769 status = _json["status"]; | 4847 status = _json["status"]; |
| 4770 } | 4848 } |
| 4771 } | 4849 } |
| 4772 | 4850 |
| 4773 core.Map<core.String, core.Object> toJson() { | 4851 core.Map<core.String, core.Object> toJson() { |
| 4774 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4852 final core.Map<core.String, core.Object> _json = |
| 4853 new core.Map<core.String, core.Object>(); |
| 4775 if (bidCount != null) { | 4854 if (bidCount != null) { |
| 4776 _json["bidCount"] = (bidCount).toJson(); | 4855 _json["bidCount"] = (bidCount).toJson(); |
| 4777 } | 4856 } |
| 4778 if (rowDimensions != null) { | 4857 if (rowDimensions != null) { |
| 4779 _json["rowDimensions"] = (rowDimensions).toJson(); | 4858 _json["rowDimensions"] = (rowDimensions).toJson(); |
| 4780 } | 4859 } |
| 4781 if (status != null) { | 4860 if (status != null) { |
| 4782 _json["status"] = status; | 4861 _json["status"] = status; |
| 4783 } | 4862 } |
| 4784 return _json; | 4863 return _json; |
| 4785 } | 4864 } |
| 4786 } | 4865 } |
| 4787 | 4866 |
| 4788 /** @OutputOnly The type of platform the restriction applies to. */ | 4867 /// @OutputOnly The type of platform the restriction applies to. |
| 4789 class PlatformContext { | 4868 class PlatformContext { |
| 4790 /** The platforms this restriction applies to. */ | 4869 /// The platforms this restriction applies to. |
| 4791 core.List<core.String> platforms; | 4870 core.List<core.String> platforms; |
| 4792 | 4871 |
| 4793 PlatformContext(); | 4872 PlatformContext(); |
| 4794 | 4873 |
| 4795 PlatformContext.fromJson(core.Map _json) { | 4874 PlatformContext.fromJson(core.Map _json) { |
| 4796 if (_json.containsKey("platforms")) { | 4875 if (_json.containsKey("platforms")) { |
| 4797 platforms = _json["platforms"]; | 4876 platforms = _json["platforms"]; |
| 4798 } | 4877 } |
| 4799 } | 4878 } |
| 4800 | 4879 |
| 4801 core.Map<core.String, core.Object> toJson() { | 4880 core.Map<core.String, core.Object> toJson() { |
| 4802 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4881 final core.Map<core.String, core.Object> _json = |
| 4882 new core.Map<core.String, core.Object>(); |
| 4803 if (platforms != null) { | 4883 if (platforms != null) { |
| 4804 _json["platforms"] = platforms; | 4884 _json["platforms"] = platforms; |
| 4805 } | 4885 } |
| 4806 return _json; | 4886 return _json; |
| 4807 } | 4887 } |
| 4808 } | 4888 } |
| 4809 | 4889 |
| 4810 /** | 4890 /// An open-ended realtime time range specified by the start timestamp. |
| 4811 * An open-ended realtime time range specified by the start timestamp. | 4891 /// For filter sets that specify a realtime time range RTB metrics continue to |
| 4812 * For filter sets that specify a realtime time range RTB metrics continue to | 4892 /// be aggregated throughout the lifetime of the filter set. |
| 4813 * be aggregated throughout the lifetime of the filter set. | |
| 4814 */ | |
| 4815 class RealtimeTimeRange { | 4893 class RealtimeTimeRange { |
| 4816 /** The start timestamp of the real-time RTB metrics aggregation. */ | 4894 /// The start timestamp of the real-time RTB metrics aggregation. |
| 4817 core.String startTimestamp; | 4895 core.String startTimestamp; |
| 4818 | 4896 |
| 4819 RealtimeTimeRange(); | 4897 RealtimeTimeRange(); |
| 4820 | 4898 |
| 4821 RealtimeTimeRange.fromJson(core.Map _json) { | 4899 RealtimeTimeRange.fromJson(core.Map _json) { |
| 4822 if (_json.containsKey("startTimestamp")) { | 4900 if (_json.containsKey("startTimestamp")) { |
| 4823 startTimestamp = _json["startTimestamp"]; | 4901 startTimestamp = _json["startTimestamp"]; |
| 4824 } | 4902 } |
| 4825 } | 4903 } |
| 4826 | 4904 |
| 4827 core.Map<core.String, core.Object> toJson() { | 4905 core.Map<core.String, core.Object> toJson() { |
| 4828 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4906 final core.Map<core.String, core.Object> _json = |
| 4907 new core.Map<core.String, core.Object>(); |
| 4829 if (startTimestamp != null) { | 4908 if (startTimestamp != null) { |
| 4830 _json["startTimestamp"] = startTimestamp; | 4909 _json["startTimestamp"] = startTimestamp; |
| 4831 } | 4910 } |
| 4832 return _json; | 4911 return _json; |
| 4833 } | 4912 } |
| 4834 } | 4913 } |
| 4835 | 4914 |
| 4836 /** A specific filtering status and how many times it occurred. */ | 4915 /// A specific filtering status and how many times it occurred. |
| 4837 class Reason { | 4916 class Reason { |
| 4838 /** | 4917 /// The number of times the creative was filtered for the status. The |
| 4839 * The number of times the creative was filtered for the status. The | 4918 /// count is aggregated across all publishers on the exchange. |
| 4840 * count is aggregated across all publishers on the exchange. | |
| 4841 */ | |
| 4842 core.String count; | 4919 core.String count; |
| 4843 /** | 4920 |
| 4844 * The filtering status code. Please refer to the | 4921 /// The filtering status code. Please refer to the |
| 4845 * [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictiona
ries/creative-status-codes.txt) | 4922 /// [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-diction
aries/creative-status-codes.txt) |
| 4846 * file for different statuses. | 4923 /// file for different statuses. |
| 4847 */ | |
| 4848 core.int status; | 4924 core.int status; |
| 4849 | 4925 |
| 4850 Reason(); | 4926 Reason(); |
| 4851 | 4927 |
| 4852 Reason.fromJson(core.Map _json) { | 4928 Reason.fromJson(core.Map _json) { |
| 4853 if (_json.containsKey("count")) { | 4929 if (_json.containsKey("count")) { |
| 4854 count = _json["count"]; | 4930 count = _json["count"]; |
| 4855 } | 4931 } |
| 4856 if (_json.containsKey("status")) { | 4932 if (_json.containsKey("status")) { |
| 4857 status = _json["status"]; | 4933 status = _json["status"]; |
| 4858 } | 4934 } |
| 4859 } | 4935 } |
| 4860 | 4936 |
| 4861 core.Map<core.String, core.Object> toJson() { | 4937 core.Map<core.String, core.Object> toJson() { |
| 4862 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4938 final core.Map<core.String, core.Object> _json = |
| 4939 new core.Map<core.String, core.Object>(); |
| 4863 if (count != null) { | 4940 if (count != null) { |
| 4864 _json["count"] = count; | 4941 _json["count"] = count; |
| 4865 } | 4942 } |
| 4866 if (status != null) { | 4943 if (status != null) { |
| 4867 _json["status"] = status; | 4944 _json["status"] = status; |
| 4868 } | 4945 } |
| 4869 return _json; | 4946 return _json; |
| 4870 } | 4947 } |
| 4871 } | 4948 } |
| 4872 | 4949 |
| 4873 /** | 4950 /// A relative date range, specified by an offset and a duration. |
| 4874 * A relative date range, specified by an offset and a duration. | 4951 /// The supported range of dates begins 30 days before today and ends today. |
| 4875 * The supported range of dates begins 30 days before today and ends today. | 4952 /// I.e. the limits for these values are: |
| 4876 * I.e. the limits for these values are: | 4953 /// offset_days >= 0 |
| 4877 * offset_days >= 0 | 4954 /// duration_days >= 1 |
| 4878 * duration_days >= 1 | 4955 /// offset_days + duration_days <= 30 |
| 4879 * offset_days + duration_days <= 30 | |
| 4880 */ | |
| 4881 class RelativeDateRange { | 4956 class RelativeDateRange { |
| 4882 /** | 4957 /// The number of days in the requested date range. E.g. for a range spanning |
| 4883 * The number of days in the requested date range. E.g. for a range spanning | 4958 /// today, 1. For a range spanning the last 7 days, 7. |
| 4884 * today, 1. For a range spanning the last 7 days, 7. | |
| 4885 */ | |
| 4886 core.int durationDays; | 4959 core.int durationDays; |
| 4887 /** | 4960 |
| 4888 * The end date of the filter set, specified as the number of days before | 4961 /// The end date of the filter set, specified as the number of days before |
| 4889 * today. E.g. for a range where the last date is today, 0. | 4962 /// today. E.g. for a range where the last date is today, 0. |
| 4890 */ | |
| 4891 core.int offsetDays; | 4963 core.int offsetDays; |
| 4892 | 4964 |
| 4893 RelativeDateRange(); | 4965 RelativeDateRange(); |
| 4894 | 4966 |
| 4895 RelativeDateRange.fromJson(core.Map _json) { | 4967 RelativeDateRange.fromJson(core.Map _json) { |
| 4896 if (_json.containsKey("durationDays")) { | 4968 if (_json.containsKey("durationDays")) { |
| 4897 durationDays = _json["durationDays"]; | 4969 durationDays = _json["durationDays"]; |
| 4898 } | 4970 } |
| 4899 if (_json.containsKey("offsetDays")) { | 4971 if (_json.containsKey("offsetDays")) { |
| 4900 offsetDays = _json["offsetDays"]; | 4972 offsetDays = _json["offsetDays"]; |
| 4901 } | 4973 } |
| 4902 } | 4974 } |
| 4903 | 4975 |
| 4904 core.Map<core.String, core.Object> toJson() { | 4976 core.Map<core.String, core.Object> toJson() { |
| 4905 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4977 final core.Map<core.String, core.Object> _json = |
| 4978 new core.Map<core.String, core.Object>(); |
| 4906 if (durationDays != null) { | 4979 if (durationDays != null) { |
| 4907 _json["durationDays"] = durationDays; | 4980 _json["durationDays"] = durationDays; |
| 4908 } | 4981 } |
| 4909 if (offsetDays != null) { | 4982 if (offsetDays != null) { |
| 4910 _json["offsetDays"] = offsetDays; | 4983 _json["offsetDays"] = offsetDays; |
| 4911 } | 4984 } |
| 4912 return _json; | 4985 return _json; |
| 4913 } | 4986 } |
| 4914 } | 4987 } |
| 4915 | 4988 |
| 4916 /** A request for removing the association between a deal and a creative. */ | 4989 /// A request for removing the association between a deal and a creative. |
| 4917 class RemoveDealAssociationRequest { | 4990 class RemoveDealAssociationRequest { |
| 4918 /** The association between a creative and a deal that should be removed. */ | 4991 /// The association between a creative and a deal that should be removed. |
| 4919 CreativeDealAssociation association; | 4992 CreativeDealAssociation association; |
| 4920 | 4993 |
| 4921 RemoveDealAssociationRequest(); | 4994 RemoveDealAssociationRequest(); |
| 4922 | 4995 |
| 4923 RemoveDealAssociationRequest.fromJson(core.Map _json) { | 4996 RemoveDealAssociationRequest.fromJson(core.Map _json) { |
| 4924 if (_json.containsKey("association")) { | 4997 if (_json.containsKey("association")) { |
| 4925 association = new CreativeDealAssociation.fromJson(_json["association"]); | 4998 association = new CreativeDealAssociation.fromJson(_json["association"]); |
| 4926 } | 4999 } |
| 4927 } | 5000 } |
| 4928 | 5001 |
| 4929 core.Map<core.String, core.Object> toJson() { | 5002 core.Map<core.String, core.Object> toJson() { |
| 4930 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5003 final core.Map<core.String, core.Object> _json = |
| 5004 new core.Map<core.String, core.Object>(); |
| 4931 if (association != null) { | 5005 if (association != null) { |
| 4932 _json["association"] = (association).toJson(); | 5006 _json["association"] = (association).toJson(); |
| 4933 } | 5007 } |
| 4934 return _json; | 5008 return _json; |
| 4935 } | 5009 } |
| 4936 } | 5010 } |
| 4937 | 5011 |
| 4938 /** | 5012 /// A response may include multiple rows, breaking down along various |
| 4939 * A response may include multiple rows, breaking down along various dimensions. | 5013 /// dimensions. |
| 4940 * Encapsulates the values of all dimensions for a given row. | 5014 /// Encapsulates the values of all dimensions for a given row. |
| 4941 */ | |
| 4942 class RowDimensions { | 5015 class RowDimensions { |
| 4943 /** The time interval that this row represents. */ | 5016 /// The time interval that this row represents. |
| 4944 TimeInterval timeInterval; | 5017 TimeInterval timeInterval; |
| 4945 | 5018 |
| 4946 RowDimensions(); | 5019 RowDimensions(); |
| 4947 | 5020 |
| 4948 RowDimensions.fromJson(core.Map _json) { | 5021 RowDimensions.fromJson(core.Map _json) { |
| 4949 if (_json.containsKey("timeInterval")) { | 5022 if (_json.containsKey("timeInterval")) { |
| 4950 timeInterval = new TimeInterval.fromJson(_json["timeInterval"]); | 5023 timeInterval = new TimeInterval.fromJson(_json["timeInterval"]); |
| 4951 } | 5024 } |
| 4952 } | 5025 } |
| 4953 | 5026 |
| 4954 core.Map<core.String, core.Object> toJson() { | 5027 core.Map<core.String, core.Object> toJson() { |
| 4955 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5028 final core.Map<core.String, core.Object> _json = |
| 5029 new core.Map<core.String, core.Object>(); |
| 4956 if (timeInterval != null) { | 5030 if (timeInterval != null) { |
| 4957 _json["timeInterval"] = (timeInterval).toJson(); | 5031 _json["timeInterval"] = (timeInterval).toJson(); |
| 4958 } | 5032 } |
| 4959 return _json; | 5033 return _json; |
| 4960 } | 5034 } |
| 4961 } | 5035 } |
| 4962 | 5036 |
| 4963 /** @OutputOnly A security context. */ | 5037 /// @OutputOnly A security context. |
| 4964 class SecurityContext { | 5038 class SecurityContext { |
| 4965 /** The security types in this context. */ | 5039 /// The security types in this context. |
| 4966 core.List<core.String> securities; | 5040 core.List<core.String> securities; |
| 4967 | 5041 |
| 4968 SecurityContext(); | 5042 SecurityContext(); |
| 4969 | 5043 |
| 4970 SecurityContext.fromJson(core.Map _json) { | 5044 SecurityContext.fromJson(core.Map _json) { |
| 4971 if (_json.containsKey("securities")) { | 5045 if (_json.containsKey("securities")) { |
| 4972 securities = _json["securities"]; | 5046 securities = _json["securities"]; |
| 4973 } | 5047 } |
| 4974 } | 5048 } |
| 4975 | 5049 |
| 4976 core.Map<core.String, core.Object> toJson() { | 5050 core.Map<core.String, core.Object> toJson() { |
| 4977 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5051 final core.Map<core.String, core.Object> _json = |
| 5052 new core.Map<core.String, core.Object>(); |
| 4978 if (securities != null) { | 5053 if (securities != null) { |
| 4979 _json["securities"] = securities; | 5054 _json["securities"] = securities; |
| 4980 } | 5055 } |
| 4981 return _json; | 5056 return _json; |
| 4982 } | 5057 } |
| 4983 } | 5058 } |
| 4984 | 5059 |
| 4985 /** The serving context for this restriction. */ | 5060 /// The serving context for this restriction. |
| 4986 class ServingContext { | 5061 class ServingContext { |
| 4987 /** | 5062 /// Matches all contexts. |
| 4988 * Matches all contexts. | 5063 /// Possible string values are: |
| 4989 * Possible string values are: | 5064 /// - "SIMPLE_CONTEXT" : A simple context. |
| 4990 * - "SIMPLE_CONTEXT" : A simple context. | |
| 4991 */ | |
| 4992 core.String all; | 5065 core.String all; |
| 4993 /** Matches impressions for a particular app type. */ | 5066 |
| 5067 /// Matches impressions for a particular app type. |
| 4994 AppContext appType; | 5068 AppContext appType; |
| 4995 /** Matches impressions for a particular auction type. */ | 5069 |
| 5070 /// Matches impressions for a particular auction type. |
| 4996 AuctionContext auctionType; | 5071 AuctionContext auctionType; |
| 4997 /** | 5072 |
| 4998 * Matches impressions coming from users *or* publishers in a specific | 5073 /// Matches impressions coming from users *or* publishers in a specific |
| 4999 * location. | 5074 /// location. |
| 5000 */ | |
| 5001 LocationContext location; | 5075 LocationContext location; |
| 5002 /** Matches impressions coming from a particular platform. */ | 5076 |
| 5077 /// Matches impressions coming from a particular platform. |
| 5003 PlatformContext platform; | 5078 PlatformContext platform; |
| 5004 /** Matches impressions for a particular security type. */ | 5079 |
| 5080 /// Matches impressions for a particular security type. |
| 5005 SecurityContext securityType; | 5081 SecurityContext securityType; |
| 5006 | 5082 |
| 5007 ServingContext(); | 5083 ServingContext(); |
| 5008 | 5084 |
| 5009 ServingContext.fromJson(core.Map _json) { | 5085 ServingContext.fromJson(core.Map _json) { |
| 5010 if (_json.containsKey("all")) { | 5086 if (_json.containsKey("all")) { |
| 5011 all = _json["all"]; | 5087 all = _json["all"]; |
| 5012 } | 5088 } |
| 5013 if (_json.containsKey("appType")) { | 5089 if (_json.containsKey("appType")) { |
| 5014 appType = new AppContext.fromJson(_json["appType"]); | 5090 appType = new AppContext.fromJson(_json["appType"]); |
| 5015 } | 5091 } |
| 5016 if (_json.containsKey("auctionType")) { | 5092 if (_json.containsKey("auctionType")) { |
| 5017 auctionType = new AuctionContext.fromJson(_json["auctionType"]); | 5093 auctionType = new AuctionContext.fromJson(_json["auctionType"]); |
| 5018 } | 5094 } |
| 5019 if (_json.containsKey("location")) { | 5095 if (_json.containsKey("location")) { |
| 5020 location = new LocationContext.fromJson(_json["location"]); | 5096 location = new LocationContext.fromJson(_json["location"]); |
| 5021 } | 5097 } |
| 5022 if (_json.containsKey("platform")) { | 5098 if (_json.containsKey("platform")) { |
| 5023 platform = new PlatformContext.fromJson(_json["platform"]); | 5099 platform = new PlatformContext.fromJson(_json["platform"]); |
| 5024 } | 5100 } |
| 5025 if (_json.containsKey("securityType")) { | 5101 if (_json.containsKey("securityType")) { |
| 5026 securityType = new SecurityContext.fromJson(_json["securityType"]); | 5102 securityType = new SecurityContext.fromJson(_json["securityType"]); |
| 5027 } | 5103 } |
| 5028 } | 5104 } |
| 5029 | 5105 |
| 5030 core.Map<core.String, core.Object> toJson() { | 5106 core.Map<core.String, core.Object> toJson() { |
| 5031 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5107 final core.Map<core.String, core.Object> _json = |
| 5108 new core.Map<core.String, core.Object>(); |
| 5032 if (all != null) { | 5109 if (all != null) { |
| 5033 _json["all"] = all; | 5110 _json["all"] = all; |
| 5034 } | 5111 } |
| 5035 if (appType != null) { | 5112 if (appType != null) { |
| 5036 _json["appType"] = (appType).toJson(); | 5113 _json["appType"] = (appType).toJson(); |
| 5037 } | 5114 } |
| 5038 if (auctionType != null) { | 5115 if (auctionType != null) { |
| 5039 _json["auctionType"] = (auctionType).toJson(); | 5116 _json["auctionType"] = (auctionType).toJson(); |
| 5040 } | 5117 } |
| 5041 if (location != null) { | 5118 if (location != null) { |
| 5042 _json["location"] = (location).toJson(); | 5119 _json["location"] = (location).toJson(); |
| 5043 } | 5120 } |
| 5044 if (platform != null) { | 5121 if (platform != null) { |
| 5045 _json["platform"] = (platform).toJson(); | 5122 _json["platform"] = (platform).toJson(); |
| 5046 } | 5123 } |
| 5047 if (securityType != null) { | 5124 if (securityType != null) { |
| 5048 _json["securityType"] = (securityType).toJson(); | 5125 _json["securityType"] = (securityType).toJson(); |
| 5049 } | 5126 } |
| 5050 return _json; | 5127 return _json; |
| 5051 } | 5128 } |
| 5052 } | 5129 } |
| 5053 | 5130 |
| 5054 /** | 5131 /// @OutputOnly A representation of the status of an ad in a |
| 5055 * @OutputOnly A representation of the status of an ad in a | 5132 /// specific context. A context here relates to where something ultimately |
| 5056 * specific context. A context here relates to where something ultimately serves | 5133 /// serves |
| 5057 * (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, | 5134 /// (for example, a user or publisher geo, a platform, an HTTPS vs HTTP |
| 5058 * or the type of auction). | 5135 /// request, |
| 5059 */ | 5136 /// or the type of auction). |
| 5060 class ServingRestriction { | 5137 class ServingRestriction { |
| 5061 /** The contexts for the restriction. */ | 5138 /// The contexts for the restriction. |
| 5062 core.List<ServingContext> contexts; | 5139 core.List<ServingContext> contexts; |
| 5063 /** | 5140 |
| 5064 * Any disapprovals bound to this restriction. | 5141 /// Any disapprovals bound to this restriction. |
| 5065 * Only present if status=DISAPPROVED. | 5142 /// Only present if status=DISAPPROVED. |
| 5066 * Can be used to filter the response of the | 5143 /// Can be used to filter the response of the |
| 5067 * creatives.list | 5144 /// creatives.list |
| 5068 * method. | 5145 /// method. |
| 5069 */ | |
| 5070 core.List<Disapproval> disapprovalReasons; | 5146 core.List<Disapproval> disapprovalReasons; |
| 5071 /** | 5147 |
| 5072 * The status of the creative in this context (for example, it has been | 5148 /// The status of the creative in this context (for example, it has been |
| 5073 * explicitly disapproved or is pending review). | 5149 /// explicitly disapproved or is pending review). |
| 5074 * Possible string values are: | 5150 /// Possible string values are: |
| 5075 * - "STATUS_UNSPECIFIED" : The status is not known. | 5151 /// - "STATUS_UNSPECIFIED" : The status is not known. |
| 5076 * - "DISAPPROVAL" : The ad was disapproved in this context. | 5152 /// - "DISAPPROVAL" : The ad was disapproved in this context. |
| 5077 * - "PENDING_REVIEW" : The ad is pending review in this context. | 5153 /// - "PENDING_REVIEW" : The ad is pending review in this context. |
| 5078 */ | |
| 5079 core.String status; | 5154 core.String status; |
| 5080 | 5155 |
| 5081 ServingRestriction(); | 5156 ServingRestriction(); |
| 5082 | 5157 |
| 5083 ServingRestriction.fromJson(core.Map _json) { | 5158 ServingRestriction.fromJson(core.Map _json) { |
| 5084 if (_json.containsKey("contexts")) { | 5159 if (_json.containsKey("contexts")) { |
| 5085 contexts = _json["contexts"].map((value) => new ServingContext.fromJson(va
lue)).toList(); | 5160 contexts = _json["contexts"] |
| 5161 .map((value) => new ServingContext.fromJson(value)) |
| 5162 .toList(); |
| 5086 } | 5163 } |
| 5087 if (_json.containsKey("disapprovalReasons")) { | 5164 if (_json.containsKey("disapprovalReasons")) { |
| 5088 disapprovalReasons = _json["disapprovalReasons"].map((value) => new Disapp
roval.fromJson(value)).toList(); | 5165 disapprovalReasons = _json["disapprovalReasons"] |
| 5166 .map((value) => new Disapproval.fromJson(value)) |
| 5167 .toList(); |
| 5089 } | 5168 } |
| 5090 if (_json.containsKey("status")) { | 5169 if (_json.containsKey("status")) { |
| 5091 status = _json["status"]; | 5170 status = _json["status"]; |
| 5092 } | 5171 } |
| 5093 } | 5172 } |
| 5094 | 5173 |
| 5095 core.Map<core.String, core.Object> toJson() { | 5174 core.Map<core.String, core.Object> toJson() { |
| 5096 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5175 final core.Map<core.String, core.Object> _json = |
| 5176 new core.Map<core.String, core.Object>(); |
| 5097 if (contexts != null) { | 5177 if (contexts != null) { |
| 5098 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); | 5178 _json["contexts"] = contexts.map((value) => (value).toJson()).toList(); |
| 5099 } | 5179 } |
| 5100 if (disapprovalReasons != null) { | 5180 if (disapprovalReasons != null) { |
| 5101 _json["disapprovalReasons"] = disapprovalReasons.map((value) => (value).to
Json()).toList(); | 5181 _json["disapprovalReasons"] = |
| 5182 disapprovalReasons.map((value) => (value).toJson()).toList(); |
| 5102 } | 5183 } |
| 5103 if (status != null) { | 5184 if (status != null) { |
| 5104 _json["status"] = status; | 5185 _json["status"] = status; |
| 5105 } | 5186 } |
| 5106 return _json; | 5187 return _json; |
| 5107 } | 5188 } |
| 5108 } | 5189 } |
| 5109 | 5190 |
| 5110 /** A request for stopping notifications for changes to creative Status. */ | 5191 /// A request for stopping notifications for changes to creative Status. |
| 5111 class StopWatchingCreativeRequest { | 5192 class StopWatchingCreativeRequest { |
| 5112 | |
| 5113 StopWatchingCreativeRequest(); | 5193 StopWatchingCreativeRequest(); |
| 5114 | 5194 |
| 5115 StopWatchingCreativeRequest.fromJson(core.Map _json) { | 5195 StopWatchingCreativeRequest.fromJson(core.Map _json) {} |
| 5116 } | |
| 5117 | 5196 |
| 5118 core.Map<core.String, core.Object> toJson() { | 5197 core.Map<core.String, core.Object> toJson() { |
| 5119 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5198 final core.Map<core.String, core.Object> _json = |
| 5199 new core.Map<core.String, core.Object>(); |
| 5120 return _json; | 5200 return _json; |
| 5121 } | 5201 } |
| 5122 } | 5202 } |
| 5123 | 5203 |
| 5124 /** | 5204 /// An interval of time, with an absolute start and end. |
| 5125 * An interval of time, with an absolute start and end. | 5205 /// This is included in the response, for several reasons: |
| 5126 * This is included in the response, for several reasons: | 5206 /// 1) The request may have specified start or end times relative to the time |
| 5127 * 1) The request may have specified start or end times relative to the time the | 5207 /// the |
| 5128 * request was sent; the response indicates the corresponding absolute time | 5208 /// request was sent; the response indicates the corresponding absolute time |
| 5129 * interval. | 5209 /// interval. |
| 5130 * 2) The request may have specified an end time past the latest time for which | 5210 /// 2) The request may have specified an end time past the latest time for |
| 5131 * data was available (e.g. if requesting data for the today); the response | 5211 /// which |
| 5132 * indicates the latest time for which data was actually returned. | 5212 /// data was available (e.g. if requesting data for the today); the response |
| 5133 * 3) The response data for a single request may be broken down into multiple | 5213 /// indicates the latest time for which data was actually returned. |
| 5134 * time intervals, if a time series was requested. | 5214 /// 3) The response data for a single request may be broken down into multiple |
| 5135 */ | 5215 /// time intervals, if a time series was requested. |
| 5136 class TimeInterval { | 5216 class TimeInterval { |
| 5137 /** | 5217 /// The timestamp marking the end of the range (exclusive) for which data is |
| 5138 * The timestamp marking the end of the range (exclusive) for which data is | 5218 /// included. |
| 5139 * included. | |
| 5140 */ | |
| 5141 core.String endTime; | 5219 core.String endTime; |
| 5142 /** | 5220 |
| 5143 * The timestamp marking the start of the range (inclusive) for which data is | 5221 /// The timestamp marking the start of the range (inclusive) for which data |
| 5144 * included. | 5222 /// is |
| 5145 */ | 5223 /// included. |
| 5146 core.String startTime; | 5224 core.String startTime; |
| 5147 | 5225 |
| 5148 TimeInterval(); | 5226 TimeInterval(); |
| 5149 | 5227 |
| 5150 TimeInterval.fromJson(core.Map _json) { | 5228 TimeInterval.fromJson(core.Map _json) { |
| 5151 if (_json.containsKey("endTime")) { | 5229 if (_json.containsKey("endTime")) { |
| 5152 endTime = _json["endTime"]; | 5230 endTime = _json["endTime"]; |
| 5153 } | 5231 } |
| 5154 if (_json.containsKey("startTime")) { | 5232 if (_json.containsKey("startTime")) { |
| 5155 startTime = _json["startTime"]; | 5233 startTime = _json["startTime"]; |
| 5156 } | 5234 } |
| 5157 } | 5235 } |
| 5158 | 5236 |
| 5159 core.Map<core.String, core.Object> toJson() { | 5237 core.Map<core.String, core.Object> toJson() { |
| 5160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5238 final core.Map<core.String, core.Object> _json = |
| 5239 new core.Map<core.String, core.Object>(); |
| 5161 if (endTime != null) { | 5240 if (endTime != null) { |
| 5162 _json["endTime"] = endTime; | 5241 _json["endTime"] = endTime; |
| 5163 } | 5242 } |
| 5164 if (startTime != null) { | 5243 if (startTime != null) { |
| 5165 _json["startTime"] = startTime; | 5244 _json["startTime"] = startTime; |
| 5166 } | 5245 } |
| 5167 return _json; | 5246 return _json; |
| 5168 } | 5247 } |
| 5169 } | 5248 } |
| 5170 | 5249 |
| 5171 /** Video content for a creative. */ | 5250 /// Video content for a creative. |
| 5172 class VideoContent { | 5251 class VideoContent { |
| 5173 /** The URL to fetch a video ad. */ | 5252 /// The URL to fetch a video ad. |
| 5174 core.String videoUrl; | 5253 core.String videoUrl; |
| 5175 | 5254 |
| 5176 VideoContent(); | 5255 VideoContent(); |
| 5177 | 5256 |
| 5178 VideoContent.fromJson(core.Map _json) { | 5257 VideoContent.fromJson(core.Map _json) { |
| 5179 if (_json.containsKey("videoUrl")) { | 5258 if (_json.containsKey("videoUrl")) { |
| 5180 videoUrl = _json["videoUrl"]; | 5259 videoUrl = _json["videoUrl"]; |
| 5181 } | 5260 } |
| 5182 } | 5261 } |
| 5183 | 5262 |
| 5184 core.Map<core.String, core.Object> toJson() { | 5263 core.Map<core.String, core.Object> toJson() { |
| 5185 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5264 final core.Map<core.String, core.Object> _json = |
| 5265 new core.Map<core.String, core.Object>(); |
| 5186 if (videoUrl != null) { | 5266 if (videoUrl != null) { |
| 5187 _json["videoUrl"] = videoUrl; | 5267 _json["videoUrl"] = videoUrl; |
| 5188 } | 5268 } |
| 5189 return _json; | 5269 return _json; |
| 5190 } | 5270 } |
| 5191 } | 5271 } |
| 5192 | 5272 |
| 5193 /** A request for watching changes to creative Status. */ | 5273 /// A request for watching changes to creative Status. |
| 5194 class WatchCreativeRequest { | 5274 class WatchCreativeRequest { |
| 5195 /** | 5275 /// The Pub/Sub topic to publish notifications to. |
| 5196 * The Pub/Sub topic to publish notifications to. | 5276 /// This topic must already exist and must give permission to |
| 5197 * This topic must already exist and must give permission to | 5277 /// ad-exchange-buyside-reports@google.com to write to the topic. |
| 5198 * ad-exchange-buyside-reports@google.com to write to the topic. | 5278 /// This should be the full resource name in |
| 5199 * This should be the full resource name in | 5279 /// "projects/{project_id}/topics/{topic_id}" format. |
| 5200 * "projects/{project_id}/topics/{topic_id}" format. | |
| 5201 */ | |
| 5202 core.String topic; | 5280 core.String topic; |
| 5203 | 5281 |
| 5204 WatchCreativeRequest(); | 5282 WatchCreativeRequest(); |
| 5205 | 5283 |
| 5206 WatchCreativeRequest.fromJson(core.Map _json) { | 5284 WatchCreativeRequest.fromJson(core.Map _json) { |
| 5207 if (_json.containsKey("topic")) { | 5285 if (_json.containsKey("topic")) { |
| 5208 topic = _json["topic"]; | 5286 topic = _json["topic"]; |
| 5209 } | 5287 } |
| 5210 } | 5288 } |
| 5211 | 5289 |
| 5212 core.Map<core.String, core.Object> toJson() { | 5290 core.Map<core.String, core.Object> toJson() { |
| 5213 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5291 final core.Map<core.String, core.Object> _json = |
| 5292 new core.Map<core.String, core.Object>(); |
| 5214 if (topic != null) { | 5293 if (topic != null) { |
| 5215 _json["topic"] = topic; | 5294 _json["topic"] = topic; |
| 5216 } | 5295 } |
| 5217 return _json; | 5296 return _json; |
| 5218 } | 5297 } |
| 5219 } | 5298 } |
| OLD | NEW |