How to obtain data in the policy management center

31 views
Skip to first unread message

xiaochuan li

unread,
Aug 8, 2024, 6:29:54 AM8/8/24
to Google Ads API and AdWords API Forum
How can I get the data in the policy through the Google Ads API, or how can I get the data through GAOL?

Snipaste_2024-08-08_18-28-48.png

Google Ads API Forum Advisor

unread,
Aug 8, 2024, 11:21:14 AM8/8/24
to clixia...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Each PolicyTopicEntry has a topic that indicates the specific ads policy the entry is about and a type to indicate the effect that the entry will have on serving. It may optionally have one or more evidences that indicate the reason for the finding. It may also optionally have one or more constraints that provide details about how serving may be restricted. You can use the PolicyTopicEntry.topic field to get the policy topic details. You may also use the below GAQL query:
SELECT ad_group_ad.policy_summary.approval_status, ad_group_ad.policy_summary.review_status, 
ad_group_ad.policy_summary.policy_topic_entries FROM ad_group_ad WHERE 
ad_group_ad.policy_summary.approval_status = 'DISAPPROVED' AND ad_group_ad.ad.id = {AD ID}
I hope this helps.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vEh4Y:ref" (ADR-00262498)

Thanks,
 
Google Logo Google Ads API Team


xiaochuan li

unread,
Aug 8, 2024, 9:58:53 PM8/8/24
to Google Ads API and AdWords API Forum
Thank you for your answer, but when I query another account without policy warnings or errors, it still returns data with type='PROHIBITED'. What's going on? Will historical warnings still be processed as PROHIBITED?
This is part of the returned data, topic is CLICKBAIT.

results {
  ad_group_ad {
    resource_name: "customers/xxxxxx/adGroupAds/xxx~xxx"
    ad {
      resource_name: "customers/xxx/ads/xxxx"
    }
    policy_summary {
      policy_topic_entries {
        topic: "CLICKBAIT"
        type_: PROHIBITED
      }
      review_status: REVIEWED
      approval_status: DISAPPROVED
    }
  }
}

Snipaste_2024-08-09_09-57-40.png

Google Ads API Forum Advisor

unread,
Aug 9, 2024, 7:24:30 AM8/9/24
to clixia...@gmail.com, adwor...@googlegroups.com
Hi,

I understand that when querying data in another account that has no policy warnings or errors, you are still receiving data with a type labeled as 'PROHIBITED,' and you are seeking guidance on this matter. I would request you to share the Google Ads customer ID and ad ID to check it from our end. The logs which you have shared are redacted, so I wold request yo to share the complete API logs (request and response logs with request-id and request header) generated at your end and uncropped UI screenshot of the Google Ads account (with visible customer ID) of where you are facing the issue.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
Reply all
Reply to author
Forward
0 new messages