Hi all,
I'm using Google Ads API with php lib,
How can I remove the tracking_url_template from a campaign?

I tried it passing this arguments to fieldMask: 
1.) 'tracking_url_template' => ""
2.) 'tracking_url_template' => null
but neither work.
How i can do this?

*this is my example code:*
        $resourceName = ResourceNames::forCampaign($client_customer_id, 
$camp->id_campaign);

        $campaign = new Campaign([
            'resource_name' => $resourceName,
            'tracking_url_template' => ""
        ]);

        $campaignOperation = new CampaignOperation();
        $campaignOperation->setRemove($campaign);
        
$campaignOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaign));

        $campaignServiceClient = 
$googleAdsClient->getCampaignServiceClient();

        $response = $campaignServiceClient->mutateCampaigns(
            $client_customer_id,
            [$campaignOperation]
        );

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/87b579c5-181b-4615-9966-d5d0de6cabe5n%40googlegroups.com.
  • tr... Cristiano De Luca
    • ... Cristiano De Luca
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to