Class Review

A user-created review of an item.

FieldDescriptionModifier and Type
contentThe text content of the review.java.lang.String
dateDate and time when the review was submitted.java.util.Date
itemIdThe ID of the item being reviewed.java.lang.String
purchasedWhether the product was purchased by this user before being reviewed.java.lang.Boolean
ratingScore given to the item in this review, must be normalized to the range 1-100 inclusive.java.lang.Integer
titleThe title of the review.java.lang.String
userDisplayNameName to be displayed along with review, may have no relation to actual user ID.java.lang.String

The ID of the item being reviewed.

See also

Date and time when the review was submitted.

The score given to the item in this review. You must normalize the score to a value between, and including, 1 and 100.

The title of the review.

The text content of the review.

Name to be displayed along with review. The name may have no relation to the actual user ID.

Whether the product was purchased by this user before being reviewed.

Builds item review details, which can then be further modified. This method only builds a data object. To use it, pass it to one of the tracking methods like Context.review(Item, Review).

ParameterDescriptionRequired?
itemIdThe Item.id of the item being reviewed.Yes
dateSee date.No
ratingSee rating. The value must be from 1 to 100.No
titleSee title.No
purchasedSee purchased.No
MethodModifier and Type
fromJSONObject(org.json.JSONObject json)static Review