| Error Code | Possible Causes | Resolutions |
|---|---|---|
| `400 PRECONDITION_FAILED` | The reader you are trying to delete with `DeleteReader` still has active entitlements. | Remove all entitlements from the reader, or use the `force=true` option with the [`DeleteReader`](https://developers.google.com/news/subscription-linking/api/methods#deletereader)\`request. |
| `403 PERMISSION_DENIED` | 　 - The service account is not associated with [the Google Cloud project](https://developers.google.com/news/subscription-linking/implementation/synchronize-user-entitlements#google_cloud_setup) you configured in Publisher Center. <!-- --> - The service account lacks the required role for the method being called (e.g., a `Subscription Linking Viewer` attempting to update entitlements). | - Verify that you have configured the correct Google Cloud project number in Publisher Center. <!-- --> - If you are using Account Default Credentials (ADC) with [`gcloud auth application-default login`](https://cloud.google.com/docs/authentication/application-default-credentials#personal) command, ensure you have [`Service Account Token Creator`](https://cloud.google.com/iam/docs/service-account-permissions#token-creator-role) role. <!-- --> - Ensure the service account has [one of the roles](https://developers.google.com/news/subscription-linking/implementation/synchronize-user-entitlements#create_a_service_account). - Subscription Linking Admin <!-- --> - Subscription Linking Viewer <!-- --> - Subscription Linking Entitlements Viewer |
| `404 NOT_FOUND` | The specified `publicationId` or `ppid` doesn't exist. | Verify that the provided `publicationId` and `ppid` are correct and exist. |