Thanks for replying. By using
CampaignConversionGoal , how can we set conversion action id.
I was using SelectiveOptimization class to set the resource name that I have created by using the conversion action id and then I am setting the SelectiveOptimization object to the campaign object. Basically this is what I am doing
String resourceName = ResourceNames.
conversionAction(customerId, conversionActionId);
Campaign.SelectiveOptimization selectiveOptimization = Campaign.SelectiveOptimization.
newBuilder().addConversionActions(resourceName).build();
newCampaign.setSelectiveOptimization(selectiveOptimization);