Result from Query

51 views
Skip to first unread message

Akash Prajapati

unread,
Feb 7, 2022, 8:06:03 AM2/7/22
to Google Ads API and AdWords API Forum
Hi Team 

 When I am printing in the below manner - 
"try:
        
for batch in stream:
             for row in batch.results:
                      print(row)

 I am missing some of the columns in my output for example like below even when I have selected them in the  main Query.
        metrics.video_quartile_p100_rate,
        metrics.video_quartile_p25_rate,
        metrics.video_quartile_p50_rate,
        metrics.video_quartile_p75_rate,

But when I print each column row.x, row.y then they are fetched in the result set.
"try:
        
for batch in stream:
             for row in batch.results:
                      print(row.metrics.video_quartile_p100_rate)
   


Can you explain why there is a difference between these two methods, when row has all the columns from the query?

Google Ads API Forum Advisor

unread,
Feb 7, 2022, 9:32:33 PM2/7/22
to akash.p...@kpipartners.com, adwor...@googlegroups.com
Hi Akash,

Thank you for reaching out to our API support team.

So that our team may take a closer look at the issue you encountered, could you also provide to our team the complete request and response logs, with the request-id and login-customer-id?

If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W4x3M:ref

Akash Prajapati

unread,
Feb 7, 2022, 9:35:21 PM2/7/22
to Google Ads API and AdWords API Forum
Hi Team
Is this behaviour expected from the api ?

Akash Prajapati

unread,
Feb 7, 2022, 9:37:38 PM2/7/22
to Google Ads API and AdWords API Forum
Hi Team,

There is no error for which I can provide you the logs, I am asking that why is it happening when we print(row) the columns are missing even when the columns are present in the select query. But when I am using print(row.x) then that column is fetched, how to proceed on this ?

Akash Prajapati

unread,
Feb 8, 2022, 12:30:41 AM2/8/22
to Google Ads API and AdWords API Forum
hi team 
can you please provide any update

Google Ads API Forum Advisor

unread,
Feb 8, 2022, 5:26:01 AM2/8/22
to akash.p...@kpipartners.com, adwor...@googlegroups.com

Hi Akash,

Since you mentioned that you are missing said columns in your output even though you have selected in your GAQL. In order to troubleshoot further, our team would need complete logs as requested by my colleague (Peter), so that we can check observed behavior. Kindly provide the requested information via Reply to author Privately option.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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