View source on GitHub
|
A wrapper for MarketingData proto with derived properties.
scenarioplanner.converters.mmm.MarketingData(
marketing_data_proto: marketing_data_pb.MarketingData
)
Methods
all_channel_spends
all_channel_spends(
date_interval: tc.DateInterval
) -> dict[str, float]
Returns all channel names mapped to their total spend values, for the given date interval.
All channel spends in time coordinates between [start, end) of the given
date interval are summed up.
| Args | |
|---|---|
date_interval
|
the date interval to query for |
| Returns | |
|---|---|
| A dict of channel names mapped to their total spend values, for the given date interval. |
media_channel_spends
media_channel_spends(
date_interval: tc.DateInterval
) -> dict[str, float]
Returns non-RF media channel names mapped to their total spend values, for the given date interval.
All channel spends in time coordinates between [start, end) of the given
date interval are summed up.
| Args | |
|---|---|
date_interval
|
the date interval to query for |
| Returns | |
|---|---|
| A dict of channel names mapped to their total spend values, for the given date interval. |
rf_channel_spends
rf_channel_spends(
date_interval: tc.DateInterval
) -> dict[str, float]
Returns Reach and Frequency channel names mapped to their total spend values, for the given date interval.
All channel spends in time coordinates between [start, end) of the given
date interval are summed up.
| Args | |
|---|---|
date_interval
|
the date interval to query for |
| Returns | |
|---|---|
| A dict of channel names mapped to their total spend values, for the given date interval. |
__eq__
__eq__(
other
)
Return self==value.
View source on GitHub