Hi Support Team, Thanks for fast response. I understand now. Another question: are there specific fields that can keep each of those information instead of on tracking url template?
Thanks and regards, Wawan K. On Tuesday, 14 October 2025 at 10:29:44 UTC+7 Google Ads API Forum Advisor wrote: > Hi Wawan, > > Thank you for reaching out to the Google Ads API support team. > > Please be informed that I have removed your response from the forums as it > contains the PII information. > > Based on the information provided, I understand that you are trying to > retrieve this information (*utm_term*, *utm_campaign*, *utm_source* and > *utm_medium)* based on GCLID and you are looking for guidance on how to > achieve it using the Google Ads API. Additionally, I could see that you > were able to retrieve them using the campaign.tracking_url_template > <https://developers.google.com/google-ads/api/fields/v21/campaign#campaign.tracking_url_template> > > field and your main goal is to retrieve it based on GCLID. Kindly note that > tracking templates in Google Ads can be set at the account, campaign, ad > group, ad, and keyword levels. So, as this information (utm_term, > utm_campaign, utm_source and utm_medium) is available in the tracking url > template and hence the tracking templates are available at the account, > campaign, ad group, ad, and keyword levels so you won't be able to retrieve > these details based on GCLID. I would recommend you to refer to this help > center article > <https://support.google.com/google-ads/answer/10070427?hl=en-AU&sjid=9666209453702621403-NC> > > for more detailed information. > > Please find the answers for your questions below: > > *1. Why any GCLID that doesn't have trackingUrlTemplate information in > result* > > - As mentioned above the tracking url template is available only at > the account, campaign, ad group, ad, and keyword levels and that's the > main > reason you are not able to retrieve the tracking url template based on > GCLID. > > *2. Any other table/field that contain these 4 information?* > > - You can use the customer > <https://developers.google.com/google-ads/api/fields/v21/customer>, > campaign > <https://developers.google.com/google-ads/api/fields/v21/campaign>, > ad_group > <https://developers.google.com/google-ads/api/fields/v21/ad_group>, ad > <https://developers.google.com/google-ads/api/fields/v21/ad>, > ad_group_ad > <https://developers.google.com/google-ads/api/fields/v21/ad_group_ad>, > ad_group_criterion > > <https://developers.google.com/google-ads/api/fields/v21/ad_group_criterion> > to > retrieve the tracking url templates using the Google Ads API. Keep in mind > that the Google Ads API will only return a tracking URL template if it was > explicitly set at the level you're querying. For example, if you haven't > set a template at the ad group level, querying the ad_group > <https://developers.google.com/google-ads/api/fields/v21/ad_group> > report for that field will result in an empty response, even if a template > exists at the campaign level. > > > Thanks, > > [image: Google Logo] Google Ads API Team > Feedback > How was our support today? > > [image: rating1] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001vQiZJIA0> > > [image: rating2] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001vQiZJIA0> > > [image: rating3] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001vQiZJIA0> > > [image: rating4] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001vQiZJIA0> > > [image: rating5] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001vQiZJIA0> > [2025-10-14 03:28:12Z GMT] This message is in relation to case > "ref:!00D1U01174p.!500Ht01vQiZJ:ref" (ADR-00335375) > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/adwords-api/a2a1985e-5e7a-41f0-bbe1-30bce156e6e3n%40googlegroups.com.
