Hi neworused14,

I think you need to use the $newEntry->addGbaseAttribute method.

Here is a link to the ZEND PHP client library. It explains how to add
an item to Google base using Zend:
http://framework.zend.com/manual/en/zend.gdata.gbase.html#zend.gdata.gbase.crud.insert

Thanks
Nicolas

On Nov 27, 7:30 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I am setting up my api code (php 5) to add a new product and am trying
> to work out how to add the link to the page to the website where the
> product actually is.
>
> Everything I try doesn't work though.
>
> This is what Im using:
>
> $newEntry->link = 'the url goes in here';
> $newEntry->link->type = 'url';
>
> and this gives me an errror:
>
> Warning: Attempt to assign property of non-object in C:\Program Files
> (x86)\Apache Software Foundation\Apache2.2\htdocs\New or Used\admin
> \modules\google api control.php on line 92
>
> Warning: Invalid argument supplied for foreach() in C:\Program Files
> (x86)\Apache Software Foundation\Apache2.2\htdocs\New or Used\admin
> \Zend\Gdata\App\FeedEntryParent.php on line 181
--~--~---------~--~----~------------~-------~--~----~
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