C# 亚马逊广告API-EditorialReviews有时返回空值,即使它不应该用于给定的ISBN
我正在使用亚马逊产品广告API,根据给定的ISBN编号获取有关书籍的数据。它运行良好,我得到了大部分信息,但对于一些书,我在编辑评论方面有问题。看起来亚马逊网站上已经有了这些信息,但我不会用我的查询把它们取回。有人知道为什么吗?下面是我的代码示例。样本ISBN可能是9780752809069。 谢谢你的建议C# 亚马逊广告API-EditorialReviews有时返回空值,即使它不应该用于给定的ISBN,c#,api,amazon,isbn,C#,Api,Amazon,Isbn,我正在使用亚马逊产品广告API,根据给定的ISBN编号获取有关书籍的数据。它运行良好,我得到了大部分信息,但对于一些书,我在编辑评论方面有问题。看起来亚马逊网站上已经有了这些信息,但我不会用我的查询把它们取回。有人知道为什么吗?下面是我的代码示例。样本ISBN可能是9780752809069。 谢谢你的建议 AWSECommerceServicePortTypeClient amazonClient; amazonClient = new AWSECom
AWSECommerceServicePortTypeClient amazonClient;
amazonClient = new AWSECommerceServicePortTypeClient(
new BasicHttpBinding(BasicHttpSecurityMode.Transport), new EndpointAddress("https://ecs.amazonaws.co.uk/onca/soap?Service=AWSECommerceService")); //Amazon UK working
amazonClient.ChannelFactory.Endpoint.Behaviors.Add(new AmazonSigningEndpointBehavior("AAAAAAAAAAAAAAAAA", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"));
ItemLookup itemLookup = new ItemLookup();
ItemLookupRequest request_isbn = new ItemLookupRequest();
request_isbn.ResponseGroup = new string[] {"EditorialReview", "Large" };
request_isbn.SearchIndex = "Books";
request_isbn.ItemId = new string[] { "9780752809069" };
request_isbn.IncludeReviewsSummary = "True";
request_isbn.IdType = ItemLookupRequestIdType.ISBN;
request_isbn.IdTypeSpecified = true;
itemLookup.Request = new ItemLookupRequest[] { request_isbn };
itemLookup.AssociateTag = "my astag";
ItemLookupResponse response_isbn = new ItemLookupResponse();
response_isbn = amazonClient.ItemLookup(itemLookup);
string _Description = "";
foreach (var revitem in response_isbn.Items[0].Item)
{
if (revitem.EditorialReviews != null) _Description = revitem.EditorialReviews.Last().Content.ToString(); //Sometimes is null even if there is Product Description avaliable on the Amazon Web
}
ItemLookup不会返回一些编辑评论。ItemLookup仅返回由Amazon.com撰写的编辑评论。其他网站记录的编辑评论不能包含在ItemLookup返回的评论中
我想这会更好地针对亚马逊的某个人。我的一个问题是,是否所有的编辑评论都以相同的方式进行。否,其中一些评论由ItemLookupResponse正确返回