Re: AttributeError: 'GoogleAdsRow' object has no attribute 'results
Many thanks Xiaoming. Your revised script worked perfectly. On Wednesday, 29 April 2020 04:48:51 UTC+12, adsapiforumadvisor wrote: > > Hi Greenleaf, > > Thank you for reaching out. In order for me to further investigate, could > you please share the complete request and response logs along with the > source code you used and the client customer id via the *Reply privately > to author* option? > > Thanks and regards, > Xiaoming, Google Ads API Team > > > > > ref:_00D1U1174p._5001UaSSDC:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1d4066b7-83b6-45e1-8ff6-2f8019b0a577%40googlegroups.com.
Re: AttributeError: 'GoogleAdsRow' object has no attribute 'results
Hi Greenleaf, Thank you for reaching out. In order for me to further investigate, could you please share the complete request and response logs along with the source code you used and the client customer id via the Reply privately to author option? Thanks and regards, Xiaoming, Google Ads API Team ref:_00D1U1174p._5001UaSSDC:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/sXsJH0Q9IC0P00d8kf0WgXR1OqfAuXqufnOg%40sfdc.net.
Re: AttributeError: 'GoogleAdsRow' object has no attribute 'results
Thanks for your reply Xiaoming. Below is the code that I'm using. It looks to me that the attributes (campaign id and campaign name) are in the SELECT clause. Or am I missing something basic here? query = ('SELECT campaign.id, campaign.name FROM campaign ' 'ORDER BY campaign.id') response = ga_service.search(customer_id, query=query) try: for batch in response: for row in batch.results: print(f'Campaign with ID {row.campaign.id.value} and name ' f'"{row.campaign.name.value}" was found.') On Tuesday, 28 April 2020 04:37:58 UTC+12, adsapiforumadvisor wrote: > > Hi Greenleaf, > > Thank you for reaching out. AttributeError: 'GoogleAdsRow' object has no > attribute 'results' usually occurs when you try to get the attribute from > 'GoogleAdsRow' object while you didn’t put it in the SELECT clause in the > query. If you add this attribute in the query, the issue should be fixed. > Please let me know if you have any further concerns. > > Thanks and regards, > Xiaoming, Google Ads API Team > > > > > ref:_00D1U1174p._5001UaSSDC:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/4b53b9b3-e6ff-4dc4-8214-222d5df67cb6%40googlegroups.com.
RE: AttributeError: 'GoogleAdsRow' object has no attribute 'results
Hi Greenleaf, Thank you for reaching out. AttributeError: 'GoogleAdsRow' object has no attribute 'results' usually occurs when you try to get the attribute from 'GoogleAdsRow' object while you didn’t put it in the SELECT clause in the query. If you add this attribute in the query, the issue should be fixed. Please let me know if you have any further concerns. Thanks and regards, Xiaoming, Google Ads API Team ref:_00D1U1174p._5001UaSSDC:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/uGoqR0Q9GGUI00VATslxeiTi6NPLcvuXrDtg%40sfdc.net.
AttributeError: 'GoogleAdsRow' object has no attribute 'results
Hi Trying to migrate from the AdWords API to the Google Ads API. In my test run using get_campaigns.py ( https://github.com/googleads/google-ads-python/blob/master/examples/basic_operations/get_campaigns.py), I get the following error: AttributeError: 'GoogleAdsRow' object has no attribute 'results' I suspect I’ve made an error along the way but can not sort it. Can anyone help? Thanks -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/24806089-deab-4ea2-8b75-a8d935f883b8%40googlegroups.com.