Hi Alex,

Thanks for your information.

I have found out something. After I have installed a paket sniffer
program I can analyze the HTTP response.
Behind the 400 error message the reason was first the expiration date,
should not exceed 30 days. After I have fixed this, I got the same
error again (400 invalid item) but with the reason that the ItemID
must be specified. I have tried many strings but they didn't work so
just tried the ID from the sample project, and it works!

I have added the following code:
entry.GBaseAttributes.AddTextAttribute("id", "1234ads65zxcv4");

I will make some more tests. But I think this is a bug in the API
because the insert operation should not require an ID, it should
generate a new one for each new item.

Cheers
Alex

On 2 Apr., 18:35, Alex <[email protected]> wrote:
> If you change the item-type to "Product", your items won't show up in
> Google Product Search <http://www.google.com/products>. The item-type must
> be set to "Products".
> What is the error you get from the server when you try to insert the
> items?
>
> Try to insert your item using the demo page and check what the API
> returns. If the insert fails, it should tell you the reason for 
> that.http://www.google.com/base/api/demo/html/demo.html
>
> Alex
>
>
>
>
>
> On Thu, Apr 2, 2009 at 12:40 AM, Alex <[email protected]> wrote:
>
> > Hi,
> > Thanks for the hint! I have changed my ItemType to "Product" and after
> > that the item is uploaded to froogle. But I had the same situation
> > that it can not be found when searching for that item.
>
> > Beside of this, I noticed that the picture is not set as "main
> > picture". does anyone know how to upload the image as "main" or
> > "default" picture of the product?
>
> > After manuel added one item, I think the Itemtype = "Product" woud be
> > wrong. Because I'm using German as default language. After add a new
> > product the typ is being set as "Produkte" which means products. So
> > the name "products" should be the correct one.
>
> > Regards
> > Alex
>
> > On 29 Mrz., 18:27, Support <[email protected]> wrote:
> > > Hi,
> > > I just managed to upload the products to froogle by adding the product
> > > type and an ID...
> > > entry.GBaseAttributes.ItemType = "Product";  wont work with products
> > > so dnt put the "s"...
> > > to add the ID see above...
> > > However, the items does get uploaded to froogle but it only says
> > > published and searchable
> > > but cant find it when searching for the item
> > > So it isnt fixed... as you cant search for the items
>
> > > On Mar 29, 11:17 pm, Alex <[email protected]> wrote:
>
> > > > Hi,
>
> > > > How did you solve this problem?
>
> > > > I have quite the same error but using the code suggestion from Google:
> >http://code.google.com/intl/de/apis/base/docs/2.0/developers_guide_do...
>
> > > > Always got the 400 error. Can you please give me a hint how you have
> > > > solved your problem? Perhaps it has the same reason as mine.
> > > > Thanks!
> > > > Alex
>
> > > > On 25 Mrz., 23:11, Support <[email protected]> wrote:
>
> > > > > Hi,
> > > > > Just wanted to tell you lot that I have now resloved the issue
>
> > > > > On Mar 25, 8:39 pm, Support <[email protected]> wrote:
>
> > > > > > Hi,
> > > > > > I have checked froogle requirements but still get a400error wht cud
> > > > > > have gone wrong?
>
> > > > > > GBaseService service = new GBaseService("Biz", "googlekey");
> > > > > >             service.setUserCredentials("username", "password");
> > > > > >             GBaseEntry entry = new GBaseEntry();
> > > > > >             GBaseQuery query = new GBaseQuery("
> >http://www.google.com/
> > > > > > base/feeds/items/");
> > > > > >             GBaseFeed feed = service.Query(query);
> > > > > >             AtomLink lnk = new AtomLink();
> > > > > >             AtomFeed batchFeed = new AtomFeed(feed);
> > > > > >             entry = new GBaseEntry();
> > > > > >             entry.BatchData = new GDataBatchEntryData();
> > > > > >             entry.BatchData.Id = "01flx";
> > > > > >             entry.Title.Text = "Patio set";
> > > > > >             entry.Content.Content = "The Veracruz Oval Table and
> > > > > > accompanying Patio chairs are cast from aluminum, welded and
> > > > > > constructed with longevity in mind. During the finishing process,
> > each
> > > > > > piece is sanded, brushed, and painted by hand.";
> > > > > >            entry.GBaseAttributes.Quantity = 90;
> > > > > >            entry.GBaseAttributes.Price = new
> > FloatUnit((float)25.00,
> > > > > > "GBP");
> > > > > >             //entry.GBaseAttributes.ItemType = "Products";
> > > > > >             lnk = new AtomLink();
> > > > > >             lnk.HRef = new AtomUri("
> >http://www.example.com/asp/sp.asp?
> > > > > > cat=12&id=1030");
> > > > > >             lnk.Rel = "alternate";
> > > > > >             lnk.Dirty = false;
> > > > > >             //lnk.Type = "text/html";
> > > > > >             entry.Links.Add(lnk);
> > > > > >             lnk = null;
> > > > > >             Uri posturi = new Uri("
> >http://www.google.com/base/feeds/
> > > > > > items/");
> > > > > >             entry.BatchData.Type = GDataBatchOperationType.insert;
> > > > > >             batchFeed.Entries.Add(entry);
> > > > > >             AtomFeed returnFeed = service.Batch(batchFeed, new Uri
> > > > > > (batchFeed.Batch));
> > > > > >             //Uri posturi = new Uri("
> >http://www.google.com/base/feeds/
> > > > > > items/");
> > > > > >             //GBaseEntry myEntry = service.Insert(posturi, entry);
> > > > > >             //GBaseEntry myEntry = service.Insert
> > > > > > (GBaseUriFactory.Default.ItemsFeedUri, entry);
> > > > > >             //Response.Write(service.Batch(batchFeed, new Uri
> > > > > > (batchFeed.Batch)));
> > > > > >             int i;
> > > > > >             i = 0;
> > > > > >             for (i = 0; i < returnFeed.Entries.Count; i++)
> > > > > >             {
> > > > > >                 Response.Write("hhhh" + returnFeed.Entries
> > > > > > [i].BatchData.Status.Code);
> > > > > >                 if (returnFeed.Entries[i].BatchData.Status.Code >
> > 300)
> > > > > >                 {
> > > > > >                     Response.Write("Not inserted now!!!");
> > > > > >                 }
> > > > > >             }
> > > > > >         }- Zitierten Text ausblenden -
>
> > > > > - Zitierten Text anzeigen -- Hide quoted text -
>
> > > > - Show quoted text -- Zitierten Text ausblenden -
>
> > > - Zitierten Text anzeigen -
>
> --
> Alex Dovlecel, Google Switzerland GmbH
> Company Identifikationsnummer: CH-020.4.028.116-1- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to