Per assegnare a un account il ruolo Gestore dei report, utilizza
Da accounts.update a
imposta il campo reportingManager su true. Il ruolo Gestore dei report è
equivalente al ruolo Rendimento e approfondimenti in Merchant Center.
accounts.update sostituisce l'intera risorsa Account. Utilizza accounts.get per
ottenere la risorsa Account completa, quindi compilare tutti i campi nel
accounts.update per non perdere informazioni.
Esempio di query
La seguente query recupera i valori impressions, clicks e ctr per tutti
prodotti nel tuo account durante un periodo specifico di 30 giorni. Per effettuare la richiesta,
passa la seguente istruzione del linguaggio di query di Merchant Center alla
Metodo reports.search:
SELECT
metrics.impressions,
metrics.clicks,
metrics.ctr
FROM MerchantPerformanceView
WHERE segments.date BETWEEN '2020-12-01' AND '2020-12-30'
Fai clic su Esegui per provare l'esempio in Explorer API. Dopo aver fatto clic
Esegui, aggiorna il segnaposto dell'ID commerciante con il tuo ID commerciante nel
URL di richiesta. Puoi modificare la query. La query completa deve rimanere su una riga
lavorare con Explorer API.
Puoi anche segmentare
metriche nella query per ottenere
report sul rendimento più dettagliati.
Per scoprire come fare, consulta la guida ai prodotti
per recuperare e filtrare i prodotti con il servizio Reports.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2024-09-20 UTC."],[[["The `Reports` service allows you to retrieve performance metrics, such as impressions, clicks, and click-through rate (CTR), for your account."],["To access this service, you must have the Reporting manager role (equivalent to the Performance and insights role in Merchant Center), which can be assigned using the `accounts.update` method."],["A comprehensive list of available metrics can be found in the `metrics` documentation, and you can use Merchant Center Query Language to create customized reports."],["For more detailed analysis, you can segment your metrics and further explore report functionalities through the provided guides on segmentation and products."]]],["The `Reports` service retrieves performance metrics, requiring the Reporting manager role. This role is enabled by setting `reportingManager` to `true` using `accounts.update`. To retain data, use `accounts.get` beforehand. `reports.search` uses Merchant Center Query Language, as demonstrated in a sample query that fetches `impressions`, `clicks`, and `ctr` for a given date range, and allows to run it in the API Explorer. Additionally, metrics can be segmented for detailed reports.\n"]]