Goal

  • Each goal is represented by a resource name in the formatcustomers/{customer_id}/goals/{goal_id}.

  • Goals have a type, optimization eligibility, an ID, and an owner customer, all output only except for the resource name.

  • Goal settings, which are specific to each goal, are defined within a union field and can include retention goal settings.

Representation of goals.

Proto definition

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}

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-12 UTC.