blob: ad527e756fa2384cc1b8428618a715ac2b884365 [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>
Craig Citro065b5302014-08-14 00:47:23 -070079<p class="firstline">A description of how to use this function</p>
80<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070081 <code><a href="#delete">delete(merchantId, datafeedId, dryRun=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080082<p class="firstline">Deletes a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.</p>
Craig Citro065b5302014-08-14 00:47:23 -070083<p class="toc_element">
84 <code><a href="#get">get(merchantId, datafeedId)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080085<p class="firstline">Retrieves a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.</p>
Craig Citro065b5302014-08-14 00:47:23 -070086<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070087 <code><a href="#insert">insert(merchantId, body, dryRun=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080088<p class="firstline">Registers a datafeed with your Merchant Center account. This method can only be called for non-multi-client accounts.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -080090 <code><a href="#list">list(merchantId, pageToken=None, maxResults=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080091<p class="firstline">Lists the datafeeds in your Merchant Center account. This method can only be called for non-multi-client accounts.</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_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070096 <code><a href="#patch">patch(merchantId, datafeedId, body, dryRun=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080097<p class="firstline">Updates a datafeed of your Merchant Center account. This method can only be called for non-multi-client accounts. This method supports patch semantics.</p>
Craig Citro065b5302014-08-14 00:47:23 -070098<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070099 <code><a href="#update">update(merchantId, datafeedId, body, dryRun=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800100<p class="firstline">Updates a datafeed of your Merchant Center account. This method can only be called for non-multi-client accounts.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700101<h3>Method Details</h3>
102<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700103 <code class="details" id="custombatch">custombatch(body, dryRun=None)</code>
Craig Citro065b5302014-08-14 00:47:23 -0700104 <pre>A description of how to use this function
105
106Args:
107 body: object, The request body. (required)
108 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.
114 "datafeedId": "A String", # The ID of the data feed to get or delete.
Craig Citroe633be12015-03-02 13:40:36 -0800115 "datafeed": { # Datafeed data. # The data feed to insert.
Craig Citro065b5302014-08-14 00:47:23 -0700116 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400117 "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 -0700118 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800119 "contentLanguage": "A String", # 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 -0700120 "format": { # Format of the feed file.
121 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
122 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
123 "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.
124 },
125 "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.
126 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800127 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700128 "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.
129 "weekday": "A String", # The day of the week the feed file should be fetched.
130 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
131 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700132 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700133 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
134 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700135 "targetCountry": "A String", # 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 -0700136 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
137 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
138 "A String",
139 ],
140 "id": "A String", # The ID of the data feed.
141 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
142 },
143 "merchantId": "A String", # The ID of the managing account.
Craig Citroe633be12015-03-02 13:40:36 -0800144 "method": "A String",
Craig Citro065b5302014-08-14 00:47:23 -0700145 },
146 ],
147 }
148
Takashi Matsuo06694102015-09-11 13:55:40 -0700149 dryRun: boolean, Flag to run the request in dry-run mode.
Craig Citro065b5302014-08-14 00:47:23 -0700150
151Returns:
152 An object of the form:
153
154 {
155 "kind": "content#datafeedsCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsCustomBatchResponse".
Craig Citroe633be12015-03-02 13:40:36 -0800156 "entries": [ # The result of the execution of the batch requests.
157 { # A batch entry encoding a single non-batch datafeeds response.
Craig Citro065b5302014-08-14 00:47:23 -0700158 "batchId": 42, # The ID of the request entry this entry responds to.
159 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
160 "message": "A String", # The message of the first error in errors.
161 "code": 42, # The HTTP status of the first error in errors.
162 "errors": [ # A list of errors.
163 { # An error returned by the API.
164 "reason": "A String", # The error code.
165 "domain": "A String", # The domain of the error.
166 "message": "A String", # A description of the error.
167 },
168 ],
169 },
Craig Citroe633be12015-03-02 13:40:36 -0800170 "datafeed": { # Datafeed data. # The requested data feed. Defined if and only if the request was successful.
Craig Citro065b5302014-08-14 00:47:23 -0700171 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400172 "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 -0700173 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800174 "contentLanguage": "A String", # 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 -0700175 "format": { # Format of the feed file.
176 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
177 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
178 "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.
179 },
180 "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.
181 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800182 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700183 "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.
184 "weekday": "A String", # The day of the week the feed file should be fetched.
185 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
186 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700187 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700188 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
189 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700190 "targetCountry": "A String", # 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 -0700191 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
192 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
193 "A String",
194 ],
195 "id": "A String", # The ID of the data feed.
196 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
197 },
198 },
199 ],
200 }</pre>
201</div>
202
203<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700204 <code class="details" id="delete">delete(merchantId, datafeedId, dryRun=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800205 <pre>Deletes a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700206
207Args:
208 merchantId: string, A parameter (required)
209 datafeedId: string, A parameter (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700210 dryRun: boolean, Flag to run the request in dry-run mode.
Craig Citro065b5302014-08-14 00:47:23 -0700211</pre>
212</div>
213
214<div class="method">
215 <code class="details" id="get">get(merchantId, datafeedId)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800216 <pre>Retrieves a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700217
218Args:
219 merchantId: string, A parameter (required)
220 datafeedId: string, A parameter (required)
221
222Returns:
223 An object of the form:
224
Craig Citroe633be12015-03-02 13:40:36 -0800225 { # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700226 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400227 "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 -0700228 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800229 "contentLanguage": "A String", # 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 -0700230 "format": { # Format of the feed file.
231 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
232 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
233 "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.
234 },
235 "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.
236 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800237 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700238 "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.
239 "weekday": "A String", # The day of the week the feed file should be fetched.
240 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
241 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700242 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700243 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
244 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700245 "targetCountry": "A String", # 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 -0700246 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
247 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
248 "A String",
249 ],
250 "id": "A String", # The ID of the data feed.
251 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
252 }</pre>
253</div>
254
255<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700256 <code class="details" id="insert">insert(merchantId, body, dryRun=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800257 <pre>Registers a datafeed with your Merchant Center account. This method can only be called for non-multi-client accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700258
259Args:
260 merchantId: string, A parameter (required)
261 body: object, The request body. (required)
262 The object takes the form of:
263
Craig Citroe633be12015-03-02 13:40:36 -0800264{ # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700265 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400266 "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 -0700267 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800268 "contentLanguage": "A String", # 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 -0700269 "format": { # Format of the feed file.
270 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
271 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
272 "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.
273 },
274 "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.
275 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800276 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700277 "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.
278 "weekday": "A String", # The day of the week the feed file should be fetched.
279 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
280 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700281 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700282 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
283 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700284 "targetCountry": "A String", # 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 -0700285 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
286 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
287 "A String",
288 ],
289 "id": "A String", # The ID of the data feed.
290 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
291 }
292
Takashi Matsuo06694102015-09-11 13:55:40 -0700293 dryRun: boolean, Flag to run the request in dry-run mode.
Craig Citro065b5302014-08-14 00:47:23 -0700294
295Returns:
296 An object of the form:
297
Craig Citroe633be12015-03-02 13:40:36 -0800298 { # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700299 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400300 "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 -0700301 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800302 "contentLanguage": "A String", # 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 -0700303 "format": { # Format of the feed file.
304 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
305 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
306 "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.
307 },
308 "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.
309 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800310 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700311 "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.
312 "weekday": "A String", # The day of the week the feed file should be fetched.
313 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
314 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700315 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700316 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
317 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700318 "targetCountry": "A String", # 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 -0700319 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
320 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
321 "A String",
322 ],
323 "id": "A String", # The ID of the data feed.
324 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
325 }</pre>
326</div>
327
328<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800329 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800330 <pre>Lists the datafeeds in your Merchant Center account. This method can only be called for non-multi-client accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700331
332Args:
Craig Citroe633be12015-03-02 13:40:36 -0800333 merchantId: string, The ID of the managing account. (required)
334 pageToken: string, The token returned by the previous request.
335 maxResults: integer, The maximum number of products to return in the response, used for paging.
Craig Citro065b5302014-08-14 00:47:23 -0700336
337Returns:
338 An object of the form:
339
340 {
Craig Citroe633be12015-03-02 13:40:36 -0800341 "nextPageToken": "A String", # The token for the retrieval of the next page of datafeeds.
Craig Citro065b5302014-08-14 00:47:23 -0700342 "kind": "content#datafeedsListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsListResponse".
343 "resources": [
Craig Citroe633be12015-03-02 13:40:36 -0800344 { # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700345 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400346 "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 -0700347 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800348 "contentLanguage": "A String", # 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 -0700349 "format": { # Format of the feed file.
350 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
351 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
352 "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.
353 },
354 "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.
355 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800356 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700357 "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.
358 "weekday": "A String", # The day of the week the feed file should be fetched.
359 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
360 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700361 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700362 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
363 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700364 "targetCountry": "A String", # 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 -0700365 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
366 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
367 "A String",
368 ],
369 "id": "A String", # The ID of the data feed.
370 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
371 },
372 ],
373 }</pre>
374</div>
375
376<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800377 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
378 <pre>Retrieves the next page of results.
379
380Args:
381 previous_request: The request for the previous page. (required)
382 previous_response: The response from the request for the previous page. (required)
383
384Returns:
385 A request object that you can call 'execute()' on to request the next
386 page. Returns None if there are no more items in the collection.
387 </pre>
388</div>
389
390<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700391 <code class="details" id="patch">patch(merchantId, datafeedId, body, dryRun=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800392 <pre>Updates a datafeed of your Merchant Center account. This method can only be called for non-multi-client accounts. This method supports patch semantics.
Craig Citro065b5302014-08-14 00:47:23 -0700393
394Args:
395 merchantId: string, A parameter (required)
396 datafeedId: string, A parameter (required)
397 body: object, The request body. (required)
398 The object takes the form of:
399
Craig Citroe633be12015-03-02 13:40:36 -0800400{ # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700401 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400402 "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 -0700403 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800404 "contentLanguage": "A String", # 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 -0700405 "format": { # Format of the feed file.
406 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
407 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
408 "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.
409 },
410 "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.
411 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800412 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700413 "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.
414 "weekday": "A String", # The day of the week the feed file should be fetched.
415 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
416 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700417 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700418 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
419 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700420 "targetCountry": "A String", # 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 -0700421 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
422 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
423 "A String",
424 ],
425 "id": "A String", # The ID of the data feed.
426 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
427 }
428
Takashi Matsuo06694102015-09-11 13:55:40 -0700429 dryRun: boolean, Flag to run the request in dry-run mode.
Craig Citro065b5302014-08-14 00:47:23 -0700430
431Returns:
432 An object of the form:
433
Craig Citroe633be12015-03-02 13:40:36 -0800434 { # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700435 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400436 "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 -0700437 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800438 "contentLanguage": "A String", # 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 -0700439 "format": { # Format of the feed file.
440 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
441 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
442 "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.
443 },
444 "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.
445 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800446 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700447 "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.
448 "weekday": "A String", # The day of the week the feed file should be fetched.
449 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
450 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700451 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700452 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
453 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700454 "targetCountry": "A String", # 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 -0700455 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
456 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
457 "A String",
458 ],
459 "id": "A String", # The ID of the data feed.
460 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
461 }</pre>
462</div>
463
464<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700465 <code class="details" id="update">update(merchantId, datafeedId, body, dryRun=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800466 <pre>Updates a datafeed of your Merchant Center account. This method can only be called for non-multi-client accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700467
468Args:
469 merchantId: string, A parameter (required)
470 datafeedId: string, A parameter (required)
471 body: object, The request body. (required)
472 The object takes the form of:
473
Craig Citroe633be12015-03-02 13:40:36 -0800474{ # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700475 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400476 "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 -0700477 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800478 "contentLanguage": "A String", # 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 -0700479 "format": { # Format of the feed file.
480 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
481 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
482 "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.
483 },
484 "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.
485 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800486 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700487 "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.
488 "weekday": "A String", # The day of the week the feed file should be fetched.
489 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
490 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700491 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700492 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
493 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700494 "targetCountry": "A String", # 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 -0700495 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
496 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
497 "A String",
498 ],
499 "id": "A String", # The ID of the data feed.
500 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
501 }
502
Takashi Matsuo06694102015-09-11 13:55:40 -0700503 dryRun: boolean, Flag to run the request in dry-run mode.
Craig Citro065b5302014-08-14 00:47:23 -0700504
505Returns:
506 An object of the form:
507
Craig Citroe633be12015-03-02 13:40:36 -0800508 { # Datafeed data.
Craig Citro065b5302014-08-14 00:47:23 -0700509 "kind": "content#datafeed", # Identifies what kind of resource this is. Value: the fixed string "content#datafeed".
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400510 "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 -0700511 "name": "A String", # A descriptive name of the data feed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800512 "contentLanguage": "A String", # 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 -0700513 "format": { # Format of the feed file.
514 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.
515 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.
516 "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.
517 },
518 "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.
519 "username": "A String", # An optional user name for fetch_url.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800520 "hour": 42, # The hour of the day the feed file should be fetched (0-23).
Craig Citro065b5302014-08-14 00:47:23 -0700521 "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.
522 "weekday": "A String", # The day of the week the feed file should be fetched.
523 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
524 "password": "A String", # An optional password for fetch_url.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700525 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700526 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31).
527 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700528 "targetCountry": "A String", # 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 -0700529 "fileName": "A String", # The filename of the feed. All feeds must have a unique file name.
530 "intendedDestinations": [ # The list of intended destinations (corresponds to checked check boxes in Merchant Center).
531 "A String",
532 ],
533 "id": "A String", # The ID of the data feed.
534 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
535 }</pre>
536</div>
537
538</body></html>