Skip to content

Commit 9032818

Browse files
Fix: Correct ImportError for Metrics in test_parallel_report_download
The import path for the Metrics class in examples/reporting/tests/test_parallel_report_download.py was incorrect. It pointed to google.ads.googleads.v19.resources.types.metrics, but the Metrics class is defined in google.ads.googleads.v19.common.types.metrics. This commit updates the import path to the correct location, resolving the ModuleNotFoundError that occurred when running the tests.
1 parent cfa4555 commit 9032818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/reporting/tests/test_parallel_report_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# from google.ads.googleads.v19.common.types import Value # Not used in current example but good to have if needed
2020
from google.ads.googleads.v19.resources.types.ad_group import AdGroup
2121
from google.ads.googleads.v19.resources.types.campaign import Campaign
22-
from google.ads.googleads.v19.resources.types.metrics import Metrics
22+
from google.ads.googleads.v19.common.types.metrics import Metrics
2323
from google.ads.googleads.v19.resources.types.google_ads_row import GoogleAdsRow
2424

2525
class TestParallelReportDownload(unittest.TestCase):

0 commit comments

Comments
 (0)