enum LineItemActivityAssociationError.Reason (v202502)
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/v202502
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."],[],["The provided content details the `LineItemActivityAssociationError` and its reasons within the context of several services: `ForecastService`, `LineItemService`, `LineItemTemplateService`, and `OrderService`. Key information includes error conditions: `INVALID_ACTIVITY_FOR_ADVERTISER`, indicating mismatched advertisers between activities and line items, and `INVALID_COST_TYPE_FOR_ASSOCIATION`, which specifies that activities can only link to line items with `CostType.CPA`. An `UNKNOWN` value is also present for cases where the actual value is hidden. These definitions are under a specific namespace.\n"],null,["# enum LineItemActivityAssociationError.Reason (v202502)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202502/ForecastService.LineItemActivityAssociationError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.LineItemActivityAssociationError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.LineItemActivityAssociationError.Reason) **OrderService** **Dependencies** \n[LineItemActivityAssociation...](/ad-manager/api/reference/v202502/OrderService.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/v202502`\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. |"]]