AdsApp.PolicyTopic
Stay organized with collections
Save and categorize content based on your preferences.
Represents an ad's policy topic. These are policy decisions that have been
made about the ad.
For more information about policy topics, please see the Google Ads Help Center
article.
Methods:
Member | Type | Description |
getId() |
String |
Returns the ID of the policy topic. |
getName() |
String |
Returns the ID of the policy topic. |
getType() |
String |
Returns the type of the policy topic. |
getId()
Returns the ID of the policy topic. e.g. "RESTRICTED_MEDICAL_CONTENT" or
"DESTINATION_NOT_WORKING".
Return values:
Type | Description |
String |
The ID of the policy topic. |
getName()
Returns the ID of the policy topic. This method is deprecated as it is
functionally equivalent to
getId()
.
Return values:
Type | Description |
String |
The ID of the policy topic. |
getType()
Returns the type of the policy topic. This describes the effect the policy
topic has on the ad. e.g. "PROHIBITED" or "LIMITED".
For a full list of policy topic types and the effect they have on ads,
please see the Google
Ads API documentation on policy topics.
Return values:
Type | Description |
String |
The type of the policy topic. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003ePolicy topics represent policy decisions made about an ad, impacting whether it's allowed to run.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation details methods to access a policy topic's ID and type using \u003ccode\u003egetId()\u003c/code\u003e, \u003ccode\u003egetName()\u003c/code\u003e (deprecated), and \u003ccode\u003egetType()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetId()\u003c/code\u003e and \u003ccode\u003egetName()\u003c/code\u003e return the policy topic's ID (e.g., "RESTRICTED_MEDICAL_CONTENT"), while \u003ccode\u003egetType()\u003c/code\u003e returns its effect on the ad (e.g., "PROHIBITED").\u003c/p\u003e\n"],["\u003cp\u003eRefer to the Google Ads Help Center and API documentation for comprehensive information on policy topics and their types.\u003c/p\u003e\n"]]],[],null,["# AdsApp.PolicyTopic\n\nRepresents an ad's policy topic. These are policy decisions that have been made about the ad.\n\nFor more information about policy topics, please see the [Google Ads Help Center\narticle](//support.google.com/adspolicy/answer/6008942).\n\n### Methods:\n\n| Member | Type | Description |\n|-----------------------|----------|---------------------------------------|\n| [getId()](#getId) | `String` | Returns the ID of the policy topic. |\n| [getName()](#getName) | `String` | Returns the ID of the policy topic. |\n| [getType()](#getType) | `String` | Returns the type of the policy topic. |\n\n`getId()`\n---------\n\nReturns the ID of the policy topic. e.g. \"RESTRICTED_MEDICAL_CONTENT\" or \"DESTINATION_NOT_WORKING\".\n\n### Return values:\n\n| Type | Description |\n|----------|-----------------------------|\n| `String` | The ID of the policy topic. |\n\ngetName()\n---------\n\nReturns the ID of the policy topic. This method is deprecated as it is functionally equivalent to `getId()`. **Deprecated.**\n\n### Return values:\n\n| Type | Description |\n|----------|-----------------------------|\n| `String` | The ID of the policy topic. |\n\n`getType()`\n-----------\n\nReturns the type of the policy topic. This describes the effect the policy topic has on the ad. e.g. \"PROHIBITED\" or \"LIMITED\".\n\nFor a full list of policy topic types and the effect they have on ads,\nplease see the [Google\nAds API documentation on policy topics](/google-ads/api/reference/rpc/latest/PolicyTopicEntryTypeEnum.PolicyTopicEntryType).\n\n### Return values:\n\n| Type | Description |\n|----------|-------------------------------|\n| `String` | The type of the policy topic. |"]]