> [!CAUTION]
> **Caution:** This documentation is for Google Ads API **v23** . The latest active version is [**v26**](https://developers.google.com/google-ads/api/reference/rpc/latest/Goal).

Representation of goals.

[Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v23/resources/goal.proto)

| Fields ||
|---|---|
| ## `goal_id` | `int64` Output only. The ID of this goal. |
| ## `goal_settings` Union field. The settings specific to this goal. `goal_settings` can be only one of the following: ||
| ### `retention_goal_settings` | `RetentionGoal` Retention goal settings. |
| ## `goal_type` | `GoalType` Output only. The type of this goal. |
| ## `optimization_eligibility` | `GoalOptimizationEligibility` Output only. Indicates if this goal is eligible for campaign optimization. |
| ## `owner_customer` | `string` Output only. The resource name of the goal owner customer. |
| ## `resource_name` | `string` Immutable. The resource name of the goal. Goal resource names have the form: `customers/{customer_id}/goals/{goal_id}` |