I am not able to get my structured data to return an error free response from Google's Structured Data Testing Tool. This is the code I am putting in:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"additionalType": "http://www.productontology.org/id/Scooby_doo",
"sku": "<?php echo $productID; ?>",
"identifier_exists": "no",
"gtin": "",
"mpn": "",
"name": "<?php echo $heading; ?>",
"url": "https://www.blah.co.uk/services/#<?php echo $sector_id; ?>",
"image": "<?php if($background_image != '') :?><?php echo $background_image; ?><?php else : ?><?php echo $background_video_poster; ?><?php endif;?>",
"description": "<?php echo $text; ?>",
"brand": "Scooby Doo",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"bestRating": "5",
"worstRating": "5",
"ratingCount": "10"
}
}
</script>
I then receive these errors:
identifier_exists ~ no (The property identifier_exists is not recognized by Google for an object of type Product.)
offers ~ The offers field is recommended. Please provide a value if available.
review ~ The review field is recommended. Please provide a value if available.
warning ~ This Product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers.
My confusion - I take the global_identifier out of the code, then it requests it be added in, within the new error list created when I run it without. I have also tried just using an mpn or gtin without the global identifier, still no positive result.
Please can someone help me figure out the values that are plugged in to provide 'no / null' global identifier or mpn / gtin?
Thanks, Jason.
