from fansifter_common.exceptions import ( FansifterError, ObjectNotFoundError, ) class GoogleUserConnectionScopesError(FansifterError): code = "google_scopes_error" message = "Google scopes for token insufficient" class GoogleUserConnectionNotFoundError(ObjectNotFoundError): code = "google_user_connection_not_found" message = "Google user connection not found" class GoogleAdReportingConnectionNotFoundError(ObjectNotFoundError): code = "google_ad_reporting_connection_not_found" message = "Google ad reporting connection not found" class InvalidGoogleAdAccountId(FansifterError): code = "invalid_google_ad_account_id" message = "Invalid google ad account id" status_code = 400 class GoogleAdAccountNotFoundError(ObjectNotFoundError): code = "google_ad_account_not_found" message = "Google ad account not found" class GoogleAudienceNotFoundError(ObjectNotFoundError): code = "google_audience_not_found" message = "Google audience not found" class GoogleUserAdAccountNotFoundError(ObjectNotFoundError): code = "google_user_ad_account_not_found" message = "Google user ad account not found"