Afternoon,
I'm currently having trouble pulling data from the ad_group_ad report
(https://developers.google.com/google-ads/api/fields/v2/ad_group_ad). I
need to pull the ad_group_ad.ad.final_urls along with all of the headlines.
I'm using this query:
query = (
'SELECT campaign.id, ad_group.id, ad_group.name, ad_group_ad.ad.final_urls '
'FROM ad_group_ad'
)
and using this print() to test and see what data I get:
print('Ad group with ID %d and name "%s" was found in campaign '
'with ID %d and the Final URL is "%s".'
% (row.ad_group.id.value, row.ad_group.name.value,
row.campaign.id.value,
row.ad_group_ad.ad.final_urls.value))
I keep getting this error:
Traceback (most recent call last):
File "test_ad_group_ad.py", line 67, in <module>
main(google_ads_client, args.customer_id, _DEFAULT_PAGE_SIZE)
File "test_ad_group_ad.py", line 42, in main
row.campaign.id.value, row.ad_group_ad.ad.final_urls.value))
AttributeError: 'RepeatedCompositeFieldContainer' object has no attribute
'value'
and I don't know why. Any help would be appreciated.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads 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/5bfcd597-cdc4-4403-beff-fcac5ad0bab5%40googlegroups.com.