I retested this morning to make sure the issue is not on my end. So I 
regenerated a refreshToken and ran the examples available in official java 
client 
<https://github.com/googleads/google-ads-java/tree/master/google-ads-examples>
   
   1. 
* ListAccessibleCustomers 
   
<https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/accountmanagement/ListAccessibleCustomers.java>
 (request 
   and response shown below) *


> *2019-05-07 09:16:13,019 INFO  [Gax-3] logging.RequestLogger 
> (RequestLogger.java:157) - SUCCESS REQUEST SUMMARY. Method: 
> google.ads.googleads.v1.services.CustomerService/ListAccessibleCustomers, 
> Endpoint: googleads.googleapis.com:443 
> <http://googleads.googleapis.com:443/>, CustomerID: null, RequestID: 
> 2_F-uiGFImKQKzTtn72dmw, ResponseCode: OK, Fault: null.*
> *2019-05-07 09:16:13,133 DEBUG [Gax-3] logging.RequestLogger 
> (RequestLogger.java:161) - SUCCESS REQUEST DETAIL.*
> *Request*
> *-------*
> *MethodName: 
> google.ads.googleads.v1.services.CustomerService/ListAccessibleCustomers*
> *Endpoint: googleads.googleapis.com:443 
> <http://googleads.googleapis.com:443/>*
> *Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/11.0.1 
> gapic/ gax/1.35.0 grpc/1.16.1}**Body: *
>
> *Response*
> *--------*
> *Headers: 
> Metadata(content-disposition=attachment,content-type=application/grpc,request-id=2_F-uiGFImKQKzTtn72dmw,date=Tue,
>  
> 07 May 2019 13:16:12 GMT,alt-svc=quic=":443"; ma=2592000; v="46,44,43,39")*
> *Body: resource_names: "customers/8730611186"*
> *resource_names: "customers/3011223529"*
> *resource_names: "customers/6991317584"*
> *resource_names: "customers/8356782372"*
> *Failure message: null*
> *Status: Status{code=OK, description=null, cause=null}.*
> *Total results: 4*
> *Customer resource name: customers/8730611186*
> *Customer resource name: customers/3011223529*
> *Customer resource name: customers/6991317584**Customer resource name: 
> customers/8356782372*
> *Process finished with exit code 0*


   1. *GetCustomer 
   
<https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/accountmanagement/GetAccountInformation.java>
 call 
   with all of the accounts above (request and response shown below)*
      1. 



> * 8730611186 (Success response):  2019-05-07 09:21:09,051 INFO  [Gax-3] 
      logging.RequestLogger (RequestLogger.java:157) - SUCCESS REQUEST SUMMARY. 
      Method: google.ads.googleads.v1.services.CustomerService/GetCustomer, 
      Endpoint: googleads.googleapis.com:443 
      <http://googleads.googleapis.com:443/>, CustomerID: null, RequestID: 
      Bcvc_bUe4xUwdzpRL6goig, ResponseCode: OK, Fault: null.2019-05-07 
      09:21:09,163 DEBUG [Gax-3] logging.RequestLogger (RequestLogger.java:161) 
- 
      SUCCESS REQUEST DETAIL.Request-------MethodName: 
      google.ads.googleads.v1.services.CustomerService/GetCustomerEndpoint: 
googleads.googleapis.com:443 
      <http://googleads.googleapis.com:443/>Headers: {developer-token=REDACTED, 
      x-goog-api-client=gl-java/11.0.1 gapic/ gax/1.35.0 grpc/1.16.1}Body: 
      resource_name: "customers/8730611186" Response--------Headers: 
      
Metadata(content-disposition=attachment,content-type=application/grpc,request-id=Bcvc_bUe4xUwdzpRL6goig,date=Tue,
 
      07 May 2019 13:21:08 GMT,alt-svc=quic=":443"; ma=2592000; 
      v="46,44,43,39")Body: resource_name: 
      "customers/8730611186"[REDACTED]Failure message: nullStatus: 
      Status{code=OK, description=null, cause=null}.Customer with ID 
8730611186, 
      descriptive name '[REDACTED]', currency code 'USD', timezone 
'[REDACTED]', 
      tracking URL template '' and auto tagging enabled 'false' was 
      retrieved.Class transformation time: 0.031278638s for 7049 classes or 
      4.43731564760959E-6s per class Process finished with exit code 0*
      2. 
      
      *3011223529 (*AUTHENTICATION_ERROR
*) *
      
      2019-05-07 09:24:00,479 WARN  [Gax-3] logging.RequestLogger 
>       (RequestLogger.java:159) - FAILURE REQUEST SUMMARY. Method: 
>       google.ads.googleads.v1.services.CustomerService/GetCustomer, Endpoint: 
>       googleads.googleapis.com:443, CustomerID: null, RequestID: 
>       oad0CZRp0VSIRyF22WVEWw, ResponseCode: UNAUTHENTICATED, Fault: Request 
> is 
>       missing required authentication credential. Expected OAuth 2 access 
> token, 
>       login cookie or other valid authentication credential. See 
>       https://developers.google.com/identity/sign-in/web/devconsole-project
>       ..
>       
>       2019-05-07 09:24:00,690 INFO  [Gax-3] logging.RequestLogger 
>       (RequestLogger.java:157) - FAILURE REQUEST DETAIL.
>       Request
>       -------
>       MethodName: 
>       google.ads.googleads.v1.services.CustomerService/GetCustomer
>       Endpoint: googleads.googleapis.com:443
>       Headers: {developer-token=REDACTED, 
>       x-goog-api-client=gl-java/11.0.1 gapic/ gax/1.35.0 grpc/1.16.1}
>       Body: resource_name: "customers/3011223529"
>       
>       Response
>       --------
>       Headers: 
>       
> Metadata(content-type=application/grpc,request-id=oad0CZRp0VSIRyF22WVEWw,date=Tue,
>  
>       07 May 2019 13:24:00 GMT,alt-svc=quic=":443"; ma=2592000; 
> v="46,44,43,39")
>       Body: null
>       Failure message: errors {
>         error_code {
>           authentication_error: AUTHENTICATION_ERROR
>         }
>         message: "Authentication of the request failed."
>       }
>       Status: Status{code=UNAUTHENTICATED, description=Request is missing 
>       required authentication credential. Expected OAuth 2 access token, 
> login 
>       cookie or other valid authentication credential. See 
>       https://developers.google.com/identity/sign-in/web/devconsole-project., 
>       cause=null}.
>       Request ID oad0CZRp0VSIRyF22WVEWw failed due to GoogleAdsException. 
>       Underlying errors:
>         Error 0: error_code {
>         authentication_error: AUTHENTICATION_ERROR
>       }
>       message: "Authentication of the request failed."
>       
>       3. 6991317584* (*AUTHENTICATION_ERROR


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *) 2019-05-07 09:24:23,596 WARN  [Gax-3] logging.RequestLogger 
      (RequestLogger.java:159) - FAILURE REQUEST SUMMARY. Method: 
      google.ads.googleads.v1.services.CustomerService/GetCustomer, 
      Endpoint: googleads.googleapis.com:443 
      <http://googleads.googleapis.com:443/>, CustomerID: null, RequestID: 
      kZPKIuVYZywxIJpp-wIVkA, ResponseCode: UNAUTHENTICATED, Fault: Request is 
      missing required authentication credential. Expected OAuth 2 access 
token, 
      login cookie or other valid authentication credential. 
      See https://developers.google.com/identity/sign-in/web/devconsole-project 
      <https://developers.google.com/identity/sign-in/web/devconsole-project>.. 
      2019-05-07 09:24:23,766 INFO  [Gax-3] logging.RequestLogger 
      (RequestLogger.java:157) - FAILURE REQUEST DETAIL. Request ------- 
      MethodName: google.ads.googleads.v1.services.CustomerService/GetCustomer 
      Endpoint: googleads.googleapis.com:443 
      <http://googleads.googleapis.com:443/> Headers: 
{developer-token=REDACTED, 
      x-goog-api-client=gl-java/11.0.1 gapic/ gax/1.35.0 grpc/1.16.1} Body: 
      resource_name: "customers/6991317584" Response -------- Headers: 
      
Metadata(content-type=application/grpc,request-id=kZPKIuVYZywxIJpp-wIVkA,date=Tue,
 
      07 May 2019 13:24:23 GMT,alt-svc=quic=":443"; ma=2592000; 
v="46,44,43,39") 
      Body: null Failure message: errors {   error_code {     
      authentication_error: AUTHENTICATION_ERROR   }   message: "Authentication 
      of the request failed." } Status: Status{code=UNAUTHENTICATED, 
      description=Request is missing required authentication credential. 
Expected 
      OAuth 2 access token, login cookie or other valid authentication 
      credential. 
      See https://developers.google.com/identity/sign-in/web/devconsole-project 
      <https://developers.google.com/identity/sign-in/web/devconsole-project>., 
      cause=null}. Request ID kZPKIuVYZywxIJpp-wIVkA failed due to 
      GoogleAdsException. Underlying errors:   Error 0: error_code {   
      authentication_error: AUTHENTICATION_ERROR } message: "Authentication of 
      the request failed." *
      4. 
      
      8356782372* (*AUTHENTICATION_ERROR*)*
      

>
> *2019-05-07 09:24:47,621 WARN  [Gax-3] logging.RequestLogger 
> (RequestLogger.java:159) - FAILURE REQUEST SUMMARY. Method: 
> google.ads.googleads.v1.services.CustomerService/GetCustomer, 
> Endpoint: googleads.googleapis.com:443 
> <http://googleads.googleapis.com:443/>, CustomerID: null, RequestID: 
> i-1eZcEJNX1YYY9V1ho3fw, ResponseCode: UNAUTHENTICATED, Fault: Request is 
> missing required authentication credential. Expected OAuth 2 access token, 
> login cookie or other valid authentication credential. 
> See https://developers.google.com/identity/sign-in/web/devconsole-project 
> <https://developers.google.com/identity/sign-in/web/devconsole-project>..*
> *2019-05-07 09:24:47,809 INFO  [Gax-3] logging.RequestLogger 
> (RequestLogger.java:157) - FAILURE REQUEST DETAIL.*
> *Request*
> *-------*
> *MethodName: google.ads.googleads.v1.services.CustomerService/GetCustomer*
> *Endpoint: googleads.googleapis.com:443 
> <http://googleads.googleapis.com:443/>*
> *Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/11.0.1 
> gapic/ gax/1.35.0 grpc/1.16.1}**Body: resource_name: 
> "customers/8356782372"*
>
>
> *Response*
> *--------*
> *Headers: 
> Metadata(content-type=application/grpc,request-id=i-1eZcEJNX1YYY9V1ho3fw,date=Tue,
>  
> 07 May 2019 13:24:47 GMT,alt-svc=quic=":443"; ma=2592000; v="46,44,43,39")*
> *Body: null*
> *Failure message: errors {*
> *  error_code {*
> *    authentication_error: AUTHENTICATION_ERROR*
> *  }*
> *  message: "Authentication of the request failed."**}*
>
> *Status: Status{code=UNAUTHENTICATED, description=Request is missing 
> required authentication credential. Expected OAuth 2 access token, login 
> cookie or other valid authentication credential. 
> See https://developers.google.com/identity/sign-in/web/devconsole-project 
> <https://developers.google.com/identity/sign-in/web/devconsole-project>., 
> cause=null}.*
> *Request ID i-1eZcEJNX1YYY9V1ho3fw failed due to GoogleAdsException. 
> Underlying errors:*
> *  Error 0: error_code {*
> *  authentication_error: AUTHENTICATION_ERROR*
> *}**message: "Authentication of the request failed."*
>
> *Process finished with exit code 0*




All of this call were working last i check may be a few weeks back. Looks 
like something broke. Please have somebody from the Ads Api review the 
issue. 

Thanks,
Darshan.

On Tuesday, May 7, 2019 at 2:26:51 AM UTC-4, googleadsapi-forumadvisor 
wrote:
>
> Hi Darshan,
>
> Thank you for reaching out to us. The AUTHENTICATION_ERROR 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.errors#authenticationerror>
>  occurs 
> if the authentication of the request failed or if you are using incorrect 
> credentials when making API calls. Could you confirm if you are using the 
> correct credentials when making API calls? Also, could you please confirm 
> if the issue is persistent? If it is persistent, I would suggest that you 
> follow this guide 
> <https://developers.google.com/google-ads/api/docs/oauth/cloud-project> to 
> regenerate all the credentials (client Id, client secret, refresh token), 
> make sure that the email address you are using has access to your Google 
> Ads account. Should the issue persist after using this new credentials, let 
> me know so I could assist you further.
>
> Regards,
> Dave
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     https://ads-developers.googleblog.com/search/label/google_ads_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=1-8644000026237&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> On 05/07/19 03:23:23 dar...@companionlabs.com <javascript:> wrote:
>
> Hi, 
>
> We just noticed we started seeing an error when fetching a customer 
> details from new Google Ads Api. 
>
> Here is the error details. My user has 4 accessible accounts. I think the 
> issue is only when I am getting an account which is not fully activated, 
> which used to work without issue before. We do not pass loginCustomerId for 
> these call as we did not need to. 
>
>
> 2019-05-06T19:13:03.630Z WARN  [Gax-3] 
> com.google.ads.googleads.lib.request.summary: FAILURE REQUEST SUMMARY. 
> Method: google.ads.googleads.v1.services.CustomerService/GetCustomer, 
> Endpoint: googleads.googleapis.com:443, CustomerID: null, RequestID: 
> 8uXJ2oCwff8aC_MLQn1CwA, ResponseCode: UNAUTHENTICATED, Fault: Request is 
> missing required authentication credential. Expected OAuth 2 access token, 
> login cookie or other valid authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project..
> 2019-05-06 15:13:03.644  INFO 59069 --- [          Gax-3] 
> c.g.ads.googleads.lib.request.detail     : FAILURE REQUEST DETAIL.
> Request
> -------
> MethodName: google.ads.googleads.v1.services.CustomerService/GetCustomer
> Endpoint: googleads.googleapis.com:443
> Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/1.8.0_192 
> gapic/ gax/1.35.0 grpc/1.16.1}
> Body: resource_name: "customers/3011223529"
>
>
> Response
> --------
> Headers: 
> Metadata(content-type=application/grpc,request-id=8uXJ2oCwff8aC_MLQn1CwA,date=Mon,
>  
> 06 May 2019 19:13:03 GMT,alt-svc=quic=":443"; ma=2592000; v="46,44,43,39")
> Body: null
> Failure message: errors {
>   error_code {
>     authentication_error: AUTHENTICATION_ERROR
>   }
>   message: "Authentication of the request failed."
> }
>
> Status: Status{code=UNAUTHENTICATED, description=Request is missing 
> required authentication credential. Expected OAuth 2 access token, login 
> cookie or other valid authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project., 
> cause=null}.
>
>
> Thanks,
> Darshan.
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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.
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/adwords-api/ed970bc0-2152-422e-b33e-e8dbedccd7bc%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/adwords-api/ed970bc0-2152-422e-b33e-e8dbedccd7bc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b1b3ea41-fab3-498d-b008-06897acd532b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Bug in ... Darshan Pradhan
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Darshan Pradhan
      • ... Darshan Pradhan
        • ... Darshan Pradhan
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... Darshan Pradhan
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
                • ... Darshan Pradhan
                • ... cv
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
                • ... Darshan Pradhan
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to