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
6a1e2a44
Commit
6a1e2a44
authored
Nov 24, 2020
by
zhangshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 source
修改广告 埋点
parent
980b4dbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
CGNetworkTools.m
GYDemo/GYDemo/Network/CGNetworkTools.m
+1
-1
IOSADManager.m
GYDemo/GYDemo/SCAds/IOSADManager.m
+7
-5
CGUserManager.m
GYDemo/GYDemo/UserManager/CGUserManager.m
+8
-2
No files found.
GYDemo/GYDemo/Network/CGNetworkTools.m
View file @
6a1e2a44
...
@@ -316,7 +316,7 @@ static CGNetworkTools* _tools = nil;
...
@@ -316,7 +316,7 @@ static CGNetworkTools* _tools = nil;
}
else
{
}
else
{
[
dict
setValue
:
@"AppStore"
forKey
:
@"source"
];
[
dict
setValue
:
@"AppStore"
forKey
:
@"source"
];
}
}
[
dict
setValue
:
@"toutiao"
forKey
:
@"source"
];
//
[dict setValue: @"toutiao" forKey: @"source"];
NSString
*
uid
=
[[
data
Read
]
objectForKey
:
@"uid"
];
NSString
*
uid
=
[[
data
Read
]
objectForKey
:
@"uid"
];
if
(
uid
!=
nil
)
{
[
dict
setValue
:
uid
forKey
:
@"uid"
];
}
if
(
uid
!=
nil
)
{
[
dict
setValue
:
uid
forKey
:
@"uid"
];
}
...
...
GYDemo/GYDemo/SCAds/IOSADManager.m
View file @
6a1e2a44
...
@@ -224,7 +224,7 @@ static IOSADManager * manager = nil;
...
@@ -224,7 +224,7 @@ static IOSADManager * manager = nil;
[
self
trackingADWith
:
adModel
.
clk_tracking
.
firstObject
];
[
self
trackingADWith
:
adModel
.
clk_tracking
.
firstObject
];
if
(
self
.
advertisingSpace
)
{
if
(
self
.
advertisingSpace
)
{
[[
CGUserManager
shared
]
addADLocCollection
:
self
.
advertisingSpace
value
:
@"click_reward_video_ad"
andADData
:
adModel
];
[[
CGUserManager
shared
]
addADLocCollection
:
@"click_reward_video_ad"
value
:
self
.
advertisingSpace
andADData
:
adModel
];
}
}
}
}
...
@@ -418,7 +418,7 @@ static IOSADManager * manager = nil;
...
@@ -418,7 +418,7 @@ static IOSADManager * manager = nil;
// NSLog(@">>>>>>> 正在播放 成功 平台 = %@ ID = %@ type =%@ <<<<<<<<<",showData.adPlatform,showData.codeId,showData.slotName);
// NSLog(@">>>>>>> 正在播放 成功 平台 = %@ ID = %@ type =%@ <<<<<<<<<",showData.adPlatform,showData.codeId,showData.slotName);
WEAKSELF
;
WEAKSELF
;
if
(
self
.
advertisingSpace
)
{
if
(
self
.
advertisingSpace
)
{
[[
CGUserManager
shared
]
addADLocCollection
:
self
.
advertisingSpace
value
:
@"show_reward_video_ad"
andADData
:
showData
];
[[
CGUserManager
shared
]
addADLocCollection
:
@"show_reward_video_ad"
value
:
self
.
advertisingSpace
andADData
:
showData
];
}
}
if
([
showData
.
adPlatform
isEqualToString
:
@"chuanshanjia"
])
{
if
([
showData
.
adPlatform
isEqualToString
:
@"chuanshanjia"
])
{
...
@@ -725,7 +725,7 @@ static IOSADManager * manager = nil;
...
@@ -725,7 +725,7 @@ static IOSADManager * manager = nil;
if
(
success
)
{
if
(
success
)
{
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_display_success"
];
[[
CGUserManager
shared
]
addLocCollection
:
@"reward_request"
value
:
@"reward_display_success"
];
if
(
self
.
advertisingSpace
)
{
if
(
self
.
advertisingSpace
)
{
[[
CGUserManager
shared
]
addADLocCollection
:
self
.
advertisingSpace
value
:
@"show_suc_reward_viode_ad"
andADData
:
model
];
[[
CGUserManager
shared
]
addADLocCollection
:
@"show_suc_reward_viode_ad"
value
:
self
.
advertisingSpace
andADData
:
model
];
}
}
[[
CGNetworkTools
shared
]
postWithAction
:
adsEndReport
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
[[
CGNetworkTools
shared
]
postWithAction
:
adsEndReport
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
...
@@ -739,8 +739,10 @@ static IOSADManager * manager = nil;
...
@@ -739,8 +739,10 @@ static IOSADManager * manager = nil;
if
(
self
.
advertisingSpace
)
{
if
(
self
.
advertisingSpace
)
{
NSString
*
errorValue
=
[
NSString
stringWithFormat
:
@"show_fail_reward_video_ad_%@_%@_%@"
,
model
.
adPlatform
,
model
.
codeId
,
model
.
ADError
.
localizedDescription
];
// NSString * errorValue = [NSString stringWithFormat:@"show_fail_reward_video_ad_%@_%@_%@",model.adPlatform,model.codeId,model.ADError.localizedDescription];
[[
CGUserManager
shared
]
addADLocCollection
:
self
.
advertisingSpace
value
:
errorValue
andADData
:
model
];
NSString
*
errorValue
=
[
NSString
stringWithFormat
:
@"show_fail_reward_video_ad"
];
[[
CGUserManager
shared
]
addADLocCollection
:
errorValue
value
:
self
.
advertisingSpace
andADData
:
model
];
}
}
}
}
...
...
GYDemo/GYDemo/UserManager/CGUserManager.m
View file @
6a1e2a44
...
@@ -197,9 +197,15 @@ static CGUserManager * manager;
...
@@ -197,9 +197,15 @@ static CGUserManager * manager;
action
=
[
NSString
stringWithFormat
:
@"%@_%@_%@"
,
model
.
adPlatform
,
action
,
value
];
action
=
[
NSString
stringWithFormat
:
@"%@_%@_%@"
,
model
.
adPlatform
,
action
,
value
];
[
dict
setObject
:
action
forKey
:
@"action"
];
[
dict
setObject
:
action
forKey
:
@"action"
];
//事件
[
dict
setObject
:
value
forKey
:
@"ad_model"
];
//位置
[
dict
setObject
:
model
.
adPlatform
forKey
:
@"ad_platform"
];
[
dict
setObject
:
model
.
codeId
forKey
:
@"codeId"
];
[
dict
setObject
:
model
.
codeId
forKey
:
@"codeId"
];
[
dict
setObject
:
@"guazinovel"
forKey
:
@"event"
];
if
(
model
.
ADError
)
{
[
dict
setObject
:
model
.
ADError
.
localizedDescription
forKey
:
@"ad_error"
];
//错误信息
}
[
dict
setObject
:
@"ad"
forKey
:
@"event"
];
[[
CGNetworkTools
shared
]
postWithLogCollection
:
logCollection
parameters
:
dict
success
:^
(
id
_Nullable
__autoreleasing
*
_Nullable
response
)
{
[[
CGNetworkTools
shared
]
postWithLogCollection
:
logCollection
parameters
:
dict
success
:^
(
id
_Nullable
__autoreleasing
*
_Nullable
response
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
...
...
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