Re-posting the last inquiry ( https://groups.google.com/g/adwords-api/c/34HUpc3pMEs) from the forum as it wasn't routed to our support queue.
Kind regards, Carmela Google Ads API Team On Friday, January 6, 2023 at 12:44:11 AM UTC+8 [email protected] wrote: > Hi ! > I am getting such a weird error. I have been using this piece of code for > almost a year and since 2 days it does not work. > > query = """ > SELECT > campaign.status > FROM campaign_label > """ > > CampaignStatus = client.get_type("CampaignStatusEnum").CampaignStatus > rows = batch.result etc etc > > Then when I am iterating the rows: > status=CampaignStatus.Name(row.campaign.status). -> I get error on > this line : AttributeError: Name > I get the same error for other enums as well like AdGroupStatusEnum or > CampaignServingStatusEnum. > > I am blocked in the middle of something. > Thanks in advance, > osman > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d1a8a5b5-876e-49c7-9570-5806d9a049c5n%40googlegroups.com.
