as the irradiance will be proportional to distance squared and the 20 Meg used may cause issues. If you are trying to keep component count down then I would use the phototransistor

for sale it will concentrate on the long rumoured ipad pro model,
Titleist AP1 Sale

Which sample circuit are you looking at? All the ones I can see involve either a transistor or opamp. I think it may be pretty flaky without one at any reasonable distance,
Ping G20 Sale, as the irradiance will be proportional to distance squared and the 20 Meg used may cause issues. If you are trying to keep component count down then I would use the phototransistor,
Titleist CB Sale, it should be far more sensitive.