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.creatives.html">creatives</a> . <a href="adexchangebuyer2_v2beta1.accounts.creatives.dealAssociations.html">dealAssociations</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#add">add(accountId, creativeId, body=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Associate an existing deal with a creative.</p> 80<p class="toc_element"> 81 <code><a href="#close">close()</a></code></p> 82<p class="firstline">Close httplib2 connections.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(accountId, creativeId, pageSize=None, pageToken=None, query=None, x__xgafv=None)</a></code></p> 85<p class="firstline">List all creative-deal associations.</p> 86<p class="toc_element"> 87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 88<p class="firstline">Retrieves the next page of results.</p> 89<p class="toc_element"> 90 <code><a href="#remove">remove(accountId, creativeId, body=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Remove the association between a deal and a creative.</p> 92<h3>Method Details</h3> 93<div class="method"> 94 <code class="details" id="add">add(accountId, creativeId, body=None, x__xgafv=None)</code> 95 <pre>Associate an existing deal with a creative. 96 97Args: 98 accountId: string, The account the creative belongs to. (required) 99 creativeId: string, The ID of the creative associated with the deal. (required) 100 body: object, The request body. 101 The object takes the form of: 102 103{ # A request for associating a deal and a creative. 104 "association": { # The association between a creative and a deal. # The association between a creative and a deal that should be added. 105 "accountId": "A String", # The account the creative belongs to. 106 "creativeId": "A String", # The ID of the creative associated with the deal. 107 "dealsId": "A String", # The externalDealId for the deal associated with the creative. 108 }, 109} 110 111 x__xgafv: string, V1 error format. 112 Allowed values 113 1 - v1 error format 114 2 - v2 error format 115 116Returns: 117 An object of the form: 118 119 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 120}</pre> 121</div> 122 123<div class="method"> 124 <code class="details" id="close">close()</code> 125 <pre>Close httplib2 connections.</pre> 126</div> 127 128<div class="method"> 129 <code class="details" id="list">list(accountId, creativeId, pageSize=None, pageToken=None, query=None, x__xgafv=None)</code> 130 <pre>List all creative-deal associations. 131 132Args: 133 accountId: string, The account to list the associations from. Specify "-" to list all creatives the current user has access to. (required) 134 creativeId: string, The creative ID to list the associations from. Specify "-" to list all creatives under the above account. (required) 135 pageSize: integer, Requested page size. Server may return fewer associations than requested. If unspecified, server will pick an appropriate default. 136 pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of ListDealAssociationsResponse.next_page_token returned from the previous call to 'ListDealAssociations' method. 137 query: string, An optional query string to filter deal associations. If no filter is specified, all associations will be returned. Supported queries are: - accountId=*account_id_string* - creativeId=*creative_id_string* - dealsId=*deals_id_string* - dealsStatus:{approved, conditionally_approved, disapproved, not_checked} - openAuctionStatus:{approved, conditionally_approved, disapproved, not_checked} Example: 'dealsId=12345 AND dealsStatus:disapproved' 138 x__xgafv: string, V1 error format. 139 Allowed values 140 1 - v1 error format 141 2 - v2 error format 142 143Returns: 144 An object of the form: 145 146 { # A response for listing creative and deal associations 147 "associations": [ # The list of associations. 148 { # The association between a creative and a deal. 149 "accountId": "A String", # The account the creative belongs to. 150 "creativeId": "A String", # The ID of the creative associated with the deal. 151 "dealsId": "A String", # The externalDealId for the deal associated with the creative. 152 }, 153 ], 154 "nextPageToken": "A String", # A token to retrieve the next page of results. Pass this value in the ListDealAssociationsRequest.page_token field in the subsequent call to 'ListDealAssociation' method to retrieve the next page of results. 155}</pre> 156</div> 157 158<div class="method"> 159 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 160 <pre>Retrieves the next page of results. 161 162Args: 163 previous_request: The request for the previous page. (required) 164 previous_response: The response from the request for the previous page. (required) 165 166Returns: 167 A request object that you can call 'execute()' on to request the next 168 page. Returns None if there are no more items in the collection. 169 </pre> 170</div> 171 172<div class="method"> 173 <code class="details" id="remove">remove(accountId, creativeId, body=None, x__xgafv=None)</code> 174 <pre>Remove the association between a deal and a creative. 175 176Args: 177 accountId: string, The account the creative belongs to. (required) 178 creativeId: string, The ID of the creative associated with the deal. (required) 179 body: object, The request body. 180 The object takes the form of: 181 182{ # A request for removing the association between a deal and a creative. 183 "association": { # The association between a creative and a deal. # The association between a creative and a deal that should be removed. 184 "accountId": "A String", # The account the creative belongs to. 185 "creativeId": "A String", # The ID of the creative associated with the deal. 186 "dealsId": "A String", # The externalDealId for the deal associated with the creative. 187 }, 188} 189 190 x__xgafv: string, V1 error format. 191 Allowed values 192 1 - v1 error format 193 2 - v2 error format 194 195Returns: 196 An object of the form: 197 198 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 199}</pre> 200</div> 201 202</body></html>