Exclude resourceName from response

53 views
Skip to first unread message

Zhisheng Zhou

unread,
Jun 23, 2021, 3:43:00 PM6/23/21
to AdWords API and Google Ads API Forum
Hi. Team.
Is there a way to exclude resourceName field from response(Google Ads API)?

My Request body is something like:

{
     "page_size": 10,
      "query": "SELECT customer.id,customer.descriptive_name,segments.date FROM                                     click_view  WHERE segments.date = '2021-06-01'",
      "return_total_results_count": "true",
      "validate_only": "false"
}

And the response is like:
{
      "customer": {
               "resourceName": "customers/11111111111",
               "id": "11111111111",
               "descriptiveName": "LSS - EMEA"
       },
      "segments": {
               "date": "2021-06-01"
       },
      "clickView": {
                "resourceName": "customers/11111111111/clickViews/2021-06-01~Cj0KCQjwIsAJeDT0g---0zk2KJ5E1swerwersfsfsTkTDpBomqw7uJ2AT-SZSqhusRWECScB"
      }
}

As you can see, even I don't have resourceName in the query.
They still appear in the response.
I am trying to minimize the response size.
Is there an option to disable that?

Best,
Zhisheng


Google Ads API Forum Advisor

unread,
Jun 23, 2021, 11:03:49 PM6/23/21
to zhisheng...@gmail.com, adwor...@googlegroups.com
Hi Zhisheng,

Thank you for posting your concern.

Could you provide the complete request and response logs with request ID generated on your end for this report to further check? Please share it via Reply privately to author option.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IyC3i:ref

Pete Lavetsky (AdWords API Guru)

unread,
Jun 24, 2021, 9:38:45 AM6/24/21
to AdWords API and Google Ads API Forum
Hey Zhisheng,

This question also came up recently in the Java client library board: https://github.com/googleads/google-ads-java/issues/438

Long story short it doesn't look like removing resource_name will be coming any time soon.

They are working on compression toggles tho.

Pete

Google Ads API Forum Advisor

unread,
Jun 27, 2021, 11:42:31 PM6/27/21
to pete.l...@gmail.com, adwor...@googlegroups.com
Hi,

Allow me as well to create a feature request, subject for review, regarding this. That said, as an addition to what the client library owners mentioned in the Github thread provided by Pete, and aside from the thread itself, you may for now keep an eye on our blog for any possible updates or announcements related to this topic.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IyC3i:ref
Reply all
Reply to author
Forward
0 new messages