Unable to access certain fields via API

36 views
Skip to first unread message

Andy Cho

unread,
Aug 22, 2024, 8:25:27 PM8/22/24
to Google Ads API and AdWords API Forum
So in Google Ad Scripts the query for returning a tracking url template works fine. But when I use the api it does not return the value despite a successful response.
Here is my query:
      SELECT
        customer.auto_tagging_enabled,
        customer.tracking_url_template
      FROM
        customer_client
      WHERE
        customer_client.id = '${customerId}'

And here is the result:
{ "results": [ { "customer": { "resourceName": "customers/the_id", "autoTaggingEnabled": true }, "customerClient": { "resourceName": "customers/mcc_id/customerClients/the_id" } } ], "fieldMask": "customer.autoTaggingEnabled,customer.trackingUrlTemplate", "queryResourceConsumption": "274" }

As you can see the autoTaggingEnabled field is returned but not the trackingURLTemplate.
Any help on retrieving this? I'm on a MCC Admin account and via UI i have access to it.

Google Ads API Forum Advisor

unread,
Aug 23, 2024, 2:14:33 AM8/23/24
to an...@stackmatix.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

In order to assist you further, could you please provide the uncropped UI screenshot of the report by highlighting the fields that you're trying to retrieve via the Google Ads API.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vFGS1:ref" (ADR-00264564)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages