I'm trying to set the campaign objective while creating a new campaign using the Google Ads API (V18), but the class Google\Ads\GoogleAds\V18\Enums\CampaignObjectiveEnum\CampaignObjective is not found.
Any help or insights would be appreciated!
![]() |
Google Ads API Team |
[2025-02-20 17:38:37Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH2qh:ref" (ADR-00289017)
Hi,
Thank you for the information regarding CampaignConversionGoal and the use of customers.campaignConversionGoals.mutate.
I wanted to confirm whether the "campaign objective" feature (such as Sales, Leads, Website Traffic, App Promotion, Awareness and Consideration, Local Store Visits and Promotion) is directly supported in the latest version of the Google Ads API.
If it is not directly supported, could you please clarify how we can programmatically set these campaign objectives using the API?
I understand from the documentation that goals are identified by unique combinations of category and origin within the set of ConversionActions in the effective conversion account. However, it's still unclear how to explicitly associate one of the predefined campaign objectives (like Sales or Leads) with a campaign via the API.
Any clarification or guidance would be greatly appreciated.