Loading
The Trailblazer Community is now read-only Read More
Media Cloud
Advertising Inventory Calendar Setup with Ad Availability View Configuration

Advertising Inventory Calendar Setup with Ad Availability View Configuration

Account executives, inventory managers, and campaign planners use the advertising inventory calendar to manage inventory slots for various products, and admins can configure the calendar to meet their specific requirements.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, and Unlimited editions with Media Cloud- Growth or Media Cloud- Advanced

Admins can customize the advertising inventory calendar by updating the Ad Availability View Configuration object. This allows them to set the default view, tailor the calendar for different advertising products, define custom actions on slot cells, manage slot statuses and flows, and adjust the color scheme.

Inventory Calendar Style with Digital as Default Type

Configuration Record: Advertising Inventory Calendar Template

Configuration Key: advertising-inventory-calendar-template

Configuration Value Snippet:

{
  "defaultCalendarType": "digital",
  "digital": {
    "label" : "Digital",
    "productGroupTypeValue": "Digital",
    "productGroupType": "productFamily",
    "durationType": "Daily",
    "unitType": "Impressions",
    "adSpaceDimensions": [
      {
        "key": "product",
        "label": "Product",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "Product.Name",
        "isVisible": true
      },
      {
        "key": "channel",
        "label": "Media Channel",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "MediaChannel.Name",
        "isVisible": true
      },
      {
        "key": "adspace",
        "label": "Ad Space",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "AdSpaceSpecification.Name",
        "isVisible": true
      },
      {
        "key": "creatives",
        "label": "Creative",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "AdCreativeSizeType.Name",
        "isVisible": true
      }
    ],
    "adSpaceCapacityFields": [
      {
        "label": "Booked",
        "objectDeveloperName": "AdSpaceCapacity",
        "fieldDeveloperName": "BookedCount",
        "isVisible": true
      },
      {
        "label": "Reserved",
        "objectDeveloperName": "AdSpaceCapacity",
        "fieldDeveloperName": "ReservedCount",
        "isVisible": true
      },
      {
        "label": "Pitched",
        "objectDeveloperName": "AdSpaceCapacity",
        "fieldDeveloperName": "PitchedCount",
        "isVisible": true
      }
    ]
  }
}

Inventory Calendar for In-Store

Configuration Record: Advertising Inventory Calendar Template

Configuration Key: advertising-inventory-calendar-template

Configuration Value Snippet:


  "inStore": {
    "label" : "In-Store",
    "productGroupTypeValue": "In-Store",
    "productGroupType": "productFamily",
    "durationType": "Weekly",
    "unitType": "Fixed Slots",
    "adSpaceDimensions": [
      {
        "key": "product",
        "label": "Product",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "Product.Name",
        "isVisible": true
      },
      {
        "key": "adspace",
        "label": "Ad Space",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "AdSpaceSpecification.Name",
        "isVisible": true
      },
      {
        "key": "store",
        "label": "Store",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "Location.Location",
        "isVisible": true
      },
      {
        "key": "category",
        "label": "Category",
        "objectDeveloperName": "AdSpace",
        "fieldDeveloperName": "Location.Type",
        "isVisible": true
      }
    ],
    "adSpaceCapacityFields": [
      {
        "label": "Booked",
        "objectDeveloperName": "AdSpaceCapacity",
        "fieldDeveloperName": "BookedCount",
        "isVisible": true
      },
      {
        "label": "Reserved",
        "objectDeveloperName": "AdSpaceCapacity",
        "fieldDeveloperName": "ReservedCount",
        "isVisible": true
      },
      {
        "label": "Pitched",
        "objectDeveloperName": "AdSpaceCapacity",
        "fieldDeveloperName": "PitchedCount",
        "isVisible": true
      }
    ]
  }

Custom Actions on Calendar Cells

Configuration Record: Advertising Inventory Calendar Cell Quick Actions

Configuration Key: advertising-inventory-calendar-cell-actions

Configuration Value Snippet:

{
  "actions": [
    {
      "label": "Pitch Slot",
      "key": "pitchSlot",
      "flowApiName": "media_inventory__PitchInventorySlot",
      "isVisible": true,
      "isBulkAction": true
    },
    {
      "label": "Reserve Slot",
      "key": "reserveSlot",
      "flowApiName": "media_inventory__ReserveInventorySlots",
      "isVisible": true,
      "isBulkAction": true
    },
    {
      "label": "View Details",
      "key": "viewSlotDetails",
      "isVisible": true
    },
    {
      "label": "Custom Action 1",
      "key": "customAction1",
      "flowApiName": "custom_flow_name_1",
      "isVisible": true
    },
    {
      "label": "Custom Action 2",
      "key": "customAction2",
      "flowApiName": "custom_flow_name_2",
      "isVisible": true
    }
  ]
}

Action for Each Slot Status

Configuration Record: Inventory Calendar Demand Details

Configuration Key: advertising-inventory-calendar-demand-details

Configuration Value Snippet:

{
  "default": {
    "fields": [
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "Quantity",
        "label": "Quantity",
        "isVisible": true
      },
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "OfferPrice",
        "label": "Offer Price",
        "isVisible": true
      },
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "StartDate",
        "label": "Start Date",
        "isVisible": true
      },
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "EndDate",
        "label": "End Date",
        "isVisible": true
      },
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "AdQuote.Name",
        "isVisible": false
      },
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "Opportunity.Name",
        "label": "Opportunity",
        "isVisible": true
      },
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "AdSpaceCapacity.AdSpace.Product.Name",
        "label": "Ad Product",
        "isVisible": true
      },
      {
        "entityName": "AdSpaceCapacityAllocation",
        "fieldApiName": "AdSpaceCapacity.AdSpace.MediaChannel.Name",
        "label": "Media Channel",
        "isVisible": true
      }
    ],
    "actions": []
  },
  "pitched": {
    "actions": [
      {
        "label": "Reserve Slot",
        "key": "reserveSlot",
        "flowApiName": "media_inventory__ReserveInventorySlots",
        "isVisible": true
      },
      {
        "label": "Add to Media Plan",
        "key": "addToMediaPlan",
        "flowApiName": "media_inventory__AddSlotsToMediaPlan",
        "isVisible": true
      }
    ]
  },
  "on hold": {
    "actions": [
      {
        "label": "Release Allocation",
        "key": "releaseAllocation",
        "flowApiName": "media_inventory__ReleaseInventorySlots",
        "isVisible": true
      },
      {
        "label": "Extend Reservation",
        "key": "extendReservation",
        "flowApiName": "media_inventory__ExtendSlotRsvDate",
        "isVisible": true
      },
      {
        "label": "Add to Media Plan",
        "key": "addToMediaPlan",
        "flowApiName": "media_inventory__AddSlotsToMediaPlan",
        "isVisible": true
      }
    ]
  }
}

Color Scheme for the Calendar

Configuration Record: Availability Status

Configuration Key: Status Colors

Configuration Value Snippet:

[
{
"id": "1GHYC",
"label": "Available",
"startRange": "0",
"endRange": "30",
"color": "#2E844A",
"recordType": "Default",
"active": true,
"key": "Available"
},
{
"id": "HTD62",
"label": "Partially Available",
"startRange": "31",
"endRange": "70",
"color": "#FE9339",
"recordType": "Default",
"active": true,
"key": "Partially Available"
},
{
"id": "QW293",
"label": "Booked",
"startRange": 71,
"endRange": 100,
"color": "#BA0517",
"recordType": "Default",
"active": true,
"key": "Booked"
},
{
"id": "4RTUW",
"label": "Overbooked (Disabled for selection)",
"startRange": 101,
"endRange": 150,
"color": "#34ebd2",
"recordType": "Default",
"active": true,
"key": "Overbooked"
}
]

Automatic Update of Inventory Reservation Status to Booked

Configuration Record: General Configuration

Configuration Key: advertising-inventory-calendar-auto-update-reservation-status

Configuration Value: Turn On / Turn Off

Text Visibility in Calendar Cells

Specify whether to show the total and remaining values as text inside each inventory calendar cell. Set "hideAvailabilityRow": true to hide the text and rely completely on visual indicators to convey status.

Configuration record: Advertising Inventory Calendar Template

Configuration key: advertising-inventory-calendar-template

Configuration value sample snippet:

{
  "defaultCalendarType": "digital",
  "digital": {
    "hideAvailabilityRow": true,
    "label" : "Digital",
    "productGroupTypeValue": "Digital",
    "productGroupType": "productFamily",
    "durationType": "Daily",
    "unitType": "Impressions",
    "adSpaceDimensions": [...],
    "adSpaceCapacityFields": [...]
  }
}
 
Loading
Salesforce Help | Article