> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adrop.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Context Targeting

> Context targeting displays ads on specific pages or content based on content attributes. This guide explains how to create context targeting using a local activity app as an example.

Configure targeting categories based on the activity category the user is viewing.

***

## What is Context?

**Context** is contextual information about the page the user is currently viewing. Any data that can distinguish pages—such as product categories, article classifications, or search keywords—can be context.

Context is passed via SDK during ad requests, and targeting categories are created by combining passed contexts.

<Note>
  Context data validity period is 28 days.
</Note>

***

## Passing Context ID

Context IDs are defined by the publisher. If you already have a content classification system in your service, you can use it directly. When requesting ads via SDK with a context ID, ads matching that context are displayed.

<Warning>
  Context IDs are case-sensitive. Enter exactly as passed from the SDK.
</Warning>

### Example: Local Activity App

Assuming a local activity app passes the category of the activity detail page the user is viewing as context.

| Activity Page                        | Context ID |
| ------------------------------------ | ---------- |
| **Bukhansan Hiking Meetup**          | hiking     |
| **Surfing Lessons**                  | surfing    |
| **Han River Kayaking**               | outdoor    |
| **Glamping Party**                   | camping    |
| **Italian Cooking Class**            | cooking    |
| **Traditional Liquor Tasting**       | tasting    |
| **Jeju Restaurant Tour**             | food       |
| **Pottery Workshop**                 | craft      |
| **Contemporary Art Exhibition Tour** | exhibition |
| **Musical Theater**                  | culture    |
| **Flower Art Class**                 | art        |
| **Yoga Class**                       | yoga       |
| **Meditation Workshop**              | meditation |
| **Spa Day**                          | spa        |

***

## Creating Context Targeting

<video autoPlay muted loop playsInline src="https://mintcdn.com/openrhapsody/smENmiWX3Jge7uck/videos/targeting-context-category.mp4?fit=max&auto=format&n=smENmiWX3Jge7uck&q=85&s=43620d623a0cacae99b6a04985fb5ef6" data-path="videos/targeting-context-category.mp4" />

### Step 1: Create Targeting

1. Click **Targeting → Context** in the left menu.
2. Click the **Create Targeting** button.

### Step 2: Enter Targeting Name

Enter the targeting name that will be displayed to advertisers.

### Step 3: Add Categories

1. Click the **+ Add Targeting Option** button.
2. Enter the targeting option name.
3. Set conditions.
   * Select operator (equals, contains, starts with, ends with, etc.)
   * Enter context ID
4. Use **Add Condition** to combine multiple context IDs if needed.
5. Click the **Add** button.

**Example: Local Activity App Category Configuration**

Combine context IDs to create "Activity Category" targeting.

| Category     | Condition                                            |
| ------------ | ---------------------------------------------------- |
| **Outdoor**  | context is "outdoor", "camping", "hiking", "surfing" |
| **Food**     | context is "food", "cooking", "tasting"              |
| **Culture**  | context is "culture", "exhibition", "concert"        |
| **Art**      | context is "art", "craft", "design"                  |
| **Wellness** | context is "wellness", "yoga", "meditation", "spa"   |

### Step 4: Save

Click the **Create Targeting** button to save.

### Bulk Context Targeting Creation

You can create multiple targetings at once by uploading a file with targeting information.
Targetings are created based on each row in the uploaded file, making it useful when you need to quickly register a large number of targetings.

1. Navigate to Targeting > **Context Targeting** menu.
2. Click the **Bulk Create Targeting** button in the upper right corner.
3. Download the **Targeting Creation Guide** file.
4. Fill in the file according to the input guide.
5. Upload the completed file to the bulk targeting creation window.
6. Click the **Create Targeting** button.

***

## Bundle Options

<video autoPlay muted loop playsInline src="https://mintcdn.com/openrhapsody/smENmiWX3Jge7uck/videos/targeting-context-category-group.mp4?fit=max&auto=format&n=smENmiWX3Jge7uck&q=85&s=41bbde3cb56483fdf9814d8fd17c786e" data-path="videos/targeting-context-category-group.mp4" />

You can bundle multiple targeting options into one to offer to advertisers.

1. Click the created targeting card.
2. Check 2 or more targeting options.
3. Click the **Bundle Options** button.
4. Enter the option name and save.
5. Click the **Save** button.

<Warning>
  Bundled options cannot be selected individually.
</Warning>

**Example: Bundling into 'Culture/Art' Option**

Bundle the Culture and Art targeting options into a "Culture/Art" option.

| Parent Option   | Included Targeting Options |
| --------------- | -------------------------- |
| **Culture/Art** | Culture, Art               |

Options displayed to advertisers after bundling:

* Outdoor
* Food
* Wellness
* **Culture/Art**

***

## Next Steps

<Card title="Selling Targeting" icon="store" href="/targeting/sell">
  Learn how to connect to ad products and set required targeting
</Card>

***

## FAQ

<AccordionGroup>
  <Accordion title="How should I design context IDs?">
    It's best to use your existing content classification system as-is. You don't need to create new ones—just pass existing category codes or tags as context IDs.
  </Accordion>

  <Accordion title="Does context targeting apply to non-logged-in users?">
    Yes, context targeting is based on the content of the page the user is currently viewing. Since no user information is needed, it applies equally to non-logged-in users.
  </Accordion>

  <Accordion title="What services is context targeting suitable for?">
    Effective for services with clear content classification. If page context is distinct—like news app article categories, commerce product categories, or real estate app listing types—you can provide valuable targeting to advertisers.
  </Accordion>

  <Accordion title="An error occurred while uploading the bulk targeting creation file.">
    Errors occur when invalid values are entered in each row. For example, required fields may be missing or values may not match the expected format. The rows with errors are displayed, and you can create the targetings by correcting the issues and re-uploading the file.
  </Accordion>
</AccordionGroup>
