Debian Codegraph @

docs/dyn/merchantapi_conversions_v1.accounts.conversionSources.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="merchantapi_conversions_v1.html">Merchant API</a> . <a href="merchantapi_conversions_v1.accounts.html">accounts</a> . <a href="merchantapi_conversions_v1.accounts.conversionSources.html">conversionSources</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new conversion source.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Archives an existing conversion source. If the conversion source is a Merchant Center Destination, it will be recoverable for 30 days. If the conversion source is a Google Analytics Link, it will be deleted immediately and can be restored by creating a new one.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Fetches a conversion source.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Retrieves the list of conversion sources the caller has access to.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.</p>
98 <p class="toc_element">
99 <code><a href="#undelete">undelete(name, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Re-enables an archived conversion source. Only Available for Merchant Center Destination conversion sources.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
109 <pre>Creates a new conversion source.
110
111 Args:
112 parent: string, Required. The merchant account that will own the new conversion source. Format: `accounts/{account}` (required)
113 body: object, The request body.
114 The object takes the form of:
115
116 { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
117 &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
118 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
119 &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
120 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
121 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
122 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
123 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
124 { # Message representing the type of a conversion event.
125 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
126 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
127 },
128 ],
129 },
130 &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
131 &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
132 },
133 &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
134 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
135 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
136 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
137 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
138 { # Message representing the type of a conversion event.
139 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
140 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
141 },
142 ],
143 },
144 &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
145 &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
146 &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
147 },
148 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
149 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
150 }
151
152 x__xgafv: string, V1 error format.
153 Allowed values
154 1 - v1 error format
155 2 - v2 error format
156
157 Returns:
158 An object of the form:
159
160 { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
161 &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
162 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
163 &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
164 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
165 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
166 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
167 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
168 { # Message representing the type of a conversion event.
169 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
170 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
171 },
172 ],
173 },
174 &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
175 &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
176 },
177 &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
178 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
179 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
180 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
181 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
182 { # Message representing the type of a conversion event.
183 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
184 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
185 },
186 ],
187 },
188 &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
189 &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
190 &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
191 },
192 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
193 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
194 }</pre>
195 </div>
196
197 <div class="method">
198 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
199 <pre>Archives an existing conversion source. If the conversion source is a Merchant Center Destination, it will be recoverable for 30 days. If the conversion source is a Google Analytics Link, it will be deleted immediately and can be restored by creating a new one.
200
201 Args:
202 name: string, Required. The name of the conversion source to be deleted. Format: `accounts/{account}/conversionSources/{conversion_source}` (required)
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208 Returns:
209 An object of the form:
210
211 { # 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); }
212 }</pre>
213 </div>
214
215 <div class="method">
216 <code class="details" id="get">get(name, x__xgafv=None)</code>
217 <pre>Fetches a conversion source.
218
219 Args:
220 name: string, Required. The name of the conversion source to be fetched. Format: `accounts/{account}/conversionSources/{conversion_source}` (required)
221 x__xgafv: string, V1 error format.
222 Allowed values
223 1 - v1 error format
224 2 - v2 error format
225
226 Returns:
227 An object of the form:
228
229 { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
230 &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
231 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
232 &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
233 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
234 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
235 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
236 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
237 { # Message representing the type of a conversion event.
238 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
239 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
240 },
241 ],
242 },
243 &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
244 &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
245 },
246 &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
247 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
248 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
249 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
250 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
251 { # Message representing the type of a conversion event.
252 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
253 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
254 },
255 ],
256 },
257 &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
258 &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
259 &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
260 },
261 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
262 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
263 }</pre>
264 </div>
265
266 <div class="method">
267 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</code>
268 <pre>Retrieves the list of conversion sources the caller has access to.
269
270 Args:
271 parent: string, Required. The merchant account who owns the collection of conversion sources. Format: `accounts/{account}` (required)
272 pageSize: integer, Optional. The maximum number of conversion sources to return in a page. If no `page_size` is specified, `100` is used as the default value. The maximum value is `200`. Values above `200` will be coerced to `200`. Regardless of pagination, at most `200` conversion sources are returned in total.
273 pageToken: string, Optional. Page token.
274 showDeleted: boolean, Optional. Show deleted (archived) conversion sources. By default, deleted conversion sources are not returned.
275 x__xgafv: string, V1 error format.
276 Allowed values
277 1 - v1 error format
278 2 - v2 error format
279
280 Returns:
281 An object of the form:
282
283 { # Response message for the ListConversionSources method.
284 &quot;conversionSources&quot;: [ # List of conversion sources.
285 { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
286 &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
287 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
288 &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
289 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
290 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
291 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
292 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
293 { # Message representing the type of a conversion event.
294 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
295 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
296 },
297 ],
298 },
299 &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
300 &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
301 },
302 &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
303 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
304 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
305 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
306 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
307 { # Message representing the type of a conversion event.
308 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
309 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
310 },
311 ],
312 },
313 &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
314 &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
315 &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
316 },
317 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
318 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
319 },
320 ],
321 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to be used to fetch the next results page.
322 }</pre>
323 </div>
324
325 <div class="method">
326 <code class="details" id="list_next">list_next()</code>
327 <pre>Retrieves the next page of results.
328
329 Args:
330 previous_request: The request for the previous page. (required)
331 previous_response: The response from the request for the previous page. (required)
332
333 Returns:
334 A request object that you can call &#x27;execute()&#x27; on to request the next
335 page. Returns None if there are no more items in the collection.
336 </pre>
337 </div>
338
339 <div class="method">
340 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
341 <pre>Updates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.
342
343 Args:
344 name: string, Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources. (required)
345 body: object, The request body.
346 The object takes the form of:
347
348 { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
349 &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
350 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
351 &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
352 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
353 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
354 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
355 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
356 { # Message representing the type of a conversion event.
357 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
358 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
359 },
360 ],
361 },
362 &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
363 &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
364 },
365 &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
366 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
367 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
368 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
369 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
370 { # Message representing the type of a conversion event.
371 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
372 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
373 },
374 ],
375 },
376 &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
377 &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
378 &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
379 },
380 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
381 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
382 }
383
384 updateMask: string, Optional. List of fields being updated.
385 x__xgafv: string, V1 error format.
386 Allowed values
387 1 - v1 error format
388 2 - v2 error format
389
390 Returns:
391 An object of the form:
392
393 { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
394 &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
395 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
396 &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
397 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
398 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
399 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
400 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
401 { # Message representing the type of a conversion event.
402 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
403 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
404 },
405 ],
406 },
407 &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
408 &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
409 },
410 &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
411 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
412 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
413 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
414 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
415 { # Message representing the type of a conversion event.
416 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
417 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
418 },
419 ],
420 },
421 &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
422 &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
423 &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
424 },
425 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
426 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
427 }</pre>
428 </div>
429
430 <div class="method">
431 <code class="details" id="undelete">undelete(name, body=None, x__xgafv=None)</code>
432 <pre>Re-enables an archived conversion source. Only Available for Merchant Center Destination conversion sources.
433
434 Args:
435 name: string, Required. The name of the conversion source to be undeleted. Format: `accounts/{account}/conversionSources/{conversion_source}` (required)
436 body: object, The request body.
437 The object takes the form of:
438
439 { # Request message for the UndeleteConversionSource method.
440 }
441
442 x__xgafv: string, V1 error format.
443 Allowed values
444 1 - v1 error format
445 2 - v2 error format
446
447 Returns:
448 An object of the form:
449
450 { # Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
451 &quot;controller&quot;: &quot;A String&quot;, # Output only. Controller of the conversion source.
452 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
453 &quot;googleAnalyticsLink&quot;: { # &quot;Google Analytics Link&quot; sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. # Immutable. Conversion Source of type &quot;Link to Google Analytics Property&quot;.
454 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Output only. Attribution settings for the linked Google Analytics property.
455 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
456 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
457 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
458 { # Message representing the type of a conversion event.
459 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
460 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
461 },
462 ],
463 },
464 &quot;property&quot;: &quot;A String&quot;, # Output only. Name of the Google Analytics property the merchant is linked to.
465 &quot;propertyId&quot;: &quot;A String&quot;, # Required. Immutable. ID of the Google Analytics property the merchant is linked to.
466 },
467 &quot;merchantCenterDestination&quot;: { # &quot;Merchant Center Destination&quot; sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created. # Conversion Source of type &quot;Merchant Center Tag Destination&quot;.
468 &quot;attributionSettings&quot;: { # Represents attribution settings for conversion sources receiving pre-attribution data. # Required. Attribution settings used for the Merchant Center Destination.
469 &quot;attributionLookbackWindowDays&quot;: 42, # Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` &amp; `40`.
470 &quot;attributionModel&quot;: &quot;A String&quot;, # Required. Attribution model.
471 &quot;conversionType&quot;: [ # Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard &quot;purchase&quot; type will be automatically created if this list is empty at creation time.
472 { # Message representing the type of a conversion event.
473 &quot;name&quot;: &quot;A String&quot;, # Output only. Conversion event name, as it&#x27;ll be reported by the client.
474 &quot;report&quot;: True or False, # Output only. Option indicating if the type should be included in Merchant Center reporting.
475 },
476 ],
477 },
478 &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
479 &quot;destination&quot;: &quot;A String&quot;, # Output only. Merchant Center Destination ID.
480 &quot;displayName&quot;: &quot;A String&quot;, # Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
481 },
482 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
483 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of this conversion source. Can&#x27;t be edited through the API.
484 }</pre>
485 </div>
486
487 </body></html>