In what way can I get AW-CONVERSION_ID?

486 views
Skip to first unread message

mymaltoses mymaltoses

unread,
Sep 24, 2019, 2:25:14 AM9/24/19
to AdWords API and Google Ads API Forum
In what way can I get AW-CONVERSION_ID? There are interface methods do?

<!-- Global site tag (gtag.js) - Google Ads: 73002899311 -->
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-CONVERSION_ID)
</script>

Google Ads API Forum Advisor Prod

unread,
Sep 24, 2019, 3:52:02 AM9/24/19
to adwor...@googlegroups.com

Hi,

Thank you for posting your concern.

Could you confirm if you are trying to retrieve gtag using the AdWords API? If yes, it is possible by using ConversionTrackerService.get() and get googleGlobalSiteTag field.

Otherwise, so I can provide proper support, could you provide more details on what you are trying to achieve?

Regards,
Hiroyuki
Google Ads API Team



ref:_00D1U1174p._5001UHHjj8:ref

mymaltoses mymaltoses

unread,
Sep 24, 2019, 4:25:37 AM9/24/19
to AdWords API and Google Ads API Forum
Hi

Thanks for the answer.

 I've set up global site tags using  Google Analytics,I need to add a (piece of code that contains the conversion ID) for each location global site config command codes are added, and placed </script>end just above the mark. In the example below, " AW-CONVERSION_ID" represents the conversion ID of the account
I now want to get "AW-CONVERSION_ID" via API instead of email or copy and paste,Is there any API available?
thanks for your help
在 2019年9月24日星期二 UTC+8下午3:52:02,adsapiforumadvisor写道:

Google Ads API Forum Advisor Prod

unread,
Sep 24, 2019, 5:56:16 AM9/24/19
to adwor...@googlegroups.com

Hi,

Thank you for providing further details and I'm sorry for not understanding your concern correctly.

In the AdWords API perspective, you may retrieve id using ConversionTrackerService.get(). Could you confirm if this is you are looking for? Also, please note that Analytics goals and transactions created in Google Analytics profiles linked to this Google Ads account are returned with no trackingCodeType. You may refer to this guide for more details.

Please let me know if now I have understood what you are trying to achieve.



Regards,
Hiroyuki
Google Ads API Team



ref:_00D1U1174p._5001UHHjj8:ref

mymaltoses mymaltoses

unread,
Sep 24, 2019, 6:31:28 AM9/24/19
to AdWords API and Google Ads API Forum
Hi,

Thank your answer.

 I am trying to use this method, if there is a new problem in the future, I will contact you again, thank you again!

在 2019年9月24日星期二 UTC+8下午5:56:16,adsapiforumadvisor写道:
Reply all
Reply to author
Forward
0 new messages