AI-generated Key Takeaways
-
TeamError represents errors related to a Team within the Google Ad Manager API.
-
It includes inherited fields from ApiError such as fieldPath, fieldPathElements, trigger, and errorString to identify the cause of the error.
-
TeamError has a specific reason field, an enum, detailing causes like entities not being on user's teams, invalid team assignments, or inability to update inactive teams.
-
The namespace for TeamError is
https://www.google.com/apis/ads/publisher/v202508. -
Various other services like CompanyService, ContactService, and OrderService can also potentially return TeamError.
Errors related to a Team.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
Field
ApiError
(inherited) fieldPath
xsd:
string
The OGNL field path to identify cause of error.
fieldPathElements
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.
TeamError
reason
The error reason represented by an enum.
Enumerations
-
ENTITY_NOT_ON_USERS_TEAMS - User cannot use this entity because it is not on any of the user's teams.
-
AD_UNITS_NOT_ON_ORDER_TEAMS - The targeted or excluded ad unit must be on the order's teams.
-
PLACEMENTS_NOT_ON_ORDER_TEAMS - The targeted placement must be on the order's teams.
-
MISSING_USERS_TEAM - Entity cannot be created because it is not on any of the user's teams.
-
ALL_TEAM_ASSOCIATION_NOT_ALLOWED - A team that gives access to all entities of a given type cannot be associated with an entity of that type.
-
INVALID_TEAM_ASSIGNMENT - The assignment of team to entities is invalid.
-
CANNOT_UPDATE_INACTIVE_TEAM - Cannot modify or create a team with an inactive status.
-
UNKNOWN - The value returned if the actual value is not exposed by the requested API version.

