Amazon is pumping money into Google to promote Prime Day, and it could be a brilliant way to also boost Amazon’s own ad business