You are here:
Rate Card Setup
A rate card contains pricing information about media placements. Each publisher can set up multiple rate cards in the Advertising Sales Management app. When placements are added, an expression set determines which rate card is used in the media planning grid.
This is an Advertising Sales Management on Managed Package feature. For Advertising Sales
Management on Salesforce Platform, see Advertising
Sales Management on Salesforce Platform.
With Advertising Sales Management you can create rate cards for a specific channel, demography, region, customer, and more. It provides grouped rate cards out of the box. These rate cards are grouped based on channels and demographic codes. The rate cards are set up with the demographic codes as the group key. You can use a particular rate card only when it's in Active state. The DefaultAdSalesPricingPlanHelper Apex class extracts information from different rate cards and updates the ad quote line and ad order item fields.
These are the Apex classes and methods used for determining the price of TV ad placements.
| Apex class | Method | Description | Parameters | Output |
|---|---|---|---|---|
| DefaultAdSalesPricingPlanImplementation | CopyBaseCharges | Populates the values for the base one time charge and base one time total of line items in the corresponding fields of the quote line item or order item. | No parameters accepted. | — |
| DefaultAdSalesPricingImplementation | CalculateQuantity | Determines the number of units based on the corresponding field in the ad quote line or the ad order item. Configure the field name and the unit of measure as additional parameters in the Pricing Plan step. If the Pricing Model is set to per spot or flat fee, then the requested quantity field of the ad quote line or the ad order item is considered by default to calculate the number of units. |
MediaTypeToQuantityFieldMap and MediaTypeToUOMMap | — |
| DefaultAdSalesPricingPlanImplementation | GetCalculationProcedurePrice | Invokes the expression set and updates the price for the line item. Also maps the output of the expression set to the ad items field. | FetchAdCreativeSize. A boolean flag determines whether selected ad creative dimensions must be queried and sent. DecisionMatrix. A boolean flag determines whether an expression set or a calculation procedure must be invoked. By default, the value is true, and an expression set is invoked. |
— |
| DefaultAdSalesPricingPlanImplementation | PrepareAdItemMap | Prepares the related ad item map and its targeting map along with the fieldToName map needed for the Expression Set input. | FetchToProcVariable. <FieldName>=<InputNametoExpressionSet>. For example, AdSpaceSpecification.Type = AdSpaceType FetchAdCreativeSize. A boolean flag determines whether selected ad creative dimensions must be queried and sent. ItemIdSet. Set <String> IDs of the quote line item or order item. |
relatedItemMap fieldToNameMap targetingMap |
| DefaultAdSalesPricingPlanHelper | updateAdItems | Updates ad item records based on the result of the expression set. The input must contain the ProcedureResults object, which contains the Map of the ad item that you’re updating. If the key matches the ad item field, then it is updated. |
— | — |
To view a sample implementation for Channel-based rate cards, download the Advertising Sales Management channel based sample rate card implementation file.

