Upgrading samples to new API programming model (GoogleApiClient).