SharedEntity Data Object


Defines the base class of a shared entity.

Do not try to instantiate a SharedEntity. You can create the following object that derives from it.

A NegativeKeywordList is derived from the SharedList, which derives from the SharedEntity object.

<xs:complexType name="SharedEntity">
    <xs:element name="AssociationCount" nillable="true" type="xs:int" />
    <xs:element minOccurs="0" name="ForwardCompatibilityMap" nillable="true" type="q55:ArrayOfKeyValuePairOfstringstring" xmlns:q55="" />
    <xs:element minOccurs="0" name="Id" nillable="true" type="xs:long" />
    <xs:element name="Name" nillable="true" type="xs:string" />
    <xs:element name="Type" nillable="true" type="xs:string" />

ElementDescriptionData Type
AssociationCountThe number of active associations between this object and an entity such as a
ForwardCompatibilityMapThe list of key and value strings for forward compatibility. This element can be used to avoid otherwise breaking changes when new elements are added in future releases.

Note: Forward compatibility changes will be noted here in future releases. There are currently no forward compatibility changes for the SharedEntity object.
KeyValuePairOfstringstring array
IdThe unique Bing Ads identifier of the shared entity.long
NameThe name of the shared entity.string
TypeThe type of the shared entity. For more information about shared entity types, see SharedEntity Data Object Remarks.string

For Java and the .NET languages, do not set the Type element because the value is determined by the object instance.

If you generate the SOAP manually, use the type attribute of the <SharedEntity> node as shown in the following example, to specify whether the shared entity is a negative keyword list.

<SharedEntity i:type="NegativeKeywordList" xmlns:i="">
  <AssociationCount i:nil="true" />
  <ForwardCompatibilityMap i:nil="true" xmlns:a="" />
  <Id i:nil="true" />
  <Name>My Negative Keyword List</Name>
  <ItemCount i:nil="true" />

CampaignManagementService.svc v11