Skip to content

Commit

Permalink
fix: GoogleAdsError missing using generator version after 1.3.0 (goog…
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored May 25, 2021
1 parent 3cd9618 commit 6dc35a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v1/recaptcha_enterprise_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ export class RecaptchaEnterpriseServiceClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
2 changes: 2 additions & 0 deletions src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down

0 comments on commit 6dc35a7

Please sign in to comment.