Updating samples to new API programming model (GoogleApiClient).