How can I get policy details value with a query to extension_feed_item?

56 views
Skip to first unread message

Miguel Serna Agudo

unread,
Jul 22, 2020, 2:50:29 AM7/22/20
to AdWords API and Google Ads API Forum
I am trying to download this info via API from an account but there is not a field related to policy details whereas it is in the platform.

The query I am using in Python is this one:

        ga_service = GoogleAdsClient.get_service('GoogleAdsService', version='v3')
 
        query = (
        'SELECT extension_feed_item.id, '
        'extension_feed_item.extension_type, '
        'extension_feed_item.status, '     
        'extension_feed_item.targeted_geo_target_constant, '
        'extension_feed_item.targeted_keyword.match_type, '
        'extension_feed_item.sitelink_feed_item.line1, '
        'extension_feed_item.sitelink_feed_item.line2, '
        'extension_feed_item.sitelink_feed_item.link_text, '
        'extension_feed_item.sitelink_feed_item.final_urls, '
        'extension_feed_item.callout_feed_item.callout_text, '
        'extension_feed_item.structured_snippet_feed_item.header, '
        'extension_feed_item.structured_snippet_feed_item.values '
        'FROM extension_feed_item')
        
        results = ga_service.search(str(accountId), query=query)

 Is there a way to get policy details value for a given extension, maybe with another query to another resource comparing the extension_feed_item's id?

Google Ads API Forum Advisor Prod

unread,
Jul 22, 2020, 1:11:17 PM7/22/20
to miguel...@jot-im.com, adwor...@googlegroups.com
Hi Miguel,

The closest thing you can do is run a report from the feed_item level. From there, you can select the field feed_item.policy_infos to get its validation and approval state.

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5004Q22Y8am:ref

Miguel Serna Agudo

unread,
Jul 23, 2020, 3:39:36 AM7/23/20
to AdWords API and Google Ads API Forum
Hello,

It worked. Doing a query from the feed item level and filtering by the extension_feed_item.id i got the expected output:

[...
review_status: REVIEWED
approval_status: APPROVED
validation_status: VALID
placeholder_type_enum: STRUCTURED_SNIPPET
]

Thank you very much.
Reply all
Reply to author
Forward
0 new messages