[Premium]{class="badge positive" title="Target Premium에 포함된 내용을 확인합니다."}

사용자 지정 엔티티 속성 custom-entity-attributes

이 페이지에서: Adobe Target Recommendations 카탈로그의 항목을 설명하는 단일 및 다중 값 사용자 지정 엔터티 특성을 정의하고 보내고 사용하는 방법을 알아봅니다.

Adobe Target Recommendations에서 단일 및 다중 값 사용자 지정 엔터티 특성을 사용하여 카탈로그에 있는 항목에 대한 추가 정보를 정의합니다. 그런 다음 이 정보를 알고리즘 포함 규칙, 카탈로그 규칙 및 제외 규칙에 사용할 수 있으며 디자인에 표시할 수 있습니다.

제한 limits

카탈로그에 있는 항목에 대한 추가 정보를 정의하는 데 최대 100개의 사용자 지정 엔티티 속성을 포함할 수 있습니다. 예를 들어, 책 또는 동영상을 정의하기 위해 entity.genre라는 사용자 지정 속성을 만들 수 있습니다. 또는 티켓 공급업체는 스포츠 경기의 원정 팀이나 콘서트의 서막 같이, 보조 참여자를 포함하도록 행사가 열리는 장소에 대한 속성을 만들 수 있습니다.

단일 값 엔티티 사용자 지정 속성의 최대 길이는 15,000자(영어 및 기타 라틴어 스크립트 알파벳과 같은 1바이트 및 2바이트 UTF-8 인코딩 언어인 경우) 또는 10,000자(중국어, 일본어 및 한국어와 같은 3바이트 UTF-8 인코딩 언어인 경우)입니다.

다중 값 엔티티 사용자 지정 속성은 최대 500개의 값을 포함할 수 있습니다. 각 개별값은 100자로 제한됩니다. 모든 값에 걸친 총 문자 수는 단일 값 엔티티 사용자 지정 속성의 최대 길이에 대한 제한을 준수해야 합니다(위 참조).

사용자 지정 엔티티 속성 값 section_313331A9F8194A89B5EDD89363018651

사용자 지정 엔티티 속성은 단일 값 또는 다중 값을 포함할 수 있습니다. 엔티티 속성 값은 제품 보기에 표시됩니다.

multi-valueproduct 이미지

단일 값을 사용하는 사용자 지정 엔티티 속성은 단일 값 사전 정의 엔티티 속성과 동일한 방식으로 형성됩니다.

entity.genre=genre1

다중 값 사용자 지정 엔티티 속성은 올바른 JSON 배열로 전송해야 합니다.

entity.genre=["genre1", "genre2"]

Recommendations에서 지원하는 올바른 JSON 배열의 예:

  • ["AB","BC"] 모든 값이 문자열입니다.
  • [1,2] 모든 값이 숫자입니다.
NOTE
Recommendations에서는 다중 값 엔티티 속성에서 혼합 값 유형을 지원하지 않습니다. 예를 들어, ["AB",1,true, [1,2,3]]은 유효한 JSON 배열이지만 혼합 값 유형(문자열, 숫자, 부울, 개체)이 포함되어 있으므로 Recommendations에서는 지원되지 않습니다.

사용자 지정 속성이 유효한 JSON 배열로 전송되면 이 속성은 카탈로그의 모든 제품에 대한 다중 값 속성으로 처리됩니다.

NOTE
속성을 다중 값에서 단일 값으로 변경하려면 카탈로그를 삭제하고 수정된 제품 데이터를 업로드해야 합니다. 카탈로그를 삭제해도 제품 ID와 연결된 이전 데이터는 삭제되지 않습니다. 자세한 내용은 시스템에서 모든 항목 삭제를 참조하십시오.

제한 사항:

  • 사용자 지정 엔티티 속성에는 사전 정의된 엔티티 속성 이름을 사용할 수 없습니다. 엔티티 속성을 참조하십시오.
  • entity.environment 속성은 시스템에 의해 예약되어 있으므로 사용자 지정 엔티티 속성에 사용할 수 없습니다. entity.environment, 피드 또는 API를 사용하여 targetPageParams를 전달하려고 시도하는 것은 무시됩니다.
  • 배열에 단일 값 유형이 포함되어야 합니다. 혼합 값 배열(["AB",1,true])은 지원되지 않습니다.
  • 중첩 JSON 배열([10,12,[1,2,3]])을 포함하는 다중 값 속성은 단일 값 속성으로 처리됩니다.

다중 값 속성 구현 section_80FEFE49E8AF415D99B739AA3CBA2A14

다중 값 사용자 지정 엔티티 속성은 피드(CSV), targetPageParams 및 배달 API를 사용하여 제품을 업로드할 때 지원됩니다. 새 값이 현재 값을 대체하며, 추가되지 않습니다. 빈 배열([])은 값이 없는 것으로 처리됩니다.

큰따옴표는 이스케이프 처리를 해야 합니다. 예를 들어, "[""test"", ""value""]"는 CSV로 사용할 수 있는 올바른 JSON 배열입니다.

targetPageParams 사용

다음 예제에서는 targetPageParams을(를) 사용하는 방법을 보여 줍니다.

function targetPageParams() {
  return {
    'entity.id':                   '123',
    'entity.categoryId':            '["A", "A:B", "A:B:C", "A:B:C:D"]',
    'entity.MultiValueAttribute':   '["X", "Y", "Z"]',
    'entity.event.detailsOnly':     'true',
    'excludedIds':                  '[123, 3232, 2323, 4344]',
    'orderId':                      '123456',
    'orderTotal':                   '195.32',
    'productPurchaseId':            '[001,002,003]'
  };
}

CSV 사용

텍스트 편집기를 사용하여 CSV 파일을 원시 형식으로 관리하거나 스프레드시트 소프트웨어를 사용할 수 있습니다.

원시 CSV의 모습은 다음과 유사합니다.

multi-valueexampleraw 이미지

동일한 카탈로그를 스프레드시트에서 볼 때는 다음과 같습니다.

multi-valueexampleexcel 이미지

.csv 형식으로 변환할 때 스프레드시트 소프트웨어는 셀 컨텐츠 둘레에 큰따옴표를 추가하여 셀 내의 쉼표가 셀 구분 기호로 작동하지 않도록 합니다. 또한 사용자 지정 다중 값 속성에 포함하는 JSON 문자열 값의 둘레에도 큰 따옴표를 추가합니다. 이는 원시 파일에서 바로 작업하는 것을 불편하게 할 수 있습니다. 예:

  • 스프레드시트: ["1","2","3"]
  • 원시: "[""1"",""2"",""3""]"

원시 카탈로그 CSV 파일을 직접 편집할 때는 주의하십시오.

API 사용

mbox 매개 변수의 배달 API를 이스케이프 처리된 JSON 배열을 포함하는 문자열 값으로 사용하여 다중 값 속성을 전달할 수 있습니다.

"execute": {
    "mboxes": [
      {
        "index": 0,
        "name": "first-mbox",
        "parameters": {
          "entity.id": "32323",
          "entity.categoryId": "My Category",
          "entity.MultiValueAttribute": "[\"X\", \"Y\", \"Z\"]"
        }
      }
    ]
  }

배달 및 저장 엔터티 API 사용에 대한 자세한 내용은 Adobe Recommendations API 설명서를 참조하세요.

다중 값 속성에 연산자 사용 section_83C2288A805242D9A02EBC4F07DEE945

알고리즘 포함 규칙, 카탈로그 규칙 및 제외 규칙의 다중 값 사용자 지정 속성에 연산자를 적용할 때, 목록에 있는 하나 이상의 값이 연산(부울 or)을 통과하는 경우 결과는 true​가 됩니다.

다음 예제에서는 규칙이 message contains abc입니다.

  • 사례 1: entity.genre = ["ab", "bc", "de"]. 어떤 값도 abc.
  • 사례 2: entity.genre = ["abcde","de","ef"]. 하나의 값이 abc.

부정 연산자의 경우, 모든 속성 값이 연산을 통과해야 합니다(부울 and). 예를 들어 연산자가 notEquals이면 값이 일치하는 경우 결과는 false​가 됩니다.

다음 표에서는 각 연산자의 동작을 요약하고 각 예제 규칙에 대한 사례를 설명합니다.

연산자
다음의 경우 결과는 true입니다.
규칙 예
속성 값
결과
이유
다음과 같음
모든 속성 값은 입력 값과 같습니다.
genre equals abc
["ab", "bc", "de"]
False
abc과(와) 같은 값이 없습니다.
["abc", "de", "ef"]
True
하나의 값이 abc과(와) 같습니다.
["abcde", "de", "ef"]
False
abc이(가) 목록에 있는 어떤 요소와도 같지 않습니다.
다음과 같지 않음
입력 값과 같은 속성 값이 없습니다.
genre not equals abc
["ab", "bc", "de"]
True
abc과(와) 같은 값이 없습니다.
["abc", "de", "ef"]
False
하나의 값이 abc과(와) 같습니다.
["abcde", "de", "ef"]
True
abc이(가) 목록에 있는 어떤 요소와도 같지 않습니다.
다음 포함
모든 속성 값에 입력 값이 포함됩니다.
genre contains abc
["ab", "bc", "de"]
False
abc을(를) 포함하는 값이 없습니다.
["abcde", "de", "ef"]
True
하나의 값에 abc이(가) 포함되어 있습니다.
다음을 포함하지 않음
입력 값을 포함하는 속성 값이 없습니다.
genre does not contain abc
["ab", "bc", "de"]
True
abc을(를) 포함하는 값이 없습니다.
["abcde", "de", "ef"]
False
하나의 값에 abc이(가) 포함되어 있습니다.
다음으로 시작
모든 속성 값은 입력 값으로 시작합니다.
genre starts with abc
["ab", "bc", "de"]
False
abc(으)로 시작하는 값이 없습니다.
["abcde", "de", "ef"]
True
하나의 값이 abc(으)로 시작합니다.
["ab", "de", "abc"]
True
하나의 값이 abc(목록에서 첫 번째 요소일 필요는 없음)으로 시작합니다.
다음으로 끝남
모든 속성 값은 입력 값으로 끝납니다.
genre ends with abc
["ab", "bc", "de"]
False
abc(으)로 끝나는 값이 없습니다.
["deabc", "de", "ef"]
True
하나의 값이 abc(으)로 끝납니다.
다음보다 크거나 같음(숫자 값만 해당)
모든 속성 값이 입력 값보다 크거나 같습니다. 각 값이 double로 변환되며 변환할 수 없는 값은 규칙이 실행되는 동안 건너뜁니다.
price greater than or equal to 100
["10", "20", "45", "de"]
False
100보다 크거나 같은 값이 없습니다. 값 de는 double로 변환할 수 없으므로 건너뜁니다.
["100", "101", "90", "80"]
True
두 값이 100보다 크거나 같습니다.
다음보다 작거나 같음(숫자 값만 해당)
모든 속성 값이 입력 값보다 작거나 같습니다. 각 값이 double로 변환되며 변환할 수 없는 값은 규칙이 실행되는 동안 건너뜁니다.
price less than or equal to 100
["101", "200", "141", "de"]
False
100보다 작거나 같은 값은 없습니다. 값 de는 double로 변환할 수 없으므로 건너뜁니다.
["100", "101", "90", "80"]
True
두 개의 값이 100보다 작거나 같습니다.
동적으로 일치(항목 기반 알고리즘에서만 사용 가능)
모든 속성 값이 입력 값과 일치합니다.
genre matches abc
["ab", "bc", "de"]
False
abc과(와) 일치하는 값이 없습니다.
["abc", "de", "ef"]
True
하나의 값이 abc과(와) 일치합니다.
동적으로 일치하지 않음(항목 기반 알고리즘에서만 사용 가능)
입력 값과 일치하는 속성 값이 없습니다. 어떤 속성 값이든 일치하면 결과는 false입니다.
genre does not match abc
["ab", "bc", "de"]
True
abc과(와) 일치하는 값이 없습니다.
["abc", "de", "ef"]
False
하나의 값이 abc과(와) 일치합니다.
동적 범위(항목 기반 알고리즘에서만 사용 가능, 숫자 값만 해당)
모든 숫자 속성 값이 지정된 범위 내에 있습니다.
price dynamically ranges in 80% to 120% of 100
["101", "200", "125", "de"]
True
101은(는) 100의 80%~120% 범위에 있습니다. 값 de는 double로 변환할 수 없으므로 건너뜁니다.
["130", "191", "60", "75"]
False
100의 80%~120% 범위에 있는 값이 없습니다.
NOTE
Double​은 Java 데이터 유형입니다. 숫자 값이 필요한 연산자의 경우, double로 변환하면 숫자가 아닌 값은 결과에서 고려되지 않습니다.

디자인의 다중 값 속성 section_F672E4F6E1D44B3196B7ADE89334ED4A

다중 값 속성은 디자인에서 참조할 때 쉼표로 구분된 목록으로 표시됩니다.

예:

디자인에서 entity.genre=["genre1","genre2"]가 $entity<N>.genre로 참조되는 경우 결과는 genre1, genre2입니다.

관련 항목

AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: Single- and multi-value custom entity attributes define additional information about items in the Adobe Target Recommendations catalog, and this page explains the limits, how to send them, and how operators and designs treat multiple values.

Intents:

  • Define single-value and multi-value custom entity attributes for items in the catalog.
  • Send a multi-value custom entity attribute as a valid JSON array.
  • Implement multi-value attributes with feeds (CSV), targetPageParams, or the Delivery API.
  • Predict the result of an operator applied to a multi-value custom attribute in algorithm inclusion rules, catalog rules, and exclusion rules.
  • Display multi-value attributes in a design.

Glossary:

  • Custom entity attribute (product-specific): an attribute that defines additional information about items in the catalog. It can be used in algorithm inclusion rules, catalog rules, and exclusion rules, and it can be displayed in designs.
  • Single-value attribute: a custom entity attribute with one value, formed the same way as a single-value predefined entity attribute, for example entity.genre=genre1.
  • Multi-value attribute: a custom entity attribute that contains several values and is sent as a valid JSON array, for example entity.genre=["genre1", "genre2"].
  • Double: a Java data type. For operators that require numeric values, converting to double eliminates non-numeric values from consideration in the results.

Guardrails:

  • You can include up to 100 custom entity attributes.
  • The maximum length of single-value entity custom attributes is 15,000 characters for one- and two-byte UTF-8 encoded languages such as English and other Latin-script alphabets, or 10,000 characters for three-byte UTF-8 encoded languages such as Chinese, Japanese and Korean.
  • Multi-value entity custom attributes can contain no more than 500 values. Each individual value is limited to 100 characters. The total number of characters across all values must conform to the limitations for the maximum length of single-value entity custom attributes.
  • A multi-value custom entity attribute must be sent as a valid JSON array.
  • Recommendations does not support mixed value types in multi-value entity attributes. Arrays must contain a single value type. For example, ["AB",1,true] is not supported.
  • You cannot use predefined entity attribute names for custom entity attributes.
  • The attribute entity.environment is reserved by the system and cannot be used for custom entity attributes. Attempts to pass entity.environment using targetPageParams, feeds, or APIs will be ignored.
  • After a custom attribute is sent as a valid JSON array, the attribute is treated as a multi-value attribute for all products in the catalog. To change an attribute from multi-value to single-value, you must delete your catalog and upload corrected product data. Deleting your catalog does not delete the historical data associated with your product IDs.
  • When implementing multi-value attributes, double quotes must be escaped.

Applicability:

  • Multi-value custom entity attributes are supported when using feeds (CSV), targetPageParams, and the Delivery API to upload products.
  • The operators Dynamically matches, Dynamically does not match, and Dynamically ranges are only available in item-based algorithms.
  • The operators Greater than or equal to, Less than or equal to, and Dynamically ranges apply to numeric values only.

Terminology:

  • Canonical name: Custom entity attributes (the page also writes “custom attribute”, “entity custom attributes” and, for multi-value, “multi-valued custom attributes”).
  • Product name: Adobe Target Recommendations (written “Recommendations” in the body).
  • Variants: “single-value” and “multi-value” custom entity attributes.

FAQ:

  • How do I send a multi-value custom entity attribute? Send it as a valid JSON array, for example entity.genre=["genre1", "genre2"]. In a Delivery API mbox parameter, pass it as a string value containing an escaped JSON array.
  • What happens when I send new values for a multi-value attribute? New values replace current values; they are not appended. Empty arrays ( [] ) are treated as having no values.
  • How does an operator work on a multi-value custom attribute? The result is true if at least one value in the list passes the operation (boolean or). For negative operators, all attribute values must pass (boolean and); for example, with the operator notEquals, the result is false if any value matches.
  • What happens to values that cannot be converted to double? For operators that require numeric values, each value is converted to double, and values that cannot be converted are skipped while the rule runs.
  • How does a multi-value attribute appear in a design? It appears as a comma-separated list when referenced in a design.
  • Where are entity attribute values displayed? Entity attribute values are displayed in the product view.

Examples:

  • Valid JSON arrays supported by Recommendations: ["AB","BC"] (all values are strings) and [1,2] (all values are numeric).
  • targetPageParams example of sending a multi-value attribute: 'entity.MultiValueAttribute': '["X", "Y", "Z"]'.
  • CSV example of a valid JSON array with escaped double quotes: "[""test"", ""value""]". Spreadsheet software shows ["1","2","3"], while the raw file shows "[""1"",""2"",""3""]".
  • Delivery API example of sending a multi-value attribute in an mbox parameter: "entity.MultiValueAttribute": "[\"X\", \"Y\", \"Z\"]".
  • Rule message contains abc: with entity.genre = ["ab", "bc", "de"] the result is false because no value contains abc; with entity.genre = ["abcde","de","ef"] the result is true because one value contains abc.
  • Rule genre not equals abc: with ["abc", "de", "ef"] the result is false because one value is equal to abc; with ["ab", "bc", "de"] the result is true.
  • Rule price greater than or equal to 100 with ["10", "20", "45", "de"]: the result is false, and the value de is skipped because it cannot be converted to double.
  • Design reference: when entity.genre=["genre1","genre2"] is referenced in a design as $entity<N>.genre, the result is genre1, genre2.

Best practices:

  • Use caution when editing a raw catalog CSV file directly, because spreadsheet software adds double quotation marks around JSON string values in custom multi-value attributes, which can make working directly with the raw file unwieldy.

Related pages:

  • Predefined entity attribute names that cannot be used for custom entity attributes: Entity Attributes (c-recommendations/c-products/entity-attributes.md)

Personas:

  • developer: Can send multi-value custom entity attributes with feeds (CSV), targetPageParams, and the Delivery API. With the Delivery API, they are passed in an mbox parameter as a string value containing an escaped JSON array. Double quotes must be escaped. The page states that new values replace current values and are not appended. Where: “Implementing multi-value attributes”.
  • marketer: Can apply operators to multi-valued custom attributes in algorithm inclusion rules, catalog rules, and exclusion rules, where the result is true if at least one value passes the operation. The page states that for negative operators, all attribute values must pass. Where: “Using operators with multi-value attributes”.

Onboarding:

  • Level: Intermediate, Experienced
  • First minimal step: Send a multi-value custom entity attribute as a valid JSON array, for example entity.genre=["genre1", "genre2"].
  • Previous: Check predefined entity attribute names that cannot be used for custom attributes: Entity Attributes (c-recommendations/c-products/entity-attributes.md)
recommendation-more-help
target-help-main