blob: 21e1dc38722e11fe4e385e113c6fe0926a9ec83f [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="content_v2.html">Content API for Shopping</a> . <a href="content_v2.datafeeds.html">datafeeds</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070081 <code><a href="#custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.</p>
Craig Citro065b5302014-08-14 00:47:23 -070083<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#delete">delete(merchantId, datafeedId, dryRun=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Deletes a datafeed configuration from your Merchant Center account.</p>
86<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087 <code><a href="#fetchnow">fetchnow(merchantId, datafeedId, dryRun=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070090 <code><a href="#get">get(merchantId, datafeedId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves a datafeed configuration from your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070092<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#insert">insert(merchantId, body=None, dryRun=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Registers a datafeed configuration with your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070095<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080096 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Lists the configurations for datafeeds in your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070098<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -080099 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700102 <code><a href="#update">update(merchantId, datafeedId, body=None, dryRun=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103<p class="firstline">Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700104<h3>Method Details</h3>
105<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108</div>
109
110<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700111 <code class="details" id="custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 <pre>Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
Craig Citro065b5302014-08-14 00:47:23 -0700113
114Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700116 The object takes the form of:
117
118{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800119 &quot;entries&quot;: [ # The request entries to be processed in the batch.
120 { # A batch entry encoding a single non-batch datafeeds request.
121 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
122 &quot;datafeed&quot;: { # Datafeed configuration data. # The data feed to insert.
123 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
124 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
125 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
126 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
127 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
128 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
129 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
130 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
131 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
132 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
133 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
134 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
135 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
136 },
137 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
138 &quot;format&quot;: { # Format of the feed file.
139 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
140 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
141 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
142 },
143 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
144 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
145 &quot;A String&quot;,
146 ],
147 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
148 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
149 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
150 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
151 {
152 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
153 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800154 &quot;A String&quot;,
155 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800156 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
157 &quot;A String&quot;,
158 ],
159 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800160 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 ],
Craig Citro065b5302014-08-14 00:47:23 -0700162 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800163 &quot;datafeedId&quot;: &quot;A String&quot;, # The ID of the data feed to get, delete or fetch.
164 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
165 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry. Acceptable values are: - &quot;`delete`&quot; - &quot;`fetchNow`&quot; - &quot;`get`&quot; - &quot;`insert`&quot; - &quot;`update`&quot;
166 },
167 ],
168}
Craig Citro065b5302014-08-14 00:47:23 -0700169
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700171 x__xgafv: string, V1 error format.
172 Allowed values
173 1 - v1 error format
174 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700175
176Returns:
177 An object of the form:
178
179 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800180 &quot;entries&quot;: [ # The result of the execution of the batch requests.
181 { # A batch entry encoding a single non-batch datafeeds response.
182 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
183 &quot;datafeed&quot;: { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful.
184 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
185 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
186 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
187 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
188 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
189 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
190 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
191 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
192 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
193 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
194 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
195 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
196 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800197 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800198 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
199 &quot;format&quot;: { # Format of the feed file.
200 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
201 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
202 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
203 },
204 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
205 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
206 &quot;A String&quot;,
207 ],
208 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
209 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
210 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
211 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
212 {
213 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
214 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800215 &quot;A String&quot;,
216 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800217 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
218 &quot;A String&quot;,
219 ],
220 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800221 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800222 ],
Craig Citro065b5302014-08-14 00:47:23 -0700223 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800224 &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
225 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
226 &quot;errors&quot;: [ # A list of errors.
227 { # An error returned by the API.
228 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
229 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
230 &quot;reason&quot;: &quot;A String&quot;, # The error code.
231 },
232 ],
233 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
234 },
235 },
236 ],
237 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsCustomBatchResponse&quot;.
238}</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700239</div>
240
241<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700242 <code class="details" id="delete">delete(merchantId, datafeedId, dryRun=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 <pre>Deletes a datafeed configuration from your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700244
245Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
247 datafeedId: string, The ID of the datafeed. (required)
248 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700249 x__xgafv: string, V1 error format.
250 Allowed values
251 1 - v1 error format
252 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700253</pre>
254</div>
255
256<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700257 <code class="details" id="fetchnow">fetchnow(merchantId, datafeedId, dryRun=None, x__xgafv=None)</code>
258 <pre>Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.
Craig Citro065b5302014-08-14 00:47:23 -0700259
260Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700261 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
262 datafeedId: string, The ID of the datafeed to be fetched. (required)
263 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700264 x__xgafv: string, V1 error format.
265 Allowed values
266 1 - v1 error format
267 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700268
269Returns:
270 An object of the form:
271
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800273 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsFetchNowResponse&quot;.
274}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275</div>
276
277<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700278 <code class="details" id="get">get(merchantId, datafeedId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700279 <pre>Retrieves a datafeed configuration from your Merchant Center account.
280
281Args:
282 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
283 datafeedId: string, The ID of the datafeed. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700284 x__xgafv: string, V1 error format.
285 Allowed values
286 1 - v1 error format
287 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288
289Returns:
290 An object of the form:
291
292 { # Datafeed configuration data.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800293 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
294 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
295 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
296 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
297 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
298 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
299 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
300 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
301 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
302 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
303 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
304 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
305 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
306 },
307 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
308 &quot;format&quot;: { # Format of the feed file.
309 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
310 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
311 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
312 },
313 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
314 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
315 &quot;A String&quot;,
316 ],
317 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
318 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
319 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
320 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
321 {
322 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
323 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800324 &quot;A String&quot;,
325 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800326 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
327 &quot;A String&quot;,
328 ],
329 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
330 },
331 ],
332}</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700333</div>
334
335<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700336 <code class="details" id="insert">insert(merchantId, body=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700337 <pre>Registers a datafeed configuration with your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700338
339Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700340 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700341 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700342 The object takes the form of:
343
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344{ # Datafeed configuration data.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800345 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
346 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
347 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
348 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
349 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
350 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
351 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
352 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
353 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
354 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
355 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
356 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
357 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
358 },
359 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
360 &quot;format&quot;: { # Format of the feed file.
361 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
362 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
363 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
364 },
365 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
366 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
367 &quot;A String&quot;,
368 ],
369 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
370 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
371 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
372 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
373 {
374 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
375 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
376 &quot;A String&quot;,
377 ],
378 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
379 &quot;A String&quot;,
380 ],
381 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700382 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800383 ],
384}
Craig Citro065b5302014-08-14 00:47:23 -0700385
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700387 x__xgafv: string, V1 error format.
388 Allowed values
389 1 - v1 error format
390 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700391
392Returns:
393 An object of the form:
394
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 { # Datafeed configuration data.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800396 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
397 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
398 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
399 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
400 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
401 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
402 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
403 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
404 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
405 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
406 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
407 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
408 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
409 },
410 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
411 &quot;format&quot;: { # Format of the feed file.
412 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
413 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
414 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
415 },
416 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
417 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
418 &quot;A String&quot;,
419 ],
420 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
421 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
422 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
423 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
424 {
425 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
426 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800427 &quot;A String&quot;,
428 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800429 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
430 &quot;A String&quot;,
431 ],
432 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
433 },
434 ],
435}</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700436</div>
437
438<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800439 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 <pre>Lists the configurations for datafeeds in your Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700441
442Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443 merchantId: string, The ID of the account that manages the datafeeds. This account cannot be a multi-client account. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800444 maxResults: integer, The maximum number of products to return in the response, used for paging.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800445 pageToken: string, The token returned by the previous request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700446 x__xgafv: string, V1 error format.
447 Allowed values
448 1 - v1 error format
449 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700450
451Returns:
452 An object of the form:
453
454 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800455 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsListResponse&quot;.
456 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of datafeeds.
457 &quot;resources&quot;: [
458 { # Datafeed configuration data.
459 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
460 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
461 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
462 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
463 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
464 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
465 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
466 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
467 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
468 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
469 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
470 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
471 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
472 },
473 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
474 &quot;format&quot;: { # Format of the feed file.
475 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
476 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
477 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
478 },
479 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
480 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
481 &quot;A String&quot;,
482 ],
483 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
484 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
485 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
486 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
487 {
488 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
489 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800490 &quot;A String&quot;,
491 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800492 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
493 &quot;A String&quot;,
494 ],
495 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800496 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800497 ],
498 },
499 ],
500}</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700501</div>
502
503<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -0800504 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
505 <pre>Retrieves the next page of results.
506
507Args:
508 previous_request: The request for the previous page. (required)
509 previous_response: The response from the request for the previous page. (required)
510
511Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 A request object that you can call &#x27;execute()&#x27; on to request the next
Craig Citroe633be12015-03-02 13:40:36 -0800513 page. Returns None if there are no more items in the collection.
514 </pre>
515</div>
516
517<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700518 <code class="details" id="update">update(merchantId, datafeedId, body=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 <pre>Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700520
521Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700522 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
523 datafeedId: string, The ID of the datafeed. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700524 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700525 The object takes the form of:
526
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527{ # Datafeed configuration data.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800528 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
529 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
530 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
531 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
532 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
533 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
534 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
535 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
536 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
537 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
538 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
539 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
540 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
541 },
542 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
543 &quot;format&quot;: { # Format of the feed file.
544 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
545 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
546 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
547 },
548 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
549 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
550 &quot;A String&quot;,
551 ],
552 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
553 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
554 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
555 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
556 {
557 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
558 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
559 &quot;A String&quot;,
560 ],
561 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
562 &quot;A String&quot;,
563 ],
564 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
Craig Citro065b5302014-08-14 00:47:23 -0700565 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800566 ],
567}
Craig Citro065b5302014-08-14 00:47:23 -0700568
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700570 x__xgafv: string, V1 error format.
571 Allowed values
572 1 - v1 error format
573 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700574
575Returns:
576 An object of the form:
577
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700578 { # Datafeed configuration data.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800579 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
580 &quot;contentLanguage&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`.
581 &quot;contentType&quot;: &quot;A String&quot;, # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - &quot;`local products`&quot; - &quot;`product inventory`&quot; - &quot;`products`&quot;
582 &quot;fetchSchedule&quot;: { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file.
583 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
584 &quot;fetchUrl&quot;: &quot;A String&quot;, # The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
585 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
586 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
587 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
588 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
589 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
590 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
591 &quot;weekday&quot;: &quot;A String&quot;, # The day of the week the feed file should be fetched. Acceptable values are: - &quot;`monday`&quot; - &quot;`tuesday`&quot; - &quot;`wednesday`&quot; - &quot;`thursday`&quot; - &quot;`friday`&quot; - &quot;`saturday`&quot; - &quot;`sunday`&quot;
592 },
593 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
594 &quot;format&quot;: { # Format of the feed file.
595 &quot;columnDelimiter&quot;: &quot;A String&quot;, # Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`pipe`&quot; - &quot;`tab`&quot; - &quot;`tilde`&quot;
596 &quot;fileEncoding&quot;: &quot;A String&quot;, # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - &quot;`latin-1`&quot; - &quot;`utf-16be`&quot; - &quot;`utf-16le`&quot; - &quot;`utf-8`&quot; - &quot;`windows-1252`&quot;
597 &quot;quotingMode&quot;: &quot;A String&quot;, # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - &quot;`normal character`&quot; - &quot;`value quoting`&quot;
598 },
599 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
600 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
601 &quot;A String&quot;,
602 ],
603 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
604 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
605 &quot;targetCountry&quot;: &quot;A String&quot;, # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
606 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
607 {
608 &quot;country&quot;: &quot;A String&quot;, # The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
609 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800610 &quot;A String&quot;,
611 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800612 &quot;includedDestinations&quot;: [ # The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle
613 &quot;A String&quot;,
614 ],
615 &quot;language&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
616 },
617 ],
618}</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700619</div>
620
621</body></html>