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 "entries": [ # The request entries to be processed in the batch. 120 { # A batch entry encoding a single non-batch datafeeds request. 121 "batchId": 42, # An entry ID, unique within the batch request. 122 "datafeed": { # Datafeed configuration data. # The data feed to insert. 123 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 124 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 125 "fetchSchedule": { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file. 126 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 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 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 129 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 130 "password": "A String", # An optional password for fetch_url. 131 "paused": True or False, # Whether the scheduled fetch is paused or not. 132 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 133 "username": "A String", # An optional user name for fetch_url. 134 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 135 }, 136 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 137 "format": { # Format of the feed file. 138 "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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 139 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 140 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 141 }, 142 "id": "A String", # Required for update. The ID of the data feed. 143 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 144 "name": "A String", # Required for insert. A descriptive name of the data feed. 145 "targets": [ # The targets this feed should apply to (country, language, destinations). 146 { 147 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 148 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 149 "A String", 150 ], 151 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 152 "A String", 153 ], 154 "language": "A String", # 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 "datafeedId": "A String", # The ID of the data feed to get, delete or fetch. 159 "merchantId": "A String", # The ID of the managing account. 160 "method": "A String", # The method of the batch entry. Acceptable values are: - "`delete`" - "`fetchNow`" - "`get`" - "`insert`" - "`update`" 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 "entries": [ # The result of the execution of the batch requests. 175 { # A batch entry encoding a single non-batch datafeeds response. 176 "batchId": 42, # The ID of the request entry this entry responds to. 177 "datafeed": { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful. 178 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 179 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 180 "fetchSchedule": { # The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. # Fetch schedule for the feed file. 181 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 182 "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. 183 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 184 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 185 "password": "A String", # An optional password for fetch_url. 186 "paused": True or False, # Whether the scheduled fetch is paused or not. 187 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 188 "username": "A String", # An optional user name for fetch_url. 189 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 190 }, 191 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 192 "format": { # Format of the feed file. 193 "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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 194 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 195 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 196 }, 197 "id": "A String", # Required for update. The ID of the data feed. 198 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 199 "name": "A String", # Required for insert. A descriptive name of the data feed. 200 "targets": [ # The targets this feed should apply to (country, language, destinations). 201 { 202 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 203 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 204 "A String", 205 ], 206 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 207 "A String", 208 ], 209 "language": "A String", # 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 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed. 214 "code": 42, # The HTTP status of the first error in `errors`. 215 "errors": [ # A list of errors. 216 { # An error returned by the API. 217 "domain": "A String", # The domain of the error. 218 "message": "A String", # A description of the error. 219 "reason": "A String", # The error code. 220 }, 221 ], 222 "message": "A String", # The message of the first error in `errors`. 223 }, 224 }, 225 ], 226 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeedsCustomBatchResponse`". 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 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeedsFetchNowResponse`". 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 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 281 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 282 "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. 283 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 284 "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. 285 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 286 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 287 "password": "A String", # An optional password for fetch_url. 288 "paused": True or False, # Whether the scheduled fetch is paused or not. 289 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 290 "username": "A String", # An optional user name for fetch_url. 291 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 292 }, 293 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 294 "format": { # Format of the feed file. 295 "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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 296 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 297 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 298 }, 299 "id": "A String", # Required for update. The ID of the data feed. 300 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 301 "name": "A String", # Required for insert. A descriptive name of the data feed. 302 "targets": [ # The targets this feed should apply to (country, language, destinations). 303 { 304 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 305 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 306 "A String", 307 ], 308 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 309 "A String", 310 ], 311 "language": "A String", # 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 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 328 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 329 "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. 330 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 331 "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. 332 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 333 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 334 "password": "A String", # An optional password for fetch_url. 335 "paused": True or False, # Whether the scheduled fetch is paused or not. 336 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 337 "username": "A String", # An optional user name for fetch_url. 338 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 339 }, 340 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 341 "format": { # Format of the feed file. 342 "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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 343 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 344 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 345 }, 346 "id": "A String", # Required for update. The ID of the data feed. 347 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 348 "name": "A String", # Required for insert. A descriptive name of the data feed. 349 "targets": [ # The targets this feed should apply to (country, language, destinations). 350 { 351 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 352 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 353 "A String", 354 ], 355 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 356 "A String", 357 ], 358 "language": "A String", # 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 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 373 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 374 "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. 375 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 376 "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. 377 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 378 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 379 "password": "A String", # An optional password for fetch_url. 380 "paused": True or False, # Whether the scheduled fetch is paused or not. 381 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 382 "username": "A String", # An optional user name for fetch_url. 383 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 384 }, 385 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 386 "format": { # Format of the feed file. 387 "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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 388 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 389 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 390 }, 391 "id": "A String", # Required for update. The ID of the data feed. 392 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 393 "name": "A String", # Required for insert. A descriptive name of the data feed. 394 "targets": [ # The targets this feed should apply to (country, language, destinations). 395 { 396 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 397 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 398 "A String", 399 ], 400 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 401 "A String", 402 ], 403 "language": "A String", # 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 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeedsListResponse`". 427 "nextPageToken": "A String", # The token for the retrieval of the next page of datafeeds. 428 "resources": [ 429 { # Datafeed configuration data. 430 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 431 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 432 "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. 433 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 434 "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. 435 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 436 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 437 "password": "A String", # An optional password for fetch_url. 438 "paused": True or False, # Whether the scheduled fetch is paused or not. 439 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 440 "username": "A String", # An optional user name for fetch_url. 441 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 442 }, 443 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 444 "format": { # Format of the feed file. 445 "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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 446 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 447 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 448 }, 449 "id": "A String", # Required for update. The ID of the data feed. 450 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 451 "name": "A String", # Required for insert. A descriptive name of the data feed. 452 "targets": [ # The targets this feed should apply to (country, language, destinations). 453 { 454 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 455 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 456 "A String", 457 ], 458 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 459 "A String", 460 ], 461 "language": "A String", # 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 'execute()' 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 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 495 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 496 "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. 497 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 498 "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. 499 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 500 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 501 "password": "A String", # An optional password for fetch_url. 502 "paused": True or False, # Whether the scheduled fetch is paused or not. 503 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 504 "username": "A String", # An optional user name for fetch_url. 505 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 506 }, 507 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 508 "format": { # Format of the feed file. 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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 510 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 511 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 512 }, 513 "id": "A String", # Required for update. The ID of the data feed. 514 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 515 "name": "A String", # Required for insert. A descriptive name of the data feed. 516 "targets": [ # The targets this feed should apply to (country, language, destinations). 517 { 518 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 519 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 520 "A String", 521 ], 522 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 523 "A String", 524 ], 525 "language": "A String", # 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 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 540 "contentType": "A String", # Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" 541 "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. 542 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 543 "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. 544 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 545 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 546 "password": "A String", # An optional password for fetch_url. 547 "paused": True or False, # Whether the scheduled fetch is paused or not. 548 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 549 "username": "A String", # An optional user name for fetch_url. 550 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 551 }, 552 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 553 "format": { # Format of the feed file. 554 "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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 555 "fileEncoding": "A String", # Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" 556 "quotingMode": "A String", # Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" 557 }, 558 "id": "A String", # Required for update. The ID of the data feed. 559 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 560 "name": "A String", # Required for insert. A descriptive name of the data feed. 561 "targets": [ # The targets this feed should apply to (country, language, destinations). 562 { 563 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 564 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 565 "A String", 566 ], 567 "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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 568 "A String", 569 ], 570 "language": "A String", # 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>