Hi fishcake9,

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

Please read this part of the Zend Framework documentation which
explains how to insert a new item into Google Base:
http://framework.zend.com/manual/en/zend.gdata.gbase.html#zend.gdata.gbase.crud.insert

Thanks,
Nicolas

On Nov 27, 3:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Im new to all this and am trying to set up my api code. Im setting it
> up for products but I cannot work out how to add a link to the item
> being added - which I obviously have to do to comply with the
> policies.
>
> Im currently using:
>
>                         $newEntry->link = $service->newLink('link here');
>                         $newEntry->link->type = 'url';
>
> which gives this error:
>
> Fatal error: Call to a member function getDOM() on a non-object in C:
> \Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\New
> or Used\admin\Zend\Gdata\App\FeedEntryParent.php on line 182
>
> Any help would be apprechiated.
--~--~---------~--~----~------------~-------~--~----~
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