<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2015-06-08</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001595974</issuerCik>
        <issuerName>RUBICON PROJECT, INC.</issuerName>
        <issuerTradingSymbol>RUBI</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001604453</rptOwnerCik>
            <rptOwnerName>Clearstone Venture Management III, L.L.C.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>725 ARIZONA AVENUE, SUITE 304</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SANTA MONICA</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>90401</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001306844</rptOwnerCik>
            <rptOwnerName>CLEARSTONE VENTURE PARTNERS III-A LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>725 ARIZONA AVENUE, SUITE 304</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SANTA MONICA</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>90401</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001604454</rptOwnerCik>
            <rptOwnerName>Clearstone Venture Partners III-B, a Delaware Multiple Series LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>725 ARIZONA AVENUE, SUITE 304</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SANTA MONICA</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>90401</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2015-06-08</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>618934</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>4951471</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F5"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2015-06-08</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F3"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>11064</value>
                    <footnoteId id="F3"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>88512</value>
                    <footnoteId id="F4"/>
                    <footnoteId id="F5"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2015-06-08</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F6"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>12600</value>
                    <footnoteId id="F6"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                    <footnoteId id="F6"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                    <footnoteId id="F5"/>
                    <footnoteId id="F7"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">On June 8, 2015, Clearstone Venture Partners III-A, L.P., a Delaware limited partnership (&quot;CVP III-A&quot;), distributed for no consideration, 618,934 shares of Common Stock of the Issuer (the &quot;Shares&quot;) to its partners, including Clearstone Venture Management III, L.L.C. a Delaware limited liability company (&quot;CVM III&quot;), the General Partner of CVP III-A, representing each such partner's pro rata interest in the shares held by CVP III-A.  The distribution was made in accordance with the exemptions afforded by Rule 16a-13 and Rule 16a-9 of the Securities Exchange Act of 1934, as amended.</footnote>
        <footnote id="F2">These Shares are held by CVP III-A.</footnote>
        <footnote id="F3">On June 8, 2015, Clearstone Venture Partners III-B, a Delaware multiple series LLC (&quot;CVP III-B&quot;), distributed for no consideration, 11,064 Shares to its members, including CVM III, the Managing Member of CVP III-B, representing each such member's pro rata interest in the shares held by CVP III-B.  The distribution was made in accordance with the exemptions afforded by Rule 16a-13 and Rule 16a-9 of the Securities Exchange Act of 1934, as amended.</footnote>
        <footnote id="F4">These Shares are held by CVP III-B.</footnote>
        <footnote id="F5">This statement is being filed jointly by CVM III, CVP III-A and CVP III-B.  CVM III is general partner and managing member of CVP III-A and CVP III-B, respectively, and as such may be deemed to be the beneficial owner of the shares owned by CVP III-A and CVP III-B.  CVM III disclaims beneficial ownership of such shares except to the extent of its pecuniary interest therein, if any, and the inclusion of these shares in this report shall not be deemed an admission of beneficial ownership of the reported shares by CVM III for purposes of Section 16 or for any other purpose.</footnote>
        <footnote id="F6">On the same date, CVM III distributed for no consideration, to its members, an aggregate of 12,600 Shares, consisting of 1,534 Shares that it received as a distribution on June 8, 2015 from CVP III-A and the 11,064 Shares that it received as a distribution on June 8, 2015 from CVP III-B, in an amount equal to each such member's pro rata interest in the Shares.  This distribution was made in accordance with the exemptions afforded by Rule 16a-13 and Rule 16a-9 of the Securities Exchange Act of 1934, as amended.</footnote>
        <footnote id="F7">Immediately following the distribution described in note (6) above, CVM III held no Shares directly.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Dana E. Moraly</signatureName>
        <signatureDate>2015-06-09</signatureDate>
    </ownerSignature>
</ownershipDocument>
