How to remove custom parameter

354 views
Skip to first unread message

road11

unread,
Jul 17, 2015, 7:15:52 PM7/17/15
to adwor...@googlegroups.com
I've got to programmatically remove custom parameters from all keywords in one campaign. I can remove the tracking template by setting it to String.Empty in C#. But nothing I try seems to remove the custom parameters. I've tried setting the key and value to String.Empty, but then I get a TOO SHORT error. How do I remove custom parameters through the API.

This doesn't work...

CustomParameter mParam = new CustomParameter();
mParam.key = String.Empty;
mParam.value = String.Empty;

biddableAdGroupCriterion.urlCustomParameters.parameters =
                new CustomParameter[] { mParam };


Eric

Anthony Madrigal

unread,
Jul 20, 2015, 10:12:54 AM7/20/15
to adwor...@googlegroups.com, garrett...@belnickinc.com
Hi Eric,

In order to remove Custom Parameters, you will need to set the field value to null and also set isRemove to true.

Regards,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages