Cloud Pub/Sub API has not been used in project before or it is disabled.
The Cloud Pub/Sub API should be enabled for the project in Google Cloud Platform before using that API in the application. If not enabled, API error message is returned.
When the Cloud Pub/Sub API is not enabled when verifying the service account , IoT Cloud Tester application will return the error.
Following error message is returned by Google Cloud API.
Cloud Pub/Sub API has not been used in project 268441375077 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/pubsub.googleapis.com/overview?project=268441375077 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
To fix this error, enable the Cloud Pub/Sub API in GCP,
- Enable Cloud Pub/Sub API in GCP by visiting the below URL for the project - https://console.cloud.google.com/apis/library/cloudresourcemanager.googleapis.com?project=iot-cloud-tutorial