Google and eBay have signed a multi-year agreement to connect users, merchants and advertisers around the world.