Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Ecco una query di esempio per MerchantPerformanceView che restituisce il
rendimento del tuo account negli ultimi 30 giorni, segmentato per program e
offer_id. Puoi provare questo rapido esempio per acquisire familiarità con il servizio Reports.
Fai clic su Esegui per provare l'esempio in Explorer API. Dopo aver fatto clic su
Esegui, aggiorna il segnaposto dell'ID commerciante con il tuo ID commerciante nell'URL
della richiesta. Puoi modificare la query. L'intera query deve rimanere su una riga per
funzionare con Explorer API.
URL della richiesta HTTP
La richiesta consiste in un POST HTTP al server Content API for Shopping all'URL seguente:
Ecco un esempio completo che mostra la definizione del report riportata sopra racchiusa in
una richiesta HTTP POST:
POST/v2.1/merchantId/reports/searchHTTP/1.1Host:shoppingcontent.googleapis.comUser-Agent:curlContent-Type:application/jsonAccept:application/jsonAuthorization:Bearer access tokenParameters:{"query":"SELECT segments.program, segments.offer_id, metrics.impressions, metrics.clicks, metrics.ctr FROM MerchantPerformanceView WHERE segments.date BETWEEN '2020-11-01' AND '2020-11-30'"}
[[["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 2025-08-13 UTC."],[],["The beta version of the Merchant API, the new Content API for Shopping, is introduced. To use the `Reports` service, users with the Reporting manager role can query the `MerchantPerformanceView` for account performance. A sample query using Merchant Center Query Language is provided to retrieve data on `program`, `offer_id`, `impressions`, `clicks`, and `ctr` between '2020-11-01' and '2020-11-30'. Users can run the sample via the API Explorer, updating the merchant ID and modifying the query.\n"],null,[]]