1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="adexchangebuyer2_v2beta1.html">Ad Exchange Buyer API II</a> . <a href="adexchangebuyer2_v2beta1.accounts.html">accounts</a> . <a href="adexchangebuyer2_v2beta1.accounts.clients.html">clients</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="adexchangebuyer2_v2beta1.accounts.clients.invitations.html">invitations()</a></code> 79</p> 80<p class="firstline">Returns the invitations Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="adexchangebuyer2_v2beta1.accounts.clients.users.html">users()</a></code> 84</p> 85<p class="firstline">Returns the users Resource.</p> 86 87<p class="toc_element"> 88 <code><a href="#create">create(accountId, body, x__xgafv=None)</a></code></p> 89<p class="firstline">Creates a new client buyer.</p> 90<p class="toc_element"> 91 <code><a href="#get">get(accountId, clientAccountId, x__xgafv=None)</a></code></p> 92<p class="firstline">Gets a client buyer with a given client account ID.</p> 93<p class="toc_element"> 94 <code><a href="#list">list(accountId, pageSize=None, partnerClientId=None, pageToken=None, x__xgafv=None)</a></code></p> 95<p class="firstline">Lists all the clients for the current sponsor buyer.</p> 96<p class="toc_element"> 97 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 98<p class="firstline">Retrieves the next page of results.</p> 99<p class="toc_element"> 100 <code><a href="#update">update(accountId, clientAccountId, body, x__xgafv=None)</a></code></p> 101<p class="firstline">Updates an existing client buyer.</p> 102<h3>Method Details</h3> 103<div class="method"> 104 <code class="details" id="create">create(accountId, body, x__xgafv=None)</code> 105 <pre>Creates a new client buyer. 106 107Args: 108 accountId: string, Unique numerical account ID for the buyer of which the client buyer 109is a customer; the sponsor buyer to create a client for. (required) (required) 110 body: object, The request body. (required) 111 The object takes the form of: 112 113{ # A client resource represents a client buyer—an agency, a brand, or an 114 # advertiser customer of the sponsor buyer. Users associated with the client 115 # buyer have restricted access to the Marketplace and certain other sections of 116 # the Authorized Buyers UI based on the role granted to the client buyer. All 117 # fields are required unless otherwise specified. 118 "status": "A String", # The status of the client buyer. 119 "clientAccountId": "A String", # The globally-unique numerical ID of the client. 120 # The value of this field is ignored in create and update operations. 121 "entityType": "A String", # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. 122 "entityName": "A String", # The name of the entity. This field is automatically fetched based on 123 # the type and ID. 124 # The value of this field is ignored in create and update operations. 125 "partnerClientId": "A String", # Optional arbitrary unique identifier of this client buyer from the 126 # standpoint of its Ad Exchange sponsor buyer. 127 # 128 # This field can be used to associate a client buyer with the identifier 129 # in the namespace of its sponsor buyer, lookup client buyers by that 130 # identifier and verify whether an Ad Exchange counterpart of a given client 131 # buyer already exists. 132 # 133 # If present, must be unique among all the client buyers for its 134 # Ad Exchange sponsor buyer. 135 "role": "A String", # The role which is assigned to the client buyer. Each role implies a set of 136 # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, 137 # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. 138 "visibleToSeller": True or False, # Whether the client buyer will be visible to sellers. 139 "entityId": "A String", # Numerical identifier of the client entity. 140 # The entity can be an advertiser, a brand, or an agency. 141 # This identifier is unique among all the entities with the same type. 142 # 143 # A list of all known advertisers with their identifiers is available in the 144 # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt) 145 # file. 146 # 147 # A list of all known brands with their identifiers is available in the 148 # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt) 149 # file. 150 # 151 # A list of all known agencies with their identifiers is available in the 152 # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) 153 # file. 154 "clientName": "A String", # Name used to represent this client to publishers. 155 # You may have multiple clients that map to the same entity, 156 # but for each client the combination of `clientName` and entity 157 # must be unique. 158 # You can specify this field as empty. 159 } 160 161 x__xgafv: string, V1 error format. 162 Allowed values 163 1 - v1 error format 164 2 - v2 error format 165 166Returns: 167 An object of the form: 168 169 { # A client resource represents a client buyer—an agency, a brand, or an 170 # advertiser customer of the sponsor buyer. Users associated with the client 171 # buyer have restricted access to the Marketplace and certain other sections of 172 # the Authorized Buyers UI based on the role granted to the client buyer. All 173 # fields are required unless otherwise specified. 174 "status": "A String", # The status of the client buyer. 175 "clientAccountId": "A String", # The globally-unique numerical ID of the client. 176 # The value of this field is ignored in create and update operations. 177 "entityType": "A String", # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. 178 "entityName": "A String", # The name of the entity. This field is automatically fetched based on 179 # the type and ID. 180 # The value of this field is ignored in create and update operations. 181 "partnerClientId": "A String", # Optional arbitrary unique identifier of this client buyer from the 182 # standpoint of its Ad Exchange sponsor buyer. 183 # 184 # This field can be used to associate a client buyer with the identifier 185 # in the namespace of its sponsor buyer, lookup client buyers by that 186 # identifier and verify whether an Ad Exchange counterpart of a given client 187 # buyer already exists. 188 # 189 # If present, must be unique among all the client buyers for its 190 # Ad Exchange sponsor buyer. 191 "role": "A String", # The role which is assigned to the client buyer. Each role implies a set of 192 # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, 193 # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. 194 "visibleToSeller": True or False, # Whether the client buyer will be visible to sellers. 195 "entityId": "A String", # Numerical identifier of the client entity. 196 # The entity can be an advertiser, a brand, or an agency. 197 # This identifier is unique among all the entities with the same type. 198 # 199 # A list of all known advertisers with their identifiers is available in the 200 # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt) 201 # file. 202 # 203 # A list of all known brands with their identifiers is available in the 204 # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt) 205 # file. 206 # 207 # A list of all known agencies with their identifiers is available in the 208 # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) 209 # file. 210 "clientName": "A String", # Name used to represent this client to publishers. 211 # You may have multiple clients that map to the same entity, 212 # but for each client the combination of `clientName` and entity 213 # must be unique. 214 # You can specify this field as empty. 215 }</pre> 216</div> 217 218<div class="method"> 219 <code class="details" id="get">get(accountId, clientAccountId, x__xgafv=None)</code> 220 <pre>Gets a client buyer with a given client account ID. 221 222Args: 223 accountId: string, Numerical account ID of the client's sponsor buyer. (required) (required) 224 clientAccountId: string, Numerical account ID of the client buyer to retrieve. (required) (required) 225 x__xgafv: string, V1 error format. 226 Allowed values 227 1 - v1 error format 228 2 - v2 error format 229 230Returns: 231 An object of the form: 232 233 { # A client resource represents a client buyer—an agency, a brand, or an 234 # advertiser customer of the sponsor buyer. Users associated with the client 235 # buyer have restricted access to the Marketplace and certain other sections of 236 # the Authorized Buyers UI based on the role granted to the client buyer. All 237 # fields are required unless otherwise specified. 238 "status": "A String", # The status of the client buyer. 239 "clientAccountId": "A String", # The globally-unique numerical ID of the client. 240 # The value of this field is ignored in create and update operations. 241 "entityType": "A String", # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. 242 "entityName": "A String", # The name of the entity. This field is automatically fetched based on 243 # the type and ID. 244 # The value of this field is ignored in create and update operations. 245 "partnerClientId": "A String", # Optional arbitrary unique identifier of this client buyer from the 246 # standpoint of its Ad Exchange sponsor buyer. 247 # 248 # This field can be used to associate a client buyer with the identifier 249 # in the namespace of its sponsor buyer, lookup client buyers by that 250 # identifier and verify whether an Ad Exchange counterpart of a given client 251 # buyer already exists. 252 # 253 # If present, must be unique among all the client buyers for its 254 # Ad Exchange sponsor buyer. 255 "role": "A String", # The role which is assigned to the client buyer. Each role implies a set of 256 # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, 257 # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. 258 "visibleToSeller": True or False, # Whether the client buyer will be visible to sellers. 259 "entityId": "A String", # Numerical identifier of the client entity. 260 # The entity can be an advertiser, a brand, or an agency. 261 # This identifier is unique among all the entities with the same type. 262 # 263 # A list of all known advertisers with their identifiers is available in the 264 # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt) 265 # file. 266 # 267 # A list of all known brands with their identifiers is available in the 268 # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt) 269 # file. 270 # 271 # A list of all known agencies with their identifiers is available in the 272 # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) 273 # file. 274 "clientName": "A String", # Name used to represent this client to publishers. 275 # You may have multiple clients that map to the same entity, 276 # but for each client the combination of `clientName` and entity 277 # must be unique. 278 # You can specify this field as empty. 279 }</pre> 280</div> 281 282<div class="method"> 283 <code class="details" id="list">list(accountId, pageSize=None, partnerClientId=None, pageToken=None, x__xgafv=None)</code> 284 <pre>Lists all the clients for the current sponsor buyer. 285 286Args: 287 accountId: string, Unique numerical account ID of the sponsor buyer to list the clients for. (required) 288 pageSize: integer, Requested page size. The server may return fewer clients than requested. 289If unspecified, the server will pick an appropriate default. 290 partnerClientId: string, Optional unique identifier (from the standpoint of an Ad Exchange sponsor 291buyer partner) of the client to return. 292If specified, at most one client will be returned in the response. 293 pageToken: string, A token identifying a page of results the server should return. 294Typically, this is the value of 295ListClientsResponse.nextPageToken 296returned from the previous call to the 297accounts.clients.list 298method. 299 x__xgafv: string, V1 error format. 300 Allowed values 301 1 - v1 error format 302 2 - v2 error format 303 304Returns: 305 An object of the form: 306 307 { 308 "nextPageToken": "A String", # A token to retrieve the next page of results. 309 # Pass this value in the 310 # ListClientsRequest.pageToken 311 # field in the subsequent call to the 312 # accounts.clients.list 313 # method to retrieve the next page of results. 314 "clients": [ # The returned list of clients. 315 { # A client resource represents a client buyer—an agency, a brand, or an 316 # advertiser customer of the sponsor buyer. Users associated with the client 317 # buyer have restricted access to the Marketplace and certain other sections of 318 # the Authorized Buyers UI based on the role granted to the client buyer. All 319 # fields are required unless otherwise specified. 320 "status": "A String", # The status of the client buyer. 321 "clientAccountId": "A String", # The globally-unique numerical ID of the client. 322 # The value of this field is ignored in create and update operations. 323 "entityType": "A String", # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. 324 "entityName": "A String", # The name of the entity. This field is automatically fetched based on 325 # the type and ID. 326 # The value of this field is ignored in create and update operations. 327 "partnerClientId": "A String", # Optional arbitrary unique identifier of this client buyer from the 328 # standpoint of its Ad Exchange sponsor buyer. 329 # 330 # This field can be used to associate a client buyer with the identifier 331 # in the namespace of its sponsor buyer, lookup client buyers by that 332 # identifier and verify whether an Ad Exchange counterpart of a given client 333 # buyer already exists. 334 # 335 # If present, must be unique among all the client buyers for its 336 # Ad Exchange sponsor buyer. 337 "role": "A String", # The role which is assigned to the client buyer. Each role implies a set of 338 # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, 339 # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. 340 "visibleToSeller": True or False, # Whether the client buyer will be visible to sellers. 341 "entityId": "A String", # Numerical identifier of the client entity. 342 # The entity can be an advertiser, a brand, or an agency. 343 # This identifier is unique among all the entities with the same type. 344 # 345 # A list of all known advertisers with their identifiers is available in the 346 # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt) 347 # file. 348 # 349 # A list of all known brands with their identifiers is available in the 350 # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt) 351 # file. 352 # 353 # A list of all known agencies with their identifiers is available in the 354 # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) 355 # file. 356 "clientName": "A String", # Name used to represent this client to publishers. 357 # You may have multiple clients that map to the same entity, 358 # but for each client the combination of `clientName` and entity 359 # must be unique. 360 # You can specify this field as empty. 361 }, 362 ], 363 }</pre> 364</div> 365 366<div class="method"> 367 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 368 <pre>Retrieves the next page of results. 369 370Args: 371 previous_request: The request for the previous page. (required) 372 previous_response: The response from the request for the previous page. (required) 373 374Returns: 375 A request object that you can call 'execute()' on to request the next 376 page. Returns None if there are no more items in the collection. 377 </pre> 378</div> 379 380<div class="method"> 381 <code class="details" id="update">update(accountId, clientAccountId, body, x__xgafv=None)</code> 382 <pre>Updates an existing client buyer. 383 384Args: 385 accountId: string, Unique numerical account ID for the buyer of which the client buyer 386is a customer; the sponsor buyer to update a client for. (required) (required) 387 clientAccountId: string, Unique numerical account ID of the client to update. (required) (required) 388 body: object, The request body. (required) 389 The object takes the form of: 390 391{ # A client resource represents a client buyer—an agency, a brand, or an 392 # advertiser customer of the sponsor buyer. Users associated with the client 393 # buyer have restricted access to the Marketplace and certain other sections of 394 # the Authorized Buyers UI based on the role granted to the client buyer. All 395 # fields are required unless otherwise specified. 396 "status": "A String", # The status of the client buyer. 397 "clientAccountId": "A String", # The globally-unique numerical ID of the client. 398 # The value of this field is ignored in create and update operations. 399 "entityType": "A String", # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. 400 "entityName": "A String", # The name of the entity. This field is automatically fetched based on 401 # the type and ID. 402 # The value of this field is ignored in create and update operations. 403 "partnerClientId": "A String", # Optional arbitrary unique identifier of this client buyer from the 404 # standpoint of its Ad Exchange sponsor buyer. 405 # 406 # This field can be used to associate a client buyer with the identifier 407 # in the namespace of its sponsor buyer, lookup client buyers by that 408 # identifier and verify whether an Ad Exchange counterpart of a given client 409 # buyer already exists. 410 # 411 # If present, must be unique among all the client buyers for its 412 # Ad Exchange sponsor buyer. 413 "role": "A String", # The role which is assigned to the client buyer. Each role implies a set of 414 # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, 415 # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. 416 "visibleToSeller": True or False, # Whether the client buyer will be visible to sellers. 417 "entityId": "A String", # Numerical identifier of the client entity. 418 # The entity can be an advertiser, a brand, or an agency. 419 # This identifier is unique among all the entities with the same type. 420 # 421 # A list of all known advertisers with their identifiers is available in the 422 # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt) 423 # file. 424 # 425 # A list of all known brands with their identifiers is available in the 426 # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt) 427 # file. 428 # 429 # A list of all known agencies with their identifiers is available in the 430 # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) 431 # file. 432 "clientName": "A String", # Name used to represent this client to publishers. 433 # You may have multiple clients that map to the same entity, 434 # but for each client the combination of `clientName` and entity 435 # must be unique. 436 # You can specify this field as empty. 437 } 438 439 x__xgafv: string, V1 error format. 440 Allowed values 441 1 - v1 error format 442 2 - v2 error format 443 444Returns: 445 An object of the form: 446 447 { # A client resource represents a client buyer—an agency, a brand, or an 448 # advertiser customer of the sponsor buyer. Users associated with the client 449 # buyer have restricted access to the Marketplace and certain other sections of 450 # the Authorized Buyers UI based on the role granted to the client buyer. All 451 # fields are required unless otherwise specified. 452 "status": "A String", # The status of the client buyer. 453 "clientAccountId": "A String", # The globally-unique numerical ID of the client. 454 # The value of this field is ignored in create and update operations. 455 "entityType": "A String", # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. 456 "entityName": "A String", # The name of the entity. This field is automatically fetched based on 457 # the type and ID. 458 # The value of this field is ignored in create and update operations. 459 "partnerClientId": "A String", # Optional arbitrary unique identifier of this client buyer from the 460 # standpoint of its Ad Exchange sponsor buyer. 461 # 462 # This field can be used to associate a client buyer with the identifier 463 # in the namespace of its sponsor buyer, lookup client buyers by that 464 # identifier and verify whether an Ad Exchange counterpart of a given client 465 # buyer already exists. 466 # 467 # If present, must be unique among all the client buyers for its 468 # Ad Exchange sponsor buyer. 469 "role": "A String", # The role which is assigned to the client buyer. Each role implies a set of 470 # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, 471 # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. 472 "visibleToSeller": True or False, # Whether the client buyer will be visible to sellers. 473 "entityId": "A String", # Numerical identifier of the client entity. 474 # The entity can be an advertiser, a brand, or an agency. 475 # This identifier is unique among all the entities with the same type. 476 # 477 # A list of all known advertisers with their identifiers is available in the 478 # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt) 479 # file. 480 # 481 # A list of all known brands with their identifiers is available in the 482 # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt) 483 # file. 484 # 485 # A list of all known agencies with their identifiers is available in the 486 # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) 487 # file. 488 "clientName": "A String", # Name used to represent this client to publishers. 489 # You may have multiple clients that map to the same entity, 490 # but for each client the combination of `clientName` and entity 491 # must be unique. 492 # You can specify this field as empty. 493 }</pre> 494</div> 495 496</body></html>