Link ConversionAction to Campaign with google ads api php

164 views
Skip to first unread message

Miguel Graciá

unread,
Apr 1, 2020, 9:57:31 AM4/1/20
to AdWords API and Google Ads API Forum
First of all, I hope your family and friends are well. In Spain, these days are being very hard.

Please, I need your help. I would like to link a campaign with a conversion action and I don't know if I am doing it right. Browsing the php classes, I found a method inside the class "\Google\Protobuf\Internal\Message\Campaign" called setSelectiveOptimization, which gets an object from "\Google\Protobuf\Internal\Message\SelectiveOptimization" class where we can pass an array of conversion resources using the setConversionActions method. Once I have made the link, I go to the Google Ads site but I do not see that link reflected anywhere (maybe I'm not looking at the right site)

Attached screenshot showing what I would like to be able to do through the API.

Best Regards

Screenshot from 2020-04-01 15-53-15.png


Google Ads API Forum Advisor Prod

unread,
Apr 1, 2020, 12:31:32 PM4/1/20
to miguelgra...@gmail.com, adwor...@googlegroups.com
Hi Miguel,

Thank you for reaching out. You are correct about that being the way to set this value. Once you run the API service, you should be able to see the conversion action listed in the Campaign Settings -> Conversions -> Choose conversion actions for this campaign. If you don't see the conversion action there, please share the complete detailed request and response logs for the API call via Reply privately to author so that I can further investigate the issue. You can find information on enabling logging in the dropdown of your client library on the left-hand side of the screen here.

Regards,
Mitchell
Google Ads API Team

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