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