1

In my website users can create their ads. Each ad has the following items that displays for public:

  • ad title

  • ad category (for example ad is about constructions or IT or …)

  • ad type (for example ad is for sale or ask for buy or …)

  • ad created date

  • ad body

  • ad owner contact info (but not for public, only logged in users)

Which Schema.org type should I use for this type of content? Article or other type?

1

If they want to buy something: Demand
If they want to sell something: Offer

The actual thing they want to buy/sell would be a Product (or Service), specified by the itemOffered property.

1

As Georg mentioned, definitely not the "Article" but this should be sufficient: https://schema.org/WPAdBlock.

1

I do not recommend "Article" as this refers to a news article or investigative report - certainly NOT an ad posted by people.

I much more would ask the user (poster) whether they are advertising a product or service (in case both is possible on your site). Depending on what they select I would then describe the data either as

Service: https://schema.org/Service

or

Product: https://schema.org/Product

  • because user creates the content, i can not set some properties for example brand, audience, color and .. and for the items that i specified in the question , which properties do you suggest per type? – Ali_Hr Jul 5 at 7:04
  • Well, what are they advertising for? Give two different possible examples - then I will give you a complete answer :) @Ali_Hr – Georg Keferböck Jul 5 at 9:43
  • 1
    As I haven't heard back from you - remember, some attributes are optional - the rest, make the user pick the correct attribute value via text field or dropdowns. That's it :) – Georg Keferböck Jul 7 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.