I'm new in android. I'm using the GooglePlaces Api in my app. I already have a key and the GooglePlace service enabled.
According to Google documentation, the correct way to build the GooglePlaces
mGoogleApiClient = new GoogleApiClient
.Builder(this)
.addApi(Places.GEO_DATA_API)
.addApi(Places.PLACE_DETECTION_API)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
But looking for code examples on other webpages, I found:
mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this, 0 /* clientId */, this)
.addApi(Places.GEO_DATA_API)
.build();
What is the "clientId" parameter? How do i get it? Is the same as the Google Client OAuth 2.0?