---
schema_version: "1"
id: 7a7bf47ed2844ba00777b31ac56f74ec8b51f490ff79ebcc441bb71a0a8ba86d
title: Media | Create Media Opportunity
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_media_create_opportunity.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_media_create_opportunity.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7b0987921a3c8f082d2a13fd5e05b01274f34d412b46846795b673d4b1428071
description: Creates an opportunity and an ad opportunity for a media proposal or an advertisement campaign. The opportunity is associated with the account of the advertiser who the media proposal or advertisement campaign is for. The ad opportunity is associated with the account of the agency that represents the advertiser.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Media | Create Media Opportunity

Creates an opportunity and an ad opportunity for a media proposal or an advertisement campaign. The opportunity is associated with the account of the advertiser who the media proposal or advertisement campaign is for. The ad opportunity is associated with the account of the agency that represents the advertiser.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong>r Editions with the Agentforce for Media add-on or included in Agentforce 1 Media Edition. Requires each user to have the Agentforce for Media add-on to access the action.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d219634e70">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d219634e70 ">To run flows:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d219634e70 ">Run Flows</td>

        </tr>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d219634e70 ">To create media opportunities:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d219634e70 ">Media Cloud Base User permission set</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d219634e70 ">See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_actions_common_perms.htm&amp;type=5&amp;language=en_US" target="_blank">Common User Access for Standard Agent
              Actions</a>.</td>

        </tr>
      </tbody>
    </table>

## Action Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:50%"> <col style="width:50%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">API Name</td><td class="slds-cell-wrap" style="vertical-align:top;">CreateMediaOpportunity</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Flow</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action</td><td class="slds-cell-wrap" style="vertical-align:top;">Find or Create Media Opportunity (media_opp_flows__FindOrCreateMediaOpp)</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Does this action execute one or more prompt templates?</td><td class="slds-cell-wrap" style="vertical-align:top;">No</td></tr></tbody></table>

## Guidelines and Considerations

- If a user provides the name of an account that isn't available, the action doesn't create opportunities and ad opportunities.

#### See Also

- [Agentforce for Media](https://help.salesforce.com/s/articleView?id=ind.media_agentforce.htm&language=en_US)