Create Asset Group with 3 headlines via API, but still failed due to NOT_ENOUGH_HEADLINE_ASSET

378 views
Skip to first unread message

Nga Ngo

unread,
May 31, 2024, 4:56:01 AM5/31/24
to Google Ads API and AdWords API Forum
I tried creating an asset group of performance max campaign via  https://googleads.googleapis.com/v16/customers/5185.../googleAds:mutate  but it failed due to error <NOT_ENOUGH_HEADLINE_ASSET>

I added 3 headlines, 1 with 15 characters or less based on the guide from https://developers.google.com/google-ads/api/performance-max/asset-requirements?hl=en.

This is the error:
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "errors": [
                    {
                        "errorCode": {
                            "assetGroupError": "NOT_ENOUGH_HEADLINE_ASSET"
                        },
                        "message": "Headline asset for a valid asset group is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: headline"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "mutate_operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "asset_group_operation"
                                }
                            ]
                        }
                    },
...
                ],
                "requestId": "uI8p-0Lju5mOPztCUf6uug"
            }
        ]
    }
}

This is the body:
{
  "mutateOperations":[
  {
    "assetGroupOperation": {
      "create": {
        "name": "Asset group 1",
        "campaign": "customers/5185432.../campaigns/21337629...",
        "status": "ENABLED",
        "finalUrls": [
          "..."
        ],
        "resourceName": "customers/5185432.../assetGroups/-1"
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "type": "TEXT",
        "textAsset": {
          "text": "Stort utbud av begagnade båtar"
        },
        "resourceName": "customers/5185432.../assets/-2"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "fieldType": "HEADLINE",
        "assetGroup": "customers/5185432.../assetGroups/-1",
        "asset": "customers/5185432.../assets/-2"
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "type": "TEXT",
        "textAsset": {
          "text": "Sugen på begagnad båt?"
        },
        "resourceName": "customers/5185432.../assets/-3"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "fieldType": "HEADLINE",
        "assetGroup": "customers/5185432.../assetGroups/-1",
        "asset": "customers/5185432.../assets/-3"
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "type": "TEXT",
        "textAsset": {
          "text": "Begagnad båtar"
        },
        "resourceName": "customers/5185432.../assets/-4"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "fieldType": "HEADLINE",
        "assetGroup": "customers/5185432.../assetGroups/-1",
        "asset": "customers/5185432.../assets/-4"
      }
    }
  }
]
}
Please advise. Thanks


Google Ads API Forum Advisor

unread,
May 31, 2024, 11:28:48 AM5/31/24
to zorro...@gmail.com, adwor...@googlegroups.com
Hi, 

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

By reviewing your query, I understand that you are getting the error "NOT_ENOUGH_HEADLINE_ASSET". It means that there are not enough headline assets for a valid asset group. These errors might occur when asset requirements are not met. Please follow this guide Ensure minimum asset requirements are met. Note that each Performance Max campaign requires an initial minimum set of assets. Also, performance Max campaigns with Merchant Center accounts linked to them require a minimum of 3 headline assets for each asset group. This is because Performance Max uses these headlines to generate ads for your products. To fix the error, you need to add at least 3 headline assets to the asset group in your campaign. 

However, If you are still facing the same issue, please provide us the complete API logs (request and response with request-id and request header).

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ9MU:ref" (ADR-00237317)

Thanks,
 
Google Logo Google Ads API Team


Nga Ngo

unread,
May 31, 2024, 7:35:46 PM5/31/24
to Google Ads API and AdWords API Forum
I replied you privately with the log from Postman. Please check

Google Ads API Forum Advisor

unread,
Jun 3, 2024, 12:55:33 AM6/3/24
to zorro...@gmail.com, adwor...@googlegroups.com
Hi,

Upon checking the logs, I could see that you have passed only the 3 headlines while creating asset groups. Kindly note these assets LONG_HEADLINE, DESCRIPTION, BUSINESS_NAME, MARKETING_IMAGE, SQUARE_MARKETING_IMAGE, LOGO are mandatory and you are not passing these in your request body. So, I would recommend you to pass all these assets and try making the API request. You can refer to the Required assets documentation for more information. If you still encounters any issues even after passing all the assets, then you can share the complete updated API logs (request and response with request-id and request header) for further assistance. 

Nga Ngo

unread,
Jun 3, 2024, 5:52:24 AM6/3/24
to Google Ads API and AdWords API Forum
Hi, 
I don't include other required assets in this post because I don't meet errors related to  LONG_HEADLINE, BUSINESS NAME, .. I just want you to explain why I met HEADLINE errors although I included 3 eligible headlines. I even tried these 3 headlines via Performance Max campaign asset group UI and met no problem.

Nga Ngo

unread,
Jun 3, 2024, 5:52:24 AM6/3/24
to Google Ads API and AdWords API Forum
Anyway for further investigation, I sent you the log from Postman with all required assets in the body. Please check.

Google Ads API Forum Advisor

unread,
Jun 4, 2024, 4:56:50 PM6/4/24
to zorro...@gmail.com, adwor...@googlegroups.com
Hi,

In order to debug your issue further, could you please provide the uncropped UI screenshot of the three headline assets that you are able to add to the Pmax campaign via the UI?

You can send the details via Reply privately to the author option, or direct private reply to this email.
Reply all
Reply to author
Forward
0 new messages