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]
);