1<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_1.html">Content API for Shopping</a> . <a href="content_v2_1.datafeeds.html">datafeeds</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#custombatch">custombatch(body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.</p>
83<p class="toc_element">
84  <code><a href="#delete">delete(merchantId, datafeedId, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a datafeed configuration from your Merchant Center account.</p>
86<p class="toc_element">
87  <code><a href="#fetchnow">fetchnow(merchantId, datafeedId, 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>
89<p class="toc_element">
90  <code><a href="#get">get(merchantId, datafeedId, x__xgafv=None)</a></code></p>
91<p class="firstline">Retrieves a datafeed configuration from your Merchant Center account.</p>
92<p class="toc_element">
93  <code><a href="#insert">insert(merchantId, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Registers a datafeed configuration with your Merchant Center account.</p>
95<p class="toc_element">
96  <code><a href="#list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Lists the configurations for datafeeds in your Merchant Center account.</p>
98<p class="toc_element">
99  <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">
102  <code><a href="#update">update(merchantId, datafeedId, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.</p>
104<h3>Method Details</h3>
105<div class="method">
106    <code class="details" id="close">close()</code>
107  <pre>Close httplib2 connections.</pre>
108</div>
109
110<div class="method">
111    <code class="details" id="custombatch">custombatch(body=None, x__xgafv=None)</code>
112  <pre>Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
113
114Args:
115  body: object, The request body.
116    The object takes the form of:
117
118{
119  &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;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;
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;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
127          &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.
128          &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
129          &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
130          &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
131          &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
132          &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
133          &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
134          &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;
135        },
136        &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
137        &quot;format&quot;: { # Format of the feed file.
138          &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;
139          &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;
140          &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;
141        },
142        &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
143        &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
144        &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
145        &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
146          {
147            &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.
148            &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
149              &quot;A String&quot;,
150            ],
151            &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
152              &quot;A String&quot;,
153            ],
154            &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`.
155          },
156        ],
157      },
158      &quot;datafeedId&quot;: &quot;A String&quot;, # The ID of the data feed to get, delete or fetch.
159      &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
160      &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;
161    },
162  ],
163}
164
165  x__xgafv: string, V1 error format.
166    Allowed values
167      1 - v1 error format
168      2 - v2 error format
169
170Returns:
171  An object of the form:
172
173    {
174  &quot;entries&quot;: [ # The result of the execution of the batch requests.
175    { # A batch entry encoding a single non-batch datafeeds response.
176      &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
177      &quot;datafeed&quot;: { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful.
178        &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
179        &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;
180        &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.
181          &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
182          &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.
183          &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
184          &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
185          &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
186          &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
187          &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
188          &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
189          &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;
190        },
191        &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
192        &quot;format&quot;: { # Format of the feed file.
193          &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;
194          &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;
195          &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;
196        },
197        &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
198        &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
199        &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
200        &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
201          {
202            &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.
203            &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
204              &quot;A String&quot;,
205            ],
206            &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
207              &quot;A String&quot;,
208            ],
209            &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`.
210          },
211        ],
212      },
213      &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.
214        &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
215        &quot;errors&quot;: [ # A list of errors.
216          { # An error returned by the API.
217            &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
218            &quot;message&quot;: &quot;A String&quot;, # A description of the error.
219            &quot;reason&quot;: &quot;A String&quot;, # The error code.
220          },
221        ],
222        &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
223      },
224    },
225  ],
226  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeedsCustomBatchResponse`&quot;.
227}</pre>
228</div>
229
230<div class="method">
231    <code class="details" id="delete">delete(merchantId, datafeedId, x__xgafv=None)</code>
232  <pre>Deletes a datafeed configuration from your Merchant Center account.
233
234Args:
235  merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
236  datafeedId: string, The ID of the datafeed. (required)
237  x__xgafv: string, V1 error format.
238    Allowed values
239      1 - v1 error format
240      2 - v2 error format
241</pre>
242</div>
243
244<div class="method">
245    <code class="details" id="fetchnow">fetchnow(merchantId, datafeedId, x__xgafv=None)</code>
246  <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.
247
248Args:
249  merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
250  datafeedId: string, The ID of the datafeed to be fetched. (required)
251  x__xgafv: string, V1 error format.
252    Allowed values
253      1 - v1 error format
254      2 - v2 error format
255
256Returns:
257  An object of the form:
258
259    {
260  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeedsFetchNowResponse`&quot;.
261}</pre>
262</div>
263
264<div class="method">
265    <code class="details" id="get">get(merchantId, datafeedId, x__xgafv=None)</code>
266  <pre>Retrieves a datafeed configuration from your Merchant Center account.
267
268Args:
269  merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
270  datafeedId: string, The ID of the datafeed. (required)
271  x__xgafv: string, V1 error format.
272    Allowed values
273      1 - v1 error format
274      2 - v2 error format
275
276Returns:
277  An object of the form:
278
279    { # Datafeed configuration data.
280  &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
281  &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;
282  &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.
283    &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
284    &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.
285    &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
286    &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
287    &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
288    &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
289    &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
290    &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
291    &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;
292  },
293  &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
294  &quot;format&quot;: { # Format of the feed file.
295    &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;
296    &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;
297    &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;
298  },
299  &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
300  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
301  &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
302  &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
303    {
304      &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.
305      &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
306        &quot;A String&quot;,
307      ],
308      &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
309        &quot;A String&quot;,
310      ],
311      &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`.
312    },
313  ],
314}</pre>
315</div>
316
317<div class="method">
318    <code class="details" id="insert">insert(merchantId, body=None, x__xgafv=None)</code>
319  <pre>Registers a datafeed configuration with your Merchant Center account.
320
321Args:
322  merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
323  body: object, The request body.
324    The object takes the form of:
325
326{ # Datafeed configuration data.
327  &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
328  &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;
329  &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.
330    &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
331    &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.
332    &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
333    &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
334    &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
335    &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
336    &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
337    &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
338    &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;
339  },
340  &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
341  &quot;format&quot;: { # Format of the feed file.
342    &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;
343    &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;
344    &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;
345  },
346  &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
347  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
348  &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
349  &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
350    {
351      &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.
352      &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
353        &quot;A String&quot;,
354      ],
355      &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
356        &quot;A String&quot;,
357      ],
358      &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`.
359    },
360  ],
361}
362
363  x__xgafv: string, V1 error format.
364    Allowed values
365      1 - v1 error format
366      2 - v2 error format
367
368Returns:
369  An object of the form:
370
371    { # Datafeed configuration data.
372  &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
373  &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;
374  &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.
375    &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
376    &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.
377    &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
378    &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
379    &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
380    &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
381    &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
382    &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
383    &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;
384  },
385  &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
386  &quot;format&quot;: { # Format of the feed file.
387    &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;
388    &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;
389    &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;
390  },
391  &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
392  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
393  &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
394  &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
395    {
396      &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.
397      &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
398        &quot;A String&quot;,
399      ],
400      &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
401        &quot;A String&quot;,
402      ],
403      &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`.
404    },
405  ],
406}</pre>
407</div>
408
409<div class="method">
410    <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</code>
411  <pre>Lists the configurations for datafeeds in your Merchant Center account.
412
413Args:
414  merchantId: string, The ID of the account that manages the datafeeds. This account cannot be a multi-client account. (required)
415  maxResults: integer, The maximum number of products to return in the response, used for paging.
416  pageToken: string, The token returned by the previous request.
417  x__xgafv: string, V1 error format.
418    Allowed values
419      1 - v1 error format
420      2 - v2 error format
421
422Returns:
423  An object of the form:
424
425    {
426  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeedsListResponse`&quot;.
427  &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of datafeeds.
428  &quot;resources&quot;: [
429    { # Datafeed configuration data.
430      &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
431      &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;
432      &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.
433        &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
434        &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.
435        &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
436        &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
437        &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
438        &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
439        &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
440        &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
441        &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;
442      },
443      &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
444      &quot;format&quot;: { # Format of the feed file.
445        &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;
446        &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;
447        &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;
448      },
449      &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
450      &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
451      &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
452      &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
453        {
454          &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.
455          &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
456            &quot;A String&quot;,
457          ],
458          &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
459            &quot;A String&quot;,
460          ],
461          &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`.
462        },
463      ],
464    },
465  ],
466}</pre>
467</div>
468
469<div class="method">
470    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
471  <pre>Retrieves the next page of results.
472
473Args:
474  previous_request: The request for the previous page. (required)
475  previous_response: The response from the request for the previous page. (required)
476
477Returns:
478  A request object that you can call &#x27;execute()&#x27; on to request the next
479  page. Returns None if there are no more items in the collection.
480    </pre>
481</div>
482
483<div class="method">
484    <code class="details" id="update">update(merchantId, datafeedId, body=None, x__xgafv=None)</code>
485  <pre>Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.
486
487Args:
488  merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required)
489  datafeedId: string, The ID of the datafeed. (required)
490  body: object, The request body.
491    The object takes the form of:
492
493{ # Datafeed configuration data.
494  &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
495  &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;
496  &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.
497    &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
498    &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.
499    &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
500    &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
501    &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
502    &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
503    &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
504    &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
505    &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;
506  },
507  &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
508  &quot;format&quot;: { # Format of the feed file.
509    &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;
510    &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;
511    &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;
512  },
513  &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
514  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
515  &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
516  &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
517    {
518      &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.
519      &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
520        &quot;A String&quot;,
521      ],
522      &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
523        &quot;A String&quot;,
524      ],
525      &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`.
526    },
527  ],
528}
529
530  x__xgafv: string, V1 error format.
531    Allowed values
532      1 - v1 error format
533      2 - v2 error format
534
535Returns:
536  An object of the form:
537
538    { # Datafeed configuration data.
539  &quot;attributeLanguage&quot;: &quot;A String&quot;, # The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
540  &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;
541  &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.
542    &quot;dayOfMonth&quot;: 42, # The day of the month the feed file should be fetched (1-31).
543    &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.
544    &quot;hour&quot;: 42, # The hour of the day the feed file should be fetched (0-23).
545    &quot;minuteOfHour&quot;: 42, # The minute of the hour the feed file should be fetched (0-59). Read-only.
546    &quot;password&quot;: &quot;A String&quot;, # An optional password for fetch_url.
547    &quot;paused&quot;: True or False, # Whether the scheduled fetch is paused or not.
548    &quot;timeZone&quot;: &quot;A String&quot;, # Time zone used for schedule. UTC by default. E.g., &quot;America/Los_Angeles&quot;.
549    &quot;username&quot;: &quot;A String&quot;, # An optional user name for fetch_url.
550    &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;
551  },
552  &quot;fileName&quot;: &quot;A String&quot;, # Required. The filename of the feed. All feeds must have a unique file name.
553  &quot;format&quot;: { # Format of the feed file.
554    &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;
555    &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;
556    &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;
557  },
558  &quot;id&quot;: &quot;A String&quot;, # Required for update. The ID of the data feed.
559  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#datafeed`&quot;
560  &quot;name&quot;: &quot;A String&quot;, # Required for insert. A descriptive name of the data feed.
561  &quot;targets&quot;: [ # The targets this feed should apply to (country, language, destinations).
562    {
563      &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.
564      &quot;excludedDestinations&quot;: [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).
565        &quot;A String&quot;,
566      ],
567      &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
568        &quot;A String&quot;,
569      ],
570      &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`.
571    },
572  ],
573}</pre>
574</div>
575
576</body></html>