blob: ce328863a4380b6d9c5c28b1bcc28c6c1b47601c [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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070081 <code><a href="#get">get(agencyId, advertiserId, engineAccountId, endDate, rowCount, startDate, startRow, campaignId=None, criterionId=None, adGroupId=None, adId=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070099 <code class="details" id="get">get(agencyId, advertiserId, engineAccountId, endDate, rowCount, startDate, startRow, campaignId=None, criterionId=None, adGroupId=None, adId=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)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700110 campaignId: string, Numeric ID of the campaign.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 criterionId: string, Numeric ID of the criterion.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700112 adGroupId: string, Numeric ID of the ad group.
113 adId: string, Numeric ID of the ad.
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700123 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700124 &quot;conversion&quot;: [ # The conversions being requested.
125 { # A conversion containing data relevant to DoubleClick Search.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
127 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
128 &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.
129 &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.
130 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700131 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
132 { # A message containing the custom metric.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700133 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700134 &quot;value&quot;: 3.14, # Custom metric numeric value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700135 },
136 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700137 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
138 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
139 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700141 &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;.
142 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
143 &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
144 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
145 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700147 &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`).
148 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
149 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
150 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
151 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
152 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
153 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
154 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
155 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
157 { # A message containing the custom dimension.
158 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
159 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
160 },
161 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700162 &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.
163 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700164 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700165 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
166 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
167 &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.
168 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700169 },
170 ],
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700183 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700184 &quot;conversion&quot;: [ # The conversions being requested.
185 { # A conversion containing data relevant to DoubleClick Search.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700186 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
187 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
188 &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.
189 &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.
190 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700191 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
192 { # A message containing the custom metric.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700193 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 &quot;value&quot;: 3.14, # Custom metric numeric value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700195 },
196 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700197 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
198 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
199 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700200 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700201 &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;.
202 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
203 &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
204 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
205 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700206 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700207 &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`).
208 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
209 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
210 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
211 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
212 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
213 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
214 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
215 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
217 { # A message containing the custom dimension.
218 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
219 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
220 },
221 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700222 &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.
223 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700224 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700225 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
226 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
227 &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.
228 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700229 },
230 ],
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700242 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700243 &quot;conversion&quot;: [ # The conversions being requested.
244 { # A conversion containing data relevant to DoubleClick Search.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700245 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
246 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
247 &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.
248 &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.
249 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700250 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
251 { # A message containing the custom metric.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700252 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700253 &quot;value&quot;: 3.14, # Custom metric numeric value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 },
255 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700256 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
257 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
258 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700259 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700260 &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;.
261 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
262 &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
263 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
264 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700266 &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`).
267 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
268 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
269 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
270 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
271 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
272 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
273 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
274 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700275 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
276 { # A message containing the custom dimension.
277 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
278 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
279 },
280 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700281 &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.
282 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700283 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700284 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
285 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
286 &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.
287 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700288 },
289 ],
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700302 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700303 &quot;conversion&quot;: [ # The conversions being requested.
304 { # A conversion containing data relevant to DoubleClick Search.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700305 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
306 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
307 &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.
308 &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.
309 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700310 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
311 { # A message containing the custom metric.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700312 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700313 &quot;value&quot;: 3.14, # Custom metric numeric value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700314 },
315 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700316 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
317 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
318 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700319 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700320 &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;.
321 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
322 &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
323 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
324 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700325 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700326 &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`).
327 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
328 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
329 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
330 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
331 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
332 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
333 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
334 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700335 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
336 { # A message containing the custom dimension.
337 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
338 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
339 },
340 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700341 &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.
342 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700343 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700344 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
345 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
346 &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.
347 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700348 },
349 ],
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700361 &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a ConversionList resource. Value: the fixed string doubleclicksearch#conversionList.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700362 &quot;conversion&quot;: [ # The conversions being requested.
363 { # A conversion containing data relevant to DoubleClick Search.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700364 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
365 &quot;clickId&quot;: &quot;A String&quot;, # DS click ID for the conversion.
366 &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.
367 &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.
368 &quot;quantityMillis&quot;: &quot;A String&quot;, # The quantity of this conversion, in millis.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700369 &quot;customMetric&quot;: [ # Custom metrics for the conversion.
370 { # A message containing the custom metric.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700371 &quot;name&quot;: &quot;A String&quot;, # Custom metric name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700372 &quot;value&quot;: 3.14, # Custom metric numeric value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700373 },
374 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700375 &quot;productGroupId&quot;: &quot;A String&quot;, # DS product group ID.
376 &quot;inventoryAccountId&quot;: &quot;A String&quot;, # ID that DS generates and uses to uniquely identify the inventory account that contains the product.
377 &quot;productId&quot;: &quot;A String&quot;, # The product ID (SKU).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700378 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700379 &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;.
380 &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
381 &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
382 &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
383 &quot;criterionId&quot;: &quot;A String&quot;, # DS criterion (keyword) ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700384 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700385 &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`).
386 &quot;attributionModel&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
387 &quot;conversionModifiedTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion was last modified, in epoch millis UTC.
388 &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
389 &quot;conversionTimestamp&quot;: &quot;A String&quot;, # The time at which the conversion took place, in epoch millis UTC.
390 &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
391 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type of this conversion (for example, `FLOODLIGHT`).
392 &quot;deviceType&quot;: &quot;A String&quot;, # The type of device on which the conversion occurred.
393 &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700394 &quot;customDimension&quot;: [ # Custom dimensions for the conversion, which can be used to filter data in a report.
395 { # A message containing the custom dimension.
396 &quot;value&quot;: &quot;A String&quot;, # Custom dimension value.
397 &quot;name&quot;: &quot;A String&quot;, # Custom dimension name.
398 },
399 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700400 &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.
401 &quot;countMillis&quot;: &quot;A String&quot;, # Available to advertisers only after contacting DoubleClick Search customer support.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700402 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700403 &quot;state&quot;: &quot;A String&quot;, # The state of the conversion, that is, either `ACTIVE` or `REMOVED`. Note: state DELETED is deprecated.
404 &quot;floodlightOrderId&quot;: &quot;A String&quot;, # The Floodlight order ID provided by the advertiser for the conversion.
405 &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.
406 &quot;dsConversionId&quot;: &quot;A String&quot;, # ID that DoubleClick Search generates for each conversion.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700407 },
408 ],
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.
424 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700425 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700426 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700427 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type that this availability is for (its default value is `FLOODLIGHT`).
428 &quot;availabilityTimestamp&quot;: &quot;A String&quot;, # The time by which all conversions have been uploaded, in epoch millis UTC.
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.
445 &quot;segmentationId&quot;: &quot;A String&quot;, # The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700446 &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700447 &quot;segmentationName&quot;: &quot;A String&quot;, # The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700448 &quot;segmentationType&quot;: &quot;A String&quot;, # The segmentation type that this availability is for (its default value is `FLOODLIGHT`).
449 &quot;availabilityTimestamp&quot;: &quot;A String&quot;, # The time by which all conversions have been uploaded, in epoch millis UTC.
John Asmuth614db982014-04-24 15:46:26 -0400450 },
451 ],
452 }</pre>
453</div>
454
455</body></html>