blob: b91cea7f091300cc495281fdaa1ca58aeb32f353 [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">
Craig Citroe633be12015-03-02 13:40:36 -080093 <code><a href="#list">list(merchantId, pageToken=None, maxResults=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 Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Updates a datafeed configuration of your Merchant Center account.</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{
Craig Citroe633be12015-03-02 13:40:36 -0800111 "entries": [ # The request entries to be processed in the batch.
112 { # A batch entry encoding a single non-batch datafeeds request.
Craig Citro065b5302014-08-14 00:47:23 -0700113 "batchId": 42, # An entry ID, unique within the batch request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 "datafeedId": "A String", # The ID of the data feed to get, delete or fetch.
115 "datafeed": { # Datafeed configuration data. # The data feed to insert.
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
117 "contentType": "A String", # 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 # - "`local products`"
121 # - "`product inventory`"
122 # - "`products`"
123 "name": "A String", # Required for insert. A descriptive name of the data feed.
124 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700125 "format": { # Format of the feed file.
126 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 #
128 # Acceptable values are:
129 # - "`latin-1`"
130 # - "`utf-16be`"
131 # - "`utf-16le`"
132 # - "`utf-8`"
133 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700134 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 #
136 # Acceptable values are:
137 # - "`normal character`"
138 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700139 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700140 #
141 # Acceptable values are:
142 # - "`pipe`"
143 # - "`tab`"
144 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700145 },
146 "fetchSchedule": { # 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.
147 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800148 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700149 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700151 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700152 #
153 # Acceptable values are:
154 # - "`monday`"
155 # - "`tuesday`"
156 # - "`wednesday`"
157 # - "`thursday`"
158 # - "`friday`"
159 # - "`saturday`"
160 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700161 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
162 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700163 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700164 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
165 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700167 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168 "targets": [ # The targets this feed should apply to (country, language, destinations).
169 {
170 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700171 "includedDestinations": [ # 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`.
172 #
173 # List of supported destinations (if available to the account):
174 # - DisplayAds
175 # - Shopping
176 # - ShoppingActions
177 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 "A String",
179 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700180 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
182 "A String",
183 ],
184 },
185 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700186 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700187 "A String",
188 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700189 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700190 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
191 },
192 "merchantId": "A String", # The ID of the managing account.
Dan O'Mearadd494642020-05-01 07:42:23 -0700193 "method": "A String", # The method of the batch entry.
194 #
195 # Acceptable values are:
196 # - "`delete`"
197 # - "`fetchNow`"
198 # - "`get`"
199 # - "`insert`"
200 # - "`update`"
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 {
211 "kind": "content#datafeedsCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsCustomBatchResponse".
Craig Citroe633be12015-03-02 13:40:36 -0800212 "entries": [ # The result of the execution of the batch requests.
213 { # A batch entry encoding a single non-batch datafeeds response.
Craig Citro065b5302014-08-14 00:47:23 -0700214 "batchId": 42, # The ID of the request entry this entry responds to.
215 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700216 "message": "A String", # The message of the first error in `errors`.
217 "code": 42, # The HTTP status of the first error in `errors`.
Craig Citro065b5302014-08-14 00:47:23 -0700218 "errors": [ # A list of errors.
219 { # An error returned by the API.
220 "reason": "A String", # The error code.
221 "domain": "A String", # The domain of the error.
222 "message": "A String", # A description of the error.
223 },
224 ],
225 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 "datafeed": { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful.
Dan O'Mearadd494642020-05-01 07:42:23 -0700227 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
228 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
229 #
230 # Acceptable values are:
231 # - "`local products`"
232 # - "`product inventory`"
233 # - "`products`"
234 "name": "A String", # Required for insert. A descriptive name of the data feed.
235 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700236 "format": { # Format of the feed file.
237 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700238 #
239 # Acceptable values are:
240 # - "`latin-1`"
241 # - "`utf-16be`"
242 # - "`utf-16le`"
243 # - "`utf-8`"
244 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700245 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700246 #
247 # Acceptable values are:
248 # - "`normal character`"
249 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700250 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700251 #
252 # Acceptable values are:
253 # - "`pipe`"
254 # - "`tab`"
255 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700256 },
257 "fetchSchedule": { # 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.
258 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800259 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700260 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700261 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700262 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700263 #
264 # Acceptable values are:
265 # - "`monday`"
266 # - "`tuesday`"
267 # - "`wednesday`"
268 # - "`thursday`"
269 # - "`friday`"
270 # - "`saturday`"
271 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700272 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
273 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700274 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700275 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
276 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700277 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700278 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700279 "targets": [ # The targets this feed should apply to (country, language, destinations).
280 {
281 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700282 "includedDestinations": [ # 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`.
283 #
284 # List of supported destinations (if available to the account):
285 # - DisplayAds
286 # - Shopping
287 # - ShoppingActions
288 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 "A String",
290 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700291 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
293 "A String",
294 ],
295 },
296 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700298 "A String",
299 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700300 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700301 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
302 },
303 },
304 ],
305 }</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 {
332 "kind": "content#datafeedsFetchNowResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsFetchNowResponse".
333 }</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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700348 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
349 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
350 #
351 # Acceptable values are:
352 # - "`local products`"
353 # - "`product inventory`"
354 # - "`products`"
355 "name": "A String", # Required for insert. A descriptive name of the data feed.
356 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700357 "format": { # Format of the feed file.
358 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700359 #
360 # Acceptable values are:
361 # - "`latin-1`"
362 # - "`utf-16be`"
363 # - "`utf-16le`"
364 # - "`utf-8`"
365 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700366 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700367 #
368 # Acceptable values are:
369 # - "`normal character`"
370 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700371 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700372 #
373 # Acceptable values are:
374 # - "`pipe`"
375 # - "`tab`"
376 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700377 },
378 "fetchSchedule": { # 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.
379 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800380 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700381 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700382 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700383 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700384 #
385 # Acceptable values are:
386 # - "`monday`"
387 # - "`tuesday`"
388 # - "`wednesday`"
389 # - "`thursday`"
390 # - "`friday`"
391 # - "`saturday`"
392 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700393 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
394 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700395 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700396 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
397 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700399 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 "targets": [ # The targets this feed should apply to (country, language, destinations).
401 {
402 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700403 "includedDestinations": [ # 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`.
404 #
405 # List of supported destinations (if available to the account):
406 # - DisplayAds
407 # - Shopping
408 # - ShoppingActions
409 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700410 "A String",
411 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700412 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
414 "A String",
415 ],
416 },
417 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700418 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700419 "A String",
420 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700421 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700422 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
423 }</pre>
424</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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700436 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
437 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
438 #
439 # Acceptable values are:
440 # - "`local products`"
441 # - "`product inventory`"
442 # - "`products`"
443 "name": "A String", # Required for insert. A descriptive name of the data feed.
444 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700445 "format": { # Format of the feed file.
446 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700447 #
448 # Acceptable values are:
449 # - "`latin-1`"
450 # - "`utf-16be`"
451 # - "`utf-16le`"
452 # - "`utf-8`"
453 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700454 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700455 #
456 # Acceptable values are:
457 # - "`normal character`"
458 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700459 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700460 #
461 # Acceptable values are:
462 # - "`pipe`"
463 # - "`tab`"
464 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700465 },
466 "fetchSchedule": { # 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.
467 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800468 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700469 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700471 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700472 #
473 # Acceptable values are:
474 # - "`monday`"
475 # - "`tuesday`"
476 # - "`wednesday`"
477 # - "`thursday`"
478 # - "`friday`"
479 # - "`saturday`"
480 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700481 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
482 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700483 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700484 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
485 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700486 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700487 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700488 "targets": [ # The targets this feed should apply to (country, language, destinations).
489 {
490 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700491 "includedDestinations": [ # 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`.
492 #
493 # List of supported destinations (if available to the account):
494 # - DisplayAds
495 # - Shopping
496 # - ShoppingActions
497 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498 "A String",
499 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700500 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700501 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
502 "A String",
503 ],
504 },
505 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700506 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700507 "A String",
508 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700509 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700510 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
511 }
512
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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700519 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
520 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
521 #
522 # Acceptable values are:
523 # - "`local products`"
524 # - "`product inventory`"
525 # - "`products`"
526 "name": "A String", # Required for insert. A descriptive name of the data feed.
527 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700528 "format": { # Format of the feed file.
529 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 #
531 # Acceptable values are:
532 # - "`latin-1`"
533 # - "`utf-16be`"
534 # - "`utf-16le`"
535 # - "`utf-8`"
536 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700537 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700538 #
539 # Acceptable values are:
540 # - "`normal character`"
541 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700542 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700543 #
544 # Acceptable values are:
545 # - "`pipe`"
546 # - "`tab`"
547 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700548 },
549 "fetchSchedule": { # 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.
550 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800551 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700552 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700554 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700555 #
556 # Acceptable values are:
557 # - "`monday`"
558 # - "`tuesday`"
559 # - "`wednesday`"
560 # - "`thursday`"
561 # - "`friday`"
562 # - "`saturday`"
563 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700564 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
565 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700566 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700567 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
568 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700570 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700571 "targets": [ # The targets this feed should apply to (country, language, destinations).
572 {
573 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700574 "includedDestinations": [ # 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`.
575 #
576 # List of supported destinations (if available to the account):
577 # - DisplayAds
578 # - Shopping
579 # - ShoppingActions
580 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700581 "A String",
582 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700583 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700584 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
585 "A String",
586 ],
587 },
588 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700589 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700590 "A String",
591 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700592 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700593 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
594 }</pre>
595</div>
596
597<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800598 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=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 pageToken: string, The token returned by the previous request.
604 maxResults: integer, The maximum number of products to return in the response, used for paging.
Craig Citro065b5302014-08-14 00:47:23 -0700605
606Returns:
607 An object of the form:
608
609 {
Craig Citroe633be12015-03-02 13:40:36 -0800610 "nextPageToken": "A String", # The token for the retrieval of the next page of datafeeds.
Craig Citro065b5302014-08-14 00:47:23 -0700611 "kind": "content#datafeedsListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsListResponse".
612 "resources": [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700613 { # Datafeed configuration data.
Dan O'Mearadd494642020-05-01 07:42:23 -0700614 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
615 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
616 #
617 # Acceptable values are:
618 # - "`local products`"
619 # - "`product inventory`"
620 # - "`products`"
621 "name": "A String", # Required for insert. A descriptive name of the data feed.
622 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700623 "format": { # Format of the feed file.
624 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700625 #
626 # Acceptable values are:
627 # - "`latin-1`"
628 # - "`utf-16be`"
629 # - "`utf-16le`"
630 # - "`utf-8`"
631 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700632 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700633 #
634 # Acceptable values are:
635 # - "`normal character`"
636 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700637 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700638 #
639 # Acceptable values are:
640 # - "`pipe`"
641 # - "`tab`"
642 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700643 },
644 "fetchSchedule": { # 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.
645 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800646 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700647 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700648 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700649 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700650 #
651 # Acceptable values are:
652 # - "`monday`"
653 # - "`tuesday`"
654 # - "`wednesday`"
655 # - "`thursday`"
656 # - "`friday`"
657 # - "`saturday`"
658 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700659 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
660 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700661 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700662 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
663 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700665 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700666 "targets": [ # The targets this feed should apply to (country, language, destinations).
667 {
668 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700669 "includedDestinations": [ # 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`.
670 #
671 # List of supported destinations (if available to the account):
672 # - DisplayAds
673 # - Shopping
674 # - ShoppingActions
675 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700676 "A String",
677 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700678 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
680 "A String",
681 ],
682 },
683 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700684 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700685 "A String",
686 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700687 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700688 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
689 },
690 ],
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:
703 A request object that you can call 'execute()' on to request the next
704 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 Kim715bd7f2019-06-14 16:50:42 -0700710 <pre>Updates a datafeed configuration of your Merchant Center account.
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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700719 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
720 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
721 #
722 # Acceptable values are:
723 # - "`local products`"
724 # - "`product inventory`"
725 # - "`products`"
726 "name": "A String", # Required for insert. A descriptive name of the data feed.
727 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700728 "format": { # Format of the feed file.
729 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700730 #
731 # Acceptable values are:
732 # - "`latin-1`"
733 # - "`utf-16be`"
734 # - "`utf-16le`"
735 # - "`utf-8`"
736 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700737 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 #
739 # Acceptable values are:
740 # - "`normal character`"
741 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700742 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700743 #
744 # Acceptable values are:
745 # - "`pipe`"
746 # - "`tab`"
747 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700748 },
749 "fetchSchedule": { # 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.
750 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800751 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700752 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700753 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700754 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700755 #
756 # Acceptable values are:
757 # - "`monday`"
758 # - "`tuesday`"
759 # - "`wednesday`"
760 # - "`thursday`"
761 # - "`friday`"
762 # - "`saturday`"
763 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700764 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
765 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700766 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700767 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
768 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700769 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700770 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700771 "targets": [ # The targets this feed should apply to (country, language, destinations).
772 {
773 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700774 "includedDestinations": [ # 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`.
775 #
776 # List of supported destinations (if available to the account):
777 # - DisplayAds
778 # - Shopping
779 # - ShoppingActions
780 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 "A String",
782 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700783 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
785 "A String",
786 ],
787 },
788 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700790 "A String",
791 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700792 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700793 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
794 }
795
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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700802 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
803 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
804 #
805 # Acceptable values are:
806 # - "`local products`"
807 # - "`product inventory`"
808 # - "`products`"
809 "name": "A String", # Required for insert. A descriptive name of the data feed.
810 "contentLanguage": "A String", # [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`.
Craig Citro065b5302014-08-14 00:47:23 -0700811 "format": { # Format of the feed file.
812 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
Dan O'Mearadd494642020-05-01 07:42:23 -0700813 #
814 # Acceptable values are:
815 # - "`latin-1`"
816 # - "`utf-16be`"
817 # - "`utf-16le`"
818 # - "`utf-8`"
819 # - "`windows-1252`"
Craig Citro065b5302014-08-14 00:47:23 -0700820 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700821 #
822 # Acceptable values are:
823 # - "`normal character`"
824 # - "`value quoting`"
Craig Citro065b5302014-08-14 00:47:23 -0700825 "columnDelimiter": "A String", # 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700826 #
827 # Acceptable values are:
828 # - "`pipe`"
829 # - "`tab`"
830 # - "`tilde`"
Craig Citro065b5302014-08-14 00:47:23 -0700831 },
832 "fetchSchedule": { # 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.
833 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800834 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700835 "fetchUrl": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700837 "weekday": "A String", # The day of the week the feed file should be fetched.
Dan O'Mearadd494642020-05-01 07:42:23 -0700838 #
839 # Acceptable values are:
840 # - "`monday`"
841 # - "`tuesday`"
842 # - "`wednesday`"
843 # - "`thursday`"
844 # - "`friday`"
845 # - "`saturday`"
846 # - "`sunday`"
Craig Citro065b5302014-08-14 00:47:23 -0700847 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
848 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700849 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700850 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
851 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700852 "targetCountry": "A String", # [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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700853 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 "targets": [ # The targets this feed should apply to (country, language, destinations).
855 {
856 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700857 "includedDestinations": [ # 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`.
858 #
859 # List of supported destinations (if available to the account):
860 # - DisplayAds
861 # - Shopping
862 # - ShoppingActions
863 # - SurfacesAcrossGoogle
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864 "A String",
865 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700866 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700867 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
868 "A String",
869 ],
870 },
871 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700872 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
Craig Citro065b5302014-08-14 00:47:23 -0700873 "A String",
874 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700875 "id": "A String", # Required for update. The ID of the data feed.
Craig Citro065b5302014-08-14 00:47:23 -0700876 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
877 }</pre>
878</div>
879
880</body></html>