# scenarioplanner.converters.dataframe.marketing_analyses_converters.MediaSpendConverter

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google/meridian/blob/v2.2.2/scenarioplanner/converters/dataframe/marketing_analyses_converters.py#L312-L420) |

Outputs a "MediaSpend" table.

Inherits From: [`Converter`](https://developers.google.com/meridian/reference/api/scenarioplanner/converters/dataframe/converter/Converter.md.txt)

```python
scenarioplanner.converters.dataframe.marketing_analyses_converters.MediaSpendConverter(
    mmm_wrapper: `scenarioplanner.converters.mmm.Mmm`
)
```

When called, this converter yields a data frame with the columns:

- "Channel"
- "Value"
- "Label" A human-readable label on what "Value" represents
- "Analysis Period" A human-readable analysis period.
- "Analysis Date Start" A string formatted with Meridian date format: YYYY-mm-dd
- "Analysis Date End" A string formatted with Meridian date format: YYYY-mm-dd

> [!NOTE]
> **Note:** If the underlying model analysis works with a revenue-type KPI (i.e. dollar value), then all values in the columns of the output table should be interpreted the same. Likewise, for non-revenue type KPI. While some channels may define their outcome analyses in terms of both revenue- and nonrevenue-type semantics, the output table here remains uniform.

## Methods

### `__call__`

[View source](https://github.com/google/meridian/blob/v2.2.2/scenarioplanner/converters/dataframe/marketing_analyses_converters.py#L189-L193)

```python
__call__() -> Iterator[tuple[str, pd.DataFrame]]
```

Call self as a function.