6 messages in com.googlegroups.google-base-data-apiRe: From Null-is being show in froogl...| Subject: | Re: From Null-is being show in froogle search results![]() |
|---|---|
| From: | sharad (shar...@gmail.com) |
| Date: | 06/20/2007 09:12:33 AM |
| List: | com.googlegroups.google-base-data-api |
Hi Jeff,
Thanks a lot that did work.So may be we should depend on api some times to set few properties like this.
Regards Sharad
On May 29, 11:31 pm, Jeff S <j....@google.com> wrote:
Hello Sharad,
I think that you may be missing an author element in your entry and I think the author is where the display name comes from. What happens if you add the following?
Person author = new Person(authorName,null, authorEmail); entry.getAuthors().add(author);
Please let me know how it goes.
Thank you,
Jeff
On May 17, 11:10 pm, sharad <shar...@gmail.com> wrote:
Hi Lane,
Thanks For the response.
Let me clarify few things which may help you to give me more information. I am submitting the data feed using GDATA-java api. Here is the code snippet.. of attributes we send. { GoogleBaseEntry entry = new GoogleBaseEntry(); entry.setTitle(TextConstruct.create(TextConstruct.Type.TEXT, "our title",null)); entry.setContent(TextConstruct.create(TextConstruct.Type.TEXT,"our description",null)); entry.getGoogleBaseAttributes().setItemType("Products"); entry.getGoogleBaseAttributes().addTextAttribute("brand", "our brand"); entry.getGoogleBaseAttributes().addTextAttribute("condition", "new"); Calendar c=Calendar.getInstance(); c.add(Calendar.DAY_OF_MONTH,+7);
DateTime d=new DateTime(c.getTime()); entry.getGoogleBaseAttributes().setExpirationDate(d); entry.getGoogleBaseAttributes().addTextAttribute("product_type",product.get("product_type")); entry.getGoogleBaseAttributes().addTextAttribute("made_in",product.get("made_in")); entry.getGoogleBaseAttributes().setPrice(Float.valueOf("our price"),"as given by google USD|GBP|EURO");
entry.getGoogleBaseAttributes().addImageLink("our image link"); entry.getGoogleBaseAttributes().addTextAttribute("target_country","as given by google US|GBR|DE");
String paymentMethods[]="our payement type we have 6 currently ".split(","); for(String payment:paymentMethods){ entry.getGoogleBaseAttributes().addPaymentMethod(payment);}
String shipService="our shhiping"; Shipping shipping=new Shipping(as given by google US|GBR| DE,shipService,0.0f,"as given by google USD|GBP|EURO"); entry.getGoogleBaseAttributes().addShipping(shipping); entry.getGoogleBaseAttributes().setTaxPercent(0.0f); Link link=new Link(); link.setHref("product link"); link.setType("text/html");
link.setRel("alternate"); entry.getLinks().add(link);
}
Here is a reference
linkhttp://base.google.com/base/s2?a_n0=products&a_y0=9&hl=en&gl=US#ajax%...
.NULLappears on right corner.
By using the same code and just changing the auth-token,and user
credentials.
I got the name displayed.I used my own google account.
the search result is here where my name sharad bhushan is visible.
{
This is google base testing title
Tax percent: 0 Product type: flowers Price: £12.00 Brand:
pickupflowers Condition: new
... is google base testing. content vvThis is google base testing.
content This is google base testing. content This is google base
testing. content v vThis ...http://www.pickupflowers.com-from <b>sharad
bhushan</b> on 11:29am -
Report item
}
Regards Sharad
On May 16, 10:07 pm, "Lane LiaBraaten (Google)"
<api....@gmail.com> wrote:
Hi Sharad,
How are you submitting the items to Base? If you're using the Base data API it would help if you could post some sample code so we can take a closer look.
Cheers, Lane
On May 14, 8:17 am, sharad <shar...@gmail.com> wrote:
Hi,
We submitted our product's to google base for three times till now.But we were not able to get from 'name' correct it always showsNULL. An example is listed where you can see thenullin last line This is copy of froogle search result Example{ Roses and Gerberas in Fall Colors Tax percent: 0 Product type: thank you flowers Price: $83.50 Brand: pickup flowers Feel the warmness of Autumn!!A bouquet of yellow roses and orange gerberas with a colorful vase. Just a great floral gift on all occasions of joy!http://www.pickupflowers.com-from<b>null</b> on 1:04pm - Report item
}
Can Any one putsome light to this.
Regards Sharad




