blob: f29adf2e4e3c211a0aaa9b14c001caf0a5944c7a [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">
Takashi Matsuo06694102015-09-11 13:55:40 -070078 <code><a href="#custombatch">custombatch(body, 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">
Takashi Matsuo06694102015-09-11 13:55:40 -070090 <code><a href="#insert">insert(merchantId, body, 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">
Takashi Matsuo06694102015-09-11 13:55:40 -070099 <code><a href="#patch">patch(merchantId, datafeedId, body, 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. This method supports patch semantics.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700101<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -0700102 <code><a href="#update">update(merchantId, datafeedId, body, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates a datafeed configuration of your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700104<h3>Method Details</h3>
105<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700106 <code class="details" id="custombatch">custombatch(body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 <pre>Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
Craig Citro065b5302014-08-14 00:47:23 -0700108
109Args:
110 body: object, The request body. (required)
111 The object takes the form of:
112
113{
Craig Citroe633be12015-03-02 13:40:36 -0800114 "entries": [ # The request entries to be processed in the batch.
115 { # A batch entry encoding a single non-batch datafeeds request.
Craig Citro065b5302014-08-14 00:47:23 -0700116 "batchId": 42, # An entry ID, unique within the batch request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 "datafeedId": "A String", # The ID of the data feed to get, delete or fetch.
118 "datafeed": { # Datafeed configuration data. # The data feed to insert.
Craig Citro065b5302014-08-14 00:47:23 -0700119 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400120 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700121 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 "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 -0700123 "format": { # Format of the feed file.
124 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
125 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
126 "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.
127 },
128 "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.
129 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800130 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700131 "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 -0700132 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700133 "weekday": "A String", # The day of the week the feed file should be fetched.
134 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
135 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700136 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700137 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
138 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700140 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 "targets": [ # The targets this feed should apply to (country, language, destinations).
142 {
143 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
144 "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 the excluded_destination field.
145 "A String",
146 ],
147 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
148 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
149 "A String",
150 ],
151 },
152 ],
153 "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 -0700154 "A String",
155 ],
156 "id": "A String", # The ID of the data feed.
157 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
158 },
159 "merchantId": "A String", # The ID of the managing account.
Craig Citroe633be12015-03-02 13:40:36 -0800160 "method": "A String",
Craig Citro065b5302014-08-14 00:47:23 -0700161 },
162 ],
163 }
164
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165 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 -0700166
167Returns:
168 An object of the form:
169
170 {
171 "kind": "content#datafeedsCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsCustomBatchResponse".
Craig Citroe633be12015-03-02 13:40:36 -0800172 "entries": [ # The result of the execution of the batch requests.
173 { # A batch entry encoding a single non-batch datafeeds response.
Craig Citro065b5302014-08-14 00:47:23 -0700174 "batchId": 42, # The ID of the request entry this entry responds to.
175 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
176 "message": "A String", # The message of the first error in errors.
177 "code": 42, # The HTTP status of the first error in errors.
178 "errors": [ # A list of errors.
179 { # An error returned by the API.
180 "reason": "A String", # The error code.
181 "domain": "A String", # The domain of the error.
182 "message": "A String", # A description of the error.
183 },
184 ],
185 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 "datafeed": { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful.
Craig Citro065b5302014-08-14 00:47:23 -0700187 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400188 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700189 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 "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 -0700191 "format": { # Format of the feed file.
192 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
193 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
194 "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.
195 },
196 "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.
197 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800198 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700199 "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 -0700200 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700201 "weekday": "A String", # The day of the week the feed file should be fetched.
202 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
203 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700204 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700205 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
206 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700208 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 "targets": [ # The targets this feed should apply to (country, language, destinations).
210 {
211 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
212 "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 the excluded_destination field.
213 "A String",
214 ],
215 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
216 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
217 "A String",
218 ],
219 },
220 ],
221 "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 -0700222 "A String",
223 ],
224 "id": "A String", # The ID of the data feed.
225 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
226 },
227 },
228 ],
229 }</pre>
230</div>
231
232<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700233 <code class="details" id="delete">delete(merchantId, datafeedId, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234 <pre>Deletes a datafeed configuration from your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700235
236Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
238 datafeedId: string, The ID of the datafeed. (required)
239 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 -0700240</pre>
241</div>
242
243<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 <code class="details" id="fetchnow">fetchnow(merchantId, datafeedId, dryRun=None)</code>
245 <pre>Invokes a fetch for the datafeed in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700246
247Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
249 datafeedId: string, The ID of the datafeed to be fetched. (required)
250 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 -0700251
252Returns:
253 An object of the form:
254
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 {
256 "kind": "content#datafeedsFetchNowResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsFetchNowResponse".
257 }</pre>
258</div>
259
260<div class="method">
261 <code class="details" id="get">get(merchantId, datafeedId)</code>
262 <pre>Retrieves a datafeed configuration from your Merchant Center account.
263
264Args:
265 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
266 datafeedId: string, The ID of the datafeed. (required)
267
268Returns:
269 An object of the form:
270
271 { # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700272 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400273 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700274 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275 "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 -0700276 "format": { # Format of the feed file.
277 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
278 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
279 "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.
280 },
281 "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.
282 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800283 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700284 "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 -0700285 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700286 "weekday": "A String", # The day of the week the feed file should be fetched.
287 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
288 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700289 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700290 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
291 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700293 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 "targets": [ # The targets this feed should apply to (country, language, destinations).
295 {
296 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
297 "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 the excluded_destination field.
298 "A String",
299 ],
300 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
301 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
302 "A String",
303 ],
304 },
305 ],
306 "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 -0700307 "A String",
308 ],
309 "id": "A String", # The ID of the data feed.
310 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
311 }</pre>
312</div>
313
314<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700315 <code class="details" id="insert">insert(merchantId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 <pre>Registers a datafeed configuration with your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700317
318Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700320 body: object, The request body. (required)
321 The object takes the form of:
322
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700323{ # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700324 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400325 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700326 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327 "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 -0700328 "format": { # Format of the feed file.
329 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
330 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
331 "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.
332 },
333 "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.
334 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800335 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700336 "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 -0700337 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700338 "weekday": "A String", # The day of the week the feed file should be fetched.
339 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
340 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700341 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700342 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
343 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700345 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700346 "targets": [ # The targets this feed should apply to (country, language, destinations).
347 {
348 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
349 "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 the excluded_destination field.
350 "A String",
351 ],
352 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
353 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
354 "A String",
355 ],
356 },
357 ],
358 "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 -0700359 "A String",
360 ],
361 "id": "A String", # The ID of the data feed.
362 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
363 }
364
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 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 -0700366
367Returns:
368 An object of the form:
369
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700370 { # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700371 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400372 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700373 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 "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 -0700375 "format": { # Format of the feed file.
376 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
377 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
378 "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.
379 },
380 "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.
381 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800382 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700383 "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 -0700384 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700385 "weekday": "A String", # The day of the week the feed file should be fetched.
386 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
387 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700388 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700389 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
390 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700392 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 "targets": [ # The targets this feed should apply to (country, language, destinations).
394 {
395 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
396 "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 the excluded_destination field.
397 "A String",
398 ],
399 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
400 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
401 "A String",
402 ],
403 },
404 ],
405 "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 -0700406 "A String",
407 ],
408 "id": "A String", # The ID of the data feed.
409 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
410 }</pre>
411</div>
412
413<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800414 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700415 <pre>Lists the configurations for datafeeds in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700416
417Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700418 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 -0800419 pageToken: string, The token returned by the previous request.
420 maxResults: integer, The maximum number of products to return in the response, used for paging.
Craig Citro065b5302014-08-14 00:47:23 -0700421
422Returns:
423 An object of the form:
424
425 {
Craig Citroe633be12015-03-02 13:40:36 -0800426 "nextPageToken": "A String", # The token for the retrieval of the next page of datafeeds.
Craig Citro065b5302014-08-14 00:47:23 -0700427 "kind": "content#datafeedsListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsListResponse".
428 "resources": [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 { # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700430 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400431 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700432 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700433 "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 -0700434 "format": { # Format of the feed file.
435 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
436 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
437 "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.
438 },
439 "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.
440 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800441 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700442 "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 -0700443 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700444 "weekday": "A String", # The day of the week the feed file should be fetched.
445 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
446 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700447 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700448 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
449 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700450 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700451 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700452 "targets": [ # The targets this feed should apply to (country, language, destinations).
453 {
454 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
455 "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 the excluded_destination field.
456 "A String",
457 ],
458 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
459 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
460 "A String",
461 ],
462 },
463 ],
464 "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 -0700465 "A String",
466 ],
467 "id": "A String", # The ID of the data feed.
468 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
469 },
470 ],
471 }</pre>
472</div>
473
474<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800475 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
476 <pre>Retrieves the next page of results.
477
478Args:
479 previous_request: The request for the previous page. (required)
480 previous_response: The response from the request for the previous page. (required)
481
482Returns:
483 A request object that you can call 'execute()' on to request the next
484 page. Returns None if there are no more items in the collection.
485 </pre>
486</div>
487
488<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700489 <code class="details" id="patch">patch(merchantId, datafeedId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490 <pre>Updates a datafeed configuration of your Merchant Center account. This method supports patch semantics.
Craig Citro065b5302014-08-14 00:47:23 -0700491
492Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
494 datafeedId: string, The ID of the datafeed. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700495 body: object, The request body. (required)
496 The object takes the form of:
497
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498{ # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700499 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400500 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700501 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502 "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 -0700503 "format": { # Format of the feed file.
504 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
505 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
506 "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.
507 },
508 "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.
509 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800510 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700511 "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 -0700512 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700513 "weekday": "A String", # The day of the week the feed file should be fetched.
514 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
515 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700516 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700517 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
518 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700519 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700520 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700521 "targets": [ # The targets this feed should apply to (country, language, destinations).
522 {
523 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
524 "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 the excluded_destination field.
525 "A String",
526 ],
527 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
528 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
529 "A String",
530 ],
531 },
532 ],
533 "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 -0700534 "A String",
535 ],
536 "id": "A String", # The ID of the data feed.
537 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
538 }
539
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 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 -0700541
542Returns:
543 An object of the form:
544
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700545 { # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700546 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400547 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700548 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700549 "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 -0700550 "format": { # Format of the feed file.
551 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
552 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
553 "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.
554 },
555 "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.
556 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800557 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700558 "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 -0700559 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700560 "weekday": "A String", # The day of the week the feed file should be fetched.
561 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
562 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700563 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700564 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
565 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700567 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700568 "targets": [ # The targets this feed should apply to (country, language, destinations).
569 {
570 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
571 "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 the excluded_destination field.
572 "A String",
573 ],
574 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
575 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
576 "A String",
577 ],
578 },
579 ],
580 "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 -0700581 "A String",
582 ],
583 "id": "A String", # The ID of the data feed.
584 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
585 }</pre>
586</div>
587
588<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700589 <code class="details" id="update">update(merchantId, datafeedId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700590 <pre>Updates a datafeed configuration of your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700591
592Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700593 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
594 datafeedId: string, The ID of the datafeed. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700595 body: object, The request body. (required)
596 The object takes the form of:
597
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700598{ # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700599 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400600 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700601 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700602 "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 -0700603 "format": { # Format of the feed file.
604 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
605 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
606 "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.
607 },
608 "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.
609 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800610 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700611 "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 -0700612 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700613 "weekday": "A String", # The day of the week the feed file should be fetched.
614 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
615 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700616 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700617 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
618 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700619 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700620 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700621 "targets": [ # The targets this feed should apply to (country, language, destinations).
622 {
623 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
624 "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 the excluded_destination field.
625 "A String",
626 ],
627 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
628 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
629 "A String",
630 ],
631 },
632 ],
633 "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 -0700634 "A String",
635 ],
636 "id": "A String", # The ID of the data feed.
637 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
638 }
639
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700640 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 -0700641
642Returns:
643 An object of the form:
644
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700645 { # Datafeed configuration data.
Craig Citro065b5302014-08-14 00:47:23 -0700646 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400647 "contentType": "A String", # The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.
Craig Citro065b5302014-08-14 00:47:23 -0700648 "name": "A String", # A descriptive name of the data feed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700649 "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 -0700650 "format": { # Format of the feed file.
651 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
652 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
653 "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.
654 },
655 "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.
656 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800657 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700658 "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 -0700659 "paused": True or False, # Whether the scheduled fetch is paused or not.
Craig Citro065b5302014-08-14 00:47:23 -0700660 "weekday": "A String", # The day of the week the feed file should be fetched.
661 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
662 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700663 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700664 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
665 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700666 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700667 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 "targets": [ # The targets this feed should apply to (country, language, destinations).
669 {
670 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
671 "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 the excluded_destination field.
672 "A String",
673 ],
674 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targets[].country.
675 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
676 "A String",
677 ],
678 },
679 ],
680 "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 -0700681 "A String",
682 ],
683 "id": "A String", # The ID of the data feed.
684 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
685 }</pre>
686</div>
687
688</body></html>