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.