Request ------- MethodName: google.ads.googleads.v12.services.GoogleAdsService/Search Endpoint: googleads.googleapis.com:443 Headers: {developer-token=REDACTED, login-customer-id=3643036574, x-goog-api-client=gl-java/1.8.0_302 gccl/22.0.0 gapic/22.0.0 gax/2.12.2 grpc/1.44.0 pb/3.19.6} Body: customer_id: "9661863292" query: "SELECT campaign.id, campaign.advertising_channel_type, ad_group.id, ad_group.status, metrics.impressions, metrics.hotel_average_lead_value_micros, segments.hotel_check_in_day_of_week, segments.hotel_length_of_stay FROM hotel_performance_view WHERE segments.date DURING LAST_7_DAYS AND campaign.advertising_channel_type = \'HOTEL\' AND ad_group.status = \'ENABLED\' ORDER BY metrics.impressions DESC LIMIT 50" page_size: 1000
Response -------- Headers: Metadata(content-type=application/grpc,request-id=NldYWq7XZl_CuLhJm_VKXg,date=Tue, 28 Feb 2023 13:04:16 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000) Body: null Failure message: errors { error_code { query_error: REQUESTED_METRICS_FOR_MANAGER } message: "Metrics cannot be requested for a manager account. To retrieve metrics, issue separate requests against each client account under the manager account." } request_id: "NldYWq7XZl_CuLhJm_VKXg" Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}. 21:04:16.570 [grpc-nio-worker-ELG-1-4] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x4eb9e93f, L:/192.168.2.72:52110 - R:googleads.googleapis.com/172.217.27.10:443] OUTBOUND GO_AWAY: lastStreamId=0 errorCode=0 length=0 bytes= Request ID NldYWq7XZl_CuLhJm_VKXg failed due to GoogleAdsException. Underlying errors: Error 0: error_code { query_error: REQUESTED_METRICS_FOR_MANAGER } message: "Metrics cannot be requested for a manager account. To retrieve metrics, issue separate requests against each client account under the manager account." Process finished with exit code 1 这个问题一直困扰着我 api.googleads.loginCustomerId 已经是经理的账号了 怎么解决呢? 谢谢 -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/56e89457-2c8f-4612-986e-0474959df950n%40googlegroups.com.