Although Amazon has run an e-commerce operation in China for years, it has failed to build up a significant market share as local competitors such as AlibabaGroupHoldings Ltd. and Beijing Jingdong Century Trading Co. have pressed to attract new customers.