public static interface GoogleAdsV17.RateLimitPolicy
Modifier and Type | Method and Description |
---|---|
void |
onBeforeRequest(@Nullable java.lang.String developerToken,
java.lang.String customerId,
com.google.protobuf.Message request)
Called before a request is sent.
|
void |
onError(@Nullable java.lang.String developerToken,
java.lang.String customerId,
com.google.protobuf.Message request,
com.google.ads.googleads.v17.errors.GoogleAdsError error)
Called after a request fails with a retryable error.
|
void |
onSuccess(@Nullable java.lang.String developerToken,
java.lang.String customerId,
com.google.protobuf.Message request)
Called after a request succeeds.
|
void onBeforeRequest(@Nullable 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(@Nullable 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(@Nullable java.lang.String developerToken, java.lang.String customerId, com.google.protobuf.Message request, com.google.ads.googleads.v17.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.