Skip to content

Commit

Permalink
Merge pull request #181 from BingAds/update_examples
Browse files Browse the repository at this point in the history
update examples
  • Loading branch information
xinyuwen2 authored Apr 12, 2024
2 parents eaf88c5 + cbc0128 commit 56a7db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public static void main(java.lang.String[] args) {
addConversionGoals.getConversionGoals().add(addDurationGoal);

EventGoal addEventGoal = new EventGoal();
addEventGoal.setGoalCategory(ConversionGoalCategory.PURCHASE);
// The type of user interaction you want to track.
addEventGoal.setActionExpression("play");
addEventGoal.setActionOperator(ExpressionOperator.CONTAINS);
Expand Down Expand Up @@ -137,6 +138,7 @@ public static void main(java.lang.String[] args) {
addConversionGoals.getConversionGoals().add(addPagesViewedPerVisitGoal);

UrlGoal addUrlGoal = new UrlGoal();
addUrlGoal.setGoalCategory(ConversionGoalCategory.PURCHASE);
addUrlGoal.setConversionWindowInMinutes(30);
addUrlGoal.setCountType(ConversionGoalCountType.ALL);
addUrlGoal.setName("My Url Goal");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public static void main(java.lang.String[] args) {
ArrayOfConversionGoal conversionGoals = new ArrayOfConversionGoal();

OfflineConversionGoal offlineConversionGoal = new OfflineConversionGoal();
offlineConversionGoal.setGoalCategory(ConversionGoalCategory.PURCHASE);
// Determines how long after a click that you want to count offline conversions.
offlineConversionGoal.setConversionWindowInMinutes(43200);
// If the count type is 'Unique' then only the first offline conversion will be counted.
Expand Down

0 comments on commit 56a7db9

Please sign in to comment.