A (java) fly-by:
Kind of important to have a decent dataset of products which can be
accessed programmatically.
Each product becomes a GoogleBaseEntry.
Assuming all your products fit into what gb thinks of as products (and
that's highly likely) then you'll use (in java)
GoogleBaseAttributeExtensions to fill in the details. These are
accessed via GoogleBaseEntry.getGoogleBaseAttributes()
Definitely look at the list of Constants for the attributes and
recommendation w.r.t. attributes. An especially important one is
"product_type" which will be invaluable in differentiating your
individual items into appropriate search streams.
You can mix inserts and updates and deletes.
Here are some assignments that I'm making
gentry.getGoogleBaseAttributes().setItemType("product"); //
different from product_type below
gentry.getGoogleBaseAttributes().addTextAttribute("Product_type",
"outerwear");
gentry.getGoogleBaseAttributes().addTextAttribute("Product_Code", "" +
prod.getProductCode());
//
gentry.getGoogleBaseAttributes().addTextAttribute("Condition", "new");
// UPC or (MPN) required for all but books, which require ISBN
gentry.getGoogleBaseAttributes().addTextAttribute("UPC",
prod.getProductCode());
gentry.getGoogleBaseAttributes().addTextAttribute("Description",
prod.getDescription());
gentry.getGoogleBaseAttributes().setPrice((float)prod.getPrice(),
"USD");
feed.getEntries().addEntry(gentry)
// sum up
feed.batch(); // A poorly named method for "send all these to
google"
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
-~----------~----~----~----~------~----~------~--~---