If anyone else has anything to add to this conversation, please do so. Thanks!
On Jan 14, 9:45 pm, Sean <[email protected]> wrote: > The Insert function returns the entry as it was inserted, so I extract > the id from the returned entry and save that in a separate table. It > is by these saved ids that I "Get" the entry as it is. Then I try and > run Update on that entry after changing the attributes. > > So what you're saying that instead of updating the item I should "Get > It" then "Insert it"? > > On Jan 14, 6:53 pm, icebackhaz <[email protected]> wrote: > > > First off, you must have assigned a unique id to all you items. Then > > update them by that id (make a new feed of the same items, same ids) > > resetting the expiration date. (They check that is no more than 30 > > days out, so repeat as necessary). > > > On Jan 14, 12:35 pm, Sean <[email protected]> wrote: > > > > One other thing, the goal here is that I don't want to reset all my > > > statistics like clicks and page views because I'm clearing out the > > > feed and starting over. > > > > Thanks again! > > > > On Jan 14, 2:21 pm, Sean <[email protected]> wrote: > > > > > So I've been perusing these forums, trying to Google (imagine that) > > > > information about it, and I'd like to know how to extend the > > > > expiration of items in my Google Base account. > > > > > I've read about updating items or "touching them" to update them. I > > > > have the following C# code: > > > > > //Set up GBaseService service, and the string uri variable > > > > > GBaseEntry myEntry = service.GetEntry(uri); > > > > myEntry.GBaseAttributes.AddDateTimeAttribute("updated", DateTime.Now); > > > > GBaseEntry uEntry = service.Update(myEntry); > > > > > "updated" is an Attribute I included when I originally created the > > > > item. I chose a DateTime object as it was an obvious choice for a > > > > value I can dynamically set without having to repeat the value. > > > > > I misunderstood the developers guide and tried to add these attributes > > > > which I thought would overlap them with new values but that was > > > > incorrect, it simply added another field called updated. > > > > > Am I going about this the wrong way? Is there a more intelligent way > > > > to update my items? What if I don't want to increase the expiration > > > > date when I update my item? Do I have to do something specific to get > > > > the item to update the expiration? > > > > > My current code deletes items if they exist, then queries my database > > > > and repopulates my Active Items. I've recently included code to > > > > simply update the items with this datetime field but I think I am > > > > missing an important piece of the puzzle. > > > > > Thank you very much for your time, it is appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
