It's really easy, just put the Multiple-Client Account (MCA) id in the
URL.

http://www.google.com/base/feeds/<id>/items

E.g. http://www.google.com/base/feeds/12345678/items

See here for more details:

http://code.google.com/apis/base/starting-out.html#aggregate

...under "Managing Mulitiple Clients".

John

On Mar 8, 8:37 pm, strachjs <john.s.strac...@btinternet.com> wrote:
> Hi All.
>
> For the last few months I have been successfully uploading our
> products to Google Base via the Java batch-mode API, and this has been
> working really well.
>
> I would now like to move to using a Multi-Client Account (we host
> multiple shops on our site).
>
> I have contacted Google and they have converted my account into a MCA,
> with our old account becoming a sub-account.
>
> I now need to modify my Java program to direct products to the right
> sub-account.  Has anyone got examples on how to do this or can point
> me to some documentation with examples.
>
> This is an extract of my current code:
>
> GoogleBaseService service =
>         new GoogleBaseService(googleFeedApplicationName,
> googleFeedDeveloperKey);
>
> service.setUserCredentials(googleFeedEmail, googleFeedPassword);
>
> URL url = new URL("http://www.google.com/base/feeds/items";);
> GoogleBaseFeed feed = service.getFeed(url);
>
> Link batchLink = feed.getLink(Link.Rel.FEED_BATCH, Link.Type.ATOM);
> URL batchUrl = new URL(batchLink.getHref());
>
> /* Create entry in batch ready to be sent. */
> /* This is the batch structure we will populate. */
> GoogleBaseEntry entry = new GoogleBaseEntry();
> etc.
>
> Thank-you,
> john

-- 
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 google-base-data-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-base-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-base-data-api?hl=en.

Reply via email to