Hello Google Ads Community,
I am trying to create a Demand Gen campaign using the PHP client library (version 19). My goal is to set the campaign objective to "Clicks" as it appears in the Google Ads UI.
However, I'm facing an API error that I can't resolve. I initially tried using maximize_clicks, but that resulted in a No such field maximize_clicks error, even with the latest library. After trying a different approach, the issue persists.
Here is my code snippet for creating the campaign. I've noted that I am currently using maximize_conversions as a test, but my true goal is "Clicks".
My core issue is: What is the correct way to set the bidding strategy for a "Clicks" goal on a Demand Gen campaign using the PHP client library?
Any guidance or a working code example would be greatly appreciated.
Thank you!
![]() |
Google Ads API Team |
[2025-08-18 21:51:14Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01szPi2:ref" (ADR-00330269)
![]() |
Google Ads API Team |
[2025-08-18 21:52:40Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01szPi2:ref" (ADR-00330269)