This is legacy documentation, and may not be complete. To see the latest documentation, if you are a marketer, refer to the Marketers site. If you are a measurement partner, refer to the Measurement Partners site.
{// Union field field_type can be only one of the following:"type": string,"arrayType": {object (FieldType)},"structType": {object (StructType)}// End of list of possible types for union field field_type.}
Fields
Union field field_type. Field type. field_type can be only one of the following:
[[["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 2024-09-18 UTC."],[[["\u003cp\u003eDefines a BigQuery field type, which can be a simple type, an array, or a struct.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStructType\u003c/code\u003e defines a structured type containing an ordered list of fields.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStructField\u003c/code\u003e represents a single field within a struct, defined by a field name and its type.\u003c/p\u003e\n"],["\u003cp\u003eField types are represented in JSON format using specific properties like \u003ccode\u003etype\u003c/code\u003e, \u003ccode\u003earrayType\u003c/code\u003e, and \u003ccode\u003estructType\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# FieldType\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [StructType](#StructType)\n - [JSON representation](#StructType.SCHEMA_REPRESENTATION)\n- [StructField](#StructField)\n - [JSON representation](#StructField.SCHEMA_REPRESENTATION)\n\nDefines a BigQuery field type.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `field_type` can be only one of the following: \"type\": string, \"arrayType\": { object (/ads-data-hub/reference/rest/v1/FieldType) }, \"structType\": { object (/ads-data-hub/reference/rest/v1/FieldType#StructType) } // End of list of possible types for union field `field_type`. } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `field_type`. Field type. `field_type` can be only one of the following: ||\n| `type` | `string` BigQuery simple type, e.g. 'STRING' or 'INT64'. See \u003chttps://cloud.google.com/bigquery/docs/reference/standard-sql/data-types\u003e. |\n| `arrayType` | `object (`[FieldType](/ads-data-hub/reference/rest/v1/FieldType)`)` Type of the array's elements, if this is an 'ARRAY' type. |\n| `structType` | `object (`[StructType](/ads-data-hub/reference/rest/v1/FieldType#StructType)`)` Struct field type, if this is a 'STRUCT' type. |\n\nStructType\n----------\n\nDefines a struct type.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------|\n| ``` { \"fields\": [ { object (/ads-data-hub/reference/rest/v1/FieldType#StructField) } ] } ``` |\n\n| Fields ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------|\n| `fields[]` | `object (`[StructField](/ads-data-hub/reference/rest/v1/FieldType#StructField)`)` An ordered list of fields for a given struct. |\n\nStructField\n-----------\n\nA key-value pair that defines a single struct field.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------|\n| ``` { \"fieldName\": string, \"fieldType\": { object (/ads-data-hub/reference/rest/v1/FieldType) } } ``` |\n\n| Fields ||\n|-------------|---------------------------------------------------------------------------------|\n| `fieldName` | `string` Field name. |\n| `fieldType` | `object (`[FieldType](/ads-data-hub/reference/rest/v1/FieldType)`)` Field type. |"]]