Hi Alaa,
Thank you for reaching out to the Google Ads API support team.
Please be informed that I have removed your response from the forums as it contains the PII information.
I understand that you are encountering the field error 'REQUIRED' when trying to create a responsive display ad via the Google Ads API.
I would recommend you refer to this guide on '
Creating Responsive Display Ads' for information on the required fields that you need to populate to create a responsive display ad. From the request we fetched using the request-id that you provided, I could see that you have not set the '
long_headline' field, which is required. This is the reason you are encountering the field error.
I tried to create a responsive display ad on my end using the below request and was successful. Refer to the request and response logs:
Request:
POST https://googleads.googleapis.com/v18/customers/{customer ID}/adGroupAds:mutate?key=[YOUR_API_KEY] HTTP/1.1
developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json
{
"operations": [
{
"create": {
"status": "ENABLED",
"ad": {
"responsiveDisplayAd": {
"marketingImages": [
{
"asset": "customers/{customer ID}/assets/{asset ID}"
}
],
"squareMarketingImages": [
{
"asset": "customers/{customer ID}/assets/{asset ID}"
}
],
"logoImages": [
{
"asset": "customers/{customer ID}/assets/{asset ID}"
}
],
"squareLogoImages": [
{
"asset": "customers/{customer ID}/assets/{asset ID}"
}
],
"headlines": [
{
"text": "Test Headline 1"
}
],
"longHeadline": {
"text": "Test Headline 1 Test Headline 1 Test Headline 1"
},
"descriptions": [
{
"text": "Huge savings on your favorite products."
}
],
"businessName": "Overzaki"
},
"finalUrls": [
"https://www.overzaki.com"
],
"name": "YouTube Video Ad1234"
},
"adGroup": "customers/{customer ID}/adGroups/{ad group ID)"
}
}
]
}
Response:
{
"results": [
{
"resourceName": "customers/{customer ID}/adGroupAds/{ad group ID}~{ad ID}"
}
]
}
I hope this helps.
