blob: 65aaa6ad0ede6182623f2c87a240c66fa624f927 [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="content_v2.html">Content API for Shopping</a> . <a href="content_v2.datafeeds.html">datafeeds</a></h1>
76<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">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.</p>
Craig Citro065b5302014-08-14 00:47:23 -070083<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070084 <code><a href="#delete">delete(merchantId, datafeedId, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Deletes a datafeed configuration from your Merchant Center account.</p>
86<p class="toc_element">
87 <code><a href="#fetchnow">fetchnow(merchantId, datafeedId, dryRun=None)</a></code></p>
88<p class="firstline">Invokes a fetch for the datafeed in your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
90 <code><a href="#get">get(merchantId, datafeedId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves a datafeed configuration from your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#insert">insert(merchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Registers a datafeed configuration with your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070095<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Lists the configurations for datafeeds in your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070098<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -080099 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#update">update(merchantId, datafeedId, body=None, dryRun=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103<p class="firstline">Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700104<h3>Method Details</h3>
105<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108</div>
109
110<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 <pre>Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
Craig Citro065b5302014-08-14 00:47:23 -0700113
114Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700116 The object takes the form of:
117
118{
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Craig Citroe633be12015-03-02 13:40:36 -0800120 { # A batch entry encoding a single non-batch datafeeds request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
122 &quot;datafeed&quot;: { # Datafeed configuration data. # The data feed to insert.
123 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
124 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
125 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
126 #
127 # Acceptable values are:
128 # - &quot;`local products`&quot;
129 # - &quot;`product inventory`&quot;
130 # - &quot;`products`&quot;
131 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
132 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
133 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
134 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
135 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
136 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
137 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
138 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
139 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
140 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 #
142 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 # - &quot;`monday`&quot;
144 # - &quot;`tuesday`&quot;
145 # - &quot;`wednesday`&quot;
146 # - &quot;`thursday`&quot;
147 # - &quot;`friday`&quot;
148 # - &quot;`saturday`&quot;
149 # - &quot;`sunday`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700150 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
152 &quot;format&quot;: { # Format of the feed file.
153 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
154 #
155 # Acceptable values are:
156 # - &quot;`pipe`&quot;
157 # - &quot;`tab`&quot;
158 # - &quot;`tilde`&quot;
159 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
160 #
161 # Acceptable values are:
162 # - &quot;`latin-1`&quot;
163 # - &quot;`utf-16be`&quot;
164 # - &quot;`utf-16le`&quot;
165 # - &quot;`utf-8`&quot;
166 # - &quot;`windows-1252`&quot;
167 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
168 #
169 # Acceptable values are:
170 # - &quot;`normal character`&quot;
171 # - &quot;`value quoting`&quot;
172 },
173 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
174 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
175 &quot;A String&quot;,
176 ],
177 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
178 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
179 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
180 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
181 {
182 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
183 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
184 &quot;A String&quot;,
185 ],
186 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
187 #
188 # List of supported destinations (if available to the account):
189 # - DisplayAds
190 # - Shopping
191 # - ShoppingActions
192 # - SurfacesAcrossGoogle
193 &quot;A String&quot;,
194 ],
195 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
196 },
197 ],
198 },
199 &quot;datafeedId&quot;: &quot;A String&quot;, # The ID of the data feed to get, delete or fetch.
200 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
201 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700202 #
203 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 # - &quot;`delete`&quot;
205 # - &quot;`fetchNow`&quot;
206 # - &quot;`get`&quot;
207 # - &quot;`insert`&quot;
208 # - &quot;`update`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700209 },
210 ],
211 }
212
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Craig Citro065b5302014-08-14 00:47:23 -0700214
215Returns:
216 An object of the form:
217
218 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Craig Citroe633be12015-03-02 13:40:36 -0800220 { # A batch entry encoding a single non-batch datafeeds response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
222 &quot;datafeed&quot;: { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful.
223 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
224 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
225 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
226 #
227 # Acceptable values are:
228 # - &quot;`local products`&quot;
229 # - &quot;`product inventory`&quot;
230 # - &quot;`products`&quot;
231 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
232 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
233 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
234 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
235 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
236 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
237 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
238 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
239 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
240 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
241 #
242 # Acceptable values are:
243 # - &quot;`monday`&quot;
244 # - &quot;`tuesday`&quot;
245 # - &quot;`wednesday`&quot;
246 # - &quot;`thursday`&quot;
247 # - &quot;`friday`&quot;
248 # - &quot;`saturday`&quot;
249 # - &quot;`sunday`&quot;
250 },
251 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
252 &quot;format&quot;: { # Format of the feed file.
253 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
254 #
255 # Acceptable values are:
256 # - &quot;`pipe`&quot;
257 # - &quot;`tab`&quot;
258 # - &quot;`tilde`&quot;
259 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
260 #
261 # Acceptable values are:
262 # - &quot;`latin-1`&quot;
263 # - &quot;`utf-16be`&quot;
264 # - &quot;`utf-16le`&quot;
265 # - &quot;`utf-8`&quot;
266 # - &quot;`windows-1252`&quot;
267 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
268 #
269 # Acceptable values are:
270 # - &quot;`normal character`&quot;
271 # - &quot;`value quoting`&quot;
272 },
273 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
274 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
275 &quot;A String&quot;,
276 ],
277 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
278 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
279 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
280 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
281 {
282 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
283 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
284 &quot;A String&quot;,
285 ],
286 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
287 #
288 # List of supported destinations (if available to the account):
289 # - DisplayAds
290 # - Shopping
291 # - ShoppingActions
292 # - SurfacesAcrossGoogle
293 &quot;A String&quot;,
294 ],
295 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700296 },
297 ],
298 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
300 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
301 &quot;errors&quot;: [ # A list of errors.
302 { # An error returned by the API.
303 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
304 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
305 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Craig Citro065b5302014-08-14 00:47:23 -0700306 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 ],
308 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
309 },
Craig Citro065b5302014-08-14 00:47:23 -0700310 },
311 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;kind&quot;: &quot;content#datafeedsCustomBatchResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsCustomBatchResponse&quot;.
Craig Citro065b5302014-08-14 00:47:23 -0700313 }</pre>
314</div>
315
316<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700317 <code class="details" id="delete">delete(merchantId, datafeedId, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318 <pre>Deletes a datafeed configuration from your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700319
320Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
322 datafeedId: string, The ID of the datafeed. (required)
323 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Craig Citro065b5302014-08-14 00:47:23 -0700324</pre>
325</div>
326
327<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700328 <code class="details" id="fetchnow">fetchnow(merchantId, datafeedId, dryRun=None)</code>
329 <pre>Invokes a fetch for the datafeed in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700330
331Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700332 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
333 datafeedId: string, The ID of the datafeed to be fetched. (required)
334 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Craig Citro065b5302014-08-14 00:47:23 -0700335
336Returns:
337 An object of the form:
338
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700339 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;kind&quot;: &quot;content#datafeedsFetchNowResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsFetchNowResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341 }</pre>
342</div>
343
344<div class="method">
345 <code class="details" id="get">get(merchantId, datafeedId)</code>
346 <pre>Retrieves a datafeed configuration from your Merchant Center account.
347
348Args:
349 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
350 datafeedId: string, The ID of the datafeed. (required)
351
352Returns:
353 An object of the form:
354
355 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700356 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
357 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
358 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
359 #
360 # Acceptable values are:
361 # - &quot;`local products`&quot;
362 # - &quot;`product inventory`&quot;
363 # - &quot;`products`&quot;
364 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
365 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
366 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
367 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
368 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
369 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
370 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
371 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
372 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
373 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700374 #
375 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 # - &quot;`monday`&quot;
377 # - &quot;`tuesday`&quot;
378 # - &quot;`wednesday`&quot;
379 # - &quot;`thursday`&quot;
380 # - &quot;`friday`&quot;
381 # - &quot;`saturday`&quot;
382 # - &quot;`sunday`&quot;
383 },
384 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
385 &quot;format&quot;: { # Format of the feed file.
386 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
387 #
388 # Acceptable values are:
389 # - &quot;`pipe`&quot;
390 # - &quot;`tab`&quot;
391 # - &quot;`tilde`&quot;
392 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
393 #
394 # Acceptable values are:
395 # - &quot;`latin-1`&quot;
396 # - &quot;`utf-16be`&quot;
397 # - &quot;`utf-16le`&quot;
398 # - &quot;`utf-8`&quot;
399 # - &quot;`windows-1252`&quot;
400 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
401 #
402 # Acceptable values are:
403 # - &quot;`normal character`&quot;
404 # - &quot;`value quoting`&quot;
405 },
406 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
407 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
408 &quot;A String&quot;,
409 ],
410 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
411 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
412 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
413 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
414 {
415 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
416 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
417 &quot;A String&quot;,
418 ],
419 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700420 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 # List of supported destinations (if available to the account):
422 # - DisplayAds
423 # - Shopping
424 # - ShoppingActions
425 # - SurfacesAcrossGoogle
426 &quot;A String&quot;,
427 ],
428 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700429 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 ],
431 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700432</div>
433
434<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700435 <code class="details" id="insert">insert(merchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 <pre>Registers a datafeed configuration with your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700437
438Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700440 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700441 The object takes the form of:
442
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443{ # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
445 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
446 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
447 #
448 # Acceptable values are:
449 # - &quot;`local products`&quot;
450 # - &quot;`product inventory`&quot;
451 # - &quot;`products`&quot;
452 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
453 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
454 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
455 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
456 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
457 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
458 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
459 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
460 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
461 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
462 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700463 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 # - &quot;`monday`&quot;
465 # - &quot;`tuesday`&quot;
466 # - &quot;`wednesday`&quot;
467 # - &quot;`thursday`&quot;
468 # - &quot;`friday`&quot;
469 # - &quot;`saturday`&quot;
470 # - &quot;`sunday`&quot;
471 },
472 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
473 &quot;format&quot;: { # Format of the feed file.
474 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
475 #
476 # Acceptable values are:
477 # - &quot;`pipe`&quot;
478 # - &quot;`tab`&quot;
479 # - &quot;`tilde`&quot;
480 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
481 #
482 # Acceptable values are:
483 # - &quot;`latin-1`&quot;
484 # - &quot;`utf-16be`&quot;
485 # - &quot;`utf-16le`&quot;
486 # - &quot;`utf-8`&quot;
487 # - &quot;`windows-1252`&quot;
488 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
489 #
490 # Acceptable values are:
491 # - &quot;`normal character`&quot;
492 # - &quot;`value quoting`&quot;
493 },
494 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
495 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
496 &quot;A String&quot;,
497 ],
498 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
499 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
500 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
501 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
502 {
503 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
504 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
505 &quot;A String&quot;,
506 ],
507 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700508 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 # List of supported destinations (if available to the account):
510 # - DisplayAds
511 # - Shopping
512 # - ShoppingActions
513 # - SurfacesAcrossGoogle
514 &quot;A String&quot;,
515 ],
516 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700517 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 ],
519}
Craig Citro065b5302014-08-14 00:47:23 -0700520
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700521 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Craig Citro065b5302014-08-14 00:47:23 -0700522
523Returns:
524 An object of the form:
525
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700527 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
528 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
529 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
530 #
531 # Acceptable values are:
532 # - &quot;`local products`&quot;
533 # - &quot;`product inventory`&quot;
534 # - &quot;`products`&quot;
535 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
536 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
537 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
538 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
539 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
540 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
541 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
542 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
543 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
544 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700545 #
546 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 # - &quot;`monday`&quot;
548 # - &quot;`tuesday`&quot;
549 # - &quot;`wednesday`&quot;
550 # - &quot;`thursday`&quot;
551 # - &quot;`friday`&quot;
552 # - &quot;`saturday`&quot;
553 # - &quot;`sunday`&quot;
554 },
555 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
556 &quot;format&quot;: { # Format of the feed file.
557 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
558 #
559 # Acceptable values are:
560 # - &quot;`pipe`&quot;
561 # - &quot;`tab`&quot;
562 # - &quot;`tilde`&quot;
563 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
564 #
565 # Acceptable values are:
566 # - &quot;`latin-1`&quot;
567 # - &quot;`utf-16be`&quot;
568 # - &quot;`utf-16le`&quot;
569 # - &quot;`utf-8`&quot;
570 # - &quot;`windows-1252`&quot;
571 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
572 #
573 # Acceptable values are:
574 # - &quot;`normal character`&quot;
575 # - &quot;`value quoting`&quot;
576 },
577 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
578 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
579 &quot;A String&quot;,
580 ],
581 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
582 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
583 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
584 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
585 {
586 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
587 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
588 &quot;A String&quot;,
589 ],
590 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700591 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 # List of supported destinations (if available to the account):
593 # - DisplayAds
594 # - Shopping
595 # - ShoppingActions
596 # - SurfacesAcrossGoogle
597 &quot;A String&quot;,
598 ],
599 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700600 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 ],
602 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700603</div>
604
605<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700607 <pre>Lists the configurations for datafeeds in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700608
609Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700610 merchantId: string, The ID of the account that manages the datafeeds. This account cannot be a multi-client account. (required)
Craig Citroe633be12015-03-02 13:40:36 -0800611 maxResults: integer, The maximum number of products to return in the response, used for paging.
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 pageToken: string, The token returned by the previous request.
Craig Citro065b5302014-08-14 00:47:23 -0700613
614Returns:
615 An object of the form:
616
617 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 &quot;kind&quot;: &quot;content#datafeedsListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsListResponse&quot;.
619 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of datafeeds.
620 &quot;resources&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700621 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
623 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
624 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
625 #
626 # Acceptable values are:
627 # - &quot;`local products`&quot;
628 # - &quot;`product inventory`&quot;
629 # - &quot;`products`&quot;
630 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
631 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
632 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
633 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
634 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
635 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
636 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
637 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
638 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
639 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700640 #
641 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 # - &quot;`monday`&quot;
643 # - &quot;`tuesday`&quot;
644 # - &quot;`wednesday`&quot;
645 # - &quot;`thursday`&quot;
646 # - &quot;`friday`&quot;
647 # - &quot;`saturday`&quot;
648 # - &quot;`sunday`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700649 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
651 &quot;format&quot;: { # Format of the feed file.
652 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
653 #
654 # Acceptable values are:
655 # - &quot;`pipe`&quot;
656 # - &quot;`tab`&quot;
657 # - &quot;`tilde`&quot;
658 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
659 #
660 # Acceptable values are:
661 # - &quot;`latin-1`&quot;
662 # - &quot;`utf-16be`&quot;
663 # - &quot;`utf-16le`&quot;
664 # - &quot;`utf-8`&quot;
665 # - &quot;`windows-1252`&quot;
666 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
667 #
668 # Acceptable values are:
669 # - &quot;`normal character`&quot;
670 # - &quot;`value quoting`&quot;
671 },
672 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
673 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
674 &quot;A String&quot;,
675 ],
676 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
677 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
678 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
679 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
680 {
681 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
682 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
683 &quot;A String&quot;,
684 ],
685 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
686 #
687 # List of supported destinations (if available to the account):
688 # - DisplayAds
689 # - Shopping
690 # - ShoppingActions
691 # - SurfacesAcrossGoogle
692 &quot;A String&quot;,
693 ],
694 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
695 },
696 ],
697 },
Craig Citro065b5302014-08-14 00:47:23 -0700698 ],
699 }</pre>
700</div>
701
702<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800703 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
704 <pre>Retrieves the next page of results.
705
706Args:
707 previous_request: The request for the previous page. (required)
708 previous_response: The response from the request for the previous page. (required)
709
710Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700711 A request object that you can call &#x27;execute()&#x27; on to request the next
Craig Citroe633be12015-03-02 13:40:36 -0800712 page. Returns None if there are no more items in the collection.
713 </pre>
714</div>
715
716<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700717 <code class="details" id="update">update(merchantId, datafeedId, body=None, dryRun=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700718 <pre>Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700719
720Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700721 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
722 datafeedId: string, The ID of the datafeed. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700723 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700724 The object takes the form of:
725
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700726{ # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
728 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
729 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
730 #
731 # Acceptable values are:
732 # - &quot;`local products`&quot;
733 # - &quot;`product inventory`&quot;
734 # - &quot;`products`&quot;
735 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
736 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
737 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
738 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
739 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
740 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
741 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
742 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
743 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
744 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
745 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700746 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 # - &quot;`monday`&quot;
748 # - &quot;`tuesday`&quot;
749 # - &quot;`wednesday`&quot;
750 # - &quot;`thursday`&quot;
751 # - &quot;`friday`&quot;
752 # - &quot;`saturday`&quot;
753 # - &quot;`sunday`&quot;
754 },
755 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
756 &quot;format&quot;: { # Format of the feed file.
757 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
758 #
759 # Acceptable values are:
760 # - &quot;`pipe`&quot;
761 # - &quot;`tab`&quot;
762 # - &quot;`tilde`&quot;
763 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
764 #
765 # Acceptable values are:
766 # - &quot;`latin-1`&quot;
767 # - &quot;`utf-16be`&quot;
768 # - &quot;`utf-16le`&quot;
769 # - &quot;`utf-8`&quot;
770 # - &quot;`windows-1252`&quot;
771 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
772 #
773 # Acceptable values are:
774 # - &quot;`normal character`&quot;
775 # - &quot;`value quoting`&quot;
776 },
777 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
778 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
779 &quot;A String&quot;,
780 ],
781 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
782 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
783 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
784 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
785 {
786 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
787 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
788 &quot;A String&quot;,
789 ],
790 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700791 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700792 # List of supported destinations (if available to the account):
793 # - DisplayAds
794 # - Shopping
795 # - ShoppingActions
796 # - SurfacesAcrossGoogle
797 &quot;A String&quot;,
798 ],
799 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700800 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700801 ],
802}
Craig Citro065b5302014-08-14 00:47:23 -0700803
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
Craig Citro065b5302014-08-14 00:47:23 -0700805
806Returns:
807 An object of the form:
808
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
811 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
812 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
813 #
814 # Acceptable values are:
815 # - &quot;`local products`&quot;
816 # - &quot;`product inventory`&quot;
817 # - &quot;`products`&quot;
818 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
819 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
820 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
821 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
822 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
823 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
824 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
825 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
826 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
827 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700828 #
829 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 # - &quot;`monday`&quot;
831 # - &quot;`tuesday`&quot;
832 # - &quot;`wednesday`&quot;
833 # - &quot;`thursday`&quot;
834 # - &quot;`friday`&quot;
835 # - &quot;`saturday`&quot;
836 # - &quot;`sunday`&quot;
837 },
838 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
839 &quot;format&quot;: { # Format of the feed file.
840 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.
841 #
842 # Acceptable values are:
843 # - &quot;`pipe`&quot;
844 # - &quot;`tab`&quot;
845 # - &quot;`tilde`&quot;
846 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
847 #
848 # Acceptable values are:
849 # - &quot;`latin-1`&quot;
850 # - &quot;`utf-16be`&quot;
851 # - &quot;`utf-16le`&quot;
852 # - &quot;`utf-8`&quot;
853 # - &quot;`windows-1252`&quot;
854 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
855 #
856 # Acceptable values are:
857 # - &quot;`normal character`&quot;
858 # - &quot;`value quoting`&quot;
859 },
860 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
861 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
862 &quot;A String&quot;,
863 ],
864 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
865 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
866 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
867 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
868 {
869 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
870 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
871 &quot;A String&quot;,
872 ],
873 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700874 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 # List of supported destinations (if available to the account):
876 # - DisplayAds
877 # - Shopping
878 # - ShoppingActions
879 # - SurfacesAcrossGoogle
880 &quot;A String&quot;,
881 ],
882 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700883 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700884 ],
885 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700886</div>
887
888</body></html>