Hello Pete,

On Dec 20, 10:53 am, Pete <[EMAIL PROTECTED]> wrote:
> I'm having trouble getting the big picture of using the Python API to
> manage listings in Base.
>
> I have an XML file that works when manually uploading it to Base. Do I
> need to insert each item like 
> this:http://code.google.com/apis/base/pythondevguide.html#inserting
> or can I do a bulk run with my existing XML file?

The Google Base Data API is a bit different than the bulk uploads that
you may be used to. Using the API and the Python client mentioned in
the pythondevguide you can either insert items one at a time or in
small groups using batch operations. I wrote up a brief wiki page to
give an idea of how this might look using the Python library:

http://code.google.com/p/gdata-python-client/wiki/UsingBatchOperations

Did you find that the wiki page was helpful?

>
> Do I need to keep track of which items have already been inserted, or
> is it smart enough that I give it the XML file of all my listings
> daily and have it update if changed/insert if new/skip if no change
> accordingly?

The Google Base Data API is designed to allow you to manage your
individual items programmatically, so I usually recommend that you
keep track of the status of your items and only update them as needed.
The bulk upload works differently, so if you want to just keep
everything in one large file I'd recommend sticking with the bulk
upload approach.

>
> In order to delete listings, I will need to store the GData entry_id
> locally? Optionally, I could just let them expire?

You could do either. If you want to delete your items you don't need
to store the ids, but it might speed up the process. Using the API you
could query the list of your items to find the ones that you want to
remove.

If you have any other Google Base API questions, you might want to
send them to the following group since I look there more frequently :)

http://groups.google.com/group/Google-Base-data-API

Happy coding,

Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to