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
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