Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

NameError in generated Ads service templates #882

Description

@BenRKarl

A recent change seems to have changed the import statement for field_mask_pb2 but not the calling code further down in the file. The issue is that the following:

from google.protobuf import field_mask_pb2 as gp_field_mask  # type: ignore

Is now being generated as:

from google.protobuf import field_mask_pb2 # type: ignore

Resulting in the error:

NameError: name 'gp_field_mask' is not defined

It seems to only be isolated to two places in a single file, for example here.

And here's the proto definition for that class.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions