Skip to content

Commit 009c6f3

Browse files
authored
Merge pull request #198 from BingAds/update_examples
update examples
2 parents 462ee6f + dd49fef commit 009c6f3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

samples/V13/ConversionGoals.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
$addConversionGoals[] = $encodedDurationGoal;
131131

132132
$addEventGoal = new EventGoal();
133+
$addEventGoal->GoalCategory = ConversionGoalCategory::Purchase;
133134
// The type of user interaction you want to track.
134135
$addEventGoal->ActionExpression = "play";
135136
$addEventGoal->ActionOperator = ExpressionOperator::Contains;
@@ -184,6 +185,7 @@
184185
$addConversionGoals[] = $encodedPagesViewedPerVisitGoal;
185186

186187
$addUrlGoal = new UrlGoal();
188+
$addUrlGoal->GoalCategory = ConversionGoalCategory::Purchase;
187189
$addUrlGoal->ConversionWindowInMinutes = 30;
188190
$addUrlGoal->CountType = ConversionGoalCountType::All;
189191
$addUrlGoal->Name = "My Url Goal";

samples/V13/OfflineConversions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
$conversionGoals = array();
4747
$offlineConversionGoal = new OfflineConversionGoal();
48+
$offlineConversionGoal->GoalCategory = ConversionGoalCategory::Purchase;
4849
// Determines how long after a click that you want to count offline conversions.
4950
$offlineConversionGoal->ConversionWindowInMinutes = 43200;
5051
// If the count type is 'Unique' then only the first offline conversion will be counted.

0 commit comments

Comments
 (0)