Close httplib2 connections.
Deletes merchant review.
Gets a merchant review.
insert(parent, body=None, dataSource=None, x__xgafv=None)
Inserts a review for your Merchant Center account. If the review already exists, then the review is replaced with the new instance.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists merchant reviews.
Retrieves the next page of results.
close()
Close httplib2 connections.
delete(name, x__xgafv=None)
Deletes merchant review. Args: name: string, Required. The ID of the merchant review. Format: accounts/{account}/merchantReviews/{merchantReview} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } }
get(name, x__xgafv=None)
Gets a merchant review. Args: name: string, Required. The ID of the merchant review. Format: accounts/{account}/merchantReviews/{merchantReview} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A review for a merchant. For more information, see [Introduction to Merchant Review Feeds](https://developers.google.com/merchant-review-feeds) "attributes": { # Attributes. # Optional. A list of merchant review attributes. "collectionMethod": "A String", # Optional. The method used to collect the review. "content": "A String", # Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered. "isAnonymous": True or False, # Optional. Set to true if the reviewer should remain anonymous. "maxRating": "A String", # Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating. "merchantDisplayName": "A String", # Optional. Human-readable display name for the merchant. "merchantId": "A String", # Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id. "merchantLink": "A String", # Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site. "merchantRatingLink": "A String", # Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL. "minRating": "A String", # Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating. "rating": 3.14, # Optional. The reviewer's overall rating of the merchant. "reviewCountry": "A String", # Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code. "reviewLanguage": "A String", # Required. The language of the review defined by BCP-47 language code. "reviewTime": "A String", # Required. The timestamp indicating when the review was written. "reviewerId": "A String", # Optional. A permanent, unique identifier for the author of the review in the publisher's system. "reviewerUsername": "A String", # Optional. Display name of the review author. "title": "A String", # Optional. The title of the review. }, "customAttributes": [ # Required. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" }`). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion. { # A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty. "groupValues": [ # Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty. # Object with schema name: CustomAttribute ], "name": "A String", # The name of the attribute. "value": "A String", # The value of the attribute. If `value` is not empty, `group_values` must be empty. }, ], "dataSource": "A String", # Output only. The primary data source of the merchant review. "merchantReviewId": "A String", # Required. The user provided merchant review ID to uniquely identify the merchant review. "merchantReviewStatus": { # The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. # Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. "createTime": "A String", # Output only. Date on which the item has been created, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. "destinationStatuses": [ # Output only. The intended destinations for the merchant review. { # The destination status of the merchant review status. "reportingContext": "A String", # Output only. The name of the reporting context. }, ], "itemLevelIssues": [ # Output only. A list of all issues associated with the merchant review. { # The ItemLevelIssue of the merchant review status. "attribute": "A String", # Output only. The attribute's name, if the issue is caused by a single attribute. "code": "A String", # Output only. The error code of the issue. "description": "A String", # Output only. A short issue description in English. "detail": "A String", # Output only. A detailed issue description in English. "documentation": "A String", # Output only. The URL of a web page to help with resolving this issue. "reportingContext": "A String", # Output only. The reporting context the issue applies to. "resolution": "A String", # Output only. Whether the issue can be resolved by the merchant. "severity": "A String", # Output only. How this issue affects serving of the merchant review. }, ], "lastUpdateTime": "A String", # Output only. Date on which the item has been last updated, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. }, "name": "A String", # Identifier. The name of the merchant review. Format: `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` }
insert(parent, body=None, dataSource=None, x__xgafv=None)
Inserts a review for your Merchant Center account. If the review already exists, then the review is replaced with the new instance. Args: parent: string, Required. The account where the merchant review will be inserted. Format: accounts/{account} (required) body: object, The request body. The object takes the form of: { # A review for a merchant. For more information, see [Introduction to Merchant Review Feeds](https://developers.google.com/merchant-review-feeds) "attributes": { # Attributes. # Optional. A list of merchant review attributes. "collectionMethod": "A String", # Optional. The method used to collect the review. "content": "A String", # Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered. "isAnonymous": True or False, # Optional. Set to true if the reviewer should remain anonymous. "maxRating": "A String", # Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating. "merchantDisplayName": "A String", # Optional. Human-readable display name for the merchant. "merchantId": "A String", # Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id. "merchantLink": "A String", # Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site. "merchantRatingLink": "A String", # Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL. "minRating": "A String", # Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating. "rating": 3.14, # Optional. The reviewer's overall rating of the merchant. "reviewCountry": "A String", # Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code. "reviewLanguage": "A String", # Required. The language of the review defined by BCP-47 language code. "reviewTime": "A String", # Required. The timestamp indicating when the review was written. "reviewerId": "A String", # Optional. A permanent, unique identifier for the author of the review in the publisher's system. "reviewerUsername": "A String", # Optional. Display name of the review author. "title": "A String", # Optional. The title of the review. }, "customAttributes": [ # Required. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" }`). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion. { # A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty. "groupValues": [ # Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty. # Object with schema name: CustomAttribute ], "name": "A String", # The name of the attribute. "value": "A String", # The value of the attribute. If `value` is not empty, `group_values` must be empty. }, ], "dataSource": "A String", # Output only. The primary data source of the merchant review. "merchantReviewId": "A String", # Required. The user provided merchant review ID to uniquely identify the merchant review. "merchantReviewStatus": { # The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. # Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. "createTime": "A String", # Output only. Date on which the item has been created, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. "destinationStatuses": [ # Output only. The intended destinations for the merchant review. { # The destination status of the merchant review status. "reportingContext": "A String", # Output only. The name of the reporting context. }, ], "itemLevelIssues": [ # Output only. A list of all issues associated with the merchant review. { # The ItemLevelIssue of the merchant review status. "attribute": "A String", # Output only. The attribute's name, if the issue is caused by a single attribute. "code": "A String", # Output only. The error code of the issue. "description": "A String", # Output only. A short issue description in English. "detail": "A String", # Output only. A detailed issue description in English. "documentation": "A String", # Output only. The URL of a web page to help with resolving this issue. "reportingContext": "A String", # Output only. The reporting context the issue applies to. "resolution": "A String", # Output only. Whether the issue can be resolved by the merchant. "severity": "A String", # Output only. How this issue affects serving of the merchant review. }, ], "lastUpdateTime": "A String", # Output only. Date on which the item has been last updated, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. }, "name": "A String", # Identifier. The name of the merchant review. Format: `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` } dataSource: string, Required. The data source of the [merchantreview](https://support.google.com/merchants/answer/7045996?sjid=5253581244217581976-EU) Format: `accounts/{account}/dataSources/{datasource}`. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A review for a merchant. For more information, see [Introduction to Merchant Review Feeds](https://developers.google.com/merchant-review-feeds) "attributes": { # Attributes. # Optional. A list of merchant review attributes. "collectionMethod": "A String", # Optional. The method used to collect the review. "content": "A String", # Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered. "isAnonymous": True or False, # Optional. Set to true if the reviewer should remain anonymous. "maxRating": "A String", # Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating. "merchantDisplayName": "A String", # Optional. Human-readable display name for the merchant. "merchantId": "A String", # Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id. "merchantLink": "A String", # Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site. "merchantRatingLink": "A String", # Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL. "minRating": "A String", # Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating. "rating": 3.14, # Optional. The reviewer's overall rating of the merchant. "reviewCountry": "A String", # Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code. "reviewLanguage": "A String", # Required. The language of the review defined by BCP-47 language code. "reviewTime": "A String", # Required. The timestamp indicating when the review was written. "reviewerId": "A String", # Optional. A permanent, unique identifier for the author of the review in the publisher's system. "reviewerUsername": "A String", # Optional. Display name of the review author. "title": "A String", # Optional. The title of the review. }, "customAttributes": [ # Required. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" }`). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion. { # A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty. "groupValues": [ # Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty. # Object with schema name: CustomAttribute ], "name": "A String", # The name of the attribute. "value": "A String", # The value of the attribute. If `value` is not empty, `group_values` must be empty. }, ], "dataSource": "A String", # Output only. The primary data source of the merchant review. "merchantReviewId": "A String", # Required. The user provided merchant review ID to uniquely identify the merchant review. "merchantReviewStatus": { # The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. # Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. "createTime": "A String", # Output only. Date on which the item has been created, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. "destinationStatuses": [ # Output only. The intended destinations for the merchant review. { # The destination status of the merchant review status. "reportingContext": "A String", # Output only. The name of the reporting context. }, ], "itemLevelIssues": [ # Output only. A list of all issues associated with the merchant review. { # The ItemLevelIssue of the merchant review status. "attribute": "A String", # Output only. The attribute's name, if the issue is caused by a single attribute. "code": "A String", # Output only. The error code of the issue. "description": "A String", # Output only. A short issue description in English. "detail": "A String", # Output only. A detailed issue description in English. "documentation": "A String", # Output only. The URL of a web page to help with resolving this issue. "reportingContext": "A String", # Output only. The reporting context the issue applies to. "resolution": "A String", # Output only. Whether the issue can be resolved by the merchant. "severity": "A String", # Output only. How this issue affects serving of the merchant review. }, ], "lastUpdateTime": "A String", # Output only. Date on which the item has been last updated, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. }, "name": "A String", # Identifier. The name of the merchant review. Format: `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` }
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists merchant reviews. Args: parent: string, Required. The account to list merchant reviews for. Format: accounts/{account} (required) pageSize: integer, Optional. The maximum number of merchant reviews to return. The service can return fewer than this value. The maximum value is 1000; values above 1000 are coerced to 1000. If unspecified, the maximum number of reviews is returned. pageToken: string, Optional. A page token, received from a previous `ListMerchantReviews` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMerchantReviews` must match the call that provided the page token. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for the `ListMerchantsReview` method. "merchantReviews": [ # The merchant review. { # A review for a merchant. For more information, see [Introduction to Merchant Review Feeds](https://developers.google.com/merchant-review-feeds) "attributes": { # Attributes. # Optional. A list of merchant review attributes. "collectionMethod": "A String", # Optional. The method used to collect the review. "content": "A String", # Required. This should be any freeform text provided by the user and should not be truncated. If multiple responses to different questions are provided, all responses should be included, with the minimal context for the responses to make sense. Context should not be provided if questions were left unanswered. "isAnonymous": True or False, # Optional. Set to true if the reviewer should remain anonymous. "maxRating": "A String", # Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min rating. "merchantDisplayName": "A String", # Optional. Human-readable display name for the merchant. "merchantId": "A String", # Required. Must be unique and stable across all requests. In other words, if a request today and another 90 days ago refer to the same merchant, they must have the same id. "merchantLink": "A String", # Optional. URL to the merchant's main website. Do not use a redirect URL for this value. In other words, the value should point directly to the merchant's site. "merchantRatingLink": "A String", # Optional. URL to the landing page that hosts the reviews for this merchant. Do not use a redirect URL. "minRating": "A String", # Optional. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating. "rating": 3.14, # Optional. The reviewer's overall rating of the merchant. "reviewCountry": "A String", # Optional. The country where the reviewer made the order defined by ISO 3166-1 Alpha-2 Country Code. "reviewLanguage": "A String", # Required. The language of the review defined by BCP-47 language code. "reviewTime": "A String", # Required. The timestamp indicating when the review was written. "reviewerId": "A String", # Optional. A permanent, unique identifier for the author of the review in the publisher's system. "reviewerUsername": "A String", # Optional. Display name of the review author. "title": "A String", # Optional. The title of the review. }, "customAttributes": [ # Required. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" }`). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion. { # A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty. "groupValues": [ # Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty. # Object with schema name: CustomAttribute ], "name": "A String", # The name of the attribute. "value": "A String", # The value of the attribute. If `value` is not empty, `group_values` must be empty. }, ], "dataSource": "A String", # Output only. The primary data source of the merchant review. "merchantReviewId": "A String", # Required. The user provided merchant review ID to uniquely identify the merchant review. "merchantReviewStatus": { # The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. # Output only. The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously. "createTime": "A String", # Output only. Date on which the item has been created, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. "destinationStatuses": [ # Output only. The intended destinations for the merchant review. { # The destination status of the merchant review status. "reportingContext": "A String", # Output only. The name of the reporting context. }, ], "itemLevelIssues": [ # Output only. A list of all issues associated with the merchant review. { # The ItemLevelIssue of the merchant review status. "attribute": "A String", # Output only. The attribute's name, if the issue is caused by a single attribute. "code": "A String", # Output only. The error code of the issue. "description": "A String", # Output only. A short issue description in English. "detail": "A String", # Output only. A detailed issue description in English. "documentation": "A String", # Output only. The URL of a web page to help with resolving this issue. "reportingContext": "A String", # Output only. The reporting context the issue applies to. "resolution": "A String", # Output only. Whether the issue can be resolved by the merchant. "severity": "A String", # Output only. How this issue affects serving of the merchant review. }, ], "lastUpdateTime": "A String", # Output only. Date on which the item has been last updated, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. }, "name": "A String", # Identifier. The name of the merchant review. Format: `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` }, ], "nextPageToken": "A String", # The token to retrieve the next page of results. }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.