-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add keyword-segment lists, funnel-site lists and classifier for Brave…
… Ads purchase intent
- Loading branch information
Moritz Haller
committed
Mar 5, 2020
1 parent
a1ec4e5
commit 13ae2f8
Showing
35 changed files
with
4,988 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
vendor/bat-native-ads/include/bat/ads/purchase_intent_signal_history.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* Copyright (c) 2020 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BAT_ADS_PURCHASE_INTENT_SIGNAL_HISTORY_H_ | ||
#define BAT_ADS_PURCHASE_INTENT_SIGNAL_HISTORY_H_ | ||
|
||
#include <stdint.h> | ||
#include <string> | ||
#include <map> | ||
#include <deque> | ||
|
||
#include "bat/ads/export.h" | ||
#include "bat/ads/result.h" | ||
|
||
namespace ads { | ||
|
||
struct ADS_EXPORT PurchaseIntentSignalHistory { | ||
PurchaseIntentSignalHistory(); | ||
PurchaseIntentSignalHistory( | ||
const PurchaseIntentSignalHistory& properties); | ||
~PurchaseIntentSignalHistory(); | ||
|
||
bool operator==( | ||
const PurchaseIntentSignalHistory& rhs) const; | ||
|
||
bool operator!=( | ||
const PurchaseIntentSignalHistory& rhs) const; | ||
|
||
std::string ToJson() const; | ||
Result FromJson( | ||
const std::string& json, | ||
std::string* error_description = nullptr); | ||
|
||
uint64_t timestamp_in_seconds; | ||
uint16_t weight = 0; | ||
}; | ||
|
||
using PurchaseIntentSignalSegmentHistoryList = | ||
std::deque<PurchaseIntentSignalHistory>; | ||
using PurchaseIntentSignalSegmentHistoryMap = | ||
std::map<std::string, PurchaseIntentSignalSegmentHistoryList>; | ||
|
||
} // namespace ads | ||
|
||
#endif // BAT_ADS_PURCHASE_INTENT_SIGNAL_HISTORY_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.