Skip to main content

Sample Inputs

Descriptions

DescriptionsAndPhotoLocaleShouldMatch

Scenario One
Photo captions locale matches a listed description's locale (en-US)

Pass ScenarioFailure Scenario
Sample Input
{
"showcaseCreativeDetails": {
"contents": [
{
"placement": "HEADLINE",
"descriptions": [
{
"locale": "en-US",
"text": "Happy New Year!"
}
]
},
{
"placement": "BODY",
"descriptions": [
{
"locale": "en-US",
"text": "Ring in the New Year with our new flavors!"
}
]
}
],
"callToAction": "WEBSITE",
"photo": {
"id": "9467895078742654949",
"captions": [
{
"altText": "Storefront and outdoor patio with tables and chairs",
"locale": "en-US"
}
]
}
}
}

Scenario Two
en is the primary language tag in the photo captions locale. This value is matched in a listed description's locale (en-US)

Pass ScenarioFailure Scenario
Sample Input
{
"showcaseCreativeDetails": {
"contents": [
{
"placement": "HEADLINE",
"descriptions": [
{
"locale": "en-US",
"text": "Happy New Year!"
}
]
},
{
"placement": "BODY",
"descriptions": [
{
"locale": "en-US",
"text": "Ring in the New Year with our new flavors!"
}
]
}
],
"callToAction": "WEBSITE",
"photo": {
"id": "9467895078742654949",
"captions": [
{
"altText": "Storefront and outdoor patio with tables and chairs",
"locale": "en"
}
]
}
}
}

Scenario Three
de is the primary language tag in the photo captions locale. This value does not match any listed primary language tag among the descriptions' locales. It is unclear if the intended audience for the creative are speakers of German or English.

Pass ScenarioFailure Scenario
Sample Input
{
"showcaseCreativeDetails": {
"contents": [
{
"placement": "HEADLINE",
"descriptions": [
{
"locale": "en-US",
"text": "Happy New Year!"
}
]
},
{
"placement": "BODY",
"descriptions": [
{
"locale": "en-US",
"text": "Ring in the New Year with our new flavors!"
}
]
}
],
"callToAction": "WEBSITE",
"photo": {
"id": "9467895078742654949",
"captions": [
{
"altText": "Schaufenster und Außenterrasse mit Tischen und Stühlen",
"locale": "de"
}
]
}
}
}

Scenario Four
Photo has no captions. The validation's precondition is not satisfied.

Pass ScenarioFailure Scenario
Sample Input
{
"showcaseCreativeDetails": {
"contents": [
{
"placement": "HEADLINE",
"descriptions": [
{
"locale": "en-US",
"text": "Happy New Year!"
}
]
},
{
"placement": "BODY",
"descriptions": [
{
"locale": "en-US",
"text": "Ring in the New Year with our new flavors!"
}
]
}
],
"callToAction": "WEBSITE",
"photo": {
"id": "9467895078742654949"
}
}
}

Placement

ContentsPlacementBodyMustBePresent

"BODY" is not present.

Pass ScenarioFailure Scenario
Sample Input
{
"showcaseCreativeDetails": {
"contents": [
{
"placement": "HEADLINE",
"descriptions": [
{
"locale": "en-US",
"text": "Happy New Year!"
}
]
}
],
"callToAction": "WEBSITE",
"photo": {
"id": "9467895078742654949",
"captions": [
{
"altText": "Storefront and outdoor patio with tables and chairs",
"locale": "en-US"
}
]
}
}
}

DescriptionsLocaleAmongDifferentPlacementsMustMatch

"HEADLINE" is not paired with a "BODY" with matching locale.

Pass ScenarioFailure Scenario
Sample Input
{
"showcaseCreativeDetails": {
"contents": [
{
"placement": "HEADLINE",
"descriptions": [
{
"locale": "en-US",
"text": "Happy New Year!"
}
]
},
{
"placement": "BODY",
"descriptions": [
{
"locale": "es-US",
"text": "Ring in the New Year with our new flavors!"
}
]
}
],
"callToAction": "WEBSITE",
"photo": {
"id": "9467895078742654949",
"captions": [
{
"altText": "Storefront and and outdoor patio with tables and chairs",
"locale": "en-US"
}
]
}
}
}