Skip to content

Commit 206684d

Browse files
gouyelliotabarisain
authored andcommitted
core: document XTOR
1 parent 10a4014 commit 206684d

File tree

1 file changed

+15
-0
lines changed
  • atinternet-dispatcher/src/main/java/com/batch/android/dispatcher/atinternet

1 file changed

+15
-0
lines changed

atinternet-dispatcher/src/main/java/com/batch/android/dispatcher/atinternet/Xtor.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44

55
import java.util.ArrayList;
66

7+
/**
8+
* Class to parse and validate a XTOR string.
9+
*
10+
* XTOR format: A-B-[C]-[D]-[E]-[F]-[G]-[H]
11+
* A: Source prefix, see {@link Xtor#XTOR_PREFIX}.
12+
* B: value of the campaign ID.
13+
* C: creative (according to the format [label] or id[label]).
14+
* D: variant (according to the format [label] or id[label]).
15+
* E: format (according to the ID given by AT Internet: see appendix.
16+
* F: website (specifies the URL according to the format [url]).
17+
* G: general position on the overall website.
18+
* H: details of the position on the web page.
19+
*
20+
* We need to parse the XTOR to retrieve the campaign ID when dispatching on OnSiteAds.
21+
*/
722
class Xtor {
823

924
private static final String[] XTOR_PREFIX = {

0 commit comments

Comments
 (0)