Genesis§ DOCS
§ FINDSearch documentation/
Guide

Targeting and optimization

Which controls apply to Picasso traffic, which need a full-profile integration, and what Genesis does not offer by design.

How targeting combines

  • An empty list means no restriction on that dimension.
  • An Offer Unit serves only if it passes both its campaign's lists and its own lists (categories, agent types, countries, stack tags).
  • Include and exclude lists may not overlap. The API rejects a placement, app or keyword that is in both.
  • A campaign limited to countries or regions skips requests that do not carry one. Locale matches by language (en matches en-US) and is skipped when the request has no locale.

Where each control applies

Picasso traffic uses a fixed request built by Genesis. It carries no prompt or code text, no region, no device or OS details, no session id and no audience segment keys, and a hashed user id only when the user has consented. Keywords, region, OS and audience segments therefore work only on full-profile integrations that call POST /v1/offers directly.

ControlPicasso trafficFull-profile /v1/offers
Intent categoriesYes. Picasso requests carry developer_tools and ai_tools.Yes, from context.categories.
Agent typesYes. Picasso requests are coding_assistant.Yes, from placement.agentType.
CountriesYes, when the request carries a country.Yes, from context.country.
LocalesYes, when the request carries a locale.Yes, from context.locale.
Placement and publisher app include or excludeYes.Yes.
SurfacesYes: agent_tool, ide or web, from the Picasso platform.Yes, from placement.surface.
PlatformsYes: cli, desktop, web or api, set by Genesis from the Picasso route.desktop, mobile or tablet, from context.device.type.
Stack tags and contextual segmentsYes, when the request carries stack tags. Picasso never sends stack tags together with a frequency key.Yes, from context.stackTags and context.categories.
Dayparting (schedule)Yes.Yes.
Bid modifiersYes, for placement, surface, platform, country, hour and day.Yes, for the same dimensions.
Frequency cap per placement (placement_total)Yes. Needs no identifier.Yes. Needs no identifier.
Frequency cap per userOnly on requests sent with the user's consent, which carry a hashed user id.Only when the request carries user.hashedUserId.
Frequency cap per sessionNo. Picasso sends no session id.Yes, when the request carries user.sessionId.
Keywords and negative keywordsNo. Picasso sends no prompt or code text.Yes. Full-profile integrations only.
Region (ISO 3166-2)No. Picasso sends no region.Yes, from context.region. Full-profile integrations only.
Device type and OS (mobile, tablet)No. Picasso sends no device or OS details.Yes, through the platform list, from context.device. Full-profile integrations only.
Publisher audience segmentsNo. Picasso sends no segment keys.Yes, from user.segmentKeys, and only with the user's consent. Full-profile integrations only.

Frequency caps

Genesis always applies its platform caps, plus every cap you set on the campaign. The strictest cap wins. Windows run from 1 to 168 hours.

  • placement_total counts your impressions in a placement across all traffic. It needs no identifier and works on Picasso.
  • Caps per user (user) need the user's consent: they count only requests that carry a consented hashed user id. Requests without one skip the cap rather than being blocked.
  • Caps per session need a session id, which Picasso never sends.

Bidding and optimization

These apply to all traffic, including Picasso.

  • Bid modifiers multiply your bid from 0.1 to 3.0 by placement, surface, platform, country, hour or day; 0 excludes that traffic. The combined multiplier stays between 0.1 and 3.0. Modifiers apply to manual bidding; 0 exclusions apply to every strategy.
  • Automatic bidding: max_clicks adjusts the bid once a day to spend the daily budget; target_cpa bids toward a cost per conversion and needs CPC units and a conversion goal. Your Offer Unit bid stays the ceiling and billing stays per click.
  • Click and conversion estimates are learned from aggregate counts per Offer Unit and placement, smoothed toward the network average while data is thin.
  • Creative rotation is even (default) or optimized, which favors the variant with the better click rate and keeps showing variants with fewer than 100 impressions.
  • Pacing: even spreads spend strictly across the day, standard allows some front-loading, and accelerated spends as demand allows within budget. Flight dates and hourly limits are editable.
  • Shared budgets cap the combined daily spend of several campaigns.
  • Automated rules (up to 20 per campaign) pause a campaign or post an in-app alert when a metric crosses a threshold over 24 hours or 7 days.
  • Contextual expansion, when switched on for a campaign, adds up to 10 placements and stack tags that perform at least as well as your current targeting. It works on placements and tags, never on people.
  • A competitive key keeps more than one offer with the same key out of a single response.

Learned estimates, automatic bidding, rules and standard pacing run behind production switches, so Genesis can turn any of them off without a deploy.

Publisher controls

  • Advertiser allow and block lists are saved per app and apply to every request for that app, including Picasso traffic.
  • Publishers can raise placement price floors above the platform default, never below it.
  • Audience segments are defined by the publisher and sent as user.segmentKeys. Genesis honors them only when the request carries the user's consent, only for that app, and never stores them on events.

Not offered, by design

Genesis does not offer retargeting, customer-list upload or matching, user-level lookalike audiences, or user-level interest segments. Each would need a profile of a person across sites or sessions, which Genesis does not build. Contextual segments and expansion are built from stack tags, categories and placements only.

Examples

A full-profile request that can match region and audience targeting:

await genesis.requestOffers({
  placement: { placementId: "chat_after_answer", appId: "app_123", surface: "chat" },
  context: {
    userMessage: "Which Postgres host supports branching?",
    country: "US",
    region: "US-CA",           // full-profile only; ISO 3166-2
    device: { type: "desktop" }
  },
  user: {
    hashedUserId: "sha256:...", // send only with the user's consent
    segmentKeys: ["power_users"] // publisher-defined; honored only with consent
  }
});

A campaign update. The keywords in it affect full-profile traffic only; every other field applies to all traffic, including Picasso:

PATCH /v1/advertiser/campaigns/cmp_123
{
  "targetSurfaces": ["agent_tool", "ide"],
  "excludePlacementIds": ["plc_low_fit"],
  "targetSegments": ["devops_cloud"],
  "schedule": { "days": [1, 2, 3, 4, 5], "hours": [8, 9, 10, 11, 12, 13, 14, 15, 16, 17] },
  "frequencyCaps": [{ "scope": "placement_total", "maxImpressions": 500, "windowHours": 24 }],
  "keywords": ["postgres"],
  "negativeKeywords": ["mysql"],
  "biddingStrategy": "manual"
}

Every field and endpoint is in the API reference and the OpenAPI contract at /openapi.yaml.