enum LineItemActivityAssociationError.Reason (v202505)
Stay organized with collections
Save and categorize content based on your preferences.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202505
Enumeration |
Description |
INVALID_ACTIVITY_FOR_ADVERTISER
|
When associating an activity to a line item the activity must belong to the same
advertiser as the line item.
|
INVALID_COST_TYPE_FOR_ASSOCIATION
|
Activities can only be associated with line items of CostType.CPA .
|
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."],[],[],null,["# enum LineItemActivityAssociationError.Reason (v202505)\n\n**Service** \n**ForecastService** [LineItemService](/ad-manager/api/reference/v202505/LineItemService.LineItemActivityAssociationError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202505/LineItemTemplateService.LineItemActivityAssociationError.Reason) [OrderService](/ad-manager/api/reference/v202505/OrderService.LineItemActivityAssociationError.Reason) **Dependencies** \n[LineItemActivityAssociation...](/ad-manager/api/reference/v202505/ForecastService.LineItemActivityAssociationError \"LineItemActivityAssociationError\") \n▼\n**LineItemActivityAssociation...**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202505`\n\n| Enumeration | Description |\n|-------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| `INVALID_ACTIVITY_FOR_ADVERTISER` | When associating an activity to a line item the activity must belong to the same advertiser as the line item. |\n| `INVALID_COST_TYPE_FOR_ASSOCIATION` | Activities can only be associated with line items of `CostType.CPA`. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]