After some more experimentation I learned that the if-queries are not
needed after all. The following code also works - never mind :-)
query = ('SELECT '
'extension_feed_item.app_feed_item.final_urls, '
'extension_feed_item.app_feed_item.final_mobile_urls, '
'extension_feed_item.promotion_feed_item.final_urls, '
'extension_feed_item.promotion_feed_item.final_mobile_urls, '
'extension_feed_item.sitelink_feed_item.final_urls, '
'extension_feed_item.sitelink_feed_item.final_mobile_urls, '
'extension_feed_item.status, '
'extension_feed_item.resource_name, '
'ad_group.status, '
'campaign.status, '
'campaign.serving_status '
'FROM extension_feed_item '
'WHERE extension_feed_item.status = ENABLED '
'AND ad_group.status = ENABLED '
'AND campaign.status = ENABLED '
'AND campaign.serving_status = SERVING'
)
results = ga_service.search(customer_id, query=query)
try:
for row in results:
for e in row.extension_feed_item.app_feed_item.final_urls:
print(e.value)
for e in row.extension_feed_item.app_feed_item.final_mobile_urls:
print(e.value)
for e in row.extension_feed_item.promotion_feed_item.final_urls:
print(e.value)
for e in
row.extension_feed_item.promotion_feed_item.final_mobile_urls:
print(e.value)
for e in row.extension_feed_item.sitelink_feed_item.final_urls:
print(e.value)
for e in row.extension_feed_item.sitelink_feed_item.final_mobile_urls:
print(e.value)
--
*KE Keyword-Experte GmbH*
Augustaanlage 7-11
68165 Mannheim
Tel. -49
(0)621 / 18 06 27-0
Fax +49 (0)621 / 18 06 27-99
[email protected]
<mailto:[email protected]>
www.keyword-experte.de
<http://www.keyword-experte.de/>
Handelsregister Mannheim HRB 704385
Geschäftsführer: Julian Flügge & Marcus Schütter
Google Ads - Facebook
Ads - Bing Ads - Conversion-Optimierung
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f48356ed-3f78-44d0-8987-5d0403b8bc31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.