Hi Amol,
Thanks for reaching out. On line 98 of the Java AddConversionAction example, for the ConversionAction.newBuilder(), you can chain the setAppId method and pass your app ID as an argument.
Please let us know if you have any other questions on this.
Regards,
Matt
Google Ads API Team
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the
2021 Google Ads API and AdWords API Annual Survey

ref:_00D1U1174p._5004Q2TkxoX:ref