blob: c3abe3b14a1d7228ec4a9ecde2fb1359569eaf25 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<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
Dan O'Mearadd494642020-05-01 07:42:23 -070075<h1><a href="doubleclicksearch_v2.html">Search Ads 360 API</a> . <a href="doubleclicksearch_v2.conversion.html">conversion</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080081 <code><a href="#get">get(agencyId, advertiserId, engineAccountId, endDate, rowCount, startDate, startRow, adGroupId=None, criterionId=None, adId=None, campaignId=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Retrieves a list of conversions from a DoubleClick Search engine account.</p>
83<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#insert">insert(body=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Inserts a batch of new conversions into DoubleClick Search.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#update">update(body=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Updates a batch of conversions in DoubleClick Search.</p>
89<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#updateAvailability">updateAvailability(body=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Updates the availabilities of a batch of floodlight activities in DoubleClick Search.</p>
92<h3>Method Details</h3>
93<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96</div>
97
98<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080099 <code class="details" id="get">get(agencyId, advertiserId, engineAccountId, endDate, rowCount, startDate, startRow, adGroupId=None, criterionId=None, adId=None, campaignId=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400100 <pre>Retrieves a list of conversions from a DoubleClick Search engine account.
101
102Args:
103 agencyId: string, Numeric ID of the agency. (required)
104 advertiserId: string, Numeric ID of the advertiser. (required)
105 engineAccountId: string, Numeric ID of the engine account. (required)
106 endDate: integer, Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. (required)
107 rowCount: integer, The number of conversions to return per call. (required)
108 startDate: integer, First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. (required)
109 startRow: integer, The 0-based starting index for retrieving conversions results. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800110 adGroupId: string, Numeric ID of the ad group.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 criterionId: string, Numeric ID of the criterion.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800112 adId: string, Numeric ID of the ad.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800113 campaignId: string, Numeric ID of the campaign.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700114 x__xgafv: string, V1 error format.
115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400118
119Returns:
120 An object of the form:
121
122 { # A list of conversions.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800123 &quot;conversion&quot;: [ # The conversions being requested.
124 { # A conversion containing data relevant to DoubleClick Search.
125 &quot;storeId&quot;: &quot;A String&quot;, # The ID of the local store for which the product was advertised. Applicable only when the channel is &quot;`local`&quot;.
126 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency code for the conversion&#x27;s revenue. Should be in ISO 4217 alphabetic (3-char) format.
127 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
128 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
129 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
130 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
131 &quot;productCountry&quot;: &quot;A String&quot;, # The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country.
132 &quot;revenueMicros&quot;: &quot;A String&quot;, # The revenue amount of this `TRANSACTION` conversion, in micros (value multiplied by 1000000, no decimal). For example, to specify a revenue value of &quot;10&quot; enter &quot;10000000&quot; (10 million) in your request.
133 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
134 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
135 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
136 &quot;productLanguage&quot;: &quot;A String&quot;, # The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language.
137 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
138 { # A message containing the custom dimension.
139 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
140 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
141 },
142 ],
143 &quot;conversionId&quot;: &quot;A String&quot;, # For offline conversions, advertisers provide this ID. Advertisers can specify any ID that is meaningful to them. Each conversion in a request must specify a unique ID, and the combination of ID and timestamp must be unique amongst all conversions within the advertiser. For online conversions, DS copies the `dsConversionId` or `floodlightOrderId` into this property depending on the advertiser&#x27;s Floodlight instructions.
144 &quot;type&quot;: &quot;A String&quot;, # The type of the conversion, that is, either `ACTION` or `TRANSACTION`. An `ACTION` conversion is an action by the user that has no monetarily quantifiable value, while a `TRANSACTION` conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (`ACTION`) versus ecommerce purchases (`TRANSACTION`).
145 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
146 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
147 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
148 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
149 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
150 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
151 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
152 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
153 { # A message containing the custom metric.
154 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
155 &quot;value&quot;: 3.14, # Custom metric numeric value.
156 },
157 ],
158 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
159 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
160 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
161 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
162 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
163 &quot;channel&quot;: &quot;A String&quot;, # Sales channel for the product. Acceptable values are: - &quot;`local`&quot;: a physical store - &quot;`online`&quot;: an online store
164 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
165 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
166 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
167 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
168 },
169 ],
170 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
171 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400172</div>
173
174<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 <code class="details" id="insert">insert(body=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400176 <pre>Inserts a batch of new conversions into DoubleClick Search.
177
178Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700179 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400180 The object takes the form of:
181
182{ # A list of conversions.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800183 &quot;conversion&quot;: [ # The conversions being requested.
184 { # A conversion containing data relevant to DoubleClick Search.
185 &quot;storeId&quot;: &quot;A String&quot;, # The ID of the local store for which the product was advertised. Applicable only when the channel is &quot;`local`&quot;.
186 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency code for the conversion&#x27;s revenue. Should be in ISO 4217 alphabetic (3-char) format.
187 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
188 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
189 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
190 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
191 &quot;productCountry&quot;: &quot;A String&quot;, # The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country.
192 &quot;revenueMicros&quot;: &quot;A String&quot;, # The revenue amount of this `TRANSACTION` conversion, in micros (value multiplied by 1000000, no decimal). For example, to specify a revenue value of &quot;10&quot; enter &quot;10000000&quot; (10 million) in your request.
193 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
194 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
195 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
196 &quot;productLanguage&quot;: &quot;A String&quot;, # The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language.
197 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
198 { # A message containing the custom dimension.
199 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
200 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
201 },
202 ],
203 &quot;conversionId&quot;: &quot;A String&quot;, # For offline conversions, advertisers provide this ID. Advertisers can specify any ID that is meaningful to them. Each conversion in a request must specify a unique ID, and the combination of ID and timestamp must be unique amongst all conversions within the advertiser. For online conversions, DS copies the `dsConversionId` or `floodlightOrderId` into this property depending on the advertiser&#x27;s Floodlight instructions.
204 &quot;type&quot;: &quot;A String&quot;, # The type of the conversion, that is, either `ACTION` or `TRANSACTION`. An `ACTION` conversion is an action by the user that has no monetarily quantifiable value, while a `TRANSACTION` conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (`ACTION`) versus ecommerce purchases (`TRANSACTION`).
205 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
206 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
207 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
208 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
209 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
210 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
211 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
212 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
213 { # A message containing the custom metric.
214 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
215 &quot;value&quot;: 3.14, # Custom metric numeric value.
216 },
217 ],
218 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
219 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
220 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
221 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
222 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
223 &quot;channel&quot;: &quot;A String&quot;, # Sales channel for the product. Acceptable values are: - &quot;`local`&quot;: a physical store - &quot;`online`&quot;: an online store
224 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
225 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
226 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
227 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
228 },
229 ],
230 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
231 }
John Asmuth614db982014-04-24 15:46:26 -0400232
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700233 x__xgafv: string, V1 error format.
234 Allowed values
235 1 - v1 error format
236 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400237
238Returns:
239 An object of the form:
240
241 { # A list of conversions.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800242 &quot;conversion&quot;: [ # The conversions being requested.
243 { # A conversion containing data relevant to DoubleClick Search.
244 &quot;storeId&quot;: &quot;A String&quot;, # The ID of the local store for which the product was advertised. Applicable only when the channel is &quot;`local`&quot;.
245 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency code for the conversion&#x27;s revenue. Should be in ISO 4217 alphabetic (3-char) format.
246 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
247 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
248 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
249 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
250 &quot;productCountry&quot;: &quot;A String&quot;, # The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country.
251 &quot;revenueMicros&quot;: &quot;A String&quot;, # The revenue amount of this `TRANSACTION` conversion, in micros (value multiplied by 1000000, no decimal). For example, to specify a revenue value of &quot;10&quot; enter &quot;10000000&quot; (10 million) in your request.
252 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
253 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
254 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
255 &quot;productLanguage&quot;: &quot;A String&quot;, # The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language.
256 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
257 { # A message containing the custom dimension.
258 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
259 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
260 },
261 ],
262 &quot;conversionId&quot;: &quot;A String&quot;, # For offline conversions, advertisers provide this ID. Advertisers can specify any ID that is meaningful to them. Each conversion in a request must specify a unique ID, and the combination of ID and timestamp must be unique amongst all conversions within the advertiser. For online conversions, DS copies the `dsConversionId` or `floodlightOrderId` into this property depending on the advertiser&#x27;s Floodlight instructions.
263 &quot;type&quot;: &quot;A String&quot;, # The type of the conversion, that is, either `ACTION` or `TRANSACTION`. An `ACTION` conversion is an action by the user that has no monetarily quantifiable value, while a `TRANSACTION` conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (`ACTION`) versus ecommerce purchases (`TRANSACTION`).
264 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
265 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
266 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
267 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
268 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
269 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
270 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
271 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
272 { # A message containing the custom metric.
273 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
274 &quot;value&quot;: 3.14, # Custom metric numeric value.
275 },
276 ],
277 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
278 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
279 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
280 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
281 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
282 &quot;channel&quot;: &quot;A String&quot;, # Sales channel for the product. Acceptable values are: - &quot;`local`&quot;: a physical store - &quot;`online`&quot;: an online store
283 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
284 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
285 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
286 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
287 },
288 ],
289 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
290 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400291</div>
292
293<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700294 <code class="details" id="update">update(body=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400295 <pre>Updates a batch of conversions in DoubleClick Search.
296
297Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700298 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400299 The object takes the form of:
300
301{ # A list of conversions.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800302 &quot;conversion&quot;: [ # The conversions being requested.
303 { # A conversion containing data relevant to DoubleClick Search.
304 &quot;storeId&quot;: &quot;A String&quot;, # The ID of the local store for which the product was advertised. Applicable only when the channel is &quot;`local`&quot;.
305 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency code for the conversion&#x27;s revenue. Should be in ISO 4217 alphabetic (3-char) format.
306 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
307 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
308 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
309 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
310 &quot;productCountry&quot;: &quot;A String&quot;, # The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country.
311 &quot;revenueMicros&quot;: &quot;A String&quot;, # The revenue amount of this `TRANSACTION` conversion, in micros (value multiplied by 1000000, no decimal). For example, to specify a revenue value of &quot;10&quot; enter &quot;10000000&quot; (10 million) in your request.
312 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
313 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
314 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
315 &quot;productLanguage&quot;: &quot;A String&quot;, # The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language.
316 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
317 { # A message containing the custom dimension.
318 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
319 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
320 },
321 ],
322 &quot;conversionId&quot;: &quot;A String&quot;, # For offline conversions, advertisers provide this ID. Advertisers can specify any ID that is meaningful to them. Each conversion in a request must specify a unique ID, and the combination of ID and timestamp must be unique amongst all conversions within the advertiser. For online conversions, DS copies the `dsConversionId` or `floodlightOrderId` into this property depending on the advertiser&#x27;s Floodlight instructions.
323 &quot;type&quot;: &quot;A String&quot;, # The type of the conversion, that is, either `ACTION` or `TRANSACTION`. An `ACTION` conversion is an action by the user that has no monetarily quantifiable value, while a `TRANSACTION` conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (`ACTION`) versus ecommerce purchases (`TRANSACTION`).
324 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
325 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
326 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
327 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
328 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
329 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
330 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
331 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
332 { # A message containing the custom metric.
333 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
334 &quot;value&quot;: 3.14, # Custom metric numeric value.
335 },
336 ],
337 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
338 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
339 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
340 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
341 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
342 &quot;channel&quot;: &quot;A String&quot;, # Sales channel for the product. Acceptable values are: - &quot;`local`&quot;: a physical store - &quot;`online`&quot;: an online store
343 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
344 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
345 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
346 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
347 },
348 ],
349 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
350 }
John Asmuth614db982014-04-24 15:46:26 -0400351
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700352 x__xgafv: string, V1 error format.
353 Allowed values
354 1 - v1 error format
355 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400356
357Returns:
358 An object of the form:
359
360 { # A list of conversions.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800361 &quot;conversion&quot;: [ # The conversions being requested.
362 { # A conversion containing data relevant to DoubleClick Search.
363 &quot;storeId&quot;: &quot;A String&quot;, # The ID of the local store for which the product was advertised. Applicable only when the channel is &quot;`local`&quot;.
364 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency code for the conversion&#x27;s revenue. Should be in ISO 4217 alphabetic (3-char) format.
365 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
366 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
367 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
368 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
369 &quot;productCountry&quot;: &quot;A String&quot;, # The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country.
370 &quot;revenueMicros&quot;: &quot;A String&quot;, # The revenue amount of this `TRANSACTION` conversion, in micros (value multiplied by 1000000, no decimal). For example, to specify a revenue value of &quot;10&quot; enter &quot;10000000&quot; (10 million) in your request.
371 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
372 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
373 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
374 &quot;productLanguage&quot;: &quot;A String&quot;, # The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language.
375 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
376 { # A message containing the custom dimension.
377 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
378 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
379 },
380 ],
381 &quot;conversionId&quot;: &quot;A String&quot;, # For offline conversions, advertisers provide this ID. Advertisers can specify any ID that is meaningful to them. Each conversion in a request must specify a unique ID, and the combination of ID and timestamp must be unique amongst all conversions within the advertiser. For online conversions, DS copies the `dsConversionId` or `floodlightOrderId` into this property depending on the advertiser&#x27;s Floodlight instructions.
382 &quot;type&quot;: &quot;A String&quot;, # The type of the conversion, that is, either `ACTION` or `TRANSACTION`. An `ACTION` conversion is an action by the user that has no monetarily quantifiable value, while a `TRANSACTION` conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (`ACTION`) versus ecommerce purchases (`TRANSACTION`).
383 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
384 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
385 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
386 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
387 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
388 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
389 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
390 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
391 { # A message containing the custom metric.
392 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
393 &quot;value&quot;: 3.14, # Custom metric numeric value.
394 },
395 ],
396 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
397 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
398 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
399 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
400 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
401 &quot;channel&quot;: &quot;A String&quot;, # Sales channel for the product. Acceptable values are: - &quot;`local`&quot;: a physical store - &quot;`online`&quot;: an online store
402 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
403 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
404 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
405 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
406 },
407 ],
408 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
409 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400410</div>
411
412<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 <code class="details" id="updateAvailability">updateAvailability(body=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400414 <pre>Updates the availabilities of a batch of floodlight activities in DoubleClick Search.
415
416Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700417 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400418 The object takes the form of:
419
420{ # The request to update availability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 &quot;availabilities&quot;: [ # The availabilities being requested.
John Asmuth614db982014-04-24 15:46:26 -0400422 { # A message containing availability data relevant to DoubleClick Search.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700423 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800424 &quot;availabilityTimestamp&quot;: &quot;A String&quot;, # The time by which all conversions have been uploaded, in epoch millis UTC.
425 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800426 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800427 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
428 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type that this availability is for (its default value is `FLOODLIGHT`).
John Asmuth614db982014-04-24 15:46:26 -0400429 },
430 ],
431 }
432
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700433 x__xgafv: string, V1 error format.
434 Allowed values
435 1 - v1 error format
436 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400437
438Returns:
439 An object of the form:
440
441 { # The response to a update availability request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;availabilities&quot;: [ # The availabilities being returned.
John Asmuth614db982014-04-24 15:46:26 -0400443 { # A message containing availability data relevant to DoubleClick Search.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700444 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800445 &quot;availabilityTimestamp&quot;: &quot;A String&quot;, # The time by which all conversions have been uploaded, in epoch millis UTC.
446 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800447 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800448 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
449 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type that this availability is for (its default value is `FLOODLIGHT`).
John Asmuth614db982014-04-24 15:46:26 -0400450 },
451 ],
452 }</pre>
453</div>
454
455</body></html>