Hi,
Previously, it was possible to retrieve the name of an ad type using the
following code:
ga_service = client.get_service("GoogleAdsService")
perf_dict = defaultdict(dict)
query = f"""
SELECT
ad_group_ad.ad.system_managed_resource_source,
ad_group_ad.ad.type,
.....
response = ga_service.search_stream(search_request)
for batch in response:
for row in batch.results:
ad_type_name = row.ad_group_ad.ad.type_.name.upper()
However, this code is no longer functioning and produces the following
error:
AttributeError: 'int' object has no attribute 'name'
Is there an alternative method to retrieve the value?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2e86553d-15d9-4bc8-9dfc-7d2db26f06afn%40googlegroups.com.