- Clearly state the issue: "The CampaignConversionGoalOperation class in 
version V18 of the google-ads-php library is missing the setCreate() 
method, which is expected for creating campaign conversion goals. This 
contradicts the general understanding and expected behaviour based on other 
Google Ads API services."

- I'm also attaching a file "CampaignConversionGoalOperation.php" V18.

- Relevant Information:

- Library version: google-ads-php-lib V18

- PHP version: 8.3

- Laravel version 10.23

 
- Provide the relevant code snippet:
$conversionGoal = new CampaignConversionGoal([
'campaign' => $campaignResourceName,
'category' => $categoryValue,
'origin' => $originValue,
'biddable' => false,
]);
$operation = new CampaignConversionGoalOperation();
$operation->setCreate($conversionGoal); 
$mutateRequest = new MutateCampaignConversionGoalsRequest([
'customer_id' => $customerId,
'operations' => $operations,
]);

$campaignConversionGoalServiceClient = $googleAdsClient->
getCampaignConversionGoalServiceClient();
$response = $campaignConversionGoalServiceClient->
mutateCampaignConversionGoals($mutateRequest); 
- 
[2025-02-26 08:49:37] local.INFO: 🔍 Processing Conversion Goals: 
[{"category": "ENGAGEMENT", "origin": "GOOGLE_HOSTED", "biddable": false}]  

[2025-02-26 08:49:37] local.ERROR: 🔴 Error creating conversion goal for 
ENGAGEMENT: Call to undefined method 
Google\Ads\GoogleAds\V18\Services\CampaignConversionGoalOperation::setCreate()  

[2025-02-26 08:49:37] local.WARNING: ⚠️ No valid Conversion Goal operations 
were created for the campaign: customers/9529713466/campaigns/22286718458

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/52c75dc2-dce3-474f-9127-b85f8f1819a8n%40googlegroups.com.
  • Ca... dhrutish ramoliya
    • ... dhrutish ramoliya
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to