blob: 013f8bbe850da8d9888a9249d7a5cccf6ce00c27 [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.</p>
Craig Citro065b5302014-08-14 00:47:23 -070080<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070081 <code><a href="#delete">delete(merchantId, datafeedId, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deletes a datafeed configuration from your Merchant Center account.</p>
83<p class="toc_element">
84 <code><a href="#fetchnow">fetchnow(merchantId, datafeedId, dryRun=None)</a></code></p>
85<p class="firstline">Invokes a fetch for the datafeed in your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070086<p class="toc_element">
87 <code><a href="#get">get(merchantId, datafeedId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Retrieves a datafeed configuration from your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#insert">insert(merchantId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Registers a datafeed configuration with your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070092<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Lists the configurations for datafeeds in your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070095<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -080096 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#update">update(merchantId, datafeedId, body=None, dryRun=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100<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 -0700101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 <pre>Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
Craig Citro065b5302014-08-14 00:47:23 -0700105
106Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700108 The object takes the form of:
109
110{
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Craig Citroe633be12015-03-02 13:40:36 -0800112 { # A batch entry encoding a single non-batch datafeeds request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
114 &quot;datafeed&quot;: { # Datafeed configuration data. # The data feed to insert.
115 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
116 &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`.
117 &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.
118 #
119 # Acceptable values are:
120 # - &quot;`local products`&quot;
121 # - &quot;`product inventory`&quot;
122 # - &quot;`products`&quot;
123 &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.
124 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
125 &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.
126 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
127 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
128 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
129 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
130 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
131 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
132 &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 -0700133 #
134 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 # - &quot;`monday`&quot;
136 # - &quot;`tuesday`&quot;
137 # - &quot;`wednesday`&quot;
138 # - &quot;`thursday`&quot;
139 # - &quot;`friday`&quot;
140 # - &quot;`saturday`&quot;
141 # - &quot;`sunday`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700142 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
144 &quot;format&quot;: { # Format of the feed file.
145 &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.
146 #
147 # Acceptable values are:
148 # - &quot;`pipe`&quot;
149 # - &quot;`tab`&quot;
150 # - &quot;`tilde`&quot;
151 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
152 #
153 # Acceptable values are:
154 # - &quot;`latin-1`&quot;
155 # - &quot;`utf-16be`&quot;
156 # - &quot;`utf-16le`&quot;
157 # - &quot;`utf-8`&quot;
158 # - &quot;`windows-1252`&quot;
159 &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.
160 #
161 # Acceptable values are:
162 # - &quot;`normal character`&quot;
163 # - &quot;`value quoting`&quot;
164 },
165 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
166 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
167 &quot;A String&quot;,
168 ],
169 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
170 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
171 &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.
172 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
173 {
174 &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.
175 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
176 &quot;A String&quot;,
177 ],
178 &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`.
179 #
180 # List of supported destinations (if available to the account):
181 # - DisplayAds
182 # - Shopping
183 # - ShoppingActions
184 # - SurfacesAcrossGoogle
185 &quot;A String&quot;,
186 ],
187 &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`.
188 },
189 ],
190 },
191 &quot;datafeedId&quot;: &quot;A String&quot;, # The ID of the data feed to get, delete or fetch.
192 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
193 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700194 #
195 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 # - &quot;`delete`&quot;
197 # - &quot;`fetchNow`&quot;
198 # - &quot;`get`&quot;
199 # - &quot;`insert`&quot;
200 # - &quot;`update`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700201 },
202 ],
203 }
204
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700205 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 -0700206
207Returns:
208 An object of the form:
209
210 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Craig Citroe633be12015-03-02 13:40:36 -0800212 { # A batch entry encoding a single non-batch datafeeds response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
214 &quot;datafeed&quot;: { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful.
215 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
216 &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`.
217 &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.
218 #
219 # Acceptable values are:
220 # - &quot;`local products`&quot;
221 # - &quot;`product inventory`&quot;
222 # - &quot;`products`&quot;
223 &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.
224 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
225 &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.
226 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
227 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
228 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
229 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
230 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
231 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
232 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
233 #
234 # Acceptable values are:
235 # - &quot;`monday`&quot;
236 # - &quot;`tuesday`&quot;
237 # - &quot;`wednesday`&quot;
238 # - &quot;`thursday`&quot;
239 # - &quot;`friday`&quot;
240 # - &quot;`saturday`&quot;
241 # - &quot;`sunday`&quot;
242 },
243 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
244 &quot;format&quot;: { # Format of the feed file.
245 &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.
246 #
247 # Acceptable values are:
248 # - &quot;`pipe`&quot;
249 # - &quot;`tab`&quot;
250 # - &quot;`tilde`&quot;
251 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
252 #
253 # Acceptable values are:
254 # - &quot;`latin-1`&quot;
255 # - &quot;`utf-16be`&quot;
256 # - &quot;`utf-16le`&quot;
257 # - &quot;`utf-8`&quot;
258 # - &quot;`windows-1252`&quot;
259 &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.
260 #
261 # Acceptable values are:
262 # - &quot;`normal character`&quot;
263 # - &quot;`value quoting`&quot;
264 },
265 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
266 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
267 &quot;A String&quot;,
268 ],
269 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
270 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
271 &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.
272 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
273 {
274 &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.
275 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
276 &quot;A String&quot;,
277 ],
278 &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`.
279 #
280 # List of supported destinations (if available to the account):
281 # - DisplayAds
282 # - Shopping
283 # - ShoppingActions
284 # - SurfacesAcrossGoogle
285 &quot;A String&quot;,
286 ],
287 &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 -0700288 },
289 ],
290 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &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.
292 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
293 &quot;errors&quot;: [ # A list of errors.
294 { # An error returned by the API.
295 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
296 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
297 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Craig Citro065b5302014-08-14 00:47:23 -0700298 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 ],
300 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
301 },
Craig Citro065b5302014-08-14 00:47:23 -0700302 },
303 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &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 -0700305 }</pre>
306</div>
307
308<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700309 <code class="details" id="delete">delete(merchantId, datafeedId, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 <pre>Deletes a datafeed configuration from your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700311
312Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
314 datafeedId: string, The ID of the datafeed. (required)
315 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 -0700316</pre>
317</div>
318
319<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700320 <code class="details" id="fetchnow">fetchnow(merchantId, datafeedId, dryRun=None)</code>
321 <pre>Invokes a fetch for the datafeed in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700322
323Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700324 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
325 datafeedId: string, The ID of the datafeed to be fetched. (required)
326 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 -0700327
328Returns:
329 An object of the form:
330
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &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 -0700333 }</pre>
334</div>
335
336<div class="method">
337 <code class="details" id="get">get(merchantId, datafeedId)</code>
338 <pre>Retrieves a datafeed configuration from your Merchant Center account.
339
340Args:
341 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
342 datafeedId: string, The ID of the datafeed. (required)
343
344Returns:
345 An object of the form:
346
347 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
349 &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`.
350 &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.
351 #
352 # Acceptable values are:
353 # - &quot;`local products`&quot;
354 # - &quot;`product inventory`&quot;
355 # - &quot;`products`&quot;
356 &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.
357 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
358 &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.
359 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
360 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
361 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
362 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
363 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
364 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
365 &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 -0700366 #
367 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 # - &quot;`monday`&quot;
369 # - &quot;`tuesday`&quot;
370 # - &quot;`wednesday`&quot;
371 # - &quot;`thursday`&quot;
372 # - &quot;`friday`&quot;
373 # - &quot;`saturday`&quot;
374 # - &quot;`sunday`&quot;
375 },
376 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
377 &quot;format&quot;: { # Format of the feed file.
378 &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.
379 #
380 # Acceptable values are:
381 # - &quot;`pipe`&quot;
382 # - &quot;`tab`&quot;
383 # - &quot;`tilde`&quot;
384 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
385 #
386 # Acceptable values are:
387 # - &quot;`latin-1`&quot;
388 # - &quot;`utf-16be`&quot;
389 # - &quot;`utf-16le`&quot;
390 # - &quot;`utf-8`&quot;
391 # - &quot;`windows-1252`&quot;
392 &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.
393 #
394 # Acceptable values are:
395 # - &quot;`normal character`&quot;
396 # - &quot;`value quoting`&quot;
397 },
398 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
399 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
400 &quot;A String&quot;,
401 ],
402 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
403 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
404 &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.
405 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
406 {
407 &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.
408 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
409 &quot;A String&quot;,
410 ],
411 &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 -0700412 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 # List of supported destinations (if available to the account):
414 # - DisplayAds
415 # - Shopping
416 # - ShoppingActions
417 # - SurfacesAcrossGoogle
418 &quot;A String&quot;,
419 ],
420 &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 -0700421 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 ],
423 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700424</div>
425
426<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700427 <code class="details" id="insert">insert(merchantId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700428 <pre>Registers a datafeed configuration with your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700429
430Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700431 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 -0700432 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700433 The object takes the form of:
434
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700435{ # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
437 &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`.
438 &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.
439 #
440 # Acceptable values are:
441 # - &quot;`local products`&quot;
442 # - &quot;`product inventory`&quot;
443 # - &quot;`products`&quot;
444 &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.
445 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
446 &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.
447 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
448 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
449 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
450 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
451 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
452 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
453 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
454 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700455 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 # - &quot;`monday`&quot;
457 # - &quot;`tuesday`&quot;
458 # - &quot;`wednesday`&quot;
459 # - &quot;`thursday`&quot;
460 # - &quot;`friday`&quot;
461 # - &quot;`saturday`&quot;
462 # - &quot;`sunday`&quot;
463 },
464 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
465 &quot;format&quot;: { # Format of the feed file.
466 &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.
467 #
468 # Acceptable values are:
469 # - &quot;`pipe`&quot;
470 # - &quot;`tab`&quot;
471 # - &quot;`tilde`&quot;
472 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
473 #
474 # Acceptable values are:
475 # - &quot;`latin-1`&quot;
476 # - &quot;`utf-16be`&quot;
477 # - &quot;`utf-16le`&quot;
478 # - &quot;`utf-8`&quot;
479 # - &quot;`windows-1252`&quot;
480 &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.
481 #
482 # Acceptable values are:
483 # - &quot;`normal character`&quot;
484 # - &quot;`value quoting`&quot;
485 },
486 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
487 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
488 &quot;A String&quot;,
489 ],
490 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
491 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
492 &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.
493 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
494 {
495 &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.
496 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
497 &quot;A String&quot;,
498 ],
499 &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 -0700500 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 # List of supported destinations (if available to the account):
502 # - DisplayAds
503 # - Shopping
504 # - ShoppingActions
505 # - SurfacesAcrossGoogle
506 &quot;A String&quot;,
507 ],
508 &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 -0700509 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700510 ],
511}
Craig Citro065b5302014-08-14 00:47:23 -0700512
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700513 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 -0700514
515Returns:
516 An object of the form:
517
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700518 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
520 &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`.
521 &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.
522 #
523 # Acceptable values are:
524 # - &quot;`local products`&quot;
525 # - &quot;`product inventory`&quot;
526 # - &quot;`products`&quot;
527 &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.
528 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
529 &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.
530 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
531 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
532 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
533 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
534 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
535 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
536 &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 -0700537 #
538 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 # - &quot;`monday`&quot;
540 # - &quot;`tuesday`&quot;
541 # - &quot;`wednesday`&quot;
542 # - &quot;`thursday`&quot;
543 # - &quot;`friday`&quot;
544 # - &quot;`saturday`&quot;
545 # - &quot;`sunday`&quot;
546 },
547 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
548 &quot;format&quot;: { # Format of the feed file.
549 &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.
550 #
551 # Acceptable values are:
552 # - &quot;`pipe`&quot;
553 # - &quot;`tab`&quot;
554 # - &quot;`tilde`&quot;
555 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
556 #
557 # Acceptable values are:
558 # - &quot;`latin-1`&quot;
559 # - &quot;`utf-16be`&quot;
560 # - &quot;`utf-16le`&quot;
561 # - &quot;`utf-8`&quot;
562 # - &quot;`windows-1252`&quot;
563 &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.
564 #
565 # Acceptable values are:
566 # - &quot;`normal character`&quot;
567 # - &quot;`value quoting`&quot;
568 },
569 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
570 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
571 &quot;A String&quot;,
572 ],
573 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
574 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
575 &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.
576 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
577 {
578 &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.
579 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
580 &quot;A String&quot;,
581 ],
582 &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 -0700583 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 # List of supported destinations (if available to the account):
585 # - DisplayAds
586 # - Shopping
587 # - ShoppingActions
588 # - SurfacesAcrossGoogle
589 &quot;A String&quot;,
590 ],
591 &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 -0700592 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 ],
594 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700595</div>
596
597<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700599 <pre>Lists the configurations for datafeeds in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700600
601Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700602 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 -0800603 maxResults: integer, The maximum number of products to return in the response, used for paging.
Bu Sun Kim65020912020-05-20 12:08:20 -0700604 pageToken: string, The token returned by the previous request.
Craig Citro065b5302014-08-14 00:47:23 -0700605
606Returns:
607 An object of the form:
608
609 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 &quot;kind&quot;: &quot;content#datafeedsListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsListResponse&quot;.
611 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of datafeeds.
612 &quot;resources&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700613 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
615 &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`.
616 &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.
617 #
618 # Acceptable values are:
619 # - &quot;`local products`&quot;
620 # - &quot;`product inventory`&quot;
621 # - &quot;`products`&quot;
622 &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.
623 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
624 &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.
625 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
626 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
627 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
628 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
629 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
630 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
631 &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 -0700632 #
633 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 # - &quot;`monday`&quot;
635 # - &quot;`tuesday`&quot;
636 # - &quot;`wednesday`&quot;
637 # - &quot;`thursday`&quot;
638 # - &quot;`friday`&quot;
639 # - &quot;`saturday`&quot;
640 # - &quot;`sunday`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700641 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
643 &quot;format&quot;: { # Format of the feed file.
644 &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.
645 #
646 # Acceptable values are:
647 # - &quot;`pipe`&quot;
648 # - &quot;`tab`&quot;
649 # - &quot;`tilde`&quot;
650 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
651 #
652 # Acceptable values are:
653 # - &quot;`latin-1`&quot;
654 # - &quot;`utf-16be`&quot;
655 # - &quot;`utf-16le`&quot;
656 # - &quot;`utf-8`&quot;
657 # - &quot;`windows-1252`&quot;
658 &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.
659 #
660 # Acceptable values are:
661 # - &quot;`normal character`&quot;
662 # - &quot;`value quoting`&quot;
663 },
664 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
665 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
666 &quot;A String&quot;,
667 ],
668 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
669 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
670 &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.
671 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
672 {
673 &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.
674 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
675 &quot;A String&quot;,
676 ],
677 &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`.
678 #
679 # List of supported destinations (if available to the account):
680 # - DisplayAds
681 # - Shopping
682 # - ShoppingActions
683 # - SurfacesAcrossGoogle
684 &quot;A String&quot;,
685 ],
686 &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`.
687 },
688 ],
689 },
Craig Citro065b5302014-08-14 00:47:23 -0700690 ],
691 }</pre>
692</div>
693
694<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800695 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
696 <pre>Retrieves the next page of results.
697
698Args:
699 previous_request: The request for the previous page. (required)
700 previous_response: The response from the request for the previous page. (required)
701
702Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 A request object that you can call &#x27;execute()&#x27; on to request the next
Craig Citroe633be12015-03-02 13:40:36 -0800704 page. Returns None if there are no more items in the collection.
705 </pre>
706</div>
707
708<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700709 <code class="details" id="update">update(merchantId, datafeedId, body=None, dryRun=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700710 <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 -0700711
712Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
714 datafeedId: string, The ID of the datafeed. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700715 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700716 The object takes the form of:
717
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700718{ # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700719 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
720 &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`.
721 &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.
722 #
723 # Acceptable values are:
724 # - &quot;`local products`&quot;
725 # - &quot;`product inventory`&quot;
726 # - &quot;`products`&quot;
727 &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.
728 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
729 &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.
730 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
731 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
732 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
733 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
734 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
735 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
736 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched.
737 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 # - &quot;`monday`&quot;
740 # - &quot;`tuesday`&quot;
741 # - &quot;`wednesday`&quot;
742 # - &quot;`thursday`&quot;
743 # - &quot;`friday`&quot;
744 # - &quot;`saturday`&quot;
745 # - &quot;`sunday`&quot;
746 },
747 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
748 &quot;format&quot;: { # Format of the feed file.
749 &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.
750 #
751 # Acceptable values are:
752 # - &quot;`pipe`&quot;
753 # - &quot;`tab`&quot;
754 # - &quot;`tilde`&quot;
755 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
756 #
757 # Acceptable values are:
758 # - &quot;`latin-1`&quot;
759 # - &quot;`utf-16be`&quot;
760 # - &quot;`utf-16le`&quot;
761 # - &quot;`utf-8`&quot;
762 # - &quot;`windows-1252`&quot;
763 &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.
764 #
765 # Acceptable values are:
766 # - &quot;`normal character`&quot;
767 # - &quot;`value quoting`&quot;
768 },
769 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
770 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
771 &quot;A String&quot;,
772 ],
773 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
774 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
775 &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.
776 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
777 {
778 &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.
779 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
780 &quot;A String&quot;,
781 ],
782 &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 -0700783 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 # List of supported destinations (if available to the account):
785 # - DisplayAds
786 # - Shopping
787 # - ShoppingActions
788 # - SurfacesAcrossGoogle
789 &quot;A String&quot;,
790 ],
791 &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 -0700792 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 ],
794}
Craig Citro065b5302014-08-14 00:47:23 -0700795
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700796 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 -0700797
798Returns:
799 An object of the form:
800
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700801 { # Datafeed configuration data.
Bu Sun Kim65020912020-05-20 12:08:20 -0700802 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
803 &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`.
804 &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.
805 #
806 # Acceptable values are:
807 # - &quot;`local products`&quot;
808 # - &quot;`product inventory`&quot;
809 # - &quot;`products`&quot;
810 &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.
811 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
812 &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.
813 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
814 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
815 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
816 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
817 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
818 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
819 &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 -0700820 #
821 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 # - &quot;`monday`&quot;
823 # - &quot;`tuesday`&quot;
824 # - &quot;`wednesday`&quot;
825 # - &quot;`thursday`&quot;
826 # - &quot;`friday`&quot;
827 # - &quot;`saturday`&quot;
828 # - &quot;`sunday`&quot;
829 },
830 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
831 &quot;format&quot;: { # Format of the feed file.
832 &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.
833 #
834 # Acceptable values are:
835 # - &quot;`pipe`&quot;
836 # - &quot;`tab`&quot;
837 # - &quot;`tilde`&quot;
838 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
839 #
840 # Acceptable values are:
841 # - &quot;`latin-1`&quot;
842 # - &quot;`utf-16be`&quot;
843 # - &quot;`utf-16le`&quot;
844 # - &quot;`utf-8`&quot;
845 # - &quot;`windows-1252`&quot;
846 &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.
847 #
848 # Acceptable values are:
849 # - &quot;`normal character`&quot;
850 # - &quot;`value quoting`&quot;
851 },
852 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
853 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
854 &quot;A String&quot;,
855 ],
856 &quot;kind&quot;: &quot;content#datafeed&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
857 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
858 &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.
859 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
860 {
861 &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.
862 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
863 &quot;A String&quot;,
864 ],
865 &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 -0700866 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700867 # List of supported destinations (if available to the account):
868 # - DisplayAds
869 # - Shopping
870 # - ShoppingActions
871 # - SurfacesAcrossGoogle
872 &quot;A String&quot;,
873 ],
874 &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 -0700875 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700876 ],
877 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700878</div>
879
880</body></html>