Skip to main content

Photo validation rules for presence, ID requirements, aspect ratio, dimensions, and Apple Maps compliance

Photo

PhotoMustBePresent

DefinitionSeverityAPISampleMode
Validate that photo is present
VIOLATION
POST_AND_PUT
Link
S

PhotoIdMustBePresent

DefinitionSeverityAPISampleMode
Validate that Photo id is present
VIOLATION
POST_AND_PUT
Link
S

PhotoIdMustBeResolvable

DefinitionSeverityAPISampleMode
Validate that Photo id is resolvable to an Apple-generated ID
VIOLATION
POST_AND_PUT
S

PhotoIdMustNotBeEmpty

DefinitionSeverityAPISampleMode
Validate that id is not an empty string
VIOLATION
POST_AND_PUT
S

ReferencedPhotoMustHaveRequiredAspectRatio

DefinitionSeverityAPISampleMode
Validate that referenced Photo's aspect ratio is 1:1 (exactly square)
VIOLATION
POST_AND_PUT
Link
S

ReferencedPhotoMustHaveRequiredSize

DefinitionSeverityAPISampleMode
Validate that referenced Photo's dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

ReferencedPhotoMustHaveRequiredFileNameExtension

DefinitionSeverityAPISampleMode
Validate that filename extension is valid
VIOLATION
POST_AND_PUT
Link
S

ShowcasePhotoRejected

DefinitionSeverityAPISampleMode
Validate that a showcase creative's referenced photo/image satisfies Apple Maps requirements
VIOLATION
POST_AND_PUT
A
Example Validation Report
{
"validationReports": [
{
"code": "VALIDATION__ShowcasePhotoRejected",
"severity": "VIOLATION",
"message": "The photo doesn't meet the requirements for Apple Business."
}
]
}