NEWVectors or files. Pick a path.Start →
    Ad Tech & Media

    Contextual Ad Targeting

    Match ads to content by semantic context rather than user tracking. Retrieves the most contextually aligned content segments for a given ad message, enabling privacy-safe contextual targeting.

    No credit card to start · Build from $25/mo

    Pipeline Stages

    1
    contextual_search
    filter
    feature_search
    View parameters
    {
      "searches": [
        {
          "feature_uri": "mixpeek://text_extractor@v1/multilingual_e5_large_instruct_v1",
          "query": {
            "input_mode": "text",
            "value": "{{INPUT.ad_message}}"
          },
          "top_k": 100
        },
        {
          "feature_uri": "mixpeek://image_extractor@v1/google_siglip_base_v1",
          "query": {
            "input_mode": "text",
            "value": "{{INPUT.ad_message}}"
          },
          "top_k": 50
        }
      ],
      "final_top_k": 25,
      "fusion": "rrf"
    }
    2
    iab_classification
    apply
    taxonomy_enrich
    View parameters
    {
      "taxonomy_id": "{{CONTEXT.iab_taxonomy_id}}",
      "output_field": "metadata.iab_categories",
      "top_k": 3
    }

    Input Schema

    ad_message
    text
    required

    The ad message, product description, or campaign theme to match against content

    e.g. luxury SUV with advanced safety features

    Use Cases

    • Cookie-free contextual ad placement
    • Content-to-ad relevance scoring
    • Publisher monetization optimization
    • Brand safety + relevance pairing

    Requirements

    • Collection must have text and image embeddings indexed
    • IAB taxonomy must be configured in namespace

    Tags

    contextual-targeting
    adtech
    iab
    privacy-safe
    advertising

    Ready to use this template?

    Clone it into your namespace and start querying in minutes.