asc-in-app-events
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseasc in-app events
asc 应用内活动
Use for the requested stages only. A localization, media upload,
or diagnostic request does not authorize creating or submitting another event.
Preserve the resolved app, event, platform, locales, and existing authorization.
asc app-events仅对请求的阶段使用 。本地化、媒体上传
或诊断请求并不构成创建或提交另一个活动的授权。
保持已解析的应用、活动、平台、语言区域和现有授权不变。
asc app-eventsInspect the target
检查目标
Check and the relevant subcommand help before execution.
Resolve the app ID and auth profile; inspect an existing event before changing it:
asc app-events --helpbash
asc app-events list --app "APP_ID" --paginate --output json
asc app-events view --event-id "EVENT_ID" --output json
asc app-events localizations list --event-id "EVENT_ID" --paginate --output jsonUse explicit when parsing results; output defaults are TTY-aware.
Keep event IDs and localization IDs distinct.
--output json执行前检查 和相关子命令的帮助。
解析应用 ID 和认证配置;在更改现有活动之前先检查该活动:
asc app-events --helpbash
asc app-events list --app "APP_ID" --paginate --output json
asc app-events view --event-id "EVENT_ID" --output json
asc app-events localizations list --event-id "EVENT_ID" --paginate --output json解析结果时,请显式使用 ;默认输出会根据 TTY 环境调整格式。
请区分活动 ID 和本地化 ID。
--output jsonPrepare and create
准备并创建
- Choose the event badge and intended territories. Check help for accepted
,
--event-type, and--purposevalues; do not infer that every value described in App Store Connect is supported by the CLI.--purchase-requirement - Set future RFC 3339 dates: start before end, duration from 15 minutes to 31 days, and publish start no more than 14 days before the event and no later than start. The CLI parses timestamps but does not enforce all of Apple's schedule rules.
- Provide a deep link that opens the event's destination. Test the universal link or custom URL scheme in the intended app build; a registered scheme alone does not prove the destination works. Creation without a deep link can succeed even though the event is not ready for review.
Replace the date variables with the agreed schedule before creating:
bash
asc app-events create \
--app "APP_ID" --name "Summer Challenge" --event-type CHALLENGE \
--start "$START_RFC3339" --end "$END_RFC3339" \
--publish-start "$PUBLISH_START_RFC3339" \
--deep-link "myapp://event/summer" --primary-locale en-US \
--purchase-requirement NO_COST_ASSOCIATED \
--priority NORMAL --purpose APPROPRIATE_FOR_ALL_USERS --output json--nameasc app-events update- 选择活动徽章和目标地区。查看帮助,了解受支持的
、
--event-type和--purpose值;不要推断 App Store Connect 中描述的每个值都受 CLI 支持。--purchase-requirement - 设置未来的 RFC 3339 日期:开始时间早于结束时间,时长为 15 分钟至 31 天, 发布开始时间最多比活动开始时间早 14 天,且不得晚于开始时间。 CLI 会解析时间戳,但不会执行 Apple 的所有日程规则。
- 提供可打开活动目标页面的 deep link。在目标应用构建版本中测试 universal link 或自定义 URL scheme;仅注册 scheme 并不能证明目标页面可用。 未提供 deep link 也可能成功创建活动,但该活动仍不处于可审核状态。
创建前,将日期变量替换为约定的时间安排:
bash
asc app-events create \
--app "APP_ID" --name "Summer Challenge" --event-type CHALLENGE \
--start "$START_RFC3339" --end "$END_RFC3339" \
--publish-start "$PUBLISH_RFC3339" \
--deep-link "myapp://event/summer" --primary-locale en-US \
--purchase-requirement NO_COST_ASSOCIATED \
--priority NORMAL --purpose APPROPRIATE_FOR_ALL_USERS --output json--nameasc app-events updateLocalize and upload media
本地化并上传媒体
Create only missing, requested localizations. Displayed names allow 30 characters,
short descriptions 50, and long descriptions 120. Use
for an existing
localization, supplying the text flags that need changing.
asc app-events localizations update --localization-id "LOC_ID"bash
asc app-events localizations create \
--event-id "EVENT_ID" --locale en-US --name "Summer Challenge" \
--short-description "Win three duels a day." \
--long-description "Play every day during the challenge to earn the summer badge."
asc app-events screenshots create \
--event-id "EVENT_ID" --locale en-US \
--path "./event-card.png" --asset-type EVENT_CARD
asc app-events screenshots create \
--event-id "EVENT_ID" --locale en-US \
--path "./event-details.png" --asset-type EVENT_DETAILS_PAGEUse instead of plus when
the localization is already resolved. Video uploads use
; inspect its help for asset types and
.
--localization-id "LOC_ID"--event-id--localeasc app-events video-clips create--preview-frame-time-codeTo reuse existing Asset Library media, use
with the event localization ID and or .
Follow the Asset Library workflow
for upload, delivery, and placement checks; a placement does not submit the event.
asc app-events localizations placementsEVENT_CARD_ASSETEVENT_DETAILS_PAGE_ASSETUse JPG/JPEG/PNG images, at most 500 MB each. Export opaque images without
alpha channels for upload compatibility. Apple specifies these dimensions:
| Asset | Aspect ratio | Minimum | Maximum |
|---|---|---|---|
| 16:9 | 1920 × 1080 | 3840 × 2160 |
| 9:16 | 1080 × 1920 | 2160 × 3840 |
Avoid embedded text or logos where possible. Account for crops, gradients, and
App Store controls; inspect the App Store Connect preview when available rather
than assuming a fixed percentage of the image is safe. Verify media for each
intended localization; do not assume a locale with translated text inherits
missing assets from the primary locale. See Apple's media specifications
and presentation guidance.
仅创建缺失且已请求的本地化。显示名称最多 30 个字符,
简短描述最多 50 个字符,详细描述最多 120 个字符。对于现有本地化,
请使用 ,
并提供需要更改的文本参数。
asc app-events localizations update --localization-id "LOC_ID"bash
asc app-events localizations create \
--event-id "EVENT_ID" --locale en-US --name "Summer Challenge" \
--short-description "Win three duels a day." \
--long-description "Play every day during the challenge to earn the summer badge."
asc app-events screenshots create \
--event-id "EVENT_ID" --locale en-US \
--path "./event-card.png" --asset-type EVENT_CARD
asc app-events screenshots create \
--event-id "EVENT_ID" --locale en-US \
--path "./event-details.png" --asset-type EVENT_DETAILS_PAGE本地化 ID 已解析时,请使用 ,而不是同时使用
和 。视频上传使用
;查看其帮助以了解素材类型和
。
--localization-id "LOC_ID"--event-id--localeasc app-events video-clips create--preview-frame-time-code如需复用现有 Asset Library 媒体,请将
与活动本地化 ID 以及 或 配合使用。
按照 Asset Library 工作流
执行上传、交付和放置检查;放置操作不会提交活动。
asc app-events localizations placementsEVENT_CARD_ASSETEVENT_DETAILS_PAGE_ASSET请使用 JPG/JPEG/PNG 图像,每个文件最大 500 MB。为保证上传兼容性,
请导出不含 alpha 通道的不透明图像。Apple 规定了以下尺寸:
| 素材 | 宽高比 | 最小尺寸 | 最大尺寸 |
|---|---|---|---|
| 16:9 | 1920 × 1080 | 3840 × 2160 |
| 9:16 | 1080 × 1920 | 2160 × 3840 |
Verify and submit
验证并提交
Read back the schedule, deep link, localized text, and delivered media. Inspect
video clips too when used. Report any preview or link behavior not verified.
bash
asc app-events view --event-id "EVENT_ID" --output json
asc app-events screenshots list --event-id "EVENT_ID" --locale en-US --paginate --output jsonFor an app with an approved iOS version, when submission is authorized and no
existing submission needs to be continued:
bash
asc app-events submit --event-id "EVENT_ID" --app "APP_ID" --platform IOS --confirm --output json
asc review submissions-get --id "SUBMISSION_ID" --output jsonUse the from the receipt for the second command. Report the state
returned by Apple; a successful submit receipt is not evidence of approval or
publication. If the app has no approved iOS version, Apple requires the event in
the first version's submission. Use to prepare that version,
then add the event to its intended draft with as shown below;
skip the standalone command. Coordinate the build and event
release when new functionality is needed. See Apple's submission guidance.
submissionIdasc-release-flowreview items-addapp-events submit回读时间安排、deep link、本地化文本和已交付的媒体。使用视频片段时,
也应检查视频片段。报告任何未验证的预览或链接行为。
bash
asc app-events view --event-id "EVENT_ID" --output json
asc app-events screenshots list --event-id "EVENT_ID" --locale en-US --paginate --output json对于已有获批 iOS 版本的应用,在已获得提交授权且没有需要继续处理的现有提交时:
bash
asc app-events submit --event-id "EVENT_ID" --app "APP_ID" --platform IOS --confirm --output json
asc review submissions-get --id "SUBMISSION_ID" --output json第二条命令使用回执中的 。报告 Apple 返回的状态;
提交成功的回执并不能证明活动已获批准或发布。如果应用没有获批的 iOS 版本,
Apple 要求在首个版本的提交中包含该活动。使用 准备该版本,
然后按照下方所示,使用 将活动添加到目标草稿;
不要使用独立的 命令。需要新功能时,请协调构建版本和活动发布。
请参阅 Apple 的提交指南。
submissionIdasc-release-flowreview items-addapp-events submitRecover without duplicating work
恢复工作且避免重复
app-events submitbash
asc review submissions-list --app "APP_ID" --platform IOS --paginate --output json
asc review submissions-get --id "SUBMISSION_ID" --output json
asc review items-list --submission "SUBMISSION_ID" --paginate --output jsonFor an intended draft, confirm the app, platform, and all items
belong to the authorized submission. Repair the event first. For example, use
when Apple reports a missing deep link. Then reuse the draft:
READY_FOR_REVIEWasc app-events update --event-id "EVENT_ID" --deep-link "myapp://event/summer"bash
asc review items-add --submission "SUBMISSION_ID" --item-type appEvents --item-id "EVENT_ID" --if-exists skip
asc review submissions-submit --id "SUBMISSION_ID" --confirmDo not cancel an empty draft: it has no active review to cancel.
Do not resubmit a submission already waiting for review. Route other submission
states to , preserving the target and authorized work.
READY_FOR_REVIEWasc-submission-healthA can indicate real access restrictions. Check the selected
profile, app access, and role before diagnosing a transient service error; one
403 is not a reason to rotate credentials or assume they are valid. If recent
successful calls support a transient diagnosis, retry reads with bounded backoff
and stop if the error persists. Before repeating an uncertain create or upload,
list the existing resource and inspect its delivery state to avoid duplicates.
403 FORBIDDEN_ERRORFor current provider requirements, consult Apple's event setup guidance.
app-events submitbash
asc review submissions-list --app "APP_ID" --platform IOS --paginate --output json
asc review submissions-get --id "SUBMISSION_ID" --output json
asc review items-list --submission "SUBMISSION_ID" --paginate --output json对于应处于 状态的草稿,请确认应用、平台和所有项目
均属于已授权的提交。先修复活动。例如,当 Apple 报告缺少 deep link 时,
请使用
进行修复。然后复用草稿:
READY_FOR_REVIEWasc app-events update --event-id "EVENT_ID" --deep-link "myapp://event/summer"bash
asc review items-add --submission "SUBMISSION_ID" --item-type appEvents --item-id "EVENT_ID" --if-exists skip
asc review submissions-submit --id "SUBMISSION_ID" --confirm不要取消空的 草稿:它没有正在进行的审核可供取消。
不要重新提交已处于等待审核状态的提交。将其他提交状态交由
处理,同时保留目标和已授权的工作。
READY_FOR_REVIEWasc-submission-health403 FORBIDDEN_ERROR有关当前提供方的要求,请参阅 Apple 的活动设置指南。