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 document details the `LineItemActivityAssociationError` within a service API, specifically for versions in the `v202502` namespace. It lists three error reasons: `INVALID_ACTIVITY_FOR_ADVERTISER`, which occurs when an activity is linked to a line item but doesn't belong to the same advertiser. `INVALID_COST_TYPE_FOR_ASSOCIATION`, indicates that activities can only be linked to `CostType.CPA` line items. `UNKNOWN` is used when the API version doesn't expose the actual error value. These are key issues to consider when making association.\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** [OrderService](/ad-manager/api/reference/v202502/OrderService.LineItemActivityAssociationError.Reason) **Dependencies** \n[LineItemActivityAssociation...](/ad-manager/api/reference/v202502/LineItemTemplateService.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. |"]]