ImageMediaRepresentation 数据对象 - 市场活动管理
定义高度和宽度的图像媒体表示形式。
语法
<xs:complexType name="ImageMediaRepresentation" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexContent mixed="false">
<xs:extension base="tns:MediaRepresentation">
<xs:sequence>
<xs:element minOccurs="0" name="Height" type="xs:int" />
<xs:element minOccurs="0" name="Width" type="xs:int" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
元素
ImageMediaRepresentation 对象具有以下元素:Height、Width。
元素 | 说明 | 数据类型 |
---|---|---|
高度 | 图像的高度(以像素为单位)。 有关详细信息,请参阅下面的 备注 。 |
int |
宽度 | 以像素为单位的图像宽度。 有关详细信息,请参阅下面的 备注 。 |
int |
ImageMediaRepresentation 对象具有 Inherited Elements。
继承的元素
从 MediaRepresentation 继承的元素
ImageMediaRepresentation 对象派生自 MediaRepresentation 对象,并继承以下元素:Name、Type、Url。 以下说明特定于 ImageMediaRepresentation,可能不适用于从 MediaRepresentation 对象继承相同元素的其他对象。
元素 | 说明 | 数据类型 |
---|---|---|
名称 | 媒体表示形式的名称。 对于 ImageAdExtension 媒体表示形式,可能的值为 Preview、 Thumbnail 和 Original。 对于 ResponsiveAd 媒体表示形式,唯一可能的值为 Original。 |
string |
类型 | 媒体表示形式的类型。 检索图像媒体表示形式时,此值为 ImageMediaRepresentation 。 |
string |
Url | 媒体下载 URL。 | string |
备注
Microsoft广告为每个图像媒体存储三个不同高度和宽度的表示形式。
说明 | Width | Height |
---|---|---|
缩略图 | 120 | 68 |
预览 | 160 | 90 |
通过Microsoft广告 Web 应用程序或 AddMedia 服务操作上传的原始大小。 | 有关尺寸限制,请参阅 图像。 | 有关尺寸限制,请参阅 图像。 |
要求
服务: CampaignManagementService.svc v13
Namespace: https://bingads.microsoft.com/CampaignManagement/v13