Hi All, I am facing this error while trying to run the GetCampaigns.java <https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java> please check the error log below and please help.
*2021-03-25 12:47:19,554 WARN [Gax-1] logging.RequestLogger (RequestLogger.java:159) - FAILURE REQUEST SUMMARY. Method: google.ads.googleads.v6.services.GoogleAdsService/SearchStream, Endpoint: googleads.googleapis.com:443, CustomerID: 9226652770, RequestID: UYn78_KprjzUn-vWpnO8fA, ResponseCode: PERMISSION_DENIED, Fault: The caller does not have permission.* *2021-03-25 12:47:20,278 INFO [Gax-1] logging.RequestLogger (RequestLogger.java:157) - FAILURE REQUEST DETAIL.* *Request* *-------* *MethodName: google.ads.googleads.v6.services.GoogleAdsService/SearchStream* *Endpoint: googleads.googleapis.com:443* *Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/15.0.2 gapic/ gax/1.60.1 grpc/1.32.2}* *Body: customer_id: "9226652770"* *query: "SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id"* *Response* *--------* *Headers: Metadata(content-type=application/grpc,request-id=UYn78_KprjzUn-vWpnO8fA,date=Thu, 25 Mar 2021 16:47:19 GMT)* *Body: null* *Failure message: errors {* * error_code {* * authorization_error: USER_PERMISSION_DENIED* * }* * message: "User doesn\'t have permission to access customer. Note: If you\'re accessing a client customer, the manager\'s customer id must be set in the \'login-customer-id\' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid"* *}* *Status: Status{code=PERMISSION_DENIED, description=The caller does not have permission, cause=null}.* *Request ID UYn78_KprjzUn-vWpnO8fA failed due to GoogleAdsException. Underlying errors:* * Error 0: error_code {* * authorization_error: USER_PERMISSION_DENIED* *}* *message: "User doesn\'t have permission to access customer. Note: If you\'re accessing a client customer, the manager\'s customer id must be set in the \'login-customer-id\' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid"* Thanks, Bhargav -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/e31a6fd5-0928-43a5-9bf3-84932818e8can%40googlegroups.com.