What your doing then is creating a data feed as opose to creating batch file to submit through the API.
You can add upto 100,00 items to a data feed and upload that to Google Base, this can even be done automatically by having (when your script is finished creating the data feed) ftp it to Google. Tom Wilson Freelance Google Base Developer and Consultant www.tomthedeveloper.com Google Base Tools - http://dev.tomthedeveloper.com/googlebase Featured Project : http://google-code-featured.blogspot.com/2008/02/google-base-competitor-analysis.html On Jul 11, 2:58 pm, zweb <[email protected]> wrote: > Hello Tom, > > Thanks for replying. > > Yes, I'm generating, via PHP, an xml file formatted ready for upload > to Google Base. I don't know whether it's through the API as such; > I'll simply upload it through the Base user interface. It's for > 'vehicles' by the way. > > I'm be uploading more than one entry at a time, which I presume will > be classed as a batch. Here's a brief example of what I've generated, > and which has also been rejected: > > <?xml version="1.0"?> > <feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http:// > base.google.com/ns/1.0" xmlns:batch="http://schemas.google.com/gdata/ > batch"> > <entry> > <title>Blah blah</title> > <content>Blah blah</content> > <g:make>Blah blah</g:make> > <g:model>Blah blah</g:model> > <g:price>120042.00</g:price> > <g:condition>Blah blah</g:condition> > <g:colour>Red</g:colour> > <g:name>Terry</g:name> > <g:compName>Terry's vans</g:compName> > <g:mileage>65757</g:mileage> > <g:email>[email protected]</g:email> > <g:phone>000000000</g:phone> > <g:trans>manual</g:trans> > <g:vin/> > <g:drive>4by2</g:drive> > > <g:image_link>http://example.co.uk/photos/10.jpg</g:image_link> > > <g:image_link>http://example.co.uk/photos/11.jpg</g:image_link> > </entry> > <entry> > <title>Blah blah</title> > <content>Blah blah</content> > <g:make>Blah blah</g:make> > <g:model>Blah blah</g:model> > <g:price>120042.00</g:price> > <g:condition>Blah blah</g:condition> > <g:colour>Red</g:colour> > <g:name>Terry</g:name> > <g:compName>Terry's vans</g:compName> > <g:mileage>65757</g:mileage> > <g:email>[email protected]</g:email> > <g:phone>000000000</g:phone> > <g:trans>manual</g:trans> > <g:vin/> > <g:drive>4by2</g:drive> > > <g:image_link>http://example.co.uk/photos/10.jpg</g:image_link> > > <g:image_link>http://example.co.uk/photos/11.jpg</g:image_link> > </entry> > </feed> > > The XML's seems well formed, and the namespaces are in tact; seems odd > that it's being rejected. > > Thanks, > > Matt > > On Jul 10, 8:54 pm, Tom Wilson <[email protected]> wrote: > > > When you said uploading do you mean your generating a data feed or xml > > particually formatted to be passed to Google Base through the API ? > > > Tom Wilson > > Freelance Google Base Developer and Consultantwww.tomthedeveloper.com > > > Google Base Tools -http://dev.tomthedeveloper.com/googlebase > > Featured Project > > :http://google-code-featured.blogspot.com/2008/02/google-base-competit... > > > On Jul 9, 7:06 pm, zweb <[email protected]> wrote: > > > > Hello, > > > > Posting a quick question as I can't find any info on the Batch URI. > > > > I'm writing a PHP script to convert data from a database to XML, ready > > > for Google Base. Would uploading more than one item be classed as a > > > 'batch', or an 'item'. I ask as it effects the namespaces used in the > > > XML. > > > > I'd also appreciate be pointed toward a well formed XML document for > > > said purposes. > > > > Regards, > > > > Matt- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
