diff --git a/examples/v13/conversion_goals.py b/examples/v13/conversion_goals.py index 967ee793..b65bf30b 100644 --- a/examples/v13/conversion_goals.py +++ b/examples/v13/conversion_goals.py @@ -76,6 +76,7 @@ def main(authorization_data): conversion_goals.ConversionGoal.append(duration_goal) event_goal=set_elements_to_none(campaign_service.factory.create('EventGoal')) + event_goal.GoalCategory = "Purchase" # The type of user interaction you want to track. event_goal.ActionExpression = "play" event_goal.ActionOperator = 'Contains' @@ -118,6 +119,7 @@ def main(authorization_data): conversion_goals.ConversionGoal.append(pages_viewed_per_visit_goal) url_goal=set_elements_to_none(campaign_service.factory.create('UrlGoal')) + url_goal.GoalCategory = "Purchase" url_goal.ConversionWindowInMinutes = 30 url_goal.CountType = 'All' url_goal.Name = "My Url Goal" diff --git a/examples/v13/offline_conversions.py b/examples/v13/offline_conversions.py index a4910b8e..40f03991 100644 --- a/examples/v13/offline_conversions.py +++ b/examples/v13/offline_conversions.py @@ -15,6 +15,7 @@ def main(authorization_data): conversion_goals=campaign_service.factory.create('ArrayOfConversionGoal') offline_conversion_goal=set_elements_to_none(campaign_service.factory.create('OfflineConversionGoal')) + offline_conversion_goal.GoalCategory = "Purchase" # Determines how long after a click that you want to count offline conversions. offline_conversion_goal.ConversionWindowInMinutes = 43200 # If the count type is 'Unique' then only the first offline conversion will be counted.