Hi,
I am trying to insert jobs using Google Base API. following is the
code snippet.
foreach (var job in empOppList)
{
try
{
GBaseEntry gEntry = new GBaseEntry();
gEntry.Title.Text = job.EmployemtnOpp.Title;
gEntry.GBaseAttributes.ItemType =
"jobs";
AtomLink atLnk = new AtomLink();
atLnk.HRef = "http://www.test.ca/JobOpportunities/
Details/" + job.EmployemtnOpp.Id;
gEntry.Links.Add(atLnk);
gEntry.GBaseAttributes.Location =
job.Companies.City.Name + ", " + job.Companies.Region.Name + ", " +
job.Companies.Country.Name;
gEntry.GBaseAttributes.AddTextAttribute
("employer", job.Companies.Name);
gEntry.GBaseAttributes.AddTextAttribute("job
function", "parttime");
gEntry.GBaseAttributes.AddDateTimeAttribute
("expiration date", job.EmployemtnOpp.DeadLine);
gEntry.GBaseAttributes.AddDateTimeAttribute
("publish date", job.EmployemtnOpp.PostedDate);
gEntry.GBaseAttributes.AddTextAttribute
("education", job.EmployemtnOpp.AcademicExperienceType.Name);
GBaseEntry newEntry = gServe.Insert
(GBaseUriFactory.Default.ItemsFeedUri, gEntry);
}
catch (GDataRequestException re)
{
System.Console.WriteLine(re);
System.Type t = re.Response.GetType();
System.Console.WriteLine(t.FullName);
System.Console.WriteLine
(re.Response.ContentType.ToString());
if (re.ResponseString != null)
{
System.Console.WriteLine(re.ResponseString);
}
System.Console.WriteLine
(re.Response.GetResponseStream().ToString());
}
}
I am working on local server and I am using developer key for the
production server and the credentials linked with Google Merchent
account.
It is not giving error and it is going through whole process, but I am
not able to see jobs on my dashboard.
can anyone tell me what could be the problem. ?
Thanks in advance.
--
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].
For more options, visit this group at
http://groups.google.com/group/google-base-data-api?hl=.