Hi , I am using php google ads api library v10,
I am trying to create a shopping campaign with the bidding strategy "Maximize clicks" using V10 PHP lib code, The below code is working fine using target spend with CPC bid, but If I pass target spend as empty then it's not working, *$campaign = new Campaign([* * 'resource_name' => ResourceNames::forCampaign($customerId, $campaignId),* * 'status' => CampaignStatus::PAUSED,* * 'target_spend'=>new TargetSpend(['cpc_bid_ceiling_micros'=>1000000]),* *]);* If I pass target spend as empty then it's not working like below, *$campaign = new Campaign([* * 'resource_name' => ResourceNames::forCampaign($customerId, $campaignId),* * 'status' => CampaignStatus::PAUSED,* * 'target_spend'=>new TargetSpend(),* *]);* Please find both requests' request and response log in the attached log. Please let me know how I can use Maximize clicks bidding strategy without setting CPC bid? is it possible using API? because in UI we can use the same without setting up CPC bid. If I use an update campaign then how can I clear CPC bid? Please find attached request-response log. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/ec1b37c2-bf57-42b6-bfde-29582a3a334en%40googlegroups.com.
REQUEST 1 [2022-06-02 12:27:59] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v10.services.CampaignService/MutateCampaigns", CustomerId: 1255040287, RequestId: "HUpckNPnyBPSmwZJ5eHbhQ", IsFault: 0, FaultMessage: "None" [2022-06-02 12:27:59] google-ads.DEBUG: Request ------- Method Name: /google.ads.googleads.v10.services.CampaignService/MutateCampaigns Host: googleads.googleapis.com Headers: { "x-goog-api-client": "gl-php\/7.4.29 gccl\/15.0.0 gapic\/15.0.0 gax\/1.12.2 grpc\/1.45.0 rest\/1.12.2", "x-goog-request-params": "customer_id=1255040287", "developer-token": "REDACTED", "login-customer-id": "6596152707" } Request: {"customerId":"1255040287","operations":[{"updateMask":"resourceName,status","update":{"resourceName":"customers/1255040287/campaigns/17341754591","status":"ENABLED","targetSpend":{}}}]} Response ------- Headers: { "content-disposition": "attachment", "request-id": "HUpckNPnyBPSmwZJ5eHbhQ", "date": "Thu, 02 Jun 2022 12:27:59 GMT", "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" } Response: {"results":[{"resourceName":"customers/1255040287/campaigns/17341754591"}]} REQUEST 2 ===================================================================================================================================== [2022-06-02 12:30:50] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v10.services.CampaignService/MutateCampaigns", CustomerId: 1255040287, RequestId: "uaUvzcvR1YBIdRmfsUsw9A", IsFault: 0, FaultMessage: "None" [2022-06-02 12:30:50] google-ads.DEBUG: Request ------- Method Name: /google.ads.googleads.v10.services.CampaignService/MutateCampaigns Host: googleads.googleapis.com Headers: { "x-goog-api-client": "gl-php\/7.4.29 gccl\/15.0.0 gapic\/15.0.0 gax\/1.12.2 grpc\/1.45.0 rest\/1.12.2", "x-goog-request-params": "customer_id=1255040287", "developer-token": "REDACTED", "login-customer-id": "6596152707" } Request: {"customerId":"1255040287","operations":[{"updateMask":"resourceName,status,targetSpend.cpcBidCeilingMicros","update":{"resourceName":"customers/1255040287/campaigns/17341754591","status":"ENABLED","targetSpend":{"cpcBidCeilingMicros":"1000000"}}}]} Response ------- Headers: { "content-disposition": "attachment", "request-id": "uaUvzcvR1YBIdRmfsUsw9A", "date": "Thu, 02 Jun 2022 12:30:50 GMT", "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" } Response: {"results":[{"resourceName":"customers/1255040287/campaigns/17341754591"}]}