Policy Topic Entries not working for Google Ads Scripts Beta

91 views
Skip to first unread message

Tadhg Deeney

unread,
Mar 28, 2022, 3:37:40 PM3/28/22
to Google Ads Scripts Forum
Hi Team,

I am trying to identify the reason for my ads being disapproved, most importantly highlighting ones that are due to DESTINATION NOT WORKING. However, in the new Beta - It seems like the "ad_group_ad.policy_summary.policy_topic_entries" only returns null. Is this information no longer available through Google Ads Scripts?

Kindest Regards,
Tadhg Deeney

Tadhg Deeney

unread,
Mar 29, 2022, 2:08:35 PM3/29/22
to Google Ads Scripts Forum
I've also found that the final_urls is not being returned either - below is my code for testing in my account.
var awql_query =
        "SELECT customer.id, campaign.id, campaign.name, ad_group.id, ad_group.name, ad_group_ad.ad.id, ad_group_ad.ad.type, ad_group_ad.policy_summary.approval_status, "+
        "ad_group_ad.policy_summary.review_status, ad_group_ad.policy_summary.policy_topic_entries, ad_group_ad.ad.final_urls "+
        "FROM ad_group_ad "+
        "WHERE ad_group_ad.policy_summary.approval_status = 'DISAPPROVED' "+
        "AND ad_group_ad.status = 'ENABLED' "+
        "AND ad_group.status = 'ENABLED' "+
        "AND campaign.status = 'ENABLED' ";

    const rows = AdsApp.report(awql_query).rows();
    var raw_data = [];
    while(rows.hasNext()){
        var row = rows.next();
        var account_id = row["customer.id"];
        var campaign_id = row["campaign.id"];
        var campaign_name = row["campaign.name"];
        var adg_id = row["ad_group.id"];
        var adg_name = row["ad_group.name"];
        var ad_id = row["ad_group_ad.ad.id"];
        var ad_type = row["ad_group_ad.ad.type"];
        var approval_status = row["ad_group_ad.policy_summary.approval_status"];
        var policy_summary = row["ad_group_ad.policy_summary.policy_topic_entries"];
        var url = row["ad_group_ad.ad.final_urls"];
        if(unique_policy_violations.indexOf(policy_summary) < 0){
            unique_policy_violations.push(policy_summary);
        }
        raw_data.push([
                account_id,
                campaign_id,
                campaign_name,
                adg_id,
                adg_name,
                ad_id,
                ad_type,
                approval_status,
                policy_summary,
                url
            ]);
    }
    for(var i in raw_data){
        Logger.log(raw_data[i]);
    }

The last 2 columns; policy_summary & url are both null when I'm logging the data. Is this a known bug?

Google Ads Scripts Forum Advisor

unread,
Mar 29, 2022, 11:34:45 PM3/29/22
to adwords...@googlegroups.com

Hello Tadhg,

Thank you for reaching out to us and for sharing your script.

Can you also share to us your Customer ID and the actual script name so we can further check this on our end?

Regards,

Google Logo
Mark Kevin
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2YsHhB:ref

Tadhg Deeney

unread,
Mar 30, 2022, 10:47:36 AM3/30/22
to Google Ads Scripts Forum
I don't have permission to Reply to Author to send you this information.
Would I be able to email this information through another format?

Kindest Regards,
Tadhg

Google Ads Scripts Forum Advisor

unread,
Apr 1, 2022, 5:24:44 AM4/1/22
to adwords...@googlegroups.com
Hi Tadhg,

This is to confirm that we've receive the requested information.

I've checked your script and can confirm the reported issue on my end. With that, let me share this to the rest of the team for further investigation.

Regards,
Google Logo
Teejay Wennie
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2YsHhB:ref

Tadhg Deeney

unread,
Apr 5, 2022, 1:10:06 PM4/5/22
to Google Ads Scripts Forum
Any update on this?

Kindest Regards,
Tadhg Deeney

Google Ads Scripts Forum Advisor

unread,
Apr 7, 2022, 2:38:18 AM4/7/22
to adwords...@googlegroups.com

Hello Tadhg,

I regret to inform you that there are no updates yet from the team. I understand that this is already taking some time to be fixed. However, I assure you that we are doing everything in our ability to fix all the pending issues on our end. We appreciate your continued patience on this. Rest assured that we will update this thread once we have received any feedback from the team.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2YsHhB:ref

Google Ads Scripts Forum Advisor

unread,
Jun 10, 2022, 6:46:15 AM6/10/22
to adwords...@googlegroups.com

Hello Tadhg,

 

I am Maia from the Google Ads Scripts team. I hope you are doing well.

 

I just want to circle back on this and let you know that the issue reported here has been fixed. If you have further questions, let us know and rest assured that we will address them as soon as possible.

 

Best Regards,

Google Logo
Angel Maia
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2YsHhB:ref
Reply all
Reply to author
Forward
0 new messages