4 messages in com.googlegroups.google-base-data-apiRe: Error 403| From | Sent On | Attachments |
|---|---|---|
| Creativeboyhm | 31 Jul 2007 00:20 | |
| Jeff S | 02 Aug 2007 10:07 | |
| Creativeboyhm | 02 Aug 2007 23:02 | |
| Creativeboyhm | 03 Aug 2007 03:47 |
| Subject: | Re: Error 403![]() |
|---|---|
| From: | Jeff S (j....@google.com) |
| Date: | 08/02/2007 10:07:28 AM |
| List: | com.googlegroups.google-base-data-api |
Hi Creativeboyhm,
To have your items appear in http://base.google.co.uk/ , you'll need to set the target_country and item_language attributes. See http://base.google.com/support/bin/answer.py?answer=62882 for the values you'll need to set. I think I understand now why you were trying to post the the localed feed earlier :) However, the intended use for the localed feed is find out which languages and countries are available for the item_language and target_country.
Happy coding,
Jeff
On Jul 31, 12:20 am, Creativeboyhm <crea...@gmail.com> wrote:
when i writeGBaseUriFactory.Default.LocalesFeedUri in GBaseEntry myEntry = service.Insert(GBaseUriFactory.Default.LocalesFeedUri, entry); it give error System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at Google.GData.Client.GDataRequest.Execute() tell me solution i am using Asp.net 2.0 when i make it GBaseUriFactory.Default.ItemsFeedUri no error but item show on google.com/base not show on google.co.uk/base with same account how i insert Products in goolge.co.uk/base plz help me . thank in Advanace
for token i have used that code
<a href="https://www.google.com/accounts/AuthSubRequest?next=http%3A%2F %2Fwww.haseeb.b2becart.com%2Fcode%2Ffroogle%2Fdefault.aspx&scope=http %3A%2F%2Fwww.google.com%2Fbase%2Ffeeds%2Flocales %2Fen_GB&session=0&secure=0" >clik</a>
here the full code behide button
GBaseService service = new GBaseService("eTradehouse", "developer key"); service.setUserCredentials("username", "password"); GBaseEntry entry = new GBaseEntry(); entry.Title.Text = "My items"; entry.Content.Content = "/2684),Classical IP over ATM(RFC1577),PPP over AAL5(RFC 2364),PPP over"; entry.GBaseAttributes.ItemType = "Products"; entry.GBaseAttributes.Quantity = 10; entry.GBaseAttributes.AddTextAttribute("Product Type", "Network Products"); entry.GBaseAttributes.AddTextAttribute("Condition", "New"); entry.GBaseAttributes.AddTextAttribute("Brand", "Safecom"); entry.GBaseAttributes.AddImageLink("http://www.etradehouse.com/code/adm/img/plarg/AWR-7200.gif"); entry.GBaseAttributes.AddUrlAttribute("Wireless ADSL", "http://www.etradehouse.com/code/ui/main/product.aspx? catid=1&subcatid=0"); //entry.GBaseAttributes.AddFloatUnitAttribute(("Price", 2.3f,"unit"); //entry.GBaseAttributes.Price =2.36f; entry.GBaseAttributes.Price = new FloatUnit(23.00f, "GBP"); entry.GBaseAttributes.Location = "Unit 7 Harnham Trading Estate Salisbury Wiltshire"; //Uri posturi = new Uri("http://www.google.co.uk/base/ feeds/items/"); Uri posturi = new Uri("http://www.google.com/base/feeds/ locales"); ////?dry-run=true http://www.google.com/base/feeds/locales GBaseEntry myEntry = service.Insert(GBaseUriFactory.Default.LocalesFeedUri, entry); Response.Write ("yes");




