Why {creative} attribute is not getting replaced by the Ad ID when using a tracking template?

47 views
Skip to first unread message

Emad Atya

unread,
Aug 31, 2016, 2:50:46 PM8/31/16
to AdWords API Forum
Hello,
I'm new using Google AdWords API, and we are building an intermediate layer to collect some statistics for the Ad Clicks.
We are trying to add a tracking template URL to an Ad, and using some attributes, something like:
http://www.example.com/?url={lpurl}&cid={campaignid}&gid={adgroupid}&adid={creative}

When I click the "Test" button, it all the tokens gets replaced by the right value, except for the {creative} token does not get replaced by the Ad ID and it gets replaced by 0

What are we doing wrong here?

Thanks,

Anthony Madrigal

unread,
Aug 31, 2016, 5:28:13 PM8/31/16
to AdWords API Forum
Hi Emad,

Since you are using the Test button from the AdWords UI, this question is better suited for the AdWords Community Forum to respond to. 

Regards,
Anthony
AdWords API Team

Emad Atya

unread,
Sep 1, 2016, 7:58:22 AM9/1/16
to AdWords API Forum
Hello,

Thanks for responding. I've already submitted the question to the Adwords Communite Forums, and they redirected me to here since this looks like an advanced/technical question.

Any help will be appreciated!

Thanks,

Anthony Madrigal

unread,
Sep 1, 2016, 4:14:19 PM9/1/16
to AdWords API Forum
Hello Emad,

I will try my best and see if I can figure out why this is going on. Could you please reply privately to author the SOAP request and response you used to create this ad? If you don't have that, please send me a get request where this ad is returned.

Thanks,
Anthony
AdWords API Team

Imad Atia

unread,
Sep 2, 2016, 9:07:53 AM9/2/16
to AdWords API Forum
Hi Anthony,

Thanks for your response.

Actually, the tracking template we are trying to use is done from the user interface when trying to edit an Ad.

See screenshot below:

As you can see, I'm using the tracking template URL something like: http://www.example.com/?url={lpurl}&cid={campaignid}&gid={adgroupid}&adid={creative}
All the parameters get replaced with the right values, except {creative} gets replaced by 0. It should get replaced by the Ad ID, right?

Thanks,

Anthony Madrigal

unread,
Sep 2, 2016, 2:54:07 PM9/2/16
to AdWords API Forum
Hi,

Yes, your ad Id should be replaced in the {creative} parameter. Since this is not API specific, I'm afraid there is not much my team can do to help find the cause of this issue. 
Reply all
Reply to author
Forward
0 new messages