/errors/user_list_error.proto

  • Added new error codes related to user list creation, specifically for partner audiences and third-party partner data.

  • Introduced error codes for unsupported partner audience sources, commerce partner restrictions, and missing partner audience information based on user list type.

  • Included new error codes for manager accounts not being allowed to create certain user lists and restrictions for non-allowlisted partners and advertisers.

  • Added error codes indicating the requirement for advertisers to accept Terms of Service and have an active partner link for creating certain user lists.

  • Included an error code for user lists not being allowed for specific account setting types.

--- v21/errors/user_list_error.proto    2025-10-07 23:35:19.000000000 +0000
+++ v22/errors/user_list_error.proto    2025-10-07 23:35:28.000000000 +0000
@@ -143,5 +143,33 @@

     // One or more invalid country codes are added to Lookalike UserList.
     INVALID_COUNTRY_CODES = 45;
+
+    // The partner audience source is not supported for the user list type.
+    PARTNER_AUDIENCE_SOURCE_NOT_SUPPORTED_FOR_USER_LIST_TYPE = 47;
+
+    // The commerce partner is only supported for COMMERCE_AUDIENCE.
+    COMMERCE_PARTNER_NOT_ALLOWED = 48;
+
+    // The partner audience info is not supported for the user list type.
+    PARTNER_AUDIENCE_INFO_NOT_SUPPORTED_FOR_USER_LIST_TYPE = 49;
+
+    // Manager account is not allowed to create this UserList.
+    PARTNER_MANAGER_ACCOUNT_DISALLOWED = 50;
+
+    // This UserList can only be created by allowlisted partners.
+    PARTNER_NOT_ALLOWLISTED_FOR_THIRD_PARTY_PARTNER_DATA = 51;
+
+    // The advertiser must accept the Terms of Service to create this UserList.
+    ADVERTISER_TOS_NOT_ACCEPTED = 52;
+
+    // The advertiser must have an active link to the partner to create this
+    // UserList.
+    ADVERTISER_PARTNER_LINK_MISSING = 53;
+
+    // This UserList can only be created for allowlisted advertisers.
+    ADVERTISER_NOT_ALLOWLISTED_FOR_THIRD_PARTY_PARTNER_DATA = 54;
+
+    // This UserList is not allowed for this account type.
+    ACCOUNT_SETTING_TYPE_NOT_ALLOWED = 55;
   }
 }