2016-12-07 4 views
1

私はSchema.orgマークアップで新しくなっています。実際には、私の不動産マークアップのコードは次のとおりです。 priceSpecificationのオファーを使用すべきではありません。私は今失われている。Google SDTT for Schema.orgのエラープロダクト、オファー、および価格指定

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "name": "Nodorus - Precinct 17", 
    "image": "http://www.setiaalam.com.my/images/products/p17/nodorus-c.jpg", 
    "description": "A distinct modern link residence set amidst award-winning green spans, wetland wonders and multiple amenities. Come home to articulately crafted spaces where architecture and nature's beauty infuse home with fresh chic. Rejoice in this cosy new addition to Setia Alam North.", 
    "additionalType": "Product", 
    "Offer": { 
    "@type": "PriceSpecification", 
    "priceCurrency": "RM", 
    "priceSpecification": { 
     "minPrice": "593000", 
     "maxPrice": "890000" 
    }, 
    "availability": "http://schema.org/InStock", 
    "seller": { 
     "@type": "Organization", 
     "name": "S P Setia" 
    } 
    } 
} 

答えて

2

あなたがProductためOfferを追加したい場合は、offers propertyを使用する必要があります。

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "Offer": {} 
} 

あなたがこれを使用する必要があります:(Offerは財産ではないので、意味がありません)ので、代わりにこの

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "offers": {} 
} 

offers値の型PriceSpecificationではなく、Offerでなければなりません。

PriceSpecificationは、priceSpecificationプロパティを介してOfferに追加することができます。

ので、構造は次のようになります。

{ 
    "@context": "http://schema.org/", 
    "@type": "Product", 
    "offers": { 
    "@type": "Offer", 
    "priceSpecification": { 
     "@type": "PriceSpecification" 
    } 
    } 
} 
関連する問題