Tracking_url_template set as empty

50 views
Skip to first unread message

Osman Seçmen

unread,
Feb 17, 2022, 12:41:31 PM2/17/22
to Google Ads API and AdWords API Forum
Hello!
I am trying to set tracking_url_template for some campaigns using mutates and following your sample codes here.

However, for this specific field tracking_url_template, it does not allow me to set empty string. What am I missing?

update_campaign.resource_name = campaign_service.campaign_path(
account_id , campaign_id)
)

update_campaign.final_url_suffix = get_correct_final_url_suffix(campaign_name) -> this field is set successfully
update_campaign.tracking_url_template = "" -> this field does not set as empty. If I give a valid value, then it updates.

client.copy_from(
campaign_operation.update_mask,
protobuf_helpers.field_mask(None, update_campaign),
)

I don't get any errors so I am kinda stuck here.
Thanks in advance,
Regards

Osman Seçmen

unread,
Feb 18, 2022, 4:06:10 AM2/18/22
to Google Ads API and AdWords API Forum
Hi again,
I have implemented the same for Customer level and have the same problem.
For both of the fields (final_url_suffix and tracking_url_template), I can update with some valid values (both fields have some requirements).
But when I want to set them empty "" , it does not update and I get no errors.

Could you please help me with that? I have checked the resources etc. and could not see any tricks.
Cheers,

Reply all
Reply to author
Forward
0 new messages