blob: 6cd0c9a05afcbdb68f4408a05c954a28c85c791c [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 Bot0d561ef2020-11-25 07:50:41 -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{
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Craig Citroe633be12015-03-02 13:40:36 -0800120 { # A batch entry encoding a single non-batch datafeeds request.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800121 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
122 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800123 &quot;datafeed&quot;: { # Datafeed configuration data. # The data feed to insert.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800124 &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.
125 &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.
126 &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.
127 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
128 &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;
129 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
130 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
131 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
132 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
133 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
134 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
135 },
136 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
137 &quot;A String&quot;,
138 ],
139 &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;
140 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
141 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800142 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800144 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
145 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800146 &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
147 &quot;A String&quot;,
148 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800149 &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`.
150 &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.
151 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
152 &quot;A String&quot;,
153 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800154 },
155 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800156 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800157 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800158 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800159 &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;
160 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800161 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800162 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800163 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700164 &quot;datafeedId&quot;: &quot;A String&quot;, # The ID of the data feed to get, delete or fetch.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800165 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
Craig Citro065b5302014-08-14 00:47:23 -0700166 },
167 ],
168 }
169
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 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Craig Citroe633be12015-03-02 13:40:36 -0800181 { # A batch entry encoding a single non-batch datafeeds response.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800182 &quot;datafeed&quot;: { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800183 &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.
184 &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.
185 &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.
186 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
187 &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;
188 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
189 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
190 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
191 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
192 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
193 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
194 },
195 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
196 &quot;A String&quot;,
197 ],
198 &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;
199 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
200 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800201 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800202 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800203 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
204 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800205 &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
206 &quot;A String&quot;,
207 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800208 &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`.
209 &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.
210 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
211 &quot;A String&quot;,
212 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800213 },
214 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800215 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800216 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800217 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800218 &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;
219 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800220 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800221 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
222 },
223 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
224 &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;errors&quot;: [ # A list of errors.
226 { # An error returned by the API.
227 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
228 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
229 &quot;reason&quot;: &quot;A String&quot;, # The error code.
230 },
231 ],
232 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
233 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800234 },
Craig Citro065b5302014-08-14 00:47:23 -0700235 },
236 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700237 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsCustomBatchResponse&quot;.
Craig Citro065b5302014-08-14 00:47:23 -0700238 }</pre>
239</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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700273 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsFetchNowResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700274 }</pre>
275</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 Bot0d561ef2020-11-25 07:50:41 -0800293 &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.
294 &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.
295 &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.
296 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
297 &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;
298 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
299 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
300 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
301 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
302 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
303 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
304 },
305 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
306 &quot;A String&quot;,
307 ],
308 &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;
309 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
310 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800311 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800312 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800313 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
314 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800315 &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
316 &quot;A String&quot;,
317 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800318 &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`.
319 &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.
320 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
321 &quot;A String&quot;,
322 ],
Craig Citro065b5302014-08-14 00:47:23 -0700323 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800324 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800325 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800326 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800327 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800328 &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;
329 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800330 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800331 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800332 }</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 Bot0d561ef2020-11-25 07:50:41 -0800345 &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.
346 &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.
347 &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.
348 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
349 &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;
350 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
351 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
352 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
353 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
354 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
355 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
356 },
357 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
358 &quot;A String&quot;,
359 ],
360 &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;
361 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
362 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800363 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800364 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800365 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
366 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800367 &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
368 &quot;A String&quot;,
369 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800370 &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`.
371 &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.
372 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
373 &quot;A String&quot;,
374 ],
Craig Citro065b5302014-08-14 00:47:23 -0700375 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800376 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800377 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800378 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800379 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800380 &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;
381 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800382 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800383 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800384}
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 Bot0d561ef2020-11-25 07:50:41 -0800396 &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.
397 &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.
398 &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.
399 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
400 &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;
401 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
402 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
403 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
404 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
405 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
406 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
407 },
408 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
409 &quot;A String&quot;,
410 ],
411 &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;
412 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
413 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800414 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800415 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800416 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
417 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800418 &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
419 &quot;A String&quot;,
420 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800421 &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`.
422 &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.
423 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
424 &quot;A String&quot;,
425 ],
Craig Citro065b5302014-08-14 00:47:23 -0700426 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800427 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800428 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800429 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800430 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800431 &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;
432 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800433 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800434 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800435 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700436</div>
437
438<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -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 Botc2228be2020-11-24 15:48:03 -0800444 maxResults: integer, The maximum number of products to return in the response, used for paging.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -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 Bot0d561ef2020-11-25 07:50:41 -0800455 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of datafeeds.
456 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#datafeedsListResponse&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 &quot;resources&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 { # Datafeed configuration data.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800459 &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.
460 &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.
461 &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.
462 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
463 &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;
464 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
465 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
466 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
467 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
468 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
469 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
470 },
471 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
472 &quot;A String&quot;,
473 ],
474 &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;
475 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
476 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800477 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800478 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800479 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
480 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800481 &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
482 &quot;A String&quot;,
483 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800484 &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`.
485 &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.
486 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
487 &quot;A String&quot;,
488 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800490 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800491 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800492 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800493 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800494 &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;
495 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800496 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800497 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800498 },
Craig Citro065b5302014-08-14 00:47:23 -0700499 ],
500 }</pre>
501</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 Bot0d561ef2020-11-25 07:50:41 -0800528 &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.
529 &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.
530 &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.
531 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
532 &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;
533 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
534 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
535 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
536 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
537 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
538 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
539 },
540 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
541 &quot;A String&quot;,
542 ],
543 &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;
544 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
545 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800546 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800547 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800548 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
549 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800550 &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
551 &quot;A String&quot;,
552 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800553 &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`.
554 &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.
555 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
556 &quot;A String&quot;,
557 ],
Craig Citro065b5302014-08-14 00:47:23 -0700558 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800559 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800560 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800561 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800562 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800563 &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;
564 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800565 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800566 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800567}
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 Bot0d561ef2020-11-25 07:50:41 -0800579 &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.
580 &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.
581 &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.
582 &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
583 &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;
584 &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
585 &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
586 &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
587 &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
588 &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
589 &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
590 },
591 &quot;intendedDestinations&quot;: [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center).
592 &quot;A String&quot;,
593 ],
594 &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;
595 &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
596 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800597 &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800598 &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800599 &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
600 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800601 &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
602 &quot;A String&quot;,
603 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800604 &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`.
605 &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.
606 &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
607 &quot;A String&quot;,
608 ],
Craig Citro065b5302014-08-14 00:47:23 -0700609 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800610 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800611 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800612 &quot;format&quot;: { # Format of the feed file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800613 &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;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800614 &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;
615 &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;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800616 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800617 &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800618 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700619</div>
620
621</body></html>