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

엔티티 속성 entity-attributes

이 페이지에서: 제품 또는 콘텐츠 정보를 Adobe Target Recommendations에 전달하는 엔터티 특성과 각 엔터티 정보를 정의하는 방법을 알아봅니다.

엔터티 특성을 사용하여 제품 또는 콘텐츠 정보를 Adobe Target Recommendations에 전달합니다. 이 정보는 디자인에 표시되고 포함 규칙, 컬렉션 및 제외에 사용할 수 있습니다. 엔티티는 제품, 콘텐츠(문서, 슬라이드쇼, 이미지, 동영상 및 TV 프로그램 등), 구인 및 구직 정보, 식당 등 권장할 항목입니다. Recommendations이(가) 알고리즘에 사용되는 productId 또는 productPurchasedId(코드에서는 entity.id이라고 함)을(를) 보냅니다.

다음 사항을 고려하십시오.

  • entity.id은(는) 주문 확인 페이지에 전송된 productPurchasedId과(와) Adobe Analytics 제품 보고서에 사용된 productId과(와) 일치해야 합니다.
  • Recommendations에 전달하는 엔터티 특성 값은 61일 후에 만료됩니다. Adobe에서는 카탈로그의 각 항목에 대해 매월 최소 한 번씩 각 엔터티 특성의 최신 값을 Recommendations에 전달하는 것이 좋습니다.

대부분의 사전 정의된 매개 변수는 단일 값만 허용하며 새 값이 이전 값을 덮어씁니다. categoryId 매개 변수는 예외입니다(entity.categoryId 참조).

일반적으로 mboxCreate에서 at.js 1.x​을(를) 사용하는 경우 표시 정보 mbox는 다음 예제와 비슷합니다. 모든 엔티티 매개 변수 속성은 대소문자를 구분합니다.

at.js 2.x​을(를) 사용하는 경우 다음 예에서 사용한 mboxCreate은(는) 더 이상 지원되지 않습니다. at.js 2.x​을(를) 사용하여 Recommendations에 제품 또는 콘텐츠 정보를 전달하려면 targetPageParams을(를) 사용하십시오. 예를 들어 권장 사항 계획 및 구현을 참조하세요.

엔티티 속성을 전달하는 mbox의 예
code language-javascript
<div class="mboxDefault"></div><script language="JavaScript1.2">

mboxCreate('productPage',

'entity.id=67833',

'entity.name=GIANTS VS ROCKIES 5/12',

'entity.categoryId=BASEBALL, GIANTS, SF BAY AREA',

'entity.pageUrl=/help/baseball/giants-tix/giantsvrockies5.12.2000-67833',

'entity.venue=AT&T PARK',

'entity.secondary=ROCKIES',

'entity.thumbnailUrl=/help/baseball/giants-tix/giants-136px.gif',

'entity.message=FAMILY SPECIAL',

'entity.value=15.99',

'entity.inventory=1'

);

</script>
NOTE
권장 사항은 사이트의 모든 환경에서 전송되는 데이터를 수신하므로 pageUrl 및 thumbnailUrl에는 절대 URL보다 상대 URL이 선호됩니다. 상대 URL을 사용하면 스테이징 서버나 개발 서버에 대한 하드코딩된 링크가 사용되지 않습니다.

mbox가 제품 페이지에 있는 경우 제품 ID와 카테고리 ID를 모두 포함할 수 있습니다. 선택한 알고리즘이 표시할 항목을 결정합니다. 제품 ID는 친화성 알고리즘에 사용되고 카테고리 ID는 카테고리 알고리즘에 사용됩니다.

사용 가능한 변수

다음 표에는 사용 가능한 변수가 나와 있습니다. 표 뒤의 하위 섹션에서는 이 변수가 필요한 변수에 대해 자세히 설명합니다.

변수
값
설명
예
entity.id
단일 값만 필수.
제품을 식별합니다. entity.id을(를) 참조하십시오.
'entity.id=67833'
entity.name
단일 값만
제품을 추천할 때 웹 사이트에 표시되는 제품 이름입니다.
'entity.name=Giants& vs& Rockies& 5/12'
entity.categoryId
다중 값(쉼표로 구분된 목록).
현재 페이지의 카테고리입니다. entity.categoryId을(를) 참조하십시오.
'entity.categoryId=womens:sweaters'
entity.brand
단일 값만
항목의 브랜드 이름을 표시합니다.
'entity.brand=brandxyz'
entity.pageUrl
단일 값만
항목을 구입할 수 있는 페이지의 상대 URL을 정의합니다.
'entity.pageUrl=baseball/giants-tix/giantsvrockies5.12.2000-67833'
entity.thumbnailUrl
단일 값만
항목과 함께 표시되는 썸네일 이미지에 대한 상대 URL을 정의합니다.
'entity.thumbnailUrl=baseball/giants-tix/giants-136px.gif'
entity.message
단일 값만
권장 사항에 표시되는 제품에 대한 메시지(예: “판매 중” 또는 “세일”)입니다. 메시지는 일반적으로 제품 이름보다 더 자세합니다. 템플릿에 제품과 함께 표시할 추가 정보를 정의하려면 entity.message을(를) 사용하십시오.
'entity.message=Family&nbsp;special'
entity.inventory
단일 값만 정수 또는 long 값이 필요합니다.
항목의 재고 수준을 표시합니다. entity.inventory을(를) 참조하십시오.
'entity.inventory=1'
entity.value
단일 값만
항목의 가격 또는 값을 정의합니다. 소수점 형식만 지원됩니다(예: 15.99). 쉼표 형식(15,99)은 지원되지 않습니다.
'entity.value=15.99'
entity.margin
단일 값만
항목의 이윤 폭 또는 다른 가치
'entity.margin=1.00'
entity.사용자 지정
다중 값(JSON 배열).
항목에 대한 추가 정보를 제공하는 사용자 지정 변수입니다. entity.custom​을(를) 참조하십시오.
'entity.secondary=Rockies'
entity.event.detailsOnly
단일 값만
mbox 호출이 알고리즘에 대한 동작 데이터 카운터를 증가시키지 않도록 합니다. entity.event.detailsOnly을(를) 참조하십시오.
'entity.event.detailsOnly=true'

entity.id entity-id

항목을 인식하고 그에 대한 데이터를 공유하려면 다양한 제품에 사용된 모든 Adobe Experience Cloud 제품(Analytics 포함)에서 영숫자 ID가 동일해야 합니다.

entity.id 값은 REST API 호출에 전달될 때 URL 인코딩이 필요한 공백, 슬래시, 앰퍼샌드, 물음표, 백분율 기호, 쉼표 또는 기타 구두점 문자를 포함하지 않아야​합니다. 하이픈 및 밑줄을 사용할 수 있습니다. entity.id 값에 올바르지 않은 구두점을 포함하면 일부 Recommendations 기능에 오류가 발생합니다.

entity.categoryId entity-category-id

entity.categoryId 값에는 카디건 하위 섹션(예: womens, womens:sweaters, womens:sweaters:cardigans)과 같은 여러 범주가 포함될 수 있습니다. 여러 카테고리는 쉼표로 구분해야 합니다. 새 categoryId 값은 기존 값을 덮어쓰지 않지만, 대신 엔터티를 업데이트하는 동안 추가됩니다. categoryId 값은 250자로 제한됩니다.

NOTE
카테고리를 기반으로 한 권장 사항을 카테고리 페이지에 표시하기 위해 한 개의 categoryId만 특정 권장 사항을 표시하는 데 사용되는 mbox에 전달할 수 있습니다. categoryId 값은 제품 세부 정보 페이지에서 전달된 entity.categoryId 값과 정확히 일치해야 합니다.

예:

  • 제품 세부 정보 페이지 예: womens, womens:sweaters, womens:sweaters:cardigans
  • 예제 범주 페이지 스웨터: womens:sweaters
  • 예제 카테고리 페이지 가디건: womens:sweaters:cardigans

카테고리 기반 권장 사항의 경우 쉼표로 카테고리 값을 구분합니다. 쉼표로 구분되는 모든 값은 카테고리가 됩니다. 콜론(:)과 같은 기타 구분 기호를 사용하여 카테고리 값 내의 하위 카테고리를 구분하도록 정의할 수도 있습니다.

예를 들어 다음 코드에서 여성의 카테고리는 여러 하위 카테고리로 나뉩니다.

mboxCreate('mboxName', 'entity.id=343942-32', 'entity.categoryId= Womens, Womens:Outerwear, Womens:Outerwear:Jackets, Womens:Outerwear:Jackets:Parka, Womens:Outerwear:Jackets:Caban', 'entity.thumbnailUrl=...', 'entity.message=...');

mbox 배달의 경우 키에 가장 긴 속성 이름이 사용됩니다. 연결이 있는 경우 마지막 속성이 사용됩니다. 위의 예에서 범주 키는 Womens:Outerwear:Jackets:Caban입니다.

entity.inventory entity-inventory

빈 재고 특성 처리: 배달을 위해 포함 규칙, 컬렉션 규칙 또는 기준 설정이 entity.inventory > 0 또는 entity.inventory = 0이고 제품에 재고가 설정되어 있지 않은 경우 Target에서 이 값을 TRUE로 평가하고 재고가 설정되지 않은 제품을 포함합니다. 따라서 재고가 설정되지 않은 제품은 추천 결과에 표시됩니다.

마찬가지로, 글로벌 제외 규칙이 entity.inventory = 0으로 설정되어 있고 entity.inventory가 설정되지 않은 경우 Target은 이 규칙을 TRUE로 평가하고 제품을 제외합니다.

NOTE
알려진 문제: 제품 검색이 설정되지 않은 재고 값 특성에 대한 게재와 일치하지 않습니다. 예를 들어, entity.inventory = 0인 규칙의 경우, 제품 검색 결과에 재고 값이 설정되지 않은 제품이 표시되지 않습니다.

entity.사용자 지정 entity-custom

최대 100개의 사용자 지정 변수를 정의할 수 있습니다. 각 사용자 지정 속성에 대해 미사용 속성 이름을 지정할 수 있습니다. 예를들어, entity.genre(이)라는 사용자 지정 특성을 만들어 책 또는 동영상을 정의할 수 있습니다. 티켓 공급업체는 스포츠 경기의 원정 팀이나 콘서트의 서막 같이, 보조 참여자를 위한 이벤트 장소에 대한 속성을 만들 수 있습니다.

제한 사항:

  • 사용자 지정 엔티티 속성에는 사전 정의된 엔티티 속성 이름을 사용할 수 없습니다.
  • entity.environment 속성은 시스템에 의해 예약되어 있으므로 사용자 지정 엔티티 속성에 사용할 수 없습니다. targetPageParams, 피드 또는 API를 사용하여 entity.environment을(를) 전달하려는 시도는 무시됩니다.

예:

'entity.venue=AT&T&nbsp;Park'

'entity.secondary=Rockies'

사용자 지정 엔티티 속성은 다중 값을 지원합니다. 문자 및 값 제한에 대해서는 사용자 지정 엔티티 속성을 참조하십시오.

예: 'entity.secondary=["band1",&nbsp;"band2"]'

다중 값 사용자 지정 엔티티 속성에는 유효한 JSON 배열이 필요합니다. 올바른 구문 정보는 사용자 지정 엔터티 특성을 참조하십시오.

entity.event.detailsOnly entity-event-details-only

이 매개 변수를 사용하여 mbox 호출이 알고리즘에 대한 동작 데이터 카운터를 증분 하지 못하도록 합니다.

다음 예에서 첫 번째 mbox 호출은 카탈로그 및 동작 데이터를 업데이트합니다. 두 번째 mbox 호출은 카탈로그만 업데이트합니다.

mboxCreate('myMbox', 'profile.geo.city = new york', 'profile.geo.state = new york', 'entity.id = 123', 'entity.inventory = 4' )
mboxCreate('myMbox', 'profile.geo.city = new york', 'profile.geo.state = new york', 'entity.id = 123', 'entity.inventory = 4', 'entity.event.detailsOnly=true' )
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: Entity attributes pass product or content information to Adobe Target Recommendations, and the page lists the available variables and how to define each one.

Intents:

  • Pass product or content information to Recommendations with entity attributes.
  • Find which entity variables are available, whether each accepts a single value or multiple values, and an example of each.
  • Define entity.id, entity.categoryId, and entity.inventory correctly.
  • Define custom entity attributes.
  • Prevent an mbox call from incrementing behavioral data counters for an algorithm with entity.event.detailsOnly.

Glossary:

  • Entity: an item you want to recommend, such as a product, content (articles, slide shows, images, movies, and television shows), a job listing, or a restaurant.
  • entity.id: the name in the code of the productId or productPurchasedId that Recommendations sends and that is used in the algorithms.
  • Custom entity attribute (product-specific): an entity.custom variable that provides additional information about the item.
  • entity.event.detailsOnly: a parameter that prevents an mbox call from incrementing behavioral data counters for an algorithm.

Guardrails:

  • entity.id must match the productPurchasedId sent to the order confirmation page and the productId used in Adobe Analytics product reports.
  • Entity attribute values that you pass to Recommendations expire after 61 days.
  • All entity parameter attributes are case-sensitive.
  • Most predefined parameters accept a single value only, with new values overwriting old values. The categoryId parameter is the exception.
  • entity.id is required and accepts a single value only. Its values must not contain spaces, slashes, ampersands, question marks, percentage symbols, commas, or other punctuation characters that require URL encoding when passed in a REST API call. Hyphens and underscores are allowed. Including invalid punctuation in an entity.id value causes some Recommendations functionality to fail.
  • entity.categoryId accepts a comma-delimited list of categories. New categoryId values do not overwrite existing values but are appended during entity update. The categoryId value is limited to 250 characters.
  • To show a recommendation based on a category in a Category page, only one categoryId can be passed into the mbox used to display that particular recommendation, and its value must match exactly the value of entity.categoryId passed on the Product Detail page.
  • entity.inventory requires an integer or long value.
  • entity.value: only the decimal format is supported (for example, 15.99). The comma format (15,99) is not supported.
  • You can define up to 100 custom variables. 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, feed, or API are ignored.
  • Multi-value custom entity attributes (JSON array) require valid JSON arrays.

Applicability:

  • at.js 1.x with mboxCreate: the display information mbox looks like the example on the page.
  • at.js 2.x: mboxCreate is no longer supported. To pass product or content information to Recommendations, use targetPageParams.

Terminology:

  • Canonical name: entity attributes (variant: entity parameter attributes)
  • Canonical name: Adobe Target Recommendations (variant: Recommendations)
  • Synonyms: “productId or productPurchasedId” = “entity.id” (the page says the former is referred to as entity.id in the code)

FAQ:

  • How long do entity attribute values last? Entity attribute values that you pass to Recommendations expire after 61 days.
  • Which entity variable is required? entity.id is required and accepts a single value only.
  • How many custom variables can I define? You can define up to 100 custom variables, and you can specify any unused attribute name for each custom attribute.
  • Can I use entity.environment as a custom entity attribute? No. entity.environment is reserved by the system, and attempts to pass it using targetPageParams, feed, or API are ignored.
  • What does entity.event.detailsOnly do? It prevents an mbox call from incrementing behavioral data counters for an algorithm.
  • What happens to products with entity.inventory not set in delivery? If an inclusion rule, collection rule, or criteria setting uses entity.inventory > 0 or entity.inventory = 0, Target evaluates the value to TRUE and includes the products where the inventory is not set.

Troubleshooting:

  • Known issue: Product Search is inconsistent with delivery for inventory value attributes that are not set. For example, for a rule with entity.inventory = 0, Product Search does not display products where the inventory value is not set.

Examples:

  • Example of an mbox that passes entity attributes: an mboxCreate('productPage', ...) call with entity.id, entity.name, entity.categoryId, entity.pageUrl, entity.venue, entity.secondary, entity.thumbnailUrl, entity.message, entity.value, and entity.inventory (for at.js 1.x).
  • Category values for entity.categoryId: a Product Detail page passes womens, womens:sweaters, womens:sweaters:cardigans; a Category page for Sweaters passes womens:sweaters; a Category page for Cardigans passes womens:sweaters:cardigans.
  • Subcategories in entity.categoryId: a colon (:) can separate subcategories within the category value, as in Womens, Womens:Outerwear, Womens:Outerwear:Jackets, Womens:Outerwear:Jackets:Parka, Womens:Outerwear:Jackets:Caban.
  • Custom entity attributes: entity.genre can define a book or movie. A ticket vendor can create attributes for an event venue and for a secondary performer, such as a visiting team in a sporting event or an opening act in a concert (for example, 'entity.secondary=Rockies'). A multi-value example is 'entity.secondary=["band1",&nbsp;"band2"]'.
  • entity.event.detailsOnly: with mboxCreate('myMbox', ..., 'entity.id = 123', 'entity.inventory = 4'), the mbox call updates the catalog and behavioral data. With 'entity.event.detailsOnly=true' added, the mbox call updates only the catalog.
  • Product page mbox: if the mbox is on a product page, you can include both the product ID and category ID. The selected algorithm determines which displays: the product ID is used for affinity algorithms and the category ID is used for category algorithms.

Best practices:

  • Adobe recommends that you pass the latest value of each entity attribute to Recommendations at least once per month for each item in your catalog.
  • Relative URLs are preferred for pageUrl and thumbnailUrl rather than absolute URLs because recommendations receive data being sent from all environments on your site. Using relative URLs avoids hardcoded links to a staging or development server.

Related pages:

  • For character and value limits of custom entity attributes: Custom entity attributes (c-recommendations/c-products/custom-entity-attributes.md)
  • For correct syntax of multi-value custom entity attributes (valid JSON arrays): Custom entity attributes (c-recommendations/c-products/custom-entity-attributes.md)

Personas:

  • developer: Can pass product or content information to Recommendations with entity attributes such as entity.id, entity.categoryId, entity.inventory and entity.value. Can define up to 100 custom variables. The page states that entity attribute values that you pass to Recommendations expire after 61 days. Where: “Guardrails”.

Onboarding:

  • Level: Intermediate, Experienced
  • First minimal step: If you use at.js 2.x, pass product or content information to Recommendations with targetPageParams.
  • Next: For character and value limits of custom entity attributes: Custom entity attributes (c-recommendations/c-products/custom-entity-attributes.md)
recommendation-more-help
target-help-main