Target CPA with Goal Settings

60 views
Skip to first unread message

Matteo Medda

unread,
Mar 8, 2022, 8:47:40 AM3/8/22
to Google Ads API and AdWords API Forum
Hello, we are using google ads api v9 (sdk php) to create "Display" campaigns with cpa target. Can you confirm that it is possible to create Display campaigns by setting a conversion goal directly (from API)? Directly from the platform we can select it (see attached image) but we can't via "API"

Thx,
Matteo

Google Ads API Forum Advisor

unread,
Mar 8, 2022, 11:44:18 AM3/8/22
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo,

Thanks for reaching out. We did not receive your attachment. However, campaign goals are supported in the Ads API. Please see this guide for details.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XmToS:ref

Matteo Medda

unread,
Mar 8, 2022, 11:52:15 AM3/8/22
to Google Ads API and AdWords API Forum
Hi Matt,
excuse me, I attach the image now.

The steps are therefore:

- recover the custom conversion goal
- associate it with the campaign that we are creating

there is no "code example" to take as a reference?

Matteo
Screenshot 2022-03-08 at 14.46.34.png

Google Ads API Forum Advisor

unread,
Mar 8, 2022, 10:24:57 PM3/8/22
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo,

Thank you for providing more details to your concern.

I am afraid that there is no sample code for custom conversion goals and how to associate it to your campaign. However, I would suggest referring to this document as the services and reports that you can use to manage it have been discussed there.

Let me know if you have further questions. 

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XmToS:ref

Matteo Medda

unread,
Mar 9, 2022, 9:08:20 AM3/9/22
to Google Ads API and AdWords API Forum
Hi Ernie,
Thanks for the infos.
We are looking at the documentation, but we are unsure at what point in the flow we can assign a custom conversion goal to a campaign.

Do we need to set the custom goal after creating the campaign?
We use batchJobs, is it possible to do everything in the creation phase?

Thx,
Matteo

Google Ads API Forum Advisor

unread,
Mar 9, 2022, 9:02:14 PM3/9/22
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo,

Thank you for your reply.

This section of the guide sent by Ernie provides the steps on how you can achieve this. When performing the steps, you can use the BathJobService since its mutate operation supports both the custom_conversion_goal_operation and conversion_goal_campaign_config_operation.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XmToS:ref

Matteo Medda

unread,
Mar 10, 2022, 3:44:47 AM3/10/22
to Google Ads API and AdWords API Forum
Hello Peter, Thanks for the info. Matteo

Matteo Medda

unread,
Mar 10, 2022, 6:15:07 PM3/10/22
to Google Ads API and AdWords API Forum
Hi Peter,
we have made some progress. The only problem is that for the moment we cannot have only the custom_conversion_goal (Test GClid) set via API, but on the dashboard we also see the Goals related to the "reference account", in this case are Outbound clicks (website) and Page views ( website). (see attached image 3Goals) If we do the same operation from the dashboard instead we see that only the selected Goal is displayed. (see attached image 1Goal)
In the mutate via API we set the goal_config_level at "campaign" level.
Do you have any suggestions ?

Matteo
3Goals.png
1Goal.png

Google Ads API Forum Advisor

unread,
Mar 11, 2022, 3:47:55 PM3/11/22
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo,

I work with Peter. To attach specific conversion actions to campaigns. you may need a custom goal, it appears that all category 'website' conversion actions are being linked to your campaign without a custom goal. If the above doesn't help, could you send us privately a full screen screenshot of the UI demonstrating this?

Regards,

Google Logo
Aryeh
Google Ads API Team
 


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