GetAudienceFullEstimation 服务操作 - Ad Insight
获取受众完全估计。
请求元素
GetAudienceFullEstimationRequest 对象定义服务操作请求的正文和标头元素。 元素的顺序必须与 请求 SOAP 中所示的顺序相同。
注意
除非下面另有说明,否则需要所有请求元素。
请求正文元素
元素 | 说明 | 数据类型 |
---|---|---|
年龄 | 年龄目标选择。 可能的值为: EighteenToTwentyFour、 TwentyFiveToThirtyFour、 ThirtyFiveToFourtyNine、 FiftyToSixtyFour、 SixtyFiveAndAbove、 Unknown。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOfAgeEnum |
受众 | 受众目标的选择。 支持的受众类型包括:自定义访问群体、组合列表、客户匹配列表、动态再营销列表、市场内受众、再营销列表和类似受众。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
竞价 | 所需的出价设置值。 如果设置为 null,则使用建议的出价来执行估算。 加: 自选 更新: 自选 |
十进制 |
CampaignBiddingStrategy | 指示估计响应所需的出价策略。 支持的值为:5:EnhancedCPC,12:ManualCP。 加: 自选。 默认值为 Manual。 更新: 自选 |
int |
CampaignSubType | 指示估计响应所需的广告类型。 支持的值为:*0:StaticAds,1:FeedBasedAds,2:DynamicFeedBasedAds。 加: 自选。 默认值为 StaticAds。 更新: 自选 |
int |
公司 | LinkedIn配置文件目标公司。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
货币 |
DailyBudget 和 Bid 的货币。 如果为 null,将使用帐户设置的货币。 加: 自选。 默认值为 null。 更新: 自选 |
Currency |
DailyBudget | 每日市场活动预算值。 如果设置为 null,则使用建议的预算来执行估算。 加: 自选。 默认值为 null。 更新: 自选 |
十进制 |
源 | 仅当 CampaignSubType 为 FeedBasedAds 或 DynamicFeedBasedAds 时,才遵循此参数。 它指定要计为估计的所需源流量。 加: 自选。 默认值为 null。 更新: 自选 |
源 |
Gender | 要针对的性别。 可能的值为: Male、 Female、 Unknown。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOfGenderEnum |
行业 | LinkedIn配置文件定位的行业。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
JobFunction | 作业功能 LinkedIn配置文件目标行业。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
位置 | 位置定位的选择。 所选内容中存储的值引用位置 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
RadiusTargets | 以英里/公里为单位表示所需的地理区域。 加: 自选。 默认值为 null。 更新: 自选 |
RadiusTarget 数组 |
请求标头元素
元素 | 说明 | 数据类型 |
---|---|---|
AuthenticationToken | OAuth 访问令牌,表示有权Microsoft广告帐户的用户的凭据。 有关详细信息,请参阅 使用 OAuth 进行身份验证。 |
string |
CustomerAccountId | 拥有或与请求中的实体关联的广告帐户的标识符。 如果需要这两个元素,此标头元素必须与 AccountId 正文元素具有相同的值。 此元素是大多数服务操作所必需的,作为最佳做法,应始终设置它。 有关详细信息,请参阅 获取帐户和客户 ID。 |
string |
CustomerId | 用户正在访问或操作的客户) 经理帐户 (标识符。 用户可以访问多个经理帐户。 此元素是大多数服务操作所必需的,作为最佳做法,应始终设置它。 有关详细信息,请参阅 获取帐户和客户 ID。 |
string |
DeveloperToken | 用于访问必应广告 API 的开发人员令牌。 有关详细信息,请参阅 获取开发人员令牌。 |
string |
Password | 此元素保留供内部使用,将从 API 的未来版本中删除。 必须使用 AuthenticationToken 元素来设置用户凭据。 | string |
UserName | 此元素保留供内部使用,将从 API 的未来版本中删除。 必须使用 AuthenticationToken 元素来设置用户凭据。 | string |
响应元素
GetAudienceFullEstimationResponse 对象定义服务操作响应的正文和标头元素。 元素的返回顺序与 响应 SOAP 中所示的顺序相同。
响应正文元素
元素 | 说明 | 数据类型 |
---|---|---|
货币 |
DailyBudget 和 Bid 的货币。 如果为 null,将使用帐户设置的货币。 加: 自选。 默认值为 null。 更新: 自选 |
Currency |
EstAudienceSize | 包含舍入结果的每月估计到达用户计数。 仅输出。 | RangeResultOfDecimalRoundedResult |
EstClick | 包含范围结果的每月估计用户计数。 仅输出。 | RangeResultOfDecimalRoundedResult |
EstCostPerEvent | 指示每个事件的估计成本。 字段含义随 CampaignBiddingStrategy 请求字段而异。 仅输出。 EnhancedCPC:CPC ManualCPM:CPM |
RangeResultOfDecimalRoundedResult |
EstCTR | 具有范围结果的估计点击率 (CTR) 。 仅输出。 | RangeResultOfdouble |
EstImpression | 包含范围结果的每月估计展示次数。 仅输出。 | RangeResultOfDecimalRoundedResult |
EstReachAudienceSize | 包含范围结果的每月估计用户计数。 仅输出。 | DecimalRoundedResult |
EstReachImpression | 包含范围结果的每月估计展示次数。 仅输出。 | DecimalRoundedResult |
EstSpend | 包含范围结果的每月估计支出。 仅输出。 | RangeResultOfDecimalRoundedResult |
EventsLostToBid | 指示由于输入出价不足而丢失的事件计数。 事件丢失类型随 CampaignBiddingStrategy 请求字段而异。 仅输出。 EnhancedCPC:单击 ManualCPM:印象 |
int |
EventsLostToBudget | 指示由于输入预算不足而丢失的事件计数。 事件丢失类型随 CampaignBiddingStrategy 请求字段而异。 仅输出。 EnhancedCPC:单击 ManualCPM:印象 |
int |
SuggestedBid | 当前目标下的建议出价值。 仅输出。 | 十进制 |
SuggestedBudget | 当前目标和出价下的建议每日预算值。 仅输出。 | 十进制 |
响应标头元素
元素 | 说明 | 数据类型 |
---|---|---|
跟踪 ID | 包含 API 调用详细信息的日志条目的标识符。 | string |
请求 SOAP
此模板由一个工具生成,用于显示 SOAP 请求的正文和标头元素的顺序。 有关可用于此服务操作的支持类型,请参阅上面的 请求正文元素 参考。
<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns="https://bingads.microsoft.com/AdInsight/v13">
<Action mustUnderstand="1">GetAudienceFullEstimation</Action>
<AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
<CustomerAccountId i:nil="false">ValueHere</CustomerAccountId>
<CustomerId i:nil="false">ValueHere</CustomerId>
<DeveloperToken i:nil="false">ValueHere</DeveloperToken>
</s:Header>
<s:Body>
<GetAudienceFullEstimationRequest xmlns="https://bingads.microsoft.com/AdInsight/v13">
<Age i:nil="false">
<Includes i:nil="false">
<AgeEnum>ValueHere</AgeEnum>
</Includes>
<Excludes i:nil="false">
<AgeEnum>ValueHere</AgeEnum>
</Excludes>
</Age>
<Gender i:nil="false">
<Includes i:nil="false">
<GenderEnum>ValueHere</GenderEnum>
</Includes>
<Excludes i:nil="false">
<GenderEnum>ValueHere</GenderEnum>
</Excludes>
</Gender>
<Audience i:nil="false">
<Includes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Includes>
<Excludes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Excludes>
</Audience>
<Company i:nil="false">
<Includes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Includes>
<Excludes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Excludes>
</Company>
<Industry i:nil="false">
<Includes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Includes>
<Excludes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Excludes>
</Industry>
<JobFunction i:nil="false">
<Includes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Includes>
<Excludes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Excludes>
</JobFunction>
<Location i:nil="false">
<Includes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Includes>
<Excludes i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:long>ValueHere</a1:long>
</Excludes>
</Location>
<RadiusTargets i:nil="false">
<RadiusTarget>
<Radius>ValueHere</Radius>
<RadiusUnit>ValueHere</RadiusUnit>
<CenterLatitude>ValueHere</CenterLatitude>
<CenterLongitude>ValueHere</CenterLongitude>
</RadiusTarget>
</RadiusTargets>
<CampaignBiddingStrategy i:nil="false">ValueHere</CampaignBiddingStrategy>
<CampaignSubType i:nil="false">ValueHere</CampaignSubType>
<Feed i:nil="false">
<StoreId i:nil="false">ValueHere</StoreId>
<FeedId i:nil="false">ValueHere</FeedId>
<FeedType i:nil="false">ValueHere</FeedType>
</Feed>
<DailyBudget i:nil="false">ValueHere</DailyBudget>
<Bid i:nil="false">ValueHere</Bid>
<Currency i:nil="false">ValueHere</Currency>
</GetAudienceFullEstimationRequest>
</s:Body>
</s:Envelope>
响应 SOAP
此模板由一个工具生成,用于显示 SOAP 响应的 正文 和 标头 元素的顺序。
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns="https://bingads.microsoft.com/AdInsight/v13">
<TrackingId d3p1:nil="false" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</TrackingId>
</s:Header>
<s:Body>
<GetAudienceFullEstimationResponse xmlns="https://bingads.microsoft.com/AdInsight/v13">
<EstImpression d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<High d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</High>
<Low d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</Low>
</EstImpression>
<EstAudienceSize d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<High d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</High>
<Low d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</Low>
</EstAudienceSize>
<EstClick d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<High d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</High>
<Low d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</Low>
</EstClick>
<EstSpend d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<High d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</High>
<Low d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</Low>
</EstSpend>
<EstCostPerEvent d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<High d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</High>
<Low d4p1:nil="false">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</Low>
</EstCostPerEvent>
<EstCTR d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<High>ValueHere</High>
<Low>ValueHere</Low>
</EstCTR>
<SuggestedBid d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</SuggestedBid>
<SuggestedBudget d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</SuggestedBudget>
<EventsLostToBid d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</EventsLostToBid>
<EventsLostToBudget d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</EventsLostToBudget>
<EstReachAudienceSize d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</EstReachAudienceSize>
<EstReachImpression d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<Value d4p1:nil="false">ValueHere</Value>
<Unit d4p1:nil="false">ValueHere</Unit>
</EstReachImpression>
<Currency d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</Currency>
</GetAudienceFullEstimationResponse>
</s:Body>
</s:Envelope>
代码语法
示例语法可用于 必应广告 SDK。 有关更多示例,请参阅 必应广告 API 代码示例 。
public async Task<GetAudienceFullEstimationResponse> GetAudienceFullEstimationAsync(
SelectionOfAgeEnum age,
SelectionOfGenderEnum gender,
SelectionOflong audience,
SelectionOflong company,
SelectionOflong industry,
SelectionOflong jobFunction,
SelectionOflong location,
IList<RadiusTarget> radiusTargets,
int? campaignBiddingStrategy,
int? campaignSubType,
Feed feed,
decimal? dailyBudget,
decimal? bid,
Currency? currency)
{
var request = new GetAudienceFullEstimationRequest
{
Age = age,
Gender = gender,
Audience = audience,
Company = company,
Industry = industry,
JobFunction = jobFunction,
Location = location,
RadiusTargets = radiusTargets,
CampaignBiddingStrategy = campaignBiddingStrategy,
CampaignSubType = campaignSubType,
Feed = feed,
DailyBudget = dailyBudget,
Bid = bid,
Currency = currency
};
return (await AdInsightService.CallAsync((s, r) => s.GetAudienceFullEstimationAsync(r), request));
}
static GetAudienceFullEstimationResponse getAudienceFullEstimation(
SelectionOfAgeEnum age,
SelectionOfGenderEnum gender,
SelectionOflong audience,
SelectionOflong company,
SelectionOflong industry,
SelectionOflong jobFunction,
SelectionOflong location,
ArrayOfRadiusTarget radiusTargets,
int campaignBiddingStrategy,
int campaignSubType,
Feed feed,
decimal dailyBudget,
decimal bid,
Currency currency) throws RemoteException, Exception
{
GetAudienceFullEstimationRequest request = new GetAudienceFullEstimationRequest();
request.setAge(age);
request.setGender(gender);
request.setAudience(audience);
request.setCompany(company);
request.setIndustry(industry);
request.setJobFunction(jobFunction);
request.setLocation(location);
request.setRadiusTargets(radiusTargets);
request.setCampaignBiddingStrategy(campaignBiddingStrategy);
request.setCampaignSubType(campaignSubType);
request.setFeed(feed);
request.setDailyBudget(dailyBudget);
request.setBid(bid);
request.setCurrency(currency);
return AdInsightService.getService().getAudienceFullEstimation(request);
}
static function GetAudienceFullEstimation(
$age,
$gender,
$audience,
$company,
$industry,
$jobFunction,
$location,
$radiusTargets,
$campaignBiddingStrategy,
$campaignSubType,
$feed,
$dailyBudget,
$bid,
$currency)
{
$GLOBALS['Proxy'] = $GLOBALS['AdInsightProxy'];
$request = new GetAudienceFullEstimationRequest();
$request->Age = $age;
$request->Gender = $gender;
$request->Audience = $audience;
$request->Company = $company;
$request->Industry = $industry;
$request->JobFunction = $jobFunction;
$request->Location = $location;
$request->RadiusTargets = $radiusTargets;
$request->CampaignBiddingStrategy = $campaignBiddingStrategy;
$request->CampaignSubType = $campaignSubType;
$request->Feed = $feed;
$request->DailyBudget = $dailyBudget;
$request->Bid = $bid;
$request->Currency = $currency;
return $GLOBALS['AdInsightProxy']->GetService()->GetAudienceFullEstimation($request);
}
response=adinsight_service.GetAudienceFullEstimation(
Age=Age,
Gender=Gender,
Audience=Audience,
Company=Company,
Industry=Industry,
JobFunction=JobFunction,
Location=Location,
RadiusTargets=RadiusTargets,
CampaignBiddingStrategy=CampaignBiddingStrategy,
CampaignSubType=CampaignSubType,
Feed=Feed,
DailyBudget=DailyBudget,
Bid=Bid,
Currency=Currency)
要求
服务: AdInsightService.svc v13
命名空间: https://bingads.microsoft.com/AdInsight/v13
请求 URL
https://adinsight.api.bingads.microsoft.com/AdInsight/v13/AudienceFullEstimation/Query
请求元素
GetAudienceFullEstimationRequest 对象定义服务操作请求的正文和标头元素。
注意
除非下面另有说明,否则需要所有请求元素。
请求正文元素
元素 | 说明 | 数据类型 |
---|---|---|
年龄 | 年龄目标选择。 可能的值为: EighteenToTwentyFour、 TwentyFiveToThirtyFour、 ThirtyFiveToFourtyNine、 FiftyToSixtyFour、 SixtyFiveAndAbove、 Unknown。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOfAgeEnum |
受众 | 受众目标的选择。 支持的受众类型包括:自定义访问群体、组合列表、客户匹配列表、动态再营销列表、市场内受众、再营销列表和类似受众。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
竞价 | 所需的出价设置值。 如果设置为 null,则使用建议的出价来执行估算。 加: 自选 更新: 自选 |
十进制 |
CampaignBiddingStrategy | 指示估计响应所需的出价策略。 支持的值为:5:EnhancedCPC,12:ManualCP。 加: 自选。 默认值为 Manual。 更新: 自选 |
int |
CampaignSubType | 指示估计响应所需的广告类型。 支持的值为:*0:StaticAds,1:FeedBasedAds,2:DynamicFeedBasedAds。 加: 自选。 默认值为 StaticAds。 更新: 自选 |
int |
公司 | LinkedIn配置文件目标公司。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
货币 |
DailyBudget 和 Bid 的货币。 如果为 null,将使用帐户设置的货币。 加: 自选。 默认值为 null。 更新: 自选 |
Currency |
DailyBudget | 每日市场活动预算值。 如果设置为 null,则使用建议的预算来执行估算。 加: 自选。 默认值为 null。 更新: 自选 |
十进制 |
源 | 仅当 CampaignSubType 为 FeedBasedAds 或 DynamicFeedBasedAds 时,才遵循此参数。 它指定要计为估计的所需源流量。 加: 自选。 默认值为 null。 更新: 自选 |
源 |
Gender | 要针对的性别。 可能的值为: Male、 Female、 Unknown。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOfGenderEnum |
行业 | LinkedIn配置文件定位的行业。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
JobFunction | 作业功能 LinkedIn配置文件目标行业。 所选内容中存储的值引用段 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
位置 | 位置定位的选择。 所选内容中存储的值引用位置 ID。 加: 自选。 默认值为 null。 更新: 自选 |
SelectionOflong |
RadiusTargets | 以英里/公里为单位表示所需的地理区域。 加: 自选。 默认值为 null。 更新: 自选 |
RadiusTarget 数组 |
请求标头元素
元素 | 说明 | 数据类型 |
---|---|---|
Authorization | OAuth 访问令牌,表示有权Microsoft广告帐户的用户的凭据。 请确保令牌的前缀为“持有者”,这是正确身份验证所必需的。 有关详细信息,请参阅 使用 OAuth 进行身份验证。 |
string |
CustomerAccountId | 拥有或与请求中的实体关联的广告帐户的标识符。 如果需要这两个元素,此标头元素必须与 AccountId 正文元素具有相同的值。 此元素是大多数服务操作所必需的,作为最佳做法,应始终设置它。 有关详细信息,请参阅 获取帐户和客户 ID。 |
string |
CustomerId | 用户正在访问或操作的客户) 经理帐户 (标识符。 用户可以访问多个经理帐户。 此元素是大多数服务操作所必需的,作为最佳做法,应始终设置它。 有关详细信息,请参阅 获取帐户和客户 ID。 |
string |
DeveloperToken | 用于访问必应广告 API 的开发人员令牌。 有关详细信息,请参阅 获取开发人员令牌。 |
string |
Password | 此元素保留供内部使用,将从 API 的未来版本中删除。 必须使用 AuthenticationToken 元素来设置用户凭据。 | string |
UserName | 此元素保留供内部使用,将从 API 的未来版本中删除。 必须使用 AuthenticationToken 元素来设置用户凭据。 | string |
响应元素
GetAudienceFullEstimationResponse 对象定义服务操作响应的正文和标头元素。 元素的返回顺序与 响应 JSON 中所示的顺序相同。
响应正文元素
元素 | 说明 | 数据类型 |
---|---|---|
货币 |
DailyBudget 和 Bid 的货币。 如果为 null,将使用帐户设置的货币。 加: 自选。 默认值为 null。 更新: 自选 |
Currency |
EstAudienceSize | 包含舍入结果的每月估计到达用户计数。 仅输出。 | RangeResultOfDecimalRoundedResult |
EstClick | 包含范围结果的每月估计用户计数。 仅输出。 | RangeResultOfDecimalRoundedResult |
EstCostPerEvent | 指示每个事件的估计成本。 字段含义随 CampaignBiddingStrategy 请求字段而异。 仅输出。 EnhancedCPC:CPC ManualCPM:CPM |
RangeResultOfDecimalRoundedResult |
EstCTR | 具有范围结果的估计点击率 (CTR) 。 仅输出。 | RangeResultOfdouble |
EstImpression | 包含范围结果的每月估计展示次数。 仅输出。 | RangeResultOfDecimalRoundedResult |
EstReachAudienceSize | 包含范围结果的每月估计用户计数。 仅输出。 | DecimalRoundedResult |
EstReachImpression | 包含范围结果的每月估计展示次数。 仅输出。 | DecimalRoundedResult |
EstSpend | 包含范围结果的每月估计支出。 仅输出。 | RangeResultOfDecimalRoundedResult |
EventsLostToBid | 指示由于输入出价不足而丢失的事件计数。 事件丢失类型随 CampaignBiddingStrategy 请求字段而异。 仅输出。 EnhancedCPC:单击 ManualCPM:印象 |
int |
EventsLostToBudget | 指示由于输入预算不足而丢失的事件计数。 事件丢失类型随 CampaignBiddingStrategy 请求字段而异。 仅输出。 EnhancedCPC:单击 ManualCPM:印象 |
int |
SuggestedBid | 当前目标下的建议出价值。 仅输出。 | 十进制 |
SuggestedBudget | 当前目标和出价下的建议每日预算值。 仅输出。 | 十进制 |
响应标头元素
元素 | 说明 | 数据类型 |
---|---|---|
跟踪 ID | 包含 API 调用详细信息的日志条目的标识符。 | string |
请求 JSON
此模板由显示 JSON 请求的 正文 和 标头 元素的工具生成。 有关可用于此服务操作的支持类型,请参阅上面的 请求正文元素 参考。
{
"Age": {
"Excludes": [
"ValueHere"
],
"Includes": [
"ValueHere"
]
},
"Gender": {
"Excludes": [
"ValueHere"
],
"Includes": [
"ValueHere"
]
},
"Audience": {
"Excludes": [
"LongValueHere"
],
"Includes": [
"LongValueHere"
]
},
"Company": {
"Excludes": [
"LongValueHere"
],
"Includes": [
"LongValueHere"
]
},
"Industry": {
"Excludes": [
"LongValueHere"
],
"Includes": [
"LongValueHere"
]
},
"JobFunction": {
"Excludes": [
"LongValueHere"
],
"Includes": [
"LongValueHere"
]
},
"Location": {
"Excludes": [
"LongValueHere"
],
"Includes": [
"LongValueHere"
]
},
"RadiusTargets": [
{
"CenterLatitude": DoubleValueHere,
"CenterLongitude": DoubleValueHere,
"Radius": IntValueHere,
"RadiusUnit": "ValueHere"
}
],
"CampaignBiddingStrategy": IntValueHere,
"CampaignSubType": IntValueHere,
"Feed": {
"FeedId": "LongValueHere",
"FeedType": "LongValueHere",
"StoreId": "LongValueHere"
},
"DailyBudget": DecimalValueHere,
"Bid": DecimalValueHere,
"Currency": "ValueHere"
}
响应 JSON
此模板由一个工具生成,用于显示 JSON 响应的 正文 和 标头 元素。
{
"EstImpression": {
"High": {
"Unit": "ValueHere",
"Value": DoubleValueHere
},
"Low": {
"Unit": "ValueHere",
"Value": DoubleValueHere
}
},
"EstAudienceSize": {
"High": {
"Unit": "ValueHere",
"Value": DoubleValueHere
},
"Low": {
"Unit": "ValueHere",
"Value": DoubleValueHere
}
},
"EstClick": {
"High": {
"Unit": "ValueHere",
"Value": DoubleValueHere
},
"Low": {
"Unit": "ValueHere",
"Value": DoubleValueHere
}
},
"EstSpend": {
"High": {
"Unit": "ValueHere",
"Value": DoubleValueHere
},
"Low": {
"Unit": "ValueHere",
"Value": DoubleValueHere
}
},
"EstCostPerEvent": {
"High": {
"Unit": "ValueHere",
"Value": DoubleValueHere
},
"Low": {
"Unit": "ValueHere",
"Value": DoubleValueHere
}
},
"EstCTR": {
"High": DoubleValueHere,
"Low": DoubleValueHere
},
"SuggestedBid": DecimalValueHere,
"SuggestedBudget": DecimalValueHere,
"EventsLostToBid": IntValueHere,
"EventsLostToBudget": IntValueHere,
"EstReachAudienceSize": {
"Unit": "ValueHere",
"Value": DoubleValueHere
},
"EstReachImpression": {
"Unit": "ValueHere",
"Value": DoubleValueHere
},
"Currency": "ValueHere"
}
代码语法
若要通过 SDK 调用 REST API,需要将 SDK 升级到特定版本并配置系统参数。示例语法可用于 必应广告 SDK。 有关更多示例,请参阅 必应广告 API 代码示例 。
public async Task<GetAudienceFullEstimationResponse> GetAudienceFullEstimationAsync(
SelectionOfAgeEnum age,
SelectionOfGenderEnum gender,
SelectionOflong audience,
SelectionOflong company,
SelectionOflong industry,
SelectionOflong jobFunction,
SelectionOflong location,
IList<RadiusTarget> radiusTargets,
int? campaignBiddingStrategy,
int? campaignSubType,
Feed feed,
decimal? dailyBudget,
decimal? bid,
Currency? currency)
{
var request = new GetAudienceFullEstimationRequest
{
Age = age,
Gender = gender,
Audience = audience,
Company = company,
Industry = industry,
JobFunction = jobFunction,
Location = location,
RadiusTargets = radiusTargets,
CampaignBiddingStrategy = campaignBiddingStrategy,
CampaignSubType = campaignSubType,
Feed = feed,
DailyBudget = dailyBudget,
Bid = bid,
Currency = currency
};
return (await AdInsightService.CallAsync((s, r) => s.GetAudienceFullEstimationAsync(r), request));
}
static GetAudienceFullEstimationResponse getAudienceFullEstimation(
SelectionOfAgeEnum age,
SelectionOfGenderEnum gender,
SelectionOflong audience,
SelectionOflong company,
SelectionOflong industry,
SelectionOflong jobFunction,
SelectionOflong location,
ArrayOfRadiusTarget radiusTargets,
int campaignBiddingStrategy,
int campaignSubType,
Feed feed,
decimal dailyBudget,
decimal bid,
Currency currency) throws RemoteException, Exception
{
GetAudienceFullEstimationRequest request = new GetAudienceFullEstimationRequest();
request.setAge(age);
request.setGender(gender);
request.setAudience(audience);
request.setCompany(company);
request.setIndustry(industry);
request.setJobFunction(jobFunction);
request.setLocation(location);
request.setRadiusTargets(radiusTargets);
request.setCampaignBiddingStrategy(campaignBiddingStrategy);
request.setCampaignSubType(campaignSubType);
request.setFeed(feed);
request.setDailyBudget(dailyBudget);
request.setBid(bid);
request.setCurrency(currency);
return AdInsightService.getService().getAudienceFullEstimation(request);
}
static function GetAudienceFullEstimation(
$age,
$gender,
$audience,
$company,
$industry,
$jobFunction,
$location,
$radiusTargets,
$campaignBiddingStrategy,
$campaignSubType,
$feed,
$dailyBudget,
$bid,
$currency)
{
$GLOBALS['Proxy'] = $GLOBALS['AdInsightProxy'];
$request = new GetAudienceFullEstimationRequest();
$request->Age = $age;
$request->Gender = $gender;
$request->Audience = $audience;
$request->Company = $company;
$request->Industry = $industry;
$request->JobFunction = $jobFunction;
$request->Location = $location;
$request->RadiusTargets = $radiusTargets;
$request->CampaignBiddingStrategy = $campaignBiddingStrategy;
$request->CampaignSubType = $campaignSubType;
$request->Feed = $feed;
$request->DailyBudget = $dailyBudget;
$request->Bid = $bid;
$request->Currency = $currency;
return $GLOBALS['AdInsightProxy']->GetService()->GetAudienceFullEstimation($request);
}
response=adinsight_service.GetAudienceFullEstimation(
Age=Age,
Gender=Gender,
Audience=Audience,
Company=Company,
Industry=Industry,
JobFunction=JobFunction,
Location=Location,
RadiusTargets=RadiusTargets,
CampaignBiddingStrategy=CampaignBiddingStrategy,
CampaignSubType=CampaignSubType,
Feed=Feed,
DailyBudget=DailyBudget,
Bid=Bid,
Currency=Currency)