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](https://support.google.com/adspolicy/answer/6008942).

### Methods:

| Member | Type | Description |
|---|---|---|
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_policytopic#getId) | `String` | Returns the ID of the policy topic. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_policytopic#getName) | `String` | Returns the ID of the policy topic. |
| [getType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_policytopic#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()`.

> [!WARNING]
> **Deprecated.**

### 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](https://developers.google.com/google-ads/api/reference/rpc/latest/PolicyTopicEntryTypeEnum.PolicyTopicEntryType).

### Return values:

| Type | Description |
|---|---|
| `String` | The type of the policy topic. |