您可以使用 Merchant Reports API,通过其提供的数据视图了解您的商品、商品效果以及商品在 Google 上的竞争环境。
您可以使用 Merchant Reports API 执行以下操作:
- 衡量商品效果:在 Merchant API 中,
MerchantPerformanceView现已更名为product_performance_view。 - 按特定字段过滤商品:借助 Merchant API,您可以根据所有可用字段(
item_issues除外)进行过滤。 - 改进了商品价格:在 Merchant API 中,金额(以百万分之一为单位)和货币字段合并为一个
Price类型的字段。 - 了解市场:借助 Merchant API,您可以获取有关畅销商品和品牌、具有竞争力的价位、促销价建议以及您所在行业的竞争格局的信息。
- 了解竞争形势:您可以获取报告,了解您在商品类别层面面临的竞争局面,并采取相应行动来提高您的曝光度。
您可以按照以下步骤将 Merchant Reports API 与现有的 Content API for Shopping 实现集成。
请求
对 Merchant Reports API 使用以下请求网址格式:
POST https://merchantapi.googleapis.com/reports/v1/{PARENT}/reports:search
以下是 Content API for Shopping 与 Merchant Reports API 的 search 请求对比示例:
| Content API | Merchant API | |
| 网址 | https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/reports/search | https://merchantapi.googleapis.com/reports/v1/{PARENT}/reports:search |
| 标识符 | {MERCHANT_ID}
|
{PARENT}
|
方法
您可以通过调用 ReportService.Search 方法来查询 Merchant Reports API。
观看次数
在 Merchant API 中,表名称从 CamelCase 更改为 snake_case。
MerchantPerformanceView 现更名为 product_performance_view。
以下是 Content API for Shopping 和 Merchant API 中的表名称之间的映射:
| Content API | Merchant API |
MerchantPerformanceView
|
product_performance_view
|
ProductView
|
product_view
|
PriceCompetitivenesProductView
|
price_competitiveness_product_view
|
PriceInsightsProductView
|
price_insights_product_view
|
BestSellersBrandView
|
best_sellers_brand_view
|
BestSellersProductClusterView
|
best_sellers_product_cluster_view
|
CompetitiveVisibilityCompetitorView
|
competitive_visibility_competitor_view
|
CompetitiveVisibilityTopMerchantView
|
competitive_visibility_top_merchant_view
|
CompetitiveVisibilityBenchmarkView
|
competitive_visibility_benchmark_view
|
在 Merchant API 中,不再需要指定字段前缀,例如 segments.offer_id。而应直接使用字段名称 offer_id。
以下是 Content API for Shopping 和 Merchant API 中的查询对比示例:
| Content API | Merchant API |
SELECT
segments.offer_id,
metrics.clicks
FROM MerchantPerformanceView
WHERE segments.date DURING LAST_7_DAYS
|
SELECT
offer_id,
clicks
FROM product_performance_view
WHERE date DURING LAST_7_DAYS
|
以下是示例响应:
| Content API | Merchant API |
{
"segments":{
"offerId":"abc"
},
"metrics":{
"clicks":"123"
}
} |
{
"productPerformanceView" : {
"offerId": "abc",
"clicks": "123"
}
} |
表名称可用作字段前缀。例如,Merchant API 查询中同时接受 offer_id 和 product_performance_view.offer_id。
性能
Merchant Reports API 中的效果视图发生了以下变化:
| Content API | Merchant API | 说明 |
segments.program:字符串
|
marketing_method:字符串
|
program 细分已被新的 marketing_method 字段取代。如需了解详情,请参阅新的 marketing method 值。
|
metrics.ctr:双精度
|
clickThroughRate:双精度
|
ctr 指标已重命名为 clickThroughRate
|
metrics.conversionValueMicros:整数
segments.currencyCode:字符串
|
conversionValue: {
|
金额(微单位)和币种字段已合并为一个 Price 类型的字段
|
metrics.orders,
|
不支持 | Merchant Reports API 不支持 Google 易购指标 |
新的营销方式值
以下是 segments.program 和 marketing_method 值之间的映射关系:
| Content API | Merchant API |
SHOPPING_ADS
|
ADS
|
FREE_PRODUCT_LISTING
|
ORGANIC
|
FREE_LOCAL_PRODUCT_LISTING
|
ORGANIC
|
BUY_ON_GOOGLE_LISTING
|
不支持 |
产品
Merchant Reports API 中的商品视图发生了以下变化:
| Content API | Merchant API | 说明 |
productView.id:字符串
|
id:字符串
|
字段格式从 channel:language:targetCountry:offerId 更改为 channel~language~feedLabel~offerId
|
productView.priceMicros:整数
productView.currencyCode:字符串
|
price: {
|
金额(微单位)和币种字段已合并为一个 Price 类型的字段
|
productView.aggregated_destination_status:字符串
|
aggregated_reporting_context_status:字符串
|
aggregated_destination_status 字段已重命名为 aggregated_reporting_context_status,值未更改
|
productView.item_issues: [
|
item_issues: [
|
ItemIssue定义已更改
|
| 不支持 | feedLabel:字符串
|
引入了 feedLabel 字段
|
价格分析
Merchant Reports API 中的价格分析视图发生了以下变化:
| Content API | Merchant API | 说明 |
productView.id:字符串
|
id:字符串
|
字段格式从 channel:language:targetCountry:offerId 更改为 channel~language~feedLabel~offerId
|
productView.priceMicros:整数
productView.currencyCode:字符串
|
price: {
|
金额(微单位)和币种字段已合并为一个 Price 类型的字段
|
priceInsights.suggestedPriceMicros:整数
priceInsights.suggestedPriceCurrencyCode:字符串
|
suggestedPrice: {
|
金额(微单位)和币种字段已合并为一个 Price 类型的字段
|
priceInsights.predictedGrossProfitChangeFraction:double
priceInsights.predictedMonthlyGrossProfitChangeMicros:integer
priceInsights.predictedMonthlyGrossProfitChangeCurrencyCode:string
|
不支持 | Merchant Reports API 不支持与毛利润变化相关的字段 |
价格竞争力
Merchant Reports API 中的价格竞争力视图发生了以下变化:
| Content API | Merchant API | 说明 |
productView.id:字符串
|
id:字符串
|
字段格式从 channel:language:targetCountry:offerId 更改为 channel~language~feedLabel~offerId
|
productView.priceMicros:整数
productView.currencyCode:字符串
|
price: {
|
金额(微单位)和币种字段已合并为一个 Price 类型的字段
|
priceCompetitiveness.countryCode:字符串
|
reportCountryCode:字符串
|
countryCode 字段已重命名为 reportCountryCode
|
priceCompetitiveness.benchmarkPriceMicros:整数
priceCompetitiveness.benchmarkPriceCurrencyCode:字符串
|
benchmarkPrice: {
|
金额(微单位)和币种字段已合并为一个 Price 类型的字段
|
畅销商品
Merchant Reports API 中的畅销商品视图发生了以下变化:
| Content API | Merchant API | 说明 |
bestSellers.countryCode:字符串
|
reportCountryCode:字符串
|
countryCode 字段已重命名为 reportCountryCode
|
bestSellers.categoryId:int
|
reportCategoryId:int
|
categoryId 字段已重命名为 reportCategoryId
|
竞争洞察
Merchant Reports API 中竞争对手的曝光度视图发生了以下变化:
| Content API | Merchant API | 说明 |
competitiveVisibility.countryCode:字符串
|
reportCountryCode:字符串
|
countryCode 字段已重命名为 reportCountryCode
|
competitiveVisibility.categoryId:整数
|
reportCategoryId:整数
|
categoryId 字段已重命名为 reportCategoryId
|