To date GB doesn't have a special top-level category for automotive
parts, so you'll have to live in the products group and set the
product_type to automotive.
gentry.getGoogleBaseAttributes().addTextAttribute("Product_type","automotive");
...
gentry.getGoogleBaseAttributes().addIntAttribute("psi", 30);
You will have to either categorize you products such that you can list
related ones with a single Entry builder or keep and value-to-
attribute map for each of your products. With the latter approach you
may only need a single Entry builder. You do have some up-front work
in setting the mappings.
for (String attrName : myProduct.getGoogleAttributes() ) { //Your
code
String value = myProduct.getValue(attrName); //Your code
gentry.getGoogleBaseAttributes().addTextAttribute(attrName; value);
}
On Sep 10, 9:58 pm, "Anil Pathak" <[EMAIL PROTECTED]> wrote:
> My products are autoparts, They have diverse attribute sets. For example
> attribute "pressure" only applied to certain set of products.
> More than that, i thought perhaps feeding individual products will help with
> changing prices.
>
> On Wed, Sep 10, 2008 at 9:38 PM, icebackhaz <[EMAIL PROTECTED]> wrote:
>
> > Have you seen this list of recommended attributes by type of item
> > listed?
> >http://base.google.com/base/api/itemTypeDocs. They're all(?) in the
> > "g:" namespace, which is where
> > gentry.getGoogleBaseAttributes().addXXXXAttribute(<recommended-attr-
> > name>, <XXXX-typed-value>) gets you.
>
> > On Sep 8, 4:40 pm, aniljava <[EMAIL PROTECTED]> wrote:
> > > Lots of my products do not share attributes between each other,
> > > thought of migrating from bulk upload to API based upload.
>
> > > If anyone have gone through this or knows about it please advise me,
> > > whether i should i remove existing products before starting.
>
> > > Thanks
> > > Anil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---