Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tkio-test-case
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuxiaoxing
tkio-test-case
Commits
4130aed3
Commit
4130aed3
authored
May 26, 2022
by
liuxiaoxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asa参数校验
parent
36dc680b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
2 deletions
+61
-2
receiveios.py
microservices/receiveios.py
+61
-2
No files found.
microservices/receiveios.py
View file @
4130aed3
...
...
@@ -79,6 +79,65 @@ data = [
# "refund": "234234",
# "refund_amount": "234234"
}
},
"asa_info"
:
{
"iad_info"
:
{
# //iad归因结果。选传,限制16字符内。
"iad-attribution"
:
"true"
,
# //iad 活动组名称。选传,限制128字符内。
"iad-org-name"
:
"org name"
,
# //iad 活动组id,选传。限制32字符内。
"iad-org-id"
:
"40669820"
,
# //iad 活动id,选传。限制32字符内。
"iad-campaign-id"
:
"542370539"
,
# // iad 活动名称。选传,限制128字符内。
"iad-campaign-name"
:
"campaign name"
,
# //iad 该Apple账号首次购买(下载)该App的时间。选传,限制32字符内。
"iad-purchase-date"
:
"2020-08-04T17:18:07Z"
,
# //iad 该Apple账号本次转化(下载)该App的时间。选传,限制32字符内。
"iad-conversion-date"
:
"2020-08-04T17:18:07Z"
,
# //iad 转化配型。选传,限制32字符内。
"iad-conversion-type"
:
"newdownload"
,
# //iad 本次转化匹配到广告点击的时间。选传,限制32字符内。
"iad-click-date"
:
"2020-08-04T17:17:00Z"
,
# // iad 广告组id。选传,限制32字符内。
"iad-adgroup-id"
:
"542317095"
,
# //iad 广告组名称。选传,限制128字符内。
"iad-adgroup-name"
:
"adgroup name"
,
# //iad Apple账号的国家或地区。选传,限制16字符内。
"iad-country-or-region"
:
"US"
,
# //iad 关键词名称。选传,限制128字符内。
"iad-keyword"
:
"keyword"
,
# //iad 关键词id。选传,限制32字符内。
"iad-keyword-id"
:
"87675432"
,
# //iad 关键词匹配类型。选传,限制32字符内。
"iad-keyword-matchtype"
:
"Broad"
,
# //iad 广告素材id。选传,限制32字符内。
"iad-ad-id"
:
"542317136"
,
# //iad lineitem id。选传,限制32字符内。
"iad-lineitem-id"
:
"587848614"
,
# //iad lineitem名称。选传,限制128字符内。
"iad-lineitem-name"
:
"Brand-Exact_All-All_Test02"
,
# //通过iad框架获取归因信息时的重试次数。选传,限制2字符内。
"iad_retry_times"
:
3
,
# //任何能够描述未能获取到归因结果的错误提示。选传,无字符限制。
"iad_error_info"
:
"xxx"
},
"adservices_info"
:
{
"token"
:
"sbBoZZnCpY3Ps32Xv8K5PhyZtPKxB8i/rmjJfWATPQAuqawcQLalTgJ4Zaa4LzZohZK/bWxWg3TmynLv3XKAO+oTbn7FGmSdYAAAAVADAAAA/QAAAIAjeU4Eb6GRAsnafeLL8Ucpfzz5ErqPpxV4n5SoZ6n3q9U8tYixHXKsOcSFnEjBVYNX60xFABXS62TzYQieVzkjt4vjC6GYedWDX+IuYx7K4p6iUvUg5FAhX6kSeVF627i2Xj6Ie5K7Xi3LSM8uNWvADZQESKvdkWF9CQoNY37dEgAAABJfluG0V1jsF3OcqXJPotzTE1YAAACfAe5iGXrTDo893L1XIXjACtCXvdjaAAAAhgAGP0aWIK/sat96xlkNAzEZ8WJd/AGhKQCKZ7dTc+NvyRyic1WsAryc6dkpfhzKUot2l9wrft8I/+dRLggPPFGTTmgdXzaabldMH4iVdaIRDtVQPsxTQw1naa1ainIrehF/VXVsUgngZ0ONhi01Bqw75hq2yuyWRGb1CXkm0dlCtR8L8DVXAAAAAAAAAAAAAAAAAAABBEYXAAA="
,
"attribution"
:
'true'
,
"orgId"
:
40669820
,
"campaignId"
:
542370539
,
"conversionType"
:
"Download"
,
"clickDate"
:
"2020-04-08T17:17Z"
,
"adGroupId"
:
542317095
,
"countryOrRegion"
:
"US"
,
"keywordId"
:
87675432
,
"adId"
:
542317136
,
"adservices_retry_times"
:
3
,
"adservices_error_info"
:
"xxx"
}
}
}
]
...
...
@@ -88,9 +147,9 @@ data_temp = json.dumps(data)
def
send_request
():
global
data
# 测试
# url = "http://tkiomicro-receive-788931749.cn-north-1.elb.amazonaws.com.cn
/receive/tkiov2/sdk"
url
=
"http://tmtest.trackingio.com
/receive/tkiov2/sdk"
# 线上
url
=
"http://tkio-receive.solar-engine.com/receive/tkiov2/sdk"
#
url = "http://tkio-receive.solar-engine.com/receive/tkiov2/sdk"
data
[
0
][
'timestamp_info'
][
'install_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
data
[
0
][
'timestamp_info'
][
'current_event_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
...
...
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