Unsuccessful to create ad_group_ad

22 views
Skip to first unread message

Segev Solomon

unread,
Jun 19, 2024, 12:27:24 PM6/19/24
to Google Ads API and AdWords API Forum
Hi,
Im using Make.com to (Google Ads Campaign Management application) to create an API request to create an ad_group_ad.
I created a shared_bedget, campagin and ad_group before i tried to create an ad_group_ad.
this is the API call I did:
    { "type": "list", "fields": { "status": "ENABLED", "ad.name": "test - 15177eaa-5791-4224-a534-405f659990f9", "ad_group": "customers/8385664870/adGroups/163623219253", "ad.final_urls": "https://www.example.com/", "ad.display_url": "https://example.com", "ad.responsive_display_ad.headlines": "responsive display ad HEADLINE ", "ad.responsive_display_ad.descriptions": "responsive display ad descriptions", "ad.responsive_display_ad.business_name": "business name", "ad.responsive_display_ad.long_headline": "responsive display ad long headline", "ad.responsive_display_ad.marketing_images": "https://promoter.co.il/content/images/5809f581-ee43-4430-b297-cab7725465c1.png", "ad.responsive_display_ad.control_spec.enable_autogen_video": false }, "_version": "v16", "clientId": "83XXXXX870", "resource": "ad_group_ad" }

and this is the error I got:
{
   "error":{
      "code":400,
      "message":"Invalid value at 'operations[0].create.ad.responsive_display_ad.headlines' (type.googleapis.com/google.ads.googleads.v16.common.AdTextAsset), \"responsive display ad  HEADLINE \"\nInvalid value at 'operations[0].create.ad.responsive_display_ad.descriptions' (type.googleapis.com/google.ads.googleads.v16.common.AdTextAsset), \"responsive display ad  descriptions\"\nInvalid value at 'operations[0].create.ad.responsive_display_ad.long_headline' (type.googleapis.com/google.ads.googleads.v16.common.AdTextAsset), \"responsive display ad long headline\"\nInvalid value at 'operations[0].create.ad.responsive_display_ad.marketing_images' (type.googleapis.com/google.ads.googleads.v16.common.AdImageAsset), \"https://promoter.co.il/content/images/5809f581-ee43-4430-b297-cab7725465c1.png\"",
      "status":"INVALID_ARGUMENT",
      "details":[
         {
            "@type":"type.googleapis.com/google.rpc.BadRequest",
            "fieldViolations":[
               {
                  "field":"operations[0].create.ad.responsive_display_ad.headlines",
                  "description":"Invalid value at 'operations[0].create.ad.responsive_display_ad.headlines' (type.googleapis.com/google.ads.googleads.v16.common.AdTextAsset), \"responsive display ad  HEADLINE \""
               },
               {
                  "field":"operations[0].create.ad.responsive_display_ad.descriptions",
                  "description":"Invalid value at 'operations[0].create.ad.responsive_display_ad.descriptions' (type.googleapis.com/google.ads.googleads.v16.common.AdTextAsset), \"responsive display ad  descriptions\""
               },
               {
                  "field":"operations[0].create.ad.responsive_display_ad.long_headline",
                  "description":"Invalid value at 'operations[0].create.ad.responsive_display_ad.long_headline' (type.googleapis.com/google.ads.googleads.v16.common.AdTextAsset), \"responsive display ad long headline\""
               },
               {
                  "field":"operations[0].create.ad.responsive_display_ad.marketing_images",
                  "description":"Invalid value at 'operations[0].create.ad.responsive_display_ad.marketing_images' (type.googleapis.com/google.ads.googleads.v16.common.AdImageAsset), \"https://promoter.co.il/content/images/5809f581-ee43-4430-b297-cab7725465c1.png\""
               }
            ]
         }
      ]
   }
}

I dont understand why I got this error? Can you help me to understand please?

Google Ads API Forum Advisor

unread,
Jun 19, 2024, 5:16:17 PM6/19/24
to segev....@payme.io, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

As per the provided information, I could see that you have provided string values to the mentioned below fields in your request body.
  • ad.responsive_display_ad.headlines
  • ad.responsive_display_ad.descriptions
  • ad.responsive_display_ad.long_headline
  • ad.responsive_display_ad.marketing_images
According to the Google Ads API documentation, it appears that the text field inside the headlinesdescriptions, and long_headline takes the string value. Also, asset resource name should be provided for marketing_images field instead of string value containing url of image.

I would recommend that you build your request with this REST API interface to get a better understanding on the request format.

I hope this helps. If you have any more queries, please feel free to get back to us.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJP1A:ref" (ADR-00242605)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 


Reply all
Reply to author
Forward
0 new messages