Hi Sinea,

I can confirm that using the above GAQL-strings, I get the disapproved 
assets along with the value "DISAPPROVED" in the 
"asset.policy_summary.approval_status" field.

Regards
Mat

Sinea Calin schrieb am Montag, 21. Februar 2022 um 16:25:29 UTC+1:

> Hi, Mat
>
> Can you also confirm something with me for a long time i would not receive 
> the asset.policy_summary in the select. Today it seems that they fixed it 
> partially,  my unit test retrieves it but its only the review status. Can 
> you confirm that you get the approval_status in your select and is not 
> missing like my response.
>     
> asset {
>     resource_name: "customers/faked/assets/faked"
>     policy_summary {
>       review_status: REVIEW_IN_PROGRESS
>     }
>   }
>
> field_mask {
>   paths: "asset.policy_summary.approval_status"
>   paths: "asset.policy_summary.review_status"
> }
>
> Thank you and sorry for the trouble
> On Monday, February 21, 2022 at 11:51:39 PM UTC+9 Mat wrote:
>
>> Hi Jinky and Sinea,
>>
>> ty for your responses.
>>
>> In the meantime I learned that there is no "one fits for all" resource to 
>> check for disapproved ad extensions that are in active use. Instead you 
>> have to check customer_asset 
>> <https://developers.google.com/google-ads/api/fields/v10/customer_asset>, 
>> campaign_asset 
>> <https://developers.google.com/google-ads/api/fields/v10/campaign_asset> and 
>> ad_group_asset 
>> <https://developers.google.com/google-ads/api/fields/v10/ad_group_asset> 
>> separately. With GAQL strings along these lines:
>>
>>     queries = [
>>         # Checks for disapproved ag_group assets
>>         (
>>             'SELECT '
>>             'ad_group_asset.status, '
>>             'campaign.name, '
>>             'campaign.id, '            
>>             'campaign.serving_status, '
>>             'campaign.status, '
>>             'ad_group.name, '
>>             'ad_group.id, '            
>>             'ad_group.status, '
>>             'asset.name, '
>>             'asset.id, '
>>             'asset.type, '
>>             'asset.policy_summary.approval_status, '
>>             'asset.policy_summary.policy_topic_entries, '
>>             'asset.policy_summary.review_status, '
>>             'asset.resource_name '
>>             'FROM ad_group_asset '
>>             'WHERE asset.policy_summary.approval_status = DISAPPROVED '
>>             'AND campaign.serving_status = SERVING '
>>             'AND campaign.status = ENABLED '
>>             'AND ad_group.status = ENABLED '
>>             'AND ad_group_asset.status = ENABLED'
>>         ),
>>         # Checks for disapproved campaign assets
>>         (
>>             'SELECT '
>>             'campaign_asset.status, '
>>             'campaign.name, '
>>             'campaign.id, '            
>>             'campaign.serving_status, '
>>             'campaign.status, '
>>             'asset.name, '
>>             'asset.id, '
>>             'asset.type, '
>>             'asset.policy_summary.approval_status, '
>>             'asset.policy_summary.policy_topic_entries, '
>>             'asset.policy_summary.review_status, '
>>             'asset.resource_name '
>>             'FROM campaign_asset '
>>             'WHERE asset.policy_summary.approval_status = DISAPPROVED '
>>             'AND campaign.serving_status = SERVING '
>>             'AND campaign.status = ENABLED '
>>             'AND campaign_asset.status = ENABLED'
>>         ),
>>         # Checks for disapproved customer assets
>>         (
>>             'SELECT '
>>             'customer_asset.status, '
>>             'asset.name, '
>>             'asset.id, '
>>             'asset.type, '
>>             'asset.policy_summary.approval_status, '
>>             'asset.policy_summary.policy_topic_entries, '
>>             'asset.policy_summary.review_status, '
>>             'asset.resource_name '
>>             'FROM customer_asset '
>>             'WHERE asset.policy_summary.approval_status = DISAPPROVED '
>>             'AND customer_asset.status = ENABLED'
>>         ),
>>     ]   
>>     for query in queries:
>>         ga_service.search_stream(customer_id=str(customer_id), 
>> query=query)
>>         ...  
>>
>> Regards
>> Mat
>> Sinea Calin schrieb am Montag, 21. Februar 2022 um 10:57:01 UTC+1:
>>
>>> Hi,
>>>
>>> I think he asked how to get disapproved assets how is campaign_asset 
>>> <https://developers.google.com/google-ads/api/fields/v10/campaign_asset> 
>>> a good answer. campaign_asset 
>>> <https://developers.google.com/google-ads/api/fields/v10/campaign_asset> 
>>> does not have policy summary. campaign_asset.asset has policy summary but 
>>> unfortunately there is a bug that return nothing from assets.policy_summary.
>>> So you cant get the status using API.
>>>
>>> You welcome
>>>
>>> On Monday, February 21, 2022 at 6:49:37 PM UTC+9 adsapi wrote:
>>>
>>>> Hi Mat,
>>>>
>>>> Thank you for raising this concern to Google Ads API Team.
>>>>
>>>> To answer your questions, you may refer below for my responses :
>>>>
>>>>
>>>> *"Which would be the appropriate resource to hit with my GAQL string? 
>>>> Would you mind providing me an example for v10?"*
>>>>
>>>> For this question above, could you please confirm if want to get the 
>>>> association of your asset-based extension and campaigns? If yes, the I can 
>>>> suggest to use campaign_asset 
>>>> <https://developers.google.com/google-ads/api/fields/v10/campaign_asset>
>>>> .
>>>>
>>>>
>>>> *"What's the difference between **asset_group* 
>>>> <https://developers.google.com/google-ads/api/fields/v10/asset_group>
>>>> * and **asset_set* 
>>>> <https://developers.google.com/google-ads/api/fields/v10/asset_set>*?*
>>>> *More specific: which is used for what?"*
>>>>
>>>> An *AssetSet* represents the collection of Asset objects that used on 
>>>> implementing Dynamic Search Ads Page Feeds and Dynamic remarketing with 
>>>> assets, while *AssetGroup *is used in the implementation of 
>>>> performance max campaign via Google Ads API.
>>>>
>>>> Best regards,
>>>> [image: Google Logo] 
>>>> Jinky 
>>>> Google Ads API Team 
>>>>   
>>>>
>>>> ref:_00D1U1174p._5004Q2Wx2ja:ref
>>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/89fa7df9-0b2d-4c84-9a5f-e4818303f855n%40googlegroups.com.

Reply via email to