Module Expr Str Import alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Dict Str Str Str BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Dict Str Str Str BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad For NameStore NameLoad body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad
N/A N/A This code example creates new activities.

To determine which activities groups exist, run get_all_activities.py.

The LoadFromStorage method is pulling credentials and properties from a
"googleads.yaml" file. By default, it looks for this file in your home
directory. For more information, see the "Caching authentication information"
section of our README.

 N/A uuid googleads dfp N/A ACTIVITY_GROUP_ID INSERT_ACTIVITY_GROUP_ID_HERE main N/A N/A client activity_group_id N/A N/A N/A activity_service N/A N/A client GetService ActivityService version v201505 N/A daily_visits_activity N/A name activityGroupId type N/A Activity #%s N/A N/A uuid uuid4 activity_group_id DAILY_VISITS N/A custom_activity N/A name activityGroupId type N/A Activity #%s N/A N/A uuid uuid4 activity_group_id CUSTOM N/A activities N/A N/A activity_service createActivities N/A daily_visits_activity custom_activity N/A activity activities N/A N/A N/A An activity with ID '%s', name '%s', and type '%s' was created. N/A N/A activity N/A id N/A activity N/A name N/A activity N/A type N/A N/A N/A __name__ __main__ N/A N/A dfp_client N/A N/A N/A dfp DfpClient LoadFromStorage N/A N/A main dfp_client ACTIVITY_GROUP_ID