public static interface GoogleAdsV14.RateLimitPolicy
Modifier and Type | Method and Description |
---|---|
void |
onBeforeRequest(java.lang.String developerToken,
java.lang.String customerId,
com.google.protobuf.Message request)
Called before a request is sent.
|
void |
onError(java.lang.String developerToken,
java.lang.String customerId,
com.google.protobuf.Message request,
com.google.ads.googleads.v14.errors.GoogleAdsError error)
Called after a request fails with a retryable error.
|
void |
onSuccess(java.lang.String developerToken,
java.lang.String customerId,
com.google.protobuf.Message request)
Called after a request succeeds.
|
void onBeforeRequest(java.lang.String developerToken, java.lang.String customerId, com.google.protobuf.Message request) throws java.lang.InterruptedException
developerToken
- The developer token used for the request.customerId
- The customer ID specified on the request.request
- Any Google Ads API request.java.lang.InterruptedException
void onSuccess(java.lang.String developerToken, java.lang.String customerId, com.google.protobuf.Message request)
developerToken
- The developer token used for the request.customerId
- The customer ID specified on the request.request
- Any Google Ads API request.void onError(java.lang.String developerToken, java.lang.String customerId, com.google.protobuf.Message request, com.google.ads.googleads.v14.errors.GoogleAdsError error)
developerToken
- The developer token used for the request.customerId
- The customer ID specified on the request.request
- Any Google Ads API request.error
- A retryable error.