token invalid error, assess level error type

30 views
Skip to first unread message

an.sa...@gmail.com

unread,
Dec 29, 2020, 5:15:39 AM12/29/20
to AdWords API and Google Ads API Forum
hi ,  
i am using java sdk , version is 10.1.0

i am question 
first type,  token is expired  type 
this is keep tring...   so calls don't end 
Why do you keep call ? 


second type, 

we using,  the google access api level is standard. 
but, Too many requests error Occurs

Occurs when using certain methods.  
 why not access level error ?

this is using code

customerService.getCustomer( ...)  call error  -> assess level 

for (String customerResourceName : response.getResourceNamesList()) {
try {
Long customerId = Long.parseLong(CustomerName.parse(customerResourceName).getCustomerId());
// Accessible customer id 검증
Customer customer = customerService.getCustomer(customerResourceName);
seedCusterIds.add(customerId);
log.debug("Customer resource customer Id: {} ", customerId);
log.debug("Customer resource customer Id: {} name = {} ", customerId, customer.getDescriptiveName());

} catch (Exception e) {
//log.error("Accessible customer id 검증 = {}", e.getMessage());
}
integer.getAndIncrement();
}

this is error code
Headers: Metadata(content-type=application/grpc,request-id=HQ0f7cy28crSh1ZGQv1YNw,date=Tue, 29 Dec 2020 09:49:10 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    quota_error: RESOURCE_EXHAUSTED
  }
  message: "Too many requests. Retry in 1353 seconds."
  details {
    quota_error_details {
      rate_scope: DEVELOPER
      rate_name: "Get requests for standard access"
      retry_delay {
        seconds: 1353
      }
    }
  }
}


thank you.

Google Ads API Forum Advisor Prod

unread,
Dec 29, 2020, 4:14:46 PM12/29/20
to an.sa...@gmail.com, adwor...@googlegroups.com

Hi Sangkil,

Thank you for reaching out. For your first question, could you please share the complete request and response logs via the Reply privately to author option for us to further investigate? For your second question, you encountered the error as you were exceeding the get operational limit of 1000/day. Please note that Standard access is the same as Basic access and Test access, they all have the threshold of 1000 as per day limit for the get operations.

Thanks and regards,
Xiaoming, Google Ads API Team

 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2AFjkZ:ref
Reply all
Reply to author
Forward
0 new messages