Hello,
Thank you for reaching out. You can add the
TargetingSetting by setting the targetAll field to true to set the targeting setting as Observation. You may refer to
this code sample as a reference to apply these settings for a campaign. Please let me know if you have any other questions.
Regards,
Danica, Google Ads API Team

ref:_00D1U1174p._5004Q1zLeKF:ref