Hi team,

Thanks for replying. By using CampaignConversionGoal 
<https://developers.google.com/google-ads/api/reference/rpc/v11/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);

But it is throwing me error that the "error code is not in the current 
version" 


On Wednesday, August 17, 2022 at 5:10:38 PM UTC+5:30 adsapi wrote:

> Hi Ankit,
>
> Thank you for reaching out to our API support team.
>
> Could you confirm if you are referring to a campaign conversion goal? If 
> yes, I would suggest referring to this document 
> <https://developers.google.com/google-ads/api/docs/conversions/goals/campaign-goals>
>  as 
> it discusses how to manage it using Google Ads API. If not, you can provide 
> the screenshot of the UI where we can see the feature that you are looking 
> for in the Google Ads API so that we can further check.
>
>
> Best regards,
> [image: Google Logo] 
> Anthony Cyril 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2dLTx6:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7a622d2c-2f97-4962-8ac0-e11b87401845n%40googlegroups.com.
  • Ca... Ankit Pradhan
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Ankit Pradhan

Reply via email to