G-Estimation Of Dynamic Treatment Regimes In The Presence Of Shared Parameters