Skip to content

API /sp/targets/bid/recommendations how to use PAT_CATEGORY_REFINEMENT type ? #240

Answered by elizafarley
LionSniper asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @LionSniper,

PAT_CATEGORY contains only a category ID, like:

"targetingExpression": {
   "type": "PAT_CATEGORY",
   "value": "123456"
}

PAT_CATEGORY_REFINEMENTS will return both the category, and possible refinements (like brand or price) in a single expression. Here's an example:

"targetingExpression": {
   "type": "PAT_CATEGORY_REFINEMENT",
   "value": "category=\"12456\" price=20-90"
}

Hope that helps!

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@rajatanand86
Comment options

@Alekxys29
Comment options

@elizafarley
Comment options

@Alekxys29
Comment options

@elizafarley
Comment options

Answer selected by LionSniper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sponsored-ads Related to sponsored ads (Sponsored Products, Sponsored Brands, Sponsored Display) campaign-management
4 participants
Converted from issue

This discussion was converted from issue #239 on April 01, 2024 14:57.