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:sequence>
    <xs:element name="AssociationCount" nillable="true" type="xs:int" />
    <xs:element minOccurs="0" name="ForwardCompatibilityMap" nillable="true" type="q55:ArrayOfKeyValuePairOfstringstring" xmlns:q55="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <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" />
  </xs:sequence>
</xs:complexType>

ElementDescriptionData Type
AssociationCountThe number of active associations between this object and an entity such as a campaign.int
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="http://www.w3.org/2001/XMLSchema-instance">
  <AssociationCount i:nil="true" />
  <ForwardCompatibilityMap i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Id i:nil="true" />
  <Name>My Negative Keyword List</Name>
  <ItemCount i:nil="true" />
</SharedEntity>

CampaignManagementService.svc v11

Namespace: https://bingads.microsoft.com/CampaignManagement/v11

AddSharedEntity
DeleteSharedEntities
DeleteSharedEntityAssociations
GetSharedEntitiesByAccountId
GetSharedEntityAssociationsByEntityIds
GetSharedEntityAssociationsBySharedEntityIds
SetSharedEntityAssociations
UpdateSharedEntities

Show: