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
live_stream_events_service.performLiveStreamEventAction({'xsi_type': 'ActivateLiveStreamEvents'}, <Live_Streams_List>) executed and impacted all Live Streams configs
#461
Open
piyush2508 opened this issue
May 11, 2020
· 3 comments
Query executed and updated all live events in the network.
Is there a way to avoid this? to make sure API doesn't execute if valid query/format is not passed.
piyush2508
changed the title
Defined Variable not used, impacting changes to ALL LiveStreamEvents as all returned by default
live_stream_events_service.performLiveStreamEventAction({'xsi_type': 'ActivateLiveStreamEvents'}, <Live_Streams_List>) executed and impacted all Live Streams configs
May 11, 2020
Variable Def -
Set ID of the LiveStreamEvent to get live stream events from.
LIVE_STREAM_EVENT_ID = 'INSERT_LIVE_STREAM_EVENT_ID_HERE'
Incorrect Usage -
statement = (ad_manager.StatementBuilder(version='v202002')
.Where(('Id = :id'))
.WithBindVariable('id', int(live_stream_event_id))
.Limit(500))
Considering event id is not found via statement query will return all Live Streams and accidentally causing updateLiveStreamEvents to all LiveStreams
live_stream_events = live_stream_events_service.updateLiveStreamEvents(
updated_live_stream_events)
googleads-python-lib/examples/ad_manager/v202002/live_stream_event_service/update_live_stream_events.py
Line 26 in 41c17a8
The text was updated successfully, but these errors were encountered: