RE: need to populate info: utm_term, utm_campaign, utm_source and utm_medium

7 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Oct 13, 2025, 11:29:44 PM (5 hours ago) Oct 13
to kwa...@candlefox.com, adwor...@googlegroups.com
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_termutm_campaignutm_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 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 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, campaign, ad_group, ad, ad_group_ad, 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 report for that field will result in an empty response, even if a template exists at the campaign level.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-10-14 03:28:12Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vQiZJ:ref" (ADR-00335375)



Reply all
Reply to author
Forward
0 new messages