AI-generated Key Takeaways
-
Policy topics represent policy decisions made about an ad, impacting whether it's allowed to run.
-
This documentation details methods to access a policy topic's ID and type using
getId()
,getName()
(deprecated), andgetType()
. -
getId()
andgetName()
return the policy topic's ID (e.g., "RESTRICTED_MEDICAL_CONTENT"), whilegetType()
returns its effect on the ad (e.g., "PROHIBITED"). -
Refer to the Google Ads Help Center and API documentation for comprehensive information on policy topics and their types.
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. |
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. |