Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Esta es una consulta de muestra a MerchantPerformanceView que muestra el rendimiento de tu cuenta en los últimos 30 días, segmentado por program y offer_id. Puedes probar este ejemplo rápido para familiarizarte con el servicio Reports.
Haz clic en Run para probar la muestra en el Explorador de API. Después de hacer clic en Run, actualiza el marcador de posición del ID del comerciante a tu propio ID del comerciante en la URL de solicitud. Puedes modificar la consulta. La consulta completa debe permanecer en una sola línea para trabajar con el Explorador de APIs.
URL de solicitud HTTP
La solicitud consiste en una POST HTTP al servidor de la Content API for Shopping en la siguiente URL:
Este es un ejemplo completo que muestra la definición del informe anterior incluida en una solicitud 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'"}
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-25 (UTC)"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["You can use the Merchant API to retrieve performance data, such as impressions, clicks, and CTR, segmented by program and offer ID."],["A sample query is provided to demonstrate how to retrieve performance data for the last 30 days using the `MerchantPerformanceView`."],["It's recommended to use one of the client libraries instead of directly making HTTP requests to the Content API for Shopping."]]],["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"]]