trackingSetting giving error

10 views
Skip to first unread message

Dim Pan

unread,
Jul 6, 2020, 2:53:31 AM7/6/20
to AdWords API and Google Ads API Forum
Hi,

I am trying to create a script that adds campaigns with a batch operation. Till now I have succeeded with every setting for the new campaigns, but the tracking url template.

I have inserted in the funcion BuilCampaignOperations (as found in the documentation) in the operand dictionary a code snippet for the tracking url template:

'settings': [
{
'xsi_type': 'TrackingSetting',
'trackingUrl': '{lpurl}?vr_source=google&vr_medium=cpc&vr_campaignid={campaignid}&vr_adgroupid={adgroupid}'
}
]

But when I run the code it gives me the error DESTINATION_URL_DEPRECATED. What is the mistake there? Note that this tracking url template has already been tested and used via the Google Ads UI and works fine.

Thank you in advance!


Google Ads API Forum Advisor Prod

unread,
Jul 6, 2020, 3:20:33 PM7/6/20
to dimitrios.p...@gmail.com, adwor...@googlegroups.com
Hi Dim,

Thank you for reaching out. Please use the trackingUrlTemplate field to set the tracking template at the campaign level.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q21jKz6:ref
Reply all
Reply to author
Forward
0 new messages