v3.22.4

Loan and Security Agreement and Senior Secured Credit Facilities Agreement (Details) - Revolving Credit Facility - USD ($) $ in Millions |  | 1 Months Ended
--- | --- | ---
Oct. 17, 2022 | Jun. 30, 2021
Credit Agreement | Line of Credit |  |
Line of Credit Facility [Line Items] |  |
Maximum borrowing capacity | $ 110.0 |
Line of credit facility, accordion feature, increase limit | $ 90.0 |
Credit Agreement | Line of Credit | Minimum |  |
Line of Credit Facility [Line Items] |  |
Line of credit facility, commitment fee percentage | 0.25% |
Credit Agreement | Line of Credit | Maximum |  |
Line of Credit Facility [Line Items] |  |
Line of credit facility, commitment fee percentage | 0.35% |
Credit Agreement | Line of Credit | Fed Funds Effective Rate Overnight Index Swap Rate |  |
Line of Credit Facility [Line Items] |  |
Debt instrument, basis spread on variable rate | 0.50% |
Credit Agreement | Line of Credit | Secured Overnight Financing Rate (SOFR) |  |
Line of Credit Facility [Line Items] |  |
Debt instrument, basis spread on variable rate | 1.00% |
Credit Agreement | Line of Credit | Secured Overnight Financing Rate (SOFR) | Minimum |  |
Line of Credit Facility [Line Items] |  |
Debt instrument, basis spread on variable rate | 2.00% |
Credit Agreement | Line of Credit | Secured Overnight Financing Rate (SOFR) | Maximum |  |
Line of Credit Facility [Line Items] |  |
Debt instrument, basis spread on variable rate | 2.75% |
Credit Agreement | Line of Credit | Alternate Base Rate | Minimum |  |
Line of Credit Facility [Line Items] |  |
Debt instrument, basis spread on variable rate | 1.00% |
Credit Agreement | Line of Credit | Alternate Base Rate | Maximum |  |
Line of Credit Facility [Line Items] |  |
Debt instrument, basis spread on variable rate | 1.75% |
Credit Agreement | Letter of Credit |  |
Line of Credit Facility [Line Items] |  |
Maximum borrowing capacity | $ 25.0 |
Credit Agreement | Swingline Sub-Facility |  |
Line of Credit Facility [Line Items] |  |
Maximum borrowing capacity | $ 25.0 |
Silicon Valley Bank |  |
Line of Credit Facility [Line Items] |  |
Maximum borrowing capacity |  | $ 25.0
Line of credit facility, borrowing capacity, percentage of eligible accounts receivable, net, |  | 80.00%
Debt instrument, interest rate |  | 3.25%
Line of credit facility, unused capacity, commitment fee percentage |  | 0.40%
Line of credit facility, borrowing capacity, unused capacity fee, closing balance threshold |  | $ 5.0

X
- Definition Line of Credit Facility, Accordion Feature, Increase Limit + References No definition available. + Details
Name: | pubm_LineOfCreditFacilityAccordionFeatureIncreaseLimit
Namespace Prefix: | pubm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line Of Credit Facility, Borrowing Capacity, Percentage Of Eligible Accounts Receivable, Net, + References No definition available. + Details
Name: | pubm_LineOfCreditFacilityBorrowingCapacityPercentageOfEligibleAccountsReceivableNet
Namespace Prefix: | pubm_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line of Credit Facility, Borrowing Capacity, Unused Capacity Fee, Closing Balance Threshold + References No definition available. + Details
Name: | pubm_LineOfCreditFacilityBorrowingCapacityUnusedCapacityFeeClosingBalanceThreshold
Namespace Prefix: | pubm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1B -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for the line of credit facility regardless of whether the facility has been used. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

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_LineOfCreditFacilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pubm_SecuredOvernightFinancingRateSOFRMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pubm_AlternateBaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=pubm_SwinglineSubFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=pubm_SiliconValleyBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |