diff --git a/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/client.py.j2 b/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/client.py.j2 index 8de258d60b..2acc770d91 100644 --- a/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/client.py.j2 +++ b/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/client.py.j2 @@ -369,7 +369,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta): {%- if method.lro %} # Wrap the response in an operation future. - response = operation.from_gapic( + response = {{ method.client_output.ident.module_alias or method.client_output.ident.module }}.from_gapic( response, self._transport.operations_client, {{ method.lro.response_type.ident }}, diff --git a/gapic/templates/%namespace/%name_%version/%sub/services/%service/async_client.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/services/%service/async_client.py.j2 index 8dfeb1a0bd..7368bf6943 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/services/%service/async_client.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/services/%service/async_client.py.j2 @@ -240,7 +240,7 @@ class {{ service.async_client_name }}: {%- if method.lro %} # Wrap the response in an operation future. - response = operation_async.from_gapic( + response = {{ method.client_output_async.ident.module_alias or method.client_output_async.ident.module }}.from_gapic( response, self._client._transport.operations_client, {{ method.lro.response_type.ident }}, diff --git a/gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2 index b598ac2526..b753848361 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2 @@ -381,7 +381,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta): {%- if method.lro %} # Wrap the response in an operation future. - response = operation.from_gapic( + response = {{ method.client_output.ident.module_alias or method.client_output.ident.module }}.from_gapic( response, self._transport.operations_client, {{ method.lro.response_type.ident }},