LabelAssociation Data Object - Campaign Management

Defines the relationship between a label and campaign, ad group, ad, or keyword entity.

<xs:complexType name="LabelAssociation" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:sequence>
    <xs:element name="EntityId" type="xs:long" />
    <xs:element name="LabelId" type="xs:long" />
  </xs:sequence>
</xs:complexType>

Elements

The LabelAssociation object has the following elements: EntityId, LabelId.

Element Description Data Type
EntityId The identifier of an entity associated with the label.

Supported entity types for labels are campaign, ad group, ad, and keyword. The entity type is specified in the request message of each DeleteLabelAssociations, GetLabelAssociationsByEntityIds, GetLabelAssociationsByLabelIds, and SetLabelAssociations operation.

Each entity can be associated with a maximum of 50 labels. For example Campaign A can be associated with up to 50 labels.

Set: Required
Delete: Required
long
LabelId The identifier of the label.

Set: Required
Delete: Required
long

Requirements

Service: CampaignManagementService.svc v13
Namespace: https://bingads.microsoft.com/CampaignManagement/v13

Used By

DeleteLabelAssociations
GetLabelAssociationsByEntityIds
GetLabelAssociationsByLabelIds
SetLabelAssociations