forked from appodeal/admob-sync-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
135 lines (120 loc) · 2.48 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Queries
mutation: Mutations
}
type AdmobAccount {
"Account apps with pagination"
apps(page: Int = 1, pageSize: Int = 100): AppPaginatableCollection!
email: String!
"Admob AccountId"
id: ID!
isReadyForReports: Boolean!
}
type App {
admobAppId: ID
bundleId: String!
ecpmFloors: [EcpmFloors!]!
id: ID!
isDeleted: Boolean!
name: String!
platform: Platform!
}
type AppPaginatableCollection {
nodes: [App!]!
pageInfo: PageInfo!
totalCount: Int!
}
type EcpmFloors {
adType: AdType!
ecpmFloor: [Float!]!
format: Format!
}
type Mutations {
addAdmobAccount(accountId: ID!, email: String!): Boolean!
endSync(id: ID!): Boolean!
refreshAccessToken(refreshToken: String!): Session!
setAdmobAccountCredentials(accountId: ID!, clientId: String!, clientSecret: String!): OAuthParams!
setAdmobAccountId(accountEmail: String!, accountId: ID!): Boolean!
signIn(email: String!, password: String!): Session!
signOut: Boolean!
startSync(admobAccountId: ID!, id: ID!): Boolean!
submitLog(admobAccountId: ID!, rawLog: String!, syncId: ID!): Boolean!
syncApp(adUnits: [AdUnit!]!, admobAccountId: ID!, admobAppId: ID!, id: ID!, syncSessionId: ID!): Boolean!
}
type OAuthParams {
oAuthUrl: String!
}
type PageInfo {
currentPage: Int!
pageSize: Int!
totalPages: Int!
}
type Queries {
"Return current user"
currentUser: User
minimalAppVersion: String!
ping: String!
user(id: ID!): User!
}
type Session {
accessToken: String!
refreshToken: String!
}
type User {
account(
#Admob AccountId - `pub-\\d+`
id: ID!
): AdmobAccount!
accounts: [AdmobAccount!]
adUnitNamePrefix: String!
email: String!
id: ID!
isDccEnabled: Boolean!
}
enum AdType {
#Banners
BANNER
#Interstitials
INTERSTITIAL
#MREC
MREC
#Native Ads
NATIVE
#Rewarded Videos
REWARDED_VIDEO
#Videos
VIDEO
}
enum Format {
#Image
IMAGE
#Image and text
IMAGE_AND_TEXT
#Rewarded
REWARDED
#Rich media
RICHMEDIA
#Simple video
SIMPLE_VIDEO
#Text
TEXT
#Undefined
UNDEFINED
}
enum Platform {
#Amazon
AMAZON
#Android
ANDROID
#iOS
IOS
}
input AdUnit {
adType: AdType!
"Admob ad unit's id"
code: String!
"Ad unit's eCPM"
ecpmFloor: Float!
format: Format!
}