v3.22.4

Commitments and Contingencies - Narrative (Details) $ in Millions | Dec. 31, 2022 USD ($) instrument | Dec. 31, 2021 USD ($)
--- | --- | ---
Long-term Purchase Commitment [Line Items] |  |
Number of debt instruments | instrument | 2 |
Irrevocable Letters of Credit due April 2025 |  |
Long-term Purchase Commitment [Line Items] |  |
Letters of credit outstanding, amount | $ 0.5 |
Irrevocable Letters of Credit due July 2022 |  |
Long-term Purchase Commitment [Line Items] |  |
Letters of credit outstanding, amount | $ 3.5 |
Irrevocable Letters of Credit due June 2022 |  |
Long-term Purchase Commitment [Line Items] |  |
Letters of credit outstanding, amount |  | $ 0.7
Irrevocable Letters of Credit due July 2028 |  |
Long-term Purchase Commitment [Line Items] |  |
Letters of credit outstanding, amount |  | $ 3.5

X
- Definition Number Of Debt Instruments + References No definition available. + Details
Name: | pubm_NumberOfDebtInstruments
Namespace Prefix: | pubm_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_LongTermPurchaseCommitmentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_DebtInstrumentAxis=pubm_IrrevocableLettersOfCreditDueApril2025Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=pubm_IrrevocableLettersOfCreditDueJuly2022Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=pubm_IrrevocableLettersOfCreditDueJune2022Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=pubm_IrrevocableLettersOfCreditDueJuly2028Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |