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.html">Content API for Shopping</a> . <a href="content_v2.datafeeds.html">datafeeds</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 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, dryRun=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, dryRun=None, 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, dryRun=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.</p> 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, dryRun=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, dryRun=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, dryRun=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 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 125 "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`" 126 "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. 127 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 128 "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. 129 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 130 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 131 "password": "A String", # An optional password for fetch_url. 132 "paused": True or False, # Whether the scheduled fetch is paused or not. 133 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 134 "username": "A String", # An optional user name for fetch_url. 135 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 136 }, 137 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 138 "format": { # Format of the feed file. 139 "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`" 140 "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`" 141 "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`" 142 }, 143 "id": "A String", # Required for update. The ID of the data feed. 144 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 145 "A String", 146 ], 147 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 148 "name": "A String", # Required for insert. A descriptive name of the data feed. 149 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 150 "targets": [ # The targets this feed should apply to (country, language, destinations). 151 { 152 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 153 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 154 "A String", 155 ], 156 "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 157 "A String", 158 ], 159 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. 160 }, 161 ], 162 }, 163 "datafeedId": "A String", # The ID of the data feed to get, delete or fetch. 164 "merchantId": "A String", # The ID of the managing account. 165 "method": "A String", # The method of the batch entry. Acceptable values are: - "`delete`" - "`fetchNow`" - "`get`" - "`insert`" - "`update`" 166 }, 167 ], 168} 169 170 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). 171 x__xgafv: string, V1 error format. 172 Allowed values 173 1 - v1 error format 174 2 - v2 error format 175 176Returns: 177 An object of the form: 178 179 { 180 "entries": [ # The result of the execution of the batch requests. 181 { # A batch entry encoding a single non-batch datafeeds response. 182 "batchId": 42, # The ID of the request entry this entry responds to. 183 "datafeed": { # Datafeed configuration data. # The requested data feed. Defined if and only if the request was successful. 184 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 185 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 186 "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`" 187 "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. 188 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 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 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 191 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 192 "password": "A String", # An optional password for fetch_url. 193 "paused": True or False, # Whether the scheduled fetch is paused or not. 194 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 195 "username": "A String", # An optional user name for fetch_url. 196 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 197 }, 198 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 199 "format": { # Format of the feed file. 200 "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`" 201 "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`" 202 "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`" 203 }, 204 "id": "A String", # Required for update. The ID of the data feed. 205 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 206 "A String", 207 ], 208 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 209 "name": "A String", # Required for insert. A descriptive name of the data feed. 210 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 211 "targets": [ # The targets this feed should apply to (country, language, destinations). 212 { 213 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 214 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 215 "A String", 216 ], 217 "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 218 "A String", 219 ], 220 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. 221 }, 222 ], 223 }, 224 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed. 225 "code": 42, # The HTTP status of the first error in `errors`. 226 "errors": [ # A list of errors. 227 { # An error returned by the API. 228 "domain": "A String", # The domain of the error. 229 "message": "A String", # A description of the error. 230 "reason": "A String", # The error code. 231 }, 232 ], 233 "message": "A String", # The message of the first error in `errors`. 234 }, 235 }, 236 ], 237 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsCustomBatchResponse". 238}</pre> 239</div> 240 241<div class="method"> 242 <code class="details" id="delete">delete(merchantId, datafeedId, dryRun=None, x__xgafv=None)</code> 243 <pre>Deletes a datafeed configuration from your Merchant Center account. 244 245Args: 246 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required) 247 datafeedId: string, The ID of the datafeed. (required) 248 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). 249 x__xgafv: string, V1 error format. 250 Allowed values 251 1 - v1 error format 252 2 - v2 error format 253</pre> 254</div> 255 256<div class="method"> 257 <code class="details" id="fetchnow">fetchnow(merchantId, datafeedId, dryRun=None, x__xgafv=None)</code> 258 <pre>Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data. 259 260Args: 261 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required) 262 datafeedId: string, The ID of the datafeed to be fetched. (required) 263 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). 264 x__xgafv: string, V1 error format. 265 Allowed values 266 1 - v1 error format 267 2 - v2 error format 268 269Returns: 270 An object of the form: 271 272 { 273 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsFetchNowResponse". 274}</pre> 275</div> 276 277<div class="method"> 278 <code class="details" id="get">get(merchantId, datafeedId, x__xgafv=None)</code> 279 <pre>Retrieves a datafeed configuration from your Merchant Center account. 280 281Args: 282 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required) 283 datafeedId: string, The ID of the datafeed. (required) 284 x__xgafv: string, V1 error format. 285 Allowed values 286 1 - v1 error format 287 2 - v2 error format 288 289Returns: 290 An object of the form: 291 292 { # Datafeed configuration data. 293 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 294 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 295 "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`" 296 "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. 297 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 298 "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. 299 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 300 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 301 "password": "A String", # An optional password for fetch_url. 302 "paused": True or False, # Whether the scheduled fetch is paused or not. 303 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 304 "username": "A String", # An optional user name for fetch_url. 305 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 306 }, 307 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 308 "format": { # Format of the feed file. 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. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" 310 "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`" 311 "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`" 312 }, 313 "id": "A String", # Required for update. The ID of the data feed. 314 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 315 "A String", 316 ], 317 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 318 "name": "A String", # Required for insert. A descriptive name of the data feed. 319 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 320 "targets": [ # The targets this feed should apply to (country, language, destinations). 321 { 322 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 323 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 324 "A String", 325 ], 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 `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle 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 }, 331 ], 332}</pre> 333</div> 334 335<div class="method"> 336 <code class="details" id="insert">insert(merchantId, body=None, dryRun=None, x__xgafv=None)</code> 337 <pre>Registers a datafeed configuration with your Merchant Center account. 338 339Args: 340 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required) 341 body: object, The request body. 342 The object takes the form of: 343 344{ # Datafeed configuration data. 345 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 346 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 347 "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`" 348 "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. 349 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 350 "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. 351 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 352 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 353 "password": "A String", # An optional password for fetch_url. 354 "paused": True or False, # Whether the scheduled fetch is paused or not. 355 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 356 "username": "A String", # An optional user name for fetch_url. 357 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 358 }, 359 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 360 "format": { # Format of the feed file. 361 "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`" 362 "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`" 363 "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`" 364 }, 365 "id": "A String", # Required for update. The ID of the data feed. 366 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 367 "A String", 368 ], 369 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 370 "name": "A String", # Required for insert. A descriptive name of the data feed. 371 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 372 "targets": [ # The targets this feed should apply to (country, language, destinations). 373 { 374 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 375 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 376 "A String", 377 ], 378 "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 379 "A String", 380 ], 381 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. 382 }, 383 ], 384} 385 386 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). 387 x__xgafv: string, V1 error format. 388 Allowed values 389 1 - v1 error format 390 2 - v2 error format 391 392Returns: 393 An object of the form: 394 395 { # Datafeed configuration data. 396 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 397 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 398 "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`" 399 "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. 400 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 401 "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. 402 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 403 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 404 "password": "A String", # An optional password for fetch_url. 405 "paused": True or False, # Whether the scheduled fetch is paused or not. 406 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 407 "username": "A String", # An optional user name for fetch_url. 408 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 409 }, 410 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 411 "format": { # Format of the feed file. 412 "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`" 413 "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`" 414 "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`" 415 }, 416 "id": "A String", # Required for update. The ID of the data feed. 417 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 418 "A String", 419 ], 420 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 421 "name": "A String", # Required for insert. A descriptive name of the data feed. 422 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 423 "targets": [ # The targets this feed should apply to (country, language, destinations). 424 { 425 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 426 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 427 "A String", 428 ], 429 "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 430 "A String", 431 ], 432 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. 433 }, 434 ], 435}</pre> 436</div> 437 438<div class="method"> 439 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</code> 440 <pre>Lists the configurations for datafeeds in your Merchant Center account. 441 442Args: 443 merchantId: string, The ID of the account that manages the datafeeds. This account cannot be a multi-client account. (required) 444 maxResults: integer, The maximum number of products to return in the response, used for paging. 445 pageToken: string, The token returned by the previous request. 446 x__xgafv: string, V1 error format. 447 Allowed values 448 1 - v1 error format 449 2 - v2 error format 450 451Returns: 452 An object of the form: 453 454 { 455 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "content#datafeedsListResponse". 456 "nextPageToken": "A String", # The token for the retrieval of the next page of datafeeds. 457 "resources": [ 458 { # Datafeed configuration data. 459 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 460 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 461 "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`" 462 "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. 463 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 464 "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. 465 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 466 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 467 "password": "A String", # An optional password for fetch_url. 468 "paused": True or False, # Whether the scheduled fetch is paused or not. 469 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 470 "username": "A String", # An optional user name for fetch_url. 471 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 472 }, 473 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 474 "format": { # Format of the feed file. 475 "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`" 476 "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`" 477 "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`" 478 }, 479 "id": "A String", # Required for update. The ID of the data feed. 480 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 481 "A String", 482 ], 483 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 484 "name": "A String", # Required for insert. A descriptive name of the data feed. 485 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 486 "targets": [ # The targets this feed should apply to (country, language, destinations). 487 { 488 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 489 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 490 "A String", 491 ], 492 "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 493 "A String", 494 ], 495 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. 496 }, 497 ], 498 }, 499 ], 500}</pre> 501</div> 502 503<div class="method"> 504 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 505 <pre>Retrieves the next page of results. 506 507Args: 508 previous_request: The request for the previous page. (required) 509 previous_response: The response from the request for the previous page. (required) 510 511Returns: 512 A request object that you can call 'execute()' on to request the next 513 page. Returns None if there are no more items in the collection. 514 </pre> 515</div> 516 517<div class="method"> 518 <code class="details" id="update">update(merchantId, datafeedId, body=None, dryRun=None, x__xgafv=None)</code> 519 <pre>Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource. 520 521Args: 522 merchantId: string, The ID of the account that manages the datafeed. This account cannot be a multi-client account. (required) 523 datafeedId: string, The ID of the datafeed. (required) 524 body: object, The request body. 525 The object takes the form of: 526 527{ # Datafeed configuration data. 528 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 529 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 530 "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`" 531 "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. 532 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 533 "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. 534 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 535 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 536 "password": "A String", # An optional password for fetch_url. 537 "paused": True or False, # Whether the scheduled fetch is paused or not. 538 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 539 "username": "A String", # An optional user name for fetch_url. 540 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 541 }, 542 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 543 "format": { # Format of the feed file. 544 "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`" 545 "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`" 546 "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`" 547 }, 548 "id": "A String", # Required for update. The ID of the data feed. 549 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 550 "A String", 551 ], 552 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 553 "name": "A String", # Required for insert. A descriptive name of the data feed. 554 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 555 "targets": [ # The targets this feed should apply to (country, language, destinations). 556 { 557 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 558 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 559 "A String", 560 ], 561 "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 562 "A String", 563 ], 564 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. 565 }, 566 ], 567} 568 569 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). 570 x__xgafv: string, V1 error format. 571 Allowed values 572 1 - v1 error format 573 2 - v2 error format 574 575Returns: 576 An object of the form: 577 578 { # Datafeed configuration data. 579 "attributeLanguage": "A String", # The two-letter ISO 639-1 language in which the attributes are defined in the data feed. 580 "contentLanguage": "A String", # [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targetCountry`. 581 "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`" 582 "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. 583 "dayOfMonth": 42, # The day of the month the feed file should be fetched (1-31). 584 "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. 585 "hour": 42, # The hour of the day the feed file should be fetched (0-23). 586 "minuteOfHour": 42, # The minute of the hour the feed file should be fetched (0-59). Read-only. 587 "password": "A String", # An optional password for fetch_url. 588 "paused": True or False, # Whether the scheduled fetch is paused or not. 589 "timeZone": "A String", # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". 590 "username": "A String", # An optional user name for fetch_url. 591 "weekday": "A String", # The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" 592 }, 593 "fileName": "A String", # Required. The filename of the feed. All feeds must have a unique file name. 594 "format": { # Format of the feed file. 595 "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`" 596 "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`" 597 "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`" 598 }, 599 "id": "A String", # Required for update. The ID of the data feed. 600 "intendedDestinations": [ # [DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations (corresponds to checked check boxes in Merchant Center). 601 "A String", 602 ], 603 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`" 604 "name": "A String", # Required for insert. A descriptive name of the data feed. 605 "targetCountry": "A String", # [DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 606 "targets": [ # The targets this feed should apply to (country, language, destinations). 607 { 608 "country": "A String", # The country where the items in the feed will be included in the search index, represented as a CLDR territory code. 609 "excludedDestinations": [ # The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). 610 "A String", 611 ], 612 "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 613 "A String", 614 ], 615 "language": "A String", # The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. 616 }, 617 ], 618}</pre> 619</div> 620 621</body></html>