Reads one GAM campaign (order) — its details and lifetime delivery (impressions, CTR, viewability) — with optional breakdowns per cohort, per day, or per line item.
The aggregate of cohorts on this campaign not listed in cohort_breakdown (not visible to you, or not resolvable in the cohort catalogue). Present with the cohort breakdown when any were dropped, so the breakdown accounts for all cohort delivery. Absent when nothing was dropped.
How many cohorts are aggregated here — those beyond the top-by-impressions cap, plus any not resolvable in the catalogue (owned outside this workspace, or uncatalogued). For observed_cohorts this is often large and is not a defect.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Permutive","colors":{"primary":"#ff5e99","light":"#f3eefe","dark":"#632ef5"},"logo":{"light":"https://mintcdn.com/permutive/zX9G7jjpccuZZlEf/logo/permutive-logo-light.svg?fit=max\u0026auto=format\u0026n=zX9G7jjpccuZZlEf\u0026q=85\u0026s=ae940c2b1c2eb923f6344b583fef176c","dark":"https://mintcdn.com/permutive/zX9G7jjpccuZZlEf/logo/permutive-logo-dark.svg?fit=max\u0026auto=format\u0026n=zX9G7jjpccuZZlEf\u0026q=85\u0026s=6406296261c92b204e6a6a9f8cca5676"},"favicon":"https://mintcdn.com/permutive/pNhz39ducTVcQczh/favicon.svg?fit=max\u0026auto=format\u0026n=pNhz39ducTVcQczh\u0026q=85\u0026s=a80278bd668352096f35034b78398cb5","navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://dash.permutive.com"}},"footer":{"socials":{"x":"https://x.com/permutive","github":"https://github.com/permutive","linkedin":"https://uk.linkedin.com/company/permutive"}},"styling":{"codeblocks":"dark","latex":true},"variables":{"android_core_release_version":"1.15.0","android_google_ads_release_version":"2.2.0","android_appnexus_release_version":"1.7.0"},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"life-ring","href":"mailto:technical-services@permutive.com"},{"anchor":"Status","icon":"signal","href":"https://status.permutive.com"},{"anchor":"Changelog","icon":"megaphone","href":"https://changelog.permutive.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"permutive","hasAudioNarration":false,"actualSubdomain":"permutive","customDomains":["docs.permutive.com"],"gitSource":{"type":"github","owner":"permutive","repo":"permutive-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf84e1d7cf896c8ad9102e","collectionId":"408b7281-8db6-439b-8db5-b28c6a2c6986","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf84e1d7cf896c8ad9102e"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adf8c24512cc7c96ff4d214","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Guides","count":143},{"language":"default","tag":"Integrations","count":123},{"language":"default","tag":"Platform","count":102},{"language":"default","tag":"Deployment","count":66},{"language":"default","tag":"Signals","count":48},{"language":"default","tag":"Mobile","count":40},{"language":"default","tag":"Cohorts","count":37},{"language":"default","tag":"APIs","count":35},{"language":"default","tag":"Advertising","count":25},{"language":"default","tag":"Connectivity","count":21}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles/custom.css","content":"[data-rehype-pretty-code-fragment] pre,div[data-rehype-pretty-code-fragment] pre,figure[data-rehype-pretty-code-figure] pre,pre,pre[class*=shiki]{background-color:#1a1a1a!important}code span[style],pre span[style]{color:var(--shiki-dark)!important}:not(pre)>code{padding:.2em .4em;border-radius:3px}html:not(.dark) :not(pre)>code{background-color:#ededed!important;color:#fa8784!important}html.dark :not(pre)>code{background-color:#1a1a1a!important;color:#f7d0e2!important}[data-callout-type=note]{border-color:#5bb5e0!important}[data-callout-type=note] svg{color:#5bb5e0!important}[data-callout-type=tip]{border-color:#9b7ee8!important}[data-callout-type=tip] svg{color:#9b7ee8!important}[data-callout-type=info]{border-color:#9ca3af!important}[data-callout-type=info] svg{color:#6b7280!important}[data-callout-type=warning]{border-color:#e8956a!important}[data-callout-type=warning] svg{color:#e8956a!important}html:not(.dark) [data-callout-type=note]{background-color:rgba(199,232,249,.4)!important}html:not(.dark) [data-callout-type=tip]{background-color:rgba(203,182,255,.4)!important}html:not(.dark) [data-callout-type=info]{background-color:rgba(237,237,237,.5)!important}html:not(.dark) [data-callout-type=warning]{background-color:rgba(249,193,168,.4)!important}html:not(.dark) :is(\n [data-callout-type=\"note\"],\n [data-callout-type=\"tip\"],\n [data-callout-type=\"info\"],\n [data-callout-type=\"warning\"]\n ) [data-component-part=callout-content]{color:#1a1a1a!important}html.dark [data-callout-type=note]{background-color:rgba(91,181,224,.12)!important}html.dark [data-callout-type=tip]{background-color:rgba(155,126,232,.14)!important}html.dark [data-callout-type=info]{background-color:rgba(156,163,175,.12)!important}html.dark [data-callout-type=info] svg{color:#9ca3af!important}html.dark [data-callout-type=warning]{background-color:rgba(232,149,106,.12)!important}html.dark :is(\n [data-callout-type=\"note\"],\n [data-callout-type=\"tip\"],\n [data-callout-type=\"info\"],\n [data-callout-type=\"warning\"]\n ) [data-component-part=callout-content]{color:#e5e7eb!important}html.dark [data-callout-type] :not(pre)>code{background-color:rgba(255,255,255,.1)!important;color:#f7d0e2!important}.agent-chat-user{display:flex;justify-content:flex-end;margin:1.25rem 0}.agent-chat-user-bubble{max-width:85%;padding:.75rem 1rem;border-radius:1rem;background-color:#f0f0f0;color:#1a1a1a}.agent-chat-user-bubble>p{margin:.4rem 0}.agent-chat-agent{margin:1.25rem 0;padding:1rem 1.25rem .75rem;border:1px solid #e5e5e5;border-radius:1rem}.agent-chat-tools{font-size:.8rem;color:#8a8a8a;margin-bottom:.5rem}html.dark .agent-chat-user-bubble{background-color:#2a2a2a;color:#ededed}html.dark .agent-chat-agent{border-color:#333}.agent-chat-conversation{display:grid;grid-template-columns:minmax(0,1fr) 16.5rem;column-gap:5.75rem;margin:2rem -22.25rem 3rem 0;position:relative}body:has(.agent-chat-conversation) #content-side-layout{pointer-events:none}body:has(.agent-chat-conversation) #table-of-contents-layout{pointer-events:auto}.agent-chat-conversation>.agent-chat-turn{grid-column:1;min-width:0;margin-bottom:1.5rem}.agent-chat-conversation>.agent-chat-rail{position:absolute;top:0;right:0;bottom:calc(-1*var(--agent-chat-rail-extend, 0px));width:16.5rem}.agent-chat-turn-label{display:none}.agent-chat-rail-list{position:sticky;top:calc(9.5rem + var(--agent-chat-toc-height, 15rem) + 1.5rem);max-height:calc(100vh - 9.5rem - var(--agent-chat-toc-height, 15rem) - 2.5rem);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;list-style:none;margin:0;padding:0 0 0 1.25rem}.agent-chat-rail-list::-webkit-scrollbar{display:none}.agent-chat-rail-list::before,.agent-chat-rail-step::before{content:\"\";position:absolute;top:0;bottom:0;width:3px;border-radius:3px}.agent-chat-rail-list::before{left:0;background-color:#e5e5e5}.agent-chat-rail-step{position:relative;margin:0 0 .9rem;padding:0;font-size:.875rem;opacity:.45;transition:opacity .3s ease}.agent-chat-rail-step::before{left:-1.25rem;background-color:#ff5e99;opacity:0;transition:opacity .25s ease}.agent-chat-rail-step.is-active::before{opacity:1}.agent-chat-rail-step::marker{content:none}.agent-chat-rail-step.is-done{opacity:.65}.agent-chat-rail-step.is-active{opacity:1}.agent-chat-rail-step .agent-chat-note-body{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .3s ease}.agent-chat-rail-step .agent-chat-note-body>*{min-height:0}.agent-chat-rail-step.is-active .agent-chat-note-body{grid-template-rows:1fr}.agent-chat-note-title{font-weight:600;margin:.15rem 0 .4rem}.agent-chat-floating-body code,.agent-chat-note-body code{font-size:.75rem}html.dark .agent-chat-rail-list::before{background-color:#333}@media (max-width:1279px){.agent-chat-conversation{grid-template-columns:minmax(0,1fr);margin-right:0}.agent-chat-conversation>.agent-chat-rail{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.agent-chat-rail-list{position:relative;top:auto;max-height:none;overflow:visible;-webkit-mask-image:none!important;mask-image:none!important}.agent-chat-rail-step,.agent-chat-rail-step.is-done{opacity:1}.agent-chat-rail-step .agent-chat-note-body{grid-template-rows:1fr}.agent-chat-rail-step::before,.agent-chat-turn-label{display:none}.agent-chat-conversation{padding-top:var(--agent-chat-floating-space, 0px)}}.agent-chat-excerpt{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 3rem),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 3rem),transparent)}.agent-chat-body:has(details[open]) .agent-chat-excerpt{display:none}.agent-chat-full>summary{cursor:pointer;list-style:none;font-size:.8rem;font-weight:600;color:#ff5e99;text-align:center;padding:.25rem 0}.agent-chat-full>summary::-webkit-details-marker{display:none}.agent-chat-full>summary::after{content:\"Show full response ↓\"}.agent-chat-full[open]>summary::after{content:\"Show less ↑\"}.agent-chat-chart{margin:1rem 0;padding:1rem;border-radius:.75rem;background-color:#f7f7f7}.agent-chat-chart-caption{margin-bottom:.75rem}.agent-chat-chart-title{font-weight:600;font-size:.9rem}.agent-chat-chart-unit{font-size:.75rem;color:#8a8a8a}.agent-chat-chart-row{display:grid;grid-template-columns:9.5rem minmax(0,1fr) 4.5rem;align-items:center;gap:.75rem;font-size:.8rem;margin:.3rem 0}.agent-chat-chart-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-chat-chart-track{height:.9rem}.agent-chat-chart-bar{display:block;height:100%;border-radius:0 4px 4px 0;background-color:#ff5e99}.agent-chat-chart-value{text-align:right;font-variant-numeric:tabular-nums}html.dark .agent-chat-chart{background-color:#222}@media (max-width:640px){.agent-chat-chart-row{grid-template-columns:7rem minmax(0,1fr) 4rem;gap:.5rem}}.agent-chat-body [data-as=p],.agent-chat-user-bubble [data-as=p]{display:block;margin:.6rem 0}.agent-chat-user-bubble [data-as=p]:first-child{margin-top:0}.agent-chat-user-bubble [data-as=p]:last-child{margin-bottom:0}.agent-chat-conversation .agent-chat-agent,.agent-chat-conversation .agent-chat-user{margin:.5rem 0}.agent-chat-agent,.agent-chat-attachment,.agent-chat-user-bubble{transition:box-shadow .25s ease}.agent-chat-turn.agent-chat-part.is-current,.agent-chat-turn.is-current .agent-chat-agent,.agent-chat-turn.is-current .agent-chat-attachment,.agent-chat-turn.is-current .agent-chat-user-bubble{box-shadow:0 0 0 2px #ff5e99}.agent-chat-connector{position:fixed;inset:0;z-index:20;pointer-events:none;overflow:visible}.agent-chat-connector path{fill:none;stroke:#ff5e99;stroke-width:2;stroke-linejoin:round}.agent-chat-body table{font-size:.8125rem}.agent-chat-body table td,.agent-chat-body table th{min-width:0;white-space:normal}.agent-chat-tools a{border-bottom:none}.agent-chat-conversation>.agent-chat-agent{grid-column:1;min-width:0;margin:.5rem 0 1.5rem}.agent-chat-part{margin:0 -.75rem;padding:.25rem .75rem;border-radius:.6rem;transition:box-shadow .25s ease}.agent-chat-attachment-row{display:flex;justify-content:flex-end;margin:.5rem 0 .3rem}.agent-chat-conversation>.agent-chat-turn:has(>.agent-chat-attachment-row){margin-bottom:0}.agent-chat-attachment{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border:1px solid #e5e5e5;border-radius:.75rem;background:0 0;font-size:.8125rem;cursor:zoom-in}.agent-chat-attachment:hover{border-color:#ff5e99}.agent-chat-attachment-kind{font-size:.65rem;font-weight:600;padding:.1rem .35rem;border-radius:.3rem;background-color:#f0f0f0;color:#6b6b6b}.agent-chat-document{position:fixed;inset:0;margin:auto;height:fit-content;width:min(52rem,calc(100vw - 2rem));max-height:calc(100vh - 4rem);padding:0;border:1px solid #e5e5e5;border-radius:.75rem;overflow:auto;background-color:#f7f7f7}.agent-chat-document::backdrop{background-color:rgb(0 0 0/.4)}.agent-chat-document-header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:.6rem 1rem;border-bottom:1px solid #e5e5e5;background-color:#fff;font-size:.875rem;font-weight:600}.agent-chat-document-header button{background:0 0;border:0;cursor:pointer;font-size:1rem;color:#6b6b6b}.agent-chat-document-pages{display:flex;flex-direction:column;gap:1rem;padding:1rem}.agent-chat-document-pages img{width:100%;margin:0;border-radius:.25rem;box-shadow:0 1px 4px rgb(0 0 0/.15)}html.dark .agent-chat-attachment,html.dark .agent-chat-document,html.dark .agent-chat-document-header{border-color:#333}html.dark .agent-chat-document{background-color:#1a1a1a}html.dark .agent-chat-document-header{background-color:#222}html.dark .agent-chat-attachment-kind{background-color:#2a2a2a;color:#aaa}.agent-chat-doc-link{display:block;margin-top:.4rem;padding:0;border:0;background:0 0;font-size:.8125rem;font-weight:600;color:#ff5e99;cursor:pointer}.agent-chat-doc-link:hover{text-decoration:underline}.agent-chat-document-annotated .agent-chat-document-header{background-color:#fff0f5;border-bottom-color:#ffd1e1;color:#b3245b}.agent-chat-document-annotated .agent-chat-document-pages img{box-shadow:none;border:0;border-radius:0}html.dark .agent-chat-document-annotated .agent-chat-document-header{background-color:#3a1a27;border-bottom-color:#5a2a3d;color:#ff9ec1}.agent-chat-document-annotated .agent-chat-document-pages{gap:0;margin:1rem;padding:1rem;border:1px solid #e5e5e5;border-radius:.25rem;background-color:#fff}.agent-chat-document-annotated .agent-chat-document-pages img+img{margin-top:.75rem;padding-top:.75rem;border-top:1px dashed #d0d0d0}.agent-chat-attachment-output{justify-content:flex-start;margin:1rem 0 .5rem}.agent-chat-document-wide{width:min(90rem,calc(100vw - 4rem))}.agent-chat-attachment-label{display:inline-flex;align-items:center;gap:.5rem;min-width:0}.agent-chat-attachment-card{flex-direction:column;align-items:stretch;gap:.5rem;width:33%;min-width:14rem;padding:.5rem .5rem .6rem}.agent-chat-attachment-card .agent-chat-attachment-thumb{display:block;width:100%;margin:0;border:1px solid #ededed;border-radius:.4rem}.agent-chat-attachment-card .agent-chat-attachment-label{padding:0 .25rem}.agent-chat-attachment-card .agent-chat-attachment-name{text-align:left}.agent-chat-attachment-card .agent-chat-attachment-kind{margin-left:auto}html.dark .agent-chat-attachment-card .agent-chat-attachment-thumb{border-color:#333}.agent-chat-document-wide .agent-chat-document-pages img{width:auto;max-width:100%;max-height:calc(100vh - 10rem);margin:0 auto}.agent-chat-card-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.6rem}.agent-chat-card-tags>span{padding:.1rem .45rem;border-radius:.3rem;background-color:#fff0f5;color:#b3245b;font-size:.7rem;font-weight:600}html.dark .agent-chat-card-tags>span{background-color:#3a1a27;color:#ff9ec1}a.agent-chat-note-title{display:block;color:inherit;text-decoration:none;border-bottom:none;cursor:pointer}a.agent-chat-note-title:hover{color:#ff5e99}.agent-chat-turn{scroll-margin-top:9rem}.agent-chat-floating{position:fixed;z-index:30;box-sizing:border-box;padding:.75rem 1rem;border:1px solid #e5e5e5;border-left:3px solid #ff5e99;border-radius:.6rem;background-color:#fff;box-shadow:0 6px 20px rgb(0 0 0/.08);font-size:.8125rem;line-height:1.45;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s}.agent-chat-floating.is-visible{opacity:1;visibility:visible}.agent-chat-floating-title{font-weight:600;margin-bottom:.25rem}.agent-chat-floating .agent-chat-doc-link{margin-top:.3rem}html.dark .agent-chat-floating{background-color:#1a1a1a;border-color:#333 #333 #333 #ff5e99}@media (min-width:1280px){.agent-chat-floating{display:none}}.agent-chat-body table code{white-space:nowrap}"}],"page":{"pagePath":"api/mcp/get_campaign","slug":"/api/mcp/get_campaign","pageMetadata":{"title":"Get Campaign","description":null,"href":"/api/mcp/get_campaign"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={blockquote:`blockquote`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,Info,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tool name`}),` `,_jsx(_components.code,{children:`get_campaign`})]}),`\n`,_jsx(Info,{children:`Read-only · Idempotent`}),`\n`,_jsx(_components.p,{children:`Reads one GAM campaign (order) — its details and lifetime delivery (impressions, CTR, viewability) — with optional breakdowns per cohort, per day, or per line item.`}),`\n`,_jsx(Heading,{level:`2`,id:`example-prompt`,children:`Example prompt`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`Break down that campaign’s delivery by cohort and by day so I can see which audiences drove impressions.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`campaign_id`,type:`string`,required:true,id:`param-campaign-id`,children:_jsx(_components.p,{children:`The campaign id to read (from list_campaigns).`})}),`\n`,_jsx(ParamField,{body:`include`,type:`enum[]`,id:`param-include`,children:_jsxs(_components.p,{children:[`Which breakdowns to include. Omit for the campaign’s totals only. each one of: `,_jsx(_components.code,{children:`targeted_cohorts`}),`, `,_jsx(_components.code,{children:`observed_cohorts`}),`, `,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`line_item`}),`.`]})}),`\n`,_jsx(ParamField,{body:`line_item_ids`,type:`string[]`,id:`param-line-item-ids`,children:_jsx(_components.p,{children:`Restrict every figure to these line items.`})}),`\n`,_jsx(ParamField,{body:`workspace_ids`,type:`string[]`,required:true,id:`param-workspace-ids`,children:_jsxs(_components.p,{children:[`The workspaces the campaign runs across — pass the `,_jsx(_components.code,{children:`workspace_ids`}),` from the campaign’s list_campaigns row. min 1 item.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsxs(ResponseField,{name:`campaign`,type:`CampaignDetail object`,required:true,id:`param-campaign`,children:[_jsx(_components.p,{children:`The campaign’s details.`}),_jsxs(Expandable,{title:`CampaignDetail`,children:[_jsx(ResponseField,{name:`active`,type:`boolean`,required:true,id:`param-active`,children:_jsx(_components.p,{children:`Whether the campaign is currently active — its end date is in the future.`})}),_jsx(ResponseField,{name:`agency`,type:`string`,id:`param-agency`,children:_jsx(_components.p,{children:`Agency associated with the order, when GAM records one. Often absent.`})}),_jsx(ResponseField,{name:`end_date`,type:`string`,required:true,id:`param-end-date`,children:_jsx(_components.p,{children:`Order end date (ISO 8601).`})}),_jsx(ResponseField,{name:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Campaign (order) name.`})}),_jsx(ResponseField,{name:`permutive_targeted`,type:`boolean`,required:true,id:`param-permutive-targeted`,children:_jsx(_components.p,{children:`Whether the campaign uses Permutive targeting.`})}),_jsx(ResponseField,{name:`start_date`,type:`string`,required:true,id:`param-start-date`,children:_jsx(_components.p,{children:`Order start date (ISO 8601).`})})]})]}),`\n`,_jsxs(ResponseField,{name:`cohort_breakdown`,type:`CohortBreakdownItem[]`,id:`param-cohort-breakdown`,children:[_jsx(_components.p,{children:`Per-cohort breakdown, when requested via include.`}),_jsxs(Expandable,{title:`CohortBreakdownItem`,children:[_jsxs(ResponseField,{name:`audience_by_workspace`,type:`WorkspaceAudience[]`,id:`param-audience-by-workspace`,children:[_jsx(_components.p,{children:`This cohort’s available audience (estimated unique users, last 30 days) in each of the requested workspaces — showing where its users are collected.`}),_jsxs(Expandable,{title:`WorkspaceAudience`,children:[_jsx(ResponseField,{name:`available_unique_users`,type:`integer (int64)`,required:true,id:`param-available-unique-users`,children:_jsx(_components.p,{children:`Estimated unique users (last 30 days) for the cohort available in this workspace; 0 = no recent activity here.`})}),_jsx(ResponseField,{name:`workspace_id`,type:`string (uuid)`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`One of the requested workspace ids.`})})]})]}),_jsx(ResponseField,{name:`cohort_id`,type:`string`,required:true,id:`param-cohort-id`,children:_jsx(_components.p,{children:`Short cohort identifier. Pass to get_cohort_detail or as a measure_audiences reference.`})}),_jsx(ResponseField,{name:`cohort_type`,type:`enum`,required:true,id:`param-cohort-type`,children:_jsxs(_components.p,{children:[`The cohort’s type (e.g. custom, lookalike). one of: `,_jsx(_components.code,{children:`custom`}),`, `,_jsx(_components.code,{children:`lookalike`}),`, `,_jsx(_components.code,{children:`contextual`}),`, `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`classificationModel`}),`, `,_jsx(_components.code,{children:`advertiser`}),`, `,_jsx(_components.code,{children:`curated`}),`.`]})}),_jsx(ResponseField,{name:`ctr`,type:`number (double)`,id:`param-ctr`,children:_jsx(_components.p,{children:`This cohort’s absolute click-through rate.`})}),_jsx(ResponseField,{name:`ctr_index`,type:`number (double)`,required:true,id:`param-ctr-index`,children:_jsx(_components.p,{children:`This cohort’s click-through rate relative to the campaign’s overall CTR (cohort_ctr / campaign_ctr). 1.0 = the campaign average; >1 = clicks better than average, \u003c1 = worse.`})}),_jsx(ResponseField,{name:`impressions`,type:`integer (int64)`,required:true,id:`param-impressions`,children:_jsxs(_components.p,{children:[`This cohort’s impressions (per the reading in `,_jsx(_components.code,{children:`targeted`}),`).`]})}),_jsx(ResponseField,{name:`name`,type:`string`,required:true,id:`param-name-1`,children:_jsx(_components.p,{children:`Human-readable cohort name.`})}),_jsx(ResponseField,{name:`share`,type:`number (double)`,id:`param-share`,children:_jsx(_components.p,{children:`This cohort’s impressions as a fraction of the campaign’s total (0..1).`})}),_jsx(ResponseField,{name:`targeted`,type:`boolean`,required:true,id:`param-targeted`,children:_jsx(_components.p,{children:`Whether the campaign targets this cohort.`})}),_jsx(ResponseField,{name:`viewability`,type:`number (double)`,id:`param-viewability`,children:_jsx(_components.p,{children:`This cohort’s viewable-impression percentage (0..1).`})})]})]}),`\n`,_jsx(ResponseField,{name:`ctr`,type:`number (double)`,required:true,id:`param-ctr-1`,children:_jsx(_components.p,{children:`Lifetime click-through rate.`})}),`\n`,_jsxs(ResponseField,{name:`day_breakdown`,type:`CampaignDayItem[]`,id:`param-day-breakdown`,children:[_jsxs(_components.p,{children:[`The campaign’s own delivery by day (impressions/CTR/viewability), for spotting trends over its flight. Present when `,_jsx(_components.code,{children:`day`}),` is in include.`]}),_jsxs(Expandable,{title:`CampaignDayItem`,children:[_jsx(ResponseField,{name:`ctr`,type:`number (double)`,required:true,id:`param-ctr-2`,children:_jsx(_components.p,{children:`The campaign’s click-through rate on this day.`})}),_jsx(ResponseField,{name:`day`,type:`string`,required:true,id:`param-day`,children:_jsx(_components.p,{children:`The day (ISO 8601 date).`})}),_jsx(ResponseField,{name:`impressions`,type:`integer (int64)`,required:true,id:`param-impressions-1`,children:_jsx(_components.p,{children:`The campaign’s impressions on this day.`})}),_jsx(ResponseField,{name:`viewability`,type:`number (double)`,required:true,id:`param-viewability-1`,children:_jsx(_components.p,{children:`The campaign’s viewable-impression percentage on this day (0..1).`})})]})]}),`\n`,_jsx(ResponseField,{name:`impressions`,type:`integer (int64)`,required:true,id:`param-impressions-2`,children:_jsx(_components.p,{children:`Lifetime impressions delivered against the order (line-item-scoped when line_item_ids is set).`})}),`\n`,_jsxs(ResponseField,{name:`impressions_vs_order`,type:`OrderComparison object`,id:`param-impressions-vs-order`,children:[_jsx(_components.p,{children:`Comparison of the restricted impressions to the whole order. Present only when line_item_ids is set.`}),_jsxs(Expandable,{title:`OrderComparison`,children:[_jsx(ResponseField,{name:`share_of_order`,type:`number (double)`,required:true,id:`param-share-of-order`,children:_jsx(_components.p,{children:`This figure as a fraction of the whole order’s figure (0..1).`})}),_jsx(ResponseField,{name:`vs_order_average`,type:`number (double)`,required:true,id:`param-vs-order-average`,children:_jsx(_components.p,{children:`This figure divided by the order’s per-line-item average (1.0 = exactly average).`})})]})]}),`\n`,_jsxs(ResponseField,{name:`line_item_breakdown`,type:`LineItemBreakdownItem[]`,id:`param-line-item-breakdown`,children:[_jsx(_components.p,{children:`Per-line-item breakdown, when requested via include.`}),_jsxs(Expandable,{title:`LineItemBreakdownItem`,children:[_jsx(ResponseField,{name:`ctr`,type:`number (double)`,required:true,id:`param-ctr-3`,children:_jsx(_components.p,{children:`This line item’s click-through rate.`})}),_jsx(ResponseField,{name:`impressions`,type:`integer (int64)`,required:true,id:`param-impressions-3`,children:_jsx(_components.p,{children:`Impressions delivered by this line item.`})}),_jsx(ResponseField,{name:`line_item_id`,type:`string`,required:true,id:`param-line-item-id`,children:_jsx(_components.p,{children:`The GAM line item id.`})}),_jsx(ResponseField,{name:`name`,type:`string`,required:true,id:`param-name-2`,children:_jsx(_components.p,{children:`Line item name.`})}),_jsx(ResponseField,{name:`targeted_impressions`,type:`integer (int64)`,required:true,id:`param-targeted-impressions`,children:_jsx(_components.p,{children:`Permutive-targeted impressions delivered by this line item (capped).`})}),_jsx(ResponseField,{name:`viewability`,type:`number (double)`,required:true,id:`param-viewability-2`,children:_jsx(_components.p,{children:`This line item’s viewable-impression percentage (0..1).`})})]})]}),`\n`,_jsxs(ResponseField,{name:`other_cohorts`,type:`OtherCohorts object`,id:`param-other-cohorts`,children:[_jsx(_components.p,{children:`The aggregate of cohorts on this campaign not listed in cohort_breakdown (not visible to you, or not resolvable in the cohort catalogue). Present with the cohort breakdown when any were dropped, so the breakdown accounts for all cohort delivery. Absent when nothing was dropped.`}),_jsxs(Expandable,{title:`OtherCohorts`,children:[_jsx(ResponseField,{name:`count`,type:`integer (int32)`,required:true,id:`param-count`,children:_jsx(_components.p,{children:`How many cohorts are aggregated here — those beyond the top-by-impressions cap, plus any not resolvable in the catalogue (owned outside this workspace, or uncatalogued). For observed_cohorts this is often large and is not a defect.`})}),_jsx(ResponseField,{name:`ctr`,type:`number (double)`,required:true,id:`param-ctr-4`,children:_jsx(_components.p,{children:`Impression-weighted click-through rate across those cohorts.`})}),_jsx(ResponseField,{name:`impressions`,type:`integer (int64)`,required:true,id:`param-impressions-4`,children:_jsx(_components.p,{children:`Summed impressions of those cohorts (same reading as the individual rows: targeted or observed).`})}),_jsx(ResponseField,{name:`share`,type:`number (double)`,id:`param-share-1`,children:_jsx(_components.p,{children:`These cohorts’ combined impressions as a fraction of the campaign total (0..1).`})}),_jsx(ResponseField,{name:`viewability`,type:`number (double)`,required:true,id:`param-viewability-3`,children:_jsx(_components.p,{children:`Impression-weighted viewable-impression percentage across those cohorts (0..1).`})})]})]}),`\n`,_jsx(ResponseField,{name:`viewability`,type:`number (double)`,required:true,id:`param-viewability-4`,children:_jsx(_components.p,{children:`Lifetime viewable-impression percentage (0..1).`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Get Campaign","description":null,"href":"/api/mcp/get_campaign"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Example prompt","slug":"example-prompt","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/permutive/9a9f86ed1fb0eb1f/agent-chat-rail.js"],"subdomain":"permutive","siteName":"Permutive","title":"Get Campaign - Permutive","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T17:23:28.924Z","originalFileLocation":"api/mcp/get_campaign.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Permutive\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Campaign - Permutive\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Permutive\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.permutive.com/api/mcp/get_campaign\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://permutive.mintlify.app/_mintlify/api/og/v2?division=Campaigns\u0026amp;title=Get+Campaign\u0026amp;theme=ef3c96350872d4aa4f708194\u0026amp;signature=d72efb8d488a9e0f344c042f65cc04c6d7203c452ebfb0e373e8592e47608080\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Campaign - Permutive\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://permutive.mintlify.app/_mintlify/api/og/v2?division=Campaigns\u0026amp;title=Get+Campaign\u0026amp;theme=ef3c96350872d4aa4f708194\u0026amp;signature=d72efb8d488a9e0f344c042f65cc04c6d7203c452ebfb0e373e8592e47608080\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/permutive/_gGnYYOjUBeWUMY8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Permutive\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff5e99\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.permutive.com/api/mcp/get_campaign\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/mcp/get_campaign.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.permutive.com/#organization\",\"name\":\"Permutive\",\"url\":\"https://docs.permutive.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/permutive/zX9G7jjpccuZZlEf/logo/permutive-logo-light.svg?fit=max\u0026auto=format\u0026n=zX9G7jjpccuZZlEf\u0026q=85\u0026s=ae940c2b1c2eb923f6344b583fef176c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.permutive.com#website\",\"name\":\"Permutive\",\"url\":\"https://docs.permutive.com\",\"publisher\":{\"@id\":\"https://docs.permutive.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.permutive.com/api/mcp/get_campaign#webpage\",\"url\":\"https://docs.permutive.com/api/mcp/get_campaign\",\"name\":\"Get Campaign\",\"dateModified\":\"2026-10-26T17:23:28.924Z\",\"isPartOf\":{\"@id\":\"https://docs.permutive.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.permutive.com/api/mcp/get_campaign#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.permutive.com/api/mcp/get_campaign#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tool Reference\",\"item\":\"https://docs.permutive.com/api/mcp/tools\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Campaign\",\"item\":\"https://docs.permutive.com/api/mcp/get_campaign\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.permutive.com/api/mcp/get_campaign#article\",\"headline\":\"Get Campaign\",\"name\":\"Get Campaign\",\"url\":\"https://docs.permutive.com/api/mcp/get_campaign\",\"mainEntityOfPage\":{\"@id\":\"https://docs.permutive.com/api/mcp/get_campaign#webpage\"},\"dateModified\":\"2026-10-26T17:23:28.924Z\",\"publisher\":{\"@id\":\"https://docs.permutive.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.permutive.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Permutive\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Permutive","nav":{"global":{"anchors":[{"anchor":"Support","icon":"life-ring","href":"mailto:technical-services@permutive.com"},{"anchor":"Status","icon":"signal","href":"https://status.permutive.com"},{"anchor":"Changelog","icon":"megaphone","href":"https://changelog.permutive.com"}]},"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":"/introduction"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/introduction"}]},{"tab":"APIs","pages":[{"title":"APIs","href":"/api/introduction"}]},{"tab":"MCP","groups":[{"group":"MCP Server","pages":[{"title":"Introduction","href":"/api/mcp/introduction"},{"group":"Releases","pages":[{"title":"1.1 - Campaign Optimization","href":"/api/mcp/releases/v1-1"},{"title":"1.2 - Audience Extension, Comparison \u0026 Detailed Analysis","href":"/api/mcp/releases/v1-2"},{"title":"1.3 - Usage Credits","href":"/api/mcp/releases/v1-3"}]}]},{"group":"Use cases","pages":[{"title":"Use cases","sidebarTitle":"Overview","href":"/api/mcp/use-cases/overview"},{"group":"Pitching and planning","pages":[{"title":"Planning a custom audience for a campaign brief","href":"/api/mcp/use-cases/planning-an-audience"},{"title":"Building audiences from an RFP","href":"/api/mcp/use-cases/building-audiences-from-an-rfp"}]},{"group":"Delivering campaigns","pages":[{"title":"Optimizing a campaign in flight","href":"/api/mcp/use-cases/optimizing-a-campaign-in-flight"},{"title":"Reporting on a finished campaign","href":"/api/mcp/use-cases/reporting-on-a-finished-campaign"}]}]},{"group":"Tool Reference","pages":[{"title":"Overview","href":"/api/mcp/tools"},{"group":"Workspaces","pages":[{"title":"Get Organizations And Workspaces","href":"/api/mcp/get_orgs_and_workspaces"},{"title":"Get Workspace Details","description":null,"href":"/api/mcp/get_workspace_details"}]},{"group":"Campaigns","pages":[{"title":"Get Campaign","href":"/api/mcp/get_campaign"},{"title":"List Campaigns","description":null,"href":"/api/mcp/list_campaigns"}]},{"group":"Cohorts","pages":[{"title":"Get Cohort Detail","href":"/api/mcp/get_cohort_detail"},{"title":"List Cohorts","href":"/api/mcp/list_cohorts"},{"title":"Search Cohorts","href":"/api/mcp/search_cohorts"}]},{"group":"Audience Analysis","pages":[{"title":"Compare Audience","href":"/api/mcp/compare_audience"},{"title":"Find Audience Extensions","href":"/api/mcp/find_audience_extensions"},{"title":"Measure Audiences","href":"/api/mcp/measure_audiences"}]}]}]}]},"basePath":"","title":"Get Campaign - Permutive","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}