How do I create Google custom attributes?

Google Product Search supports 7 types of custom attributes. If you include any of them in your upload to SingleFeed we will automatically recognize them and send them out in your Google feed.


Here are examples of the 7 types, taken directly from Google's instructions:

String Type: Any Text String

Example Field Header: c:favorite_movie:string
Example Value: Total Recall

Integer Type: Whole Number Value

Example Field Header: c:revenue:integer
Example Value: 32000000

Decimal Type: Number with a decimal point.

Example Field Header: c:engine_displacement:decimal
Example Value: 3.5

DateTime Type: Date and time, in ISO 8601 format:

YYYY-MM-DDThh:mm:ss. (Times are based on the 24-hour clock.) You can also create a range of dates by including a start and end date, each in this format, and separating them with a forward slash.

Example Field Header: c:birth_time:dateTime
Example Value: 1979-10-12T03:44:26

Example Field Header: c:dates_employed:dateTime
Example Value: 2004-03-20T09:00:00/2006-03-10T17:00:00

Location Type: Location value

Addresses should be formatted as: street, city, state, postal code, country. Each location element should be separated by a comma.

Example Field Header: c:interview_location:location
Example Value: 1600 Amphitheatre Parkway, Mountain View, CA, 94043, USA


Example Field Header: c:favorite_data_feed_management_company:url
Example Value:

Boolean Type: Value may be either yes/no or true/false.

Example Field Header: c:promo_offer:Boolean
Example Value: true


Example Field Header: c:cutting_depth:decimal
Example Values: 2.5, 2.75, 3
Uses: This could be used for a power saw retailer

Example Field Header: c:caliber:decimal
Example Values: .177, .22
Uses: This could be used for an air rifle retailer

Example Field Header: c:adjustable_shoulder_straps:Boolean
Example Values: True, False
Uses: This could be used for a lingerie retailer

Example Field Header: c:customer_feedback:url
Example Values:
Uses: A million and one

Example Field Header: c:customers_also_bought:url
Example Values:
Uses: Upselling other products

Example Field Header: c:thread_count:integer
Example Values: 200, 400, 600, etc...
Uses: This could be used by a bed and bath retailer.


The c: tells Google Base that the attribute is a custom attribute.
The part in between the colons (:) is the attribute name.
The final part is the kind of attribute.

Please note that attributes with two words are separated by an underscore ( _).

Once you enter these Google Base Custom attributes as headings in your feed, just fill in the corresponding field value for each of your applicable product listings. You can leave a field blank if a product should not have a custom attribute associated with it.

As you can see from the examples above, these attributes are not hard to use and with a lot of knowledge about a product and just a bit of creativity, you can come up with a number of custom attributes.

Here are other examples to get you started:

c:hypo_allergenic:boolean (data in the feed can be true or false)
c:down:Boolean (data in the feed can be true or false)
c:thread_count:integer (data in the feed can be 200, 400, 600, etc.)
c:made_in:string (data in the feed can be USA, China, Egypt)
c:bed_size:string (data in the feed can be twin, double, queen, king)

Why not start out by adding 2-3 custom attributes and take it from there. Google Base will pick up on these attributes and eventually may make them into recommended fields. They may also be displayed as filters, allowing users to better find your products.

Have more questions? Submit a request


Article is closed for comments.