You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verifies that the
mutate
method is called exactly once with two operations (budget and campaign).
Checks for the correct usage of temporary resource names.
tests/examples/asyncio/async_search_stream_test.py
:
Verifies that search_stream is called with a query that does not contain LIMIT 10.
Mocks the async streaming iterator to ensure robust execution.
tests/examples/asyncio/async_search_test.py
:
Verifies that search is called with a query that does not contain LIMIT 10.
Here is the list of modifications I have made during this session:
Optimized Files
examples/asyncio/async_add_campaigns.py
:
Optimization: Implemented batch processing using GoogleAdsService.mutate and temporary resource IDs.
Benefit: Reduced network round trips from 2 to 1 and ensured atomic creation of Budget and Campaign.
examples/asyncio/async_search_stream.py
:
Optimization: Removed LIMIT 10 from the GAQL query.
Benefit: Aligned code behavior with its description ("get all campaigns") and correctly demonstrates streaming.
examples/asyncio/async_search.py
:
Optimization: Removed LIMIT 10 from the GAQL query.
Benefit: Aligned code behavior with its description ("get all campaigns").
New Unit Tests
tests/examples/asyncio/async_add_campaigns_test.py
0 commit comments