Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
1b0168a5
Commit
1b0168a5
authored
Nov 12, 2020
by
zhangshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改埋点
parent
c0fbe5c6
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
61 additions
and
17 deletions
+61
-17
project.pbxproj
GYDemo/GYDemo.xcodeproj/project.pbxproj
+26
-10
IOSADManager.m
GYDemo/GYDemo/SCAds/IOSADManager.m
+35
-7
GYAdsTrackMode.m
GYDemo/GYDemo/SCAds/model/GYAdsTrackMode.m
+0
-0
GYAdsTrackModel.h
GYDemo/GYDemo/SCAds/model/GYAdsTrackModel.h
+0
-0
AddCSJADManager.h
GYDemo/GYDemo/SCAds/platform/AddCSJADManager.h
+0
-0
AddCSJADManager.m
GYDemo/GYDemo/SCAds/platform/AddCSJADManager.m
+0
-0
AddGDTADManager.h
GYDemo/GYDemo/SCAds/platform/AddGDTADManager.h
+0
-0
AddGDTADManager.m
GYDemo/GYDemo/SCAds/platform/AddGDTADManager.m
+0
-0
AddRuiShiADManager.h
GYDemo/GYDemo/SCAds/platform/AddRuiShiADManager.h
+0
-0
AddRuiShiADManager.m
GYDemo/GYDemo/SCAds/platform/AddRuiShiADManager.m
+0
-0
AddSigmobADManager.h
GYDemo/GYDemo/SCAds/platform/AddSigmobADManager.h
+0
-0
AddSigmobADManager.m
GYDemo/GYDemo/SCAds/platform/AddSigmobADManager.m
+0
-0
No files found.
GYDemo/GYDemo.xcodeproj/project.pbxproj
View file @
1b0168a5
...
@@ -262,6 +262,30 @@
...
@@ -262,6 +262,30 @@
/* End PBXFrameworksBuildPhase section */
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
/* Begin PBXGroup section */
68A872EE255D385F006E4A88
/* model */
=
{
isa
=
PBXGroup
;
children
=
(
A91A7973253F213100F9B216
/* GYAdsTrackModel.h */
,
A91A7971253F213100F9B216
/* GYAdsTrackMode.m */
,
);
path
=
model
;
sourceTree
=
"<group>"
;
};
68A872EF255D3870006E4A88
/* platform */
=
{
isa
=
PBXGroup
;
children
=
(
68CA7395255BE17E002E73AD
/* AddCSJADManager.h */
,
68CA738F255BE17E002E73AD
/* AddCSJADManager.m */
,
68CA7390255BE17E002E73AD
/* AddGDTADManager.h */
,
68CA7392255BE17E002E73AD
/* AddGDTADManager.m */
,
68CA7394255BE17E002E73AD
/* AddRuiShiADManager.h */
,
68CA7396255BE17E002E73AD
/* AddRuiShiADManager.m */
,
68CA738D255BE17D002E73AD
/* AddSigmobADManager.h */
,
68CA738E255BE17E002E73AD
/* AddSigmobADManager.m */
,
);
path
=
platform
;
sourceTree
=
"<group>"
;
};
A3BE8AD6E326D640425E6E5A
/* Frameworks */
=
{
A3BE8AD6E326D640425E6E5A
/* Frameworks */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
...
@@ -455,16 +479,8 @@
...
@@ -455,16 +479,8 @@
A91A796F253F213100F9B216
/* SCAds */
=
{
A91A796F253F213100F9B216
/* SCAds */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
A91A7973253F213100F9B216
/* GYAdsTrackModel.h */
,
68A872EE255D385F006E4A88
/* model */
,
A91A7971253F213100F9B216
/* GYAdsTrackMode.m */
,
68A872EF255D3870006E4A88
/* platform */
,
68CA7395255BE17E002E73AD
/* AddCSJADManager.h */
,
68CA738F255BE17E002E73AD
/* AddCSJADManager.m */
,
68CA7390255BE17E002E73AD
/* AddGDTADManager.h */
,
68CA7392255BE17E002E73AD
/* AddGDTADManager.m */
,
68CA7394255BE17E002E73AD
/* AddRuiShiADManager.h */
,
68CA7396255BE17E002E73AD
/* AddRuiShiADManager.m */
,
68CA738D255BE17D002E73AD
/* AddSigmobADManager.h */
,
68CA738E255BE17E002E73AD
/* AddSigmobADManager.m */
,
68CA7391255BE17E002E73AD
/* IOSADManager.h */
,
68CA7391255BE17E002E73AD
/* IOSADManager.h */
,
68CA7393255BE17E002E73AD
/* IOSADManager.m */
,
68CA7393255BE17E002E73AD
/* IOSADManager.m */
,
);
);
...
...
GYDemo/GYDemo/SCAds/IOSADManager.m
View file @
1b0168a5
...
@@ -436,6 +436,8 @@ static IOSADManager * manager = nil;
...
@@ -436,6 +436,8 @@ static IOSADManager * manager = nil;
WEAKSELF
;
WEAKSELF
;
[[
CGNetworkTools
shared
]
getWithAdsAction
:
getAdsInfo
parameters
:
@{
@"slotName"
:
@"common_bigimage"
}
success
:^
(
id
_Nonnull
response
)
{
[[
CGNetworkTools
shared
]
getWithAdsAction
:
getAdsInfo
parameters
:
@{
@"slotName"
:
@"common_bigimage"
}
success
:^
(
id
_Nonnull
response
)
{
if
([[
response
objectForKey
:
@"status"
]
intValue
]
==
200
)
{
if
([[
response
objectForKey
:
@"status"
]
intValue
]
==
200
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"native_request"
value
:
@"native_request_success"
];
NSMutableArray
*
models
=
[
NSMutableArray
new
];
NSMutableArray
*
models
=
[
NSMutableArray
new
];
NSArray
*
arr
=
response
[
@"result"
][
@"data"
];
NSArray
*
arr
=
response
[
@"result"
][
@"data"
];
for
(
NSDictionary
*
dict
in
arr
)
{
for
(
NSDictionary
*
dict
in
arr
)
{
...
@@ -446,18 +448,19 @@ static IOSADManager * manager = nil;
...
@@ -446,18 +448,19 @@ static IOSADManager * manager = nil;
model
.
backups
=
[
GYAdsTrackModel
mj_objectArrayWithKeyValuesArray
:
dict
[
@"backups"
]];
model
.
backups
=
[
GYAdsTrackModel
mj_objectArrayWithKeyValuesArray
:
dict
[
@"backups"
]];
[
models
addObject
:
model
];
[
models
addObject
:
model
];
}
}
[
weakSelf
.
bigImageModels
removeAllObjects
];
[
weakSelf
.
bigImageModels
removeAllObjects
];
[
weakSelf
.
bigImageModels
addObjectsFromArray
:
models
];
[
weakSelf
.
bigImageModels
addObjectsFromArray
:
models
];
if
(
weakSelf
.
cacheBigImg
.
count
==
0
&&
models
.
count
)
{
if
(
weakSelf
.
cacheBigImg
.
count
==
0
&&
models
.
count
)
{
[
weakSelf
loadAdWithData
:
weakSelf
.
bigImageModels
.
firstObject
withADType
:
ADType_BigImage
];
[
weakSelf
loadAdWithData
:
weakSelf
.
bigImageModels
.
firstObject
withADType
:
ADType_BigImage
];
}
}
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"native_request"
value
:
@"native_request_failed"
];
}
}
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"native_request"
value
:
@"native_request_failed"
];
}];
}];
...
@@ -522,6 +525,7 @@ static IOSADManager * manager = nil;
...
@@ -522,6 +525,7 @@ static IOSADManager * manager = nil;
WEAKSELF
;
WEAKSELF
;
if
(
success
)
{
//埋点
if
(
success
)
{
//埋点
[
self
trackingADWith
:
model
.
pullsucc_tracking
.
firstObject
];
[
self
trackingADWith
:
model
.
pullsucc_tracking
.
firstObject
];
}
else
{
}
else
{
[
self
trackingADWith
:
model
.
pullfail_tracking
.
firstObject
];
[
self
trackingADWith
:
model
.
pullfail_tracking
.
firstObject
];
...
@@ -531,29 +535,39 @@ static IOSADManager * manager = nil;
...
@@ -531,29 +535,39 @@ static IOSADManager * manager = nil;
weakSelf
.
haveLodeAD
=
NO
;
weakSelf
.
haveLodeAD
=
NO
;
[
MBProgressHUD
hideHUD
];
[
MBProgressHUD
hideHUD
];
if
(
success
)
{
if
(
success
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_back_success"
];
[
weakSelf
.
cachevideo
addObject
:
model
];
[
weakSelf
.
cachevideo
addObject
:
model
];
if
(
weakSelf
.
showNow
){
if
(
weakSelf
.
showNow
){
[
weakSelf
showADType
:
ADType_Video
resultBlock
:
self
.
adShowBlock
];
[
weakSelf
showADType
:
ADType_Video
resultBlock
:
self
.
adShowBlock
];
}
}
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_back_failed"
];
[
weakSelf
clearCache
:
model
];
[
weakSelf
clearCache
:
model
];
}
}
}
else
if
(
model
.
loadADType
==
ADType_OpenScreen
){
}
else
if
(
model
.
loadADType
==
ADType_OpenScreen
){
if
(
success
){
if
(
success
){
[[
CGUserManager
shared
]
addLocCollection
:
@"splash_back"
value
:
@"splash_back_success"
];
[
weakSelf
.
cacheOpenScreen
addObject
:
model
];
[
weakSelf
.
cacheOpenScreen
addObject
:
model
];
[
weakSelf
showADType
:
ADType_OpenScreen
resultBlock
:
self
.
adShowBlock
];
[
weakSelf
showADType
:
ADType_OpenScreen
resultBlock
:
self
.
adShowBlock
];
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"splash_back"
value
:
@"splash_back_failed"
];
[
weakSelf
clearCache
:
model
];
[
weakSelf
clearCache
:
model
];
}
}
}
else
if
(
model
.
loadADType
==
ADType_BigImage
){
//原生
}
else
if
(
model
.
loadADType
==
ADType_BigImage
){
//原生
if
(
success
){
if
(
success
){
[[
CGUserManager
shared
]
addLocCollection
:
@"native_back"
value
:
@"native_back_success"
];
[
weakSelf
.
cacheBigImg
addObject
:
model
];
[
weakSelf
.
cacheBigImg
addObject
:
model
];
[
weakSelf
showADType
:
ADType_BigImage
resultBlock
:
self
.
adShowBlock
];
[
weakSelf
showADType
:
ADType_BigImage
resultBlock
:
self
.
adShowBlock
];
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"native_back"
value
:
@"native_back_failed"
];
[
weakSelf
clearCache
:
model
];
[
weakSelf
clearCache
:
model
];
}
}
...
@@ -576,22 +590,36 @@ static IOSADManager * manager = nil;
...
@@ -576,22 +590,36 @@ static IOSADManager * manager = nil;
[
weakSelf
clearCache
:
model
];
[
weakSelf
clearCache
:
model
];
weakSelf
.
adShowBlock
(
success
);
weakSelf
.
adShowBlock
(
success
);
if
(
success
)
{
if
(
success
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_display_success"
];
[[
CGNetworkTools
shared
]
postWithAction
:
adsEndReport
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
[[
CGNetworkTools
shared
]
postWithAction
:
adsEndReport
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}];
}];
}
else
{
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_display_success"
];
}
}
}
else
if
(
model
.
loadADType
==
ADType_OpenScreen
){
}
else
if
(
model
.
loadADType
==
ADType_OpenScreen
){
[
weakSelf
clearCache
:
model
];
if
(
success
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"splash_back"
value
:
@"splash_display_success"
];
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"splash_back"
value
:
@"splash_display_failed"
];
}
[
weakSelf
clearCache
:
model
];
weakSelf
.
adShowBlock
(
success
);
weakSelf
.
adShowBlock
(
success
);
weakSelf
.
showNow
=
NO
;
weakSelf
.
showNow
=
NO
;
}
else
if
(
model
.
loadADType
==
ADType_BigImage
){
//原生
}
else
if
(
model
.
loadADType
==
ADType_BigImage
){
//原生
if
(
success
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"native_back"
value
:
@"native_display_success"
];
}
else
{
[[
CGUserManager
shared
]
addLocCollection
:
@"native_back"
value
:
@"native_display_failed"
];
}
[
weakSelf
clearCache
:
model
];
[
weakSelf
clearCache
:
model
];
weakSelf
.
adShowBlock
(
success
);
weakSelf
.
adShowBlock
(
success
);
...
...
GYDemo/GYDemo/SCAds/GYAdsTrackMode.m
→
GYDemo/GYDemo/SCAds/
model/
GYAdsTrackMode.m
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/GYAdsTrackModel.h
→
GYDemo/GYDemo/SCAds/
model/
GYAdsTrackModel.h
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddCSJADManager.h
→
GYDemo/GYDemo/SCAds/
platform/
AddCSJADManager.h
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddCSJADManager.m
→
GYDemo/GYDemo/SCAds/
platform/
AddCSJADManager.m
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddGDTADManager.h
→
GYDemo/GYDemo/SCAds/
platform/
AddGDTADManager.h
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddGDTADManager.m
→
GYDemo/GYDemo/SCAds/
platform/
AddGDTADManager.m
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddRuiShiADManager.h
→
GYDemo/GYDemo/SCAds/
platform/
AddRuiShiADManager.h
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddRuiShiADManager.m
→
GYDemo/GYDemo/SCAds/
platform/
AddRuiShiADManager.m
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddSigmobADManager.h
→
GYDemo/GYDemo/SCAds/
platform/
AddSigmobADManager.h
View file @
1b0168a5
File moved
GYDemo/GYDemo/SCAds/AddSigmobADManager.m
→
GYDemo/GYDemo/SCAds/
platform/
AddSigmobADManager.m
View file @
1b0168a5
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment