If this is a primary goal, it represents the number or percentage of
impressions or clicks that will be reserved. If the line item is of type
LineItemTypeEnum.LineItemType.SPONSORSHIP,
it represents the percentage of available impressions reserved. If the line
item is of type
LineItemTypeEnum.LineItemType.BULK
or
LineItemTypeEnum.LineItemType.PRICE_PRIORITY,
it represents the number of remaining impressions reserved. If the line
item is of type
LineItemTypeEnum.LineItemType.NETWORK
or
LineItemTypeEnum.LineItemType.HOUSE,
it represents the percentage of remaining impressions reserved. <p>If this
is an impression cap goal, it represents the number of impressions or
conversions that the line item will stop serving at if reached. For valid
line item types, see [LineItem.impressions_cap][].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eGoalOrBuilder\u003c/code\u003e interface within the Google Ad Manager Java library, spanning multiple versions from 0.1.0 to 0.19.0, with 0.19.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoalOrBuilder\u003c/code\u003e interface extends \u003ccode\u003eMessageOrBuilder\u003c/code\u003e and defines methods to retrieve information about a line item's goal type and unit type, and their corresponding numeric values on the wire.\u003c/p\u003e\n"],["\u003cp\u003eThe interface includes methods such as \u003ccode\u003egetGoalType()\u003c/code\u003e, \u003ccode\u003egetGoalTypeValue()\u003c/code\u003e, \u003ccode\u003egetUnitType()\u003c/code\u003e, \u003ccode\u003egetUnitTypeValue()\u003c/code\u003e, and \u003ccode\u003egetUnits()\u003c/code\u003e to access the goal's type, unit type, and the number or percentage of reserved impressions or clicks.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetUnits()\u003c/code\u003e method is used to retrieve the number or percentage of impressions or clicks reserved for different line item types, including sponsorship, bulk, price priority, network, and house line items, and can also represent an impression cap goal.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation for \u003ccode\u003eGoalOrBuilder\u003c/code\u003e has been implemented as early as version 0.1.0 and has maintained the same function implementation through version 0.19.0.\u003c/p\u003e\n"]]],[],null,[]]