type CustomFieldValue (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eCustomFieldValue represents the value of a CustomField that doesn't have a drop-down data type.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from BaseCustomFieldValue, which includes the ID of the associated CustomField.\u003c/p\u003e\n"],["\u003cp\u003eThe 'value' field stores the actual custom field value, with its type depending on the CustomField's data type.\u003c/p\u003e\n"],["\u003cp\u003eDifferent data types like STRING, NUMBER, and TOGGLE correspond to specific Value types like TextValue, NumberValue, and BooleanValue.\u003c/p\u003e\n"],["\u003cp\u003eThis structure is used within various Google Ad Manager services like ForecastService, LineItemService, and OrderService.\u003c/p\u003e\n"]]],["The `CustomFieldValue` represents a value for a `CustomField`, excluding those with a `DROP_DOWN` data type. It inherits from `BaseCustomFieldValue`. Key actions involve setting the `customFieldId` which links to its `CustomField`, and defining the `value`. The `value`'s type is determined by the associated `CustomField`'s data type and can be a `Value`, `ObjectValue`, `BooleanValue`, `DateTimeValue`, `DateValue`, `NumberValue`, `SetValue`, or `TextValue`. For instance, STRING relates to TextValue, NUMBER to NumberValue and TOGGLE to BooleanValue.\n"],null,[]]