RE: facing problem with discovery ad

26 views
Skip to first unread message

Google Ads API Forum Advisor

unread,
Jan 20, 2025, 4:21:03 AM1/20/25
to alaaal...@gmail.com, adwor...@googlegroups.com
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.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGwbl:ref" (ADR-00284944)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5 



Reply all
Reply to author
Forward
0 new messages