type NotNullError (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Caused by supplying a null value for an attribute that cannot be null.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
ApiError (inherited)
|
fieldPath
|
xsd:string
The OGNL field path to identify cause of error.
|
fieldPathElements
|
FieldPathElement[]
A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
|
trigger
|
xsd:string
The data that caused the error.
|
errorString
|
xsd:string
A simple string representation of the error and reason.
|
NotNullError
|
reason
|
NotNullError.Reason
The error reason represented by an enum.
Enumerations
-
ARG1_NULL
- Assuming that a method will not have more than 3 arguments, if it does,
return NULL
-
ARG2_NULL
-
ARG3_NULL
-
NULL
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API version.
|
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\u003eThe \u003ccode\u003eNotNullError\u003c/code\u003e in Google Ad Manager's Contact Service arises when a null value is provided for a mandatory attribute.\u003c/p\u003e\n"],["\u003cp\u003eIt is part of the Contact Service API found within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eDetailed information about the error includes the field path, trigger data, and a specific reason code.\u003c/p\u003e\n"],["\u003cp\u003eThis error's \u003ccode\u003ereason\u003c/code\u003e field helps identify which argument or element was missing and caused the error.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this information to pinpoint the issue in their code and provide the required values.\u003c/p\u003e\n"]]],["The content details various services and errors within the Google Ad Manager API (v202408). Key services include AdRule, Adjustment, AdsTxt, and many others like Contact, Content, Creative, Forecast, Inventory, Order, and Report services. It also outlines error handling, with a focus on `NotNullError`, which arises from supplying a null value to a non-nullable attribute. This `NotNullError` provides specific reasons like `ARG1_NULL`, `ARG2_NULL`, `ARG3_NULL`, or `NULL` and contains relevant info.\n"],null,["# type NotNullError (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.NotNullError) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.NotNullError) [AdsTxtService](/ad-manager/api/reference/v202408/AdsTxtService.NotNullError) [AudienceSegmentService](/ad-manager/api/reference/v202408/AudienceSegmentService.NotNullError) [CdnConfigurationService](/ad-manager/api/reference/v202408/CdnConfigurationService.NotNullError) [CmsMetadataService](/ad-manager/api/reference/v202408/CmsMetadataService.NotNullError) [CompanyService](/ad-manager/api/reference/v202408/CompanyService.NotNullError) **ContactService** [ContentBundleService](/ad-manager/api/reference/v202408/ContentBundleService.NotNullError) [ContentService](/ad-manager/api/reference/v202408/ContentService.NotNullError) [CreativeService](/ad-manager/api/reference/v202408/CreativeService.NotNullError) [CreativeSetService](/ad-manager/api/reference/v202408/CreativeSetService.NotNullError) [CreativeTemplateService](/ad-manager/api/reference/v202408/CreativeTemplateService.NotNullError) [CreativeWrapperService](/ad-manager/api/reference/v202408/CreativeWrapperService.NotNullError) [CustomFieldService](/ad-manager/api/reference/v202408/CustomFieldService.NotNullError) [CustomTargetingService](/ad-manager/api/reference/v202408/CustomTargetingService.NotNullError) [DaiAuthenticationKeyService](/ad-manager/api/reference/v202408/DaiAuthenticationKeyService.NotNullError) [DaiEncodingProfileService](/ad-manager/api/reference/v202408/DaiEncodingProfileService.NotNullError) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.NotNullError) [InventoryService](/ad-manager/api/reference/v202408/InventoryService.NotNullError) [LabelService](/ad-manager/api/reference/v202408/LabelService.NotNullError) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202408/LineItemCreativeAssociationService.NotNullError) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.NotNullError) [LineItemTemplateService](/ad-manager/api/reference/v202408/LineItemTemplateService.NotNullError) [LiveStreamEventService](/ad-manager/api/reference/v202408/LiveStreamEventService.NotNullError) [MobileApplicationService](/ad-manager/api/reference/v202408/MobileApplicationService.NotNullError) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.NotNullError) [NetworkService](/ad-manager/api/reference/v202408/NetworkService.NotNullError) [OrderService](/ad-manager/api/reference/v202408/OrderService.NotNullError) [PlacementService](/ad-manager/api/reference/v202408/PlacementService.NotNullError) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.NotNullError) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.NotNullError) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.NotNullError) [ReportService](/ad-manager/api/reference/v202408/ReportService.NotNullError) [SegmentPopulationService](/ad-manager/api/reference/v202408/SegmentPopulationService.NotNullError) [SiteService](/ad-manager/api/reference/v202408/SiteService.NotNullError) [StreamActivityMonitorService](/ad-manager/api/reference/v202408/StreamActivityMonitorService.NotNullError) [SuggestedAdUnitService](/ad-manager/api/reference/v202408/SuggestedAdUnitService.NotNullError) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.NotNullError) [TeamService](/ad-manager/api/reference/v202408/TeamService.NotNullError) [UserService](/ad-manager/api/reference/v202408/UserService.NotNullError) [UserTeamAssociationService](/ad-manager/api/reference/v202408/UserTeamAssociationService.NotNullError) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.NotNullError) **Inheritance** \n[ApiError](/ad-manager/api/reference/v202408/ContactService.ApiError) \n▼\n[ApiVersionError](/ad-manager/api/reference/v202408/ContactService.ApiVersionError) [AuthenticationError](/ad-manager/api/reference/v202408/ContactService.AuthenticationError) [CollectionSizeError](/ad-manager/api/reference/v202408/ContactService.CollectionSizeError) [CommonError](/ad-manager/api/reference/v202408/ContactService.CommonError) [ContactError](/ad-manager/api/reference/v202408/ContactService.ContactError) [FeatureError](/ad-manager/api/reference/v202408/ContactService.FeatureError) [InternalApiError](/ad-manager/api/reference/v202408/ContactService.InternalApiError) [InvalidEmailError](/ad-manager/api/reference/v202408/ContactService.InvalidEmailError) **NotNullError** [ParseError](/ad-manager/api/reference/v202408/ContactService.ParseError) [PermissionError](/ad-manager/api/reference/v202408/ContactService.PermissionError) [PublisherQueryLanguageConte...](/ad-manager/api/reference/v202408/ContactService.PublisherQueryLanguageContextError \"PublisherQueryLanguageContextError\") [PublisherQueryLanguageSynta...](/ad-manager/api/reference/v202408/ContactService.PublisherQueryLanguageSyntaxError \"PublisherQueryLanguageSyntaxError\") [QuotaError](/ad-manager/api/reference/v202408/ContactService.QuotaError) [RequiredCollectionError](/ad-manager/api/reference/v202408/ContactService.RequiredCollectionError) [RequiredError](/ad-manager/api/reference/v202408/ContactService.RequiredError) [ServerError](/ad-manager/api/reference/v202408/ContactService.ServerError) [StatementError](/ad-manager/api/reference/v202408/ContactService.StatementError) [StringFormatError](/ad-manager/api/reference/v202408/ContactService.StringFormatError) [StringLengthError](/ad-manager/api/reference/v202408/ContactService.StringLengthError) [UniqueError](/ad-manager/api/reference/v202408/ContactService.UniqueError)\n\nCaused by supplying a null value for an attribute that cannot be null.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`ApiError` (inherited)** ||\n| ### `fieldPath` | ` `xsd:`string` The OGNL field path to identify cause of error. |\n| ### `fieldPathElements` | ` `[FieldPathElement](/ad-manager/api/reference/v202408/ContactService.FieldPathElement)`[]` A parsed copy of the field path. For example, the field path \"operations\\[1\\].operand\" corresponds to this list: {FieldPathElement(field = \"operations\", index = 1), FieldPathElement(field = \"operand\", index = null)}. |\n| ### `trigger` | ` `xsd:`string` The data that caused the error. |\n| ### `errorString` | ` `xsd:`string` A simple string representation of the error and reason. |\n| **`NotNullError`** ||\n| ### `reason` | ` `[NotNullError.Reason](/ad-manager/api/reference/v202408/ContactService.NotNullError.Reason)` ` The error reason represented by an enum. *** ** * ** *** **Enumerations** `ARG1_NULL` : Assuming that a method will not have more than 3 arguments, if it does, return NULL `ARG2_NULL` : `ARG3_NULL` : `NULL` : `UNKNOWN` : The value returned if the actual value is not exposed by the requested API version. \u003cbr /\u003e |"]]