Your code looks fine.  What you have should work.  I'm not sure I
understand you when you say it doesn't work.

You should have a try/catch around the call to service.Insert, and
catch GDataRequestException.

You can also insert multiples using this
entry.GBaseAttributes.ImageLinks = new string[]
{ Valid_URL_for_an_image1, Valid_URL_for_an_image2 };

Or do each insert manually like this
entry.GBaseAttributes.AddUrlAttribute("image link",
Valid_URL_for_an_image1);
entry.GBaseAttributes.AddUrlAttribute("image link",
Valid_URL_for_an_image2);

www.gasmileagecars.org


On Dec 14, 12:58 am, emeshuris <[email protected]> wrote:
> Hi,
> I am trying to add an image_link with this code:
> entry.GBaseAttributes.ImageLinks = new string[]
> { Valid_URL_for_an_image };
>
> This does not work and I do not get a proper error:
> My status code is: -1 (For multiple items, I only get one error)
> My status reason is empty.
>
> Can someone clarify the what I am doing wrong?
>
> To test I did this:
> I uploaded using a text data feed manually with the same values.
> I then read using the api, and tried to recreate the image_link using
> code.
>
> I am not successful.
>
> Thanks,
> -Edward
--~--~---------~--~----~------------~-------~--~----~
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