twitter_ads_v2.utils module¶
Container for all helpers and utilities used throughout the Ads API SDK.
-
twitter_ads_v2.utils.
format_date
(time)[source]¶ Formats a datetime as an ISO 8601 compliant string, dropping time.
-
twitter_ads_v2.utils.
get_version
()[source]¶ Returns a string representation of the current SDK version.
-
twitter_ads_v2.utils.
remove_hours
(time)[source]¶ Sets the hours, minutes, seconds, and microseconds to zero.
-
twitter_ads_v2.utils.
remove_minutes
(time)[source]¶ Sets the minutes, seconds, and microseconds to zero.
-
twitter_ads_v2.utils.
split_list
(list_, n)[source]¶ Splits a list by a given number (n) and returns a generator object.