Cannot find proper implementation for Conversion Tracker

34 views
Skip to first unread message

Ankit Pradhan

unread,
Aug 17, 2022, 2:24:48 AM8/17/22
to Google Ads API and AdWords API Forum
Hi team,

I was able to create and update the conversion tracker using Google Ads api.

However I cannot find proper documentation on how to associate a conversion tracker with a specific campaign using conversion tracker id.

Can you please help me on this?

Thanks
Ankit Pradhan

Google Ads API Forum Advisor

unread,
Aug 17, 2022, 7:40:38 AM8/17/22
to ankit....@coditation.com, adwor...@googlegroups.com

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 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,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dLTx6:ref

Ankit Pradhan

unread,
Aug 18, 2022, 1:06:11 AM8/18/22
to Google Ads API and AdWords API Forum
Hi team,

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);

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

Google Ads API Forum Advisor

unread,
Aug 18, 2022, 3:40:42 AM8/18/22
to ankit....@coditation.com, adwor...@googlegroups.com
Hi Ankit,

Thank you for raising your concern.

Please try following this document as it discusses how to manage campaign goals. It appears that this process doesn't require setting of conversion action ID.

Focussing on the SelectiveOptimization where the issue has been encountered, could you provide the complete request and response logs with request ID and request header generated on your end? With the help of this information, we can determine the cause of the issue and to address it.

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dLTx6:ref
Reply all
Reply to author
Forward
0 new messages