API steps to get javascript for tracking calls to a phone number displayed on a website

57 views
Skip to first unread message

test.ma...@gmail.com

unread,
Nov 17, 2015, 2:48:24 PM11/17/15
to AdWords API Forum


I need to programmatically retrieve the javascript "tracking tag" from AdWords so that I can add it to my website to implement a ConversionTracker for phone calls.

Question 1: Is the following correct?

1. Add a call extension to my Campaign Feed, indicating that I want a AdWords to assign a Google phone number

2. Call ConversionTrackerService > ConversionTrackerService > WebsiteCallMetricsConversion and get the JavaScript tracking tag from the snippet property of WebsiteCallMetricsConversion

Question 2: Is there a "waiting period" or delay between the time I update my Feed and the time the snippet becomes available on the WebsiteCallMetricsConversion.
Note, I am not asking when the Google number will "go live".  I'm asking when the conversion tracking javascript tracking tag snippet becomes available?

Question 3: Does (can?) the javascript tracking tag snippet ever change?  In other words, is there any kind of feed update that would cause a snippet I have previously retrieved to become invalid and force me to retrieve it again and update my site?

Thanks!

Josh Radcliff (AdWords API Team)

unread,
Nov 17, 2015, 4:46:45 PM11/17/15
to AdWords API Forum
Hi,

Please see my responses inline below.

Thanks,
Josh, AdWords API Team


On Tuesday, November 17, 2015 at 2:48:24 PM UTC-5, test.manager.aw wrote:


I need to programmatically retrieve the javascript "tracking tag" from AdWords so that I can add it to my website to implement a ConversionTracker for phone calls.

Question 1: Is the following correct?

1. Add a call extension to my Campaign Feed, indicating that I want a AdWords to assign a Google phone number
Call extensions are not the same as the website call tracking in the Help Center link you provided. A call extension is a phone number that appears on your ads, while the call tracking feature you mentioned is for tracking calls to a phone number displayed on your website.

Therefore, adding a call extension will not automatically create a WebsiteCallMetricsConversion. You will need to do that via a call to ConversionTrackerService.mutate where you pass an ADD operation containing a WebsiteCallMetricsConversion. 

2. Call ConversionTrackerService > ConversionTrackerService > WebsiteCallMetricsConversion and get the JavaScript tracking tag from the snippet property of WebsiteCallMetricsConversion
Yes, that's correct. 

Question 2: Is there a "waiting period" or delay between the time I update my Feed and the time the snippet becomes available on the WebsiteCallMetricsConversion.
Note, I am not asking when the Google number will "go live".  I'm asking when the conversion tracking javascript tracking tag snippet becomes available?
The snippet will be available immediately after you complete the ConversionTrackerService.mutate call I mentioned in #1. 

Question 3: Does (can?) the javascript tracking tag snippet ever change?  In other words, is there any kind of feed update that would cause a snippet I have previously retrieved to become invalid and force me to retrieve it again and update my site?
I'm not aware of anything that would change the tag, but you may want to post this question to the AdWords Community. The product experts there should be able to provide a definitive answer. 

Thanks!

test.ma...@gmail.com

unread,
Nov 17, 2015, 7:40:06 PM11/17/15
to AdWords API Forum
Josh,

Thank you very much for your quick and clear reply!  I missed the ADD operation entirely.  :)
Reply all
Reply to author
Forward
0 new messages