Aşağıda
ProductPerformanceView
son 30 gün içindeki hesabınızın performansını döndüren,
marketingMethod
ve offerId
. Aşağıdaki kısa örneği deneyebilirsiniz:
hakkında bilgi sahibi olmanız gerekir.
Performans ve analizler rolüyle birlikte gelir. Bkz. şartları inceleyebilirsiniz.
İstekte bulunmak için aşağıdaki Merchant Center sorgusunu iletin.
Dil ifadesini
accounts.reports.search
yöntem:
SELECT
marketingMethod,
offerId,
impressions,
clicks,
clickThroughRate
FROM ProductPerformanceView
WHERE date BETWEEN '2020-11-01' AND '2020-11-30'
HTTP istek URL'si
İstek, aşağıdaki URL:
https://merchantapi.googleapis.com/reports/v1beta/accounts/parent/reports:search
HTTP istek örneğini tamamla
Aşağıda, HTTP POST isteğidir:
POST /reports/v1beta/accounts/parent/reports:search HTTP/1.1 Host: merchantapi.googleapis.com User-Agent: curl Content-Type: application/json Accept: application/json Authorization: Bearer Parameters: { "query" : "SELECT marketingMethod, offerId, impressions, clicks, clickThroughRate FROM ProductPerformanceView WHERE date BETWEEN '2020-11-01' AND '2020-11-30'" }
Aşağıda örnek bir yanıt verilmiştir:
{
"results": [
{
"productPerformanceView": {
"marketingMethod": "ADS",
"offerId": "12345",
"clicks": "38",
"impressions": "1038",
"clickThroughRate": "0.3661"
}
},
{
"productPerformanceView": {
"marketingMethod": "ADS",
"offerId": "12346",
"clicks": "126",
"impressions": "1126",
"clickThroughRate": "0.1119"
}
},
{
"productPerformanceView": {
"marketingMethod": "ORGANIC",
"offerId": "12346",
"clicks": "26",
"impressions": "526",
"clickThroughRate": "0.0494"
}
},
{
"productPerformanceView": {
"marketingMethod": "ADS",
"offerId": "12347",
"clicks": "227",
"impressions": "1227",
"clickThroughRate": "0.1850"
}
},
{
"productPerformanceView": {
"marketingMethod": "ORGANIC",
"offerId": "12347",
"clicks": "12",
"impressions": "512",
"clickThroughRate": "0.0234"
}
}
]
}