-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14072 from /issues/23899
Decouple Brave Ads business logic from ads event handlers
- Loading branch information
Showing
170 changed files
with
3,470 additions
and
2,328 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
70 changes: 70 additions & 0 deletions
70
vendor/bat-native-ads/data/test/catalog_with_inline_content_ad.json
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,70 @@ | ||
{ | ||
"version": 9, | ||
"ping": 7200000, | ||
"campaigns": [ | ||
{ | ||
"creativeSets": [ | ||
{ | ||
"creatives": [ | ||
{ | ||
"creativeInstanceId": "30db5f7b-dba3-48a3-b299-c9bd9c67da65", | ||
"type": { | ||
"code": "inline_content_all_v1", | ||
"name": "inline_content", | ||
"platform": "all", | ||
"version": 1 | ||
}, | ||
"payload": { | ||
"title": "Test Title", | ||
"description": "Test Description", | ||
"imageUrl": "https://www.brave.com", | ||
"dimensions": "200x100", | ||
"ctaText": "Test Call to Action Text", | ||
"targetUrl": "https://brave.com" | ||
} | ||
} | ||
], | ||
"segments": [ | ||
{ | ||
"code": "Svp7l-zGN", | ||
"name": "untargeted" | ||
} | ||
], | ||
"oses": [ | ||
], | ||
"conversions": [ | ||
{ | ||
"observationWindow": 30, | ||
"urlPattern": "https://www.brave.com/*", | ||
"type": "postview" | ||
} | ||
], | ||
"channels": [ | ||
], | ||
"creativeSetId": "340c927f-696e-4060-9933-3eafc56c3f31", | ||
"perDay": 1, | ||
"perWeek": 1, | ||
"perMonth": 1, | ||
"totalMax": 1, | ||
"value": "1.0" | ||
} | ||
], | ||
"dayParts": [ | ||
], | ||
"geoTargets": [ | ||
{ | ||
"code": "US", | ||
"name": "United States" | ||
} | ||
], | ||
"campaignId": "27a624a1-9c80-494a-bf1b-af327b563f85", | ||
"startAt": "<time:now>", | ||
"endAt": "<time:distant_future>", | ||
"dailyCap": 1, | ||
"advertiserId": "a437c7f3-9a48-4fe8-b37b-99321bea93fe", | ||
"priority": 1, | ||
"ptr": 1.0 | ||
} | ||
], | ||
"catalogId": "29e5c8bc0ba319069980bb390d8e8f9b58c05a20" | ||
} |
86 changes: 86 additions & 0 deletions
86
vendor/bat-native-ads/data/test/catalog_with_new_tab_page_ad.json
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,86 @@ | ||
{ | ||
"version": 9, | ||
"ping": 7200000, | ||
"campaigns": [ | ||
{ | ||
"creativeSets": [ | ||
{ | ||
"creatives": [ | ||
{ | ||
"creativeInstanceId": "7ff400b9-7f8a-46a8-89f1-cb386612edcf", | ||
"type": { | ||
"code": "new_tab_page_all_v1", | ||
"platform": "all", | ||
"name": "new_tab_page", | ||
"version": 1 | ||
}, | ||
"payload": { | ||
"logo": { | ||
"alt": "Test Alt", | ||
"imageUrl": "https://brave.com/image.jpg", | ||
"companyName": "Test Company Name", | ||
"destinationUrl": "https://brave.com" | ||
}, | ||
"wallpapers": [ | ||
{ | ||
"focalPoint": { | ||
"x": 1200, | ||
"y": 1400 | ||
}, | ||
"imageUrl": "https://brave.com/wallpaper_1.jpg" | ||
}, | ||
{ | ||
"focalPoint": { | ||
"x": 1200, | ||
"y": 1400 | ||
}, | ||
"imageUrl": "https://brave.com/wallpaper_2.jpg" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"segments": [ | ||
{ | ||
"code": "Svp7l-zGN", | ||
"name": "untargeted" | ||
} | ||
], | ||
"oses": [ | ||
], | ||
"conversions": [ | ||
{ | ||
"observationWindow": 30, | ||
"urlPattern": "https://www.brave.com/*", | ||
"type": "postview" | ||
} | ||
], | ||
"channels": [ | ||
], | ||
"creativeSetId": "340c927f-696e-4060-9933-3eafc56c3f31", | ||
"perDay": 1, | ||
"perWeek": 1, | ||
"perMonth": 1, | ||
"totalMax": 1, | ||
"value": "1.0" | ||
} | ||
], | ||
"dayParts": [ | ||
], | ||
"geoTargets": [ | ||
{ | ||
"code": "US", | ||
"name": "United States" | ||
} | ||
], | ||
"campaignId": "27a624a1-9c80-494a-bf1b-af327b563f85", | ||
"startAt": "<time:now>", | ||
"endAt": "<time:distant_future>", | ||
"dailyCap": 1, | ||
"advertiserId": "a437c7f3-9a48-4fe8-b37b-99321bea93fe", | ||
"priority": 1, | ||
"ptr": 1.0 | ||
} | ||
], | ||
"catalogId": "29e5c8bc0ba319069980bb390d8e8f9b58c05a20" | ||
} |
Oops, something went wrong.