Photo validation rules for presence, ID requirements, aspect ratio, dimensions, and Apple Maps compliance
Photo
PhotoMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that photo is present | Link |
PhotoIdMustBePresent
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that Photo id is present | Link |
PhotoIdMustBeResolvable
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that Photo id is resolvable to an Apple-generated ID |
PhotoIdMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that id is not an empty string |
ReferencedPhotoMustHaveRequiredAspectRatio
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that referenced Photo's aspect ratio is 1:1 (exactly square) | Link |
ReferencedPhotoMustHaveRequiredSize
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that referenced Photo's dimensions are within a permitted range | Link |
ReferencedPhotoMustHaveRequiredFileNameExtension
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that filename extension is valid | Link |
ShowcasePhotoRejected
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that a showcase creative's referenced photo/image satisfies Apple Maps requirements |
Example Validation Report
{
"validationReports": [
{
"code": "VALIDATION__ShowcasePhotoRejected",
"severity": "VIOLATION",
"message": "The photo doesn't meet the requirements for Apple Business."
}
]
}