An error is reported when creating an asset group under the pmax advertising campaign

1,142 views
Skip to first unread message

庞金民·

unread,
Jul 26, 2023, 6:56:05 AM7/26/23
to Google Ads API and AdWords API Forum
An error is reported when creating an asset group under the pmax advertising campaign. I have no problem creating a pmax advertising and asset group in the background interface, but I follow the steps below to create a pmax advertising campaign through the google ads api, but this error occurs. I can’t find the relevant information. solution, the steps are as follows:
1. Create a pmax campaign
2. Create text assets and image assets
3. Create an asset group based on the pmax campaign id (failure)
4. Bind text asset and image asset to asset group (cannot be executed here)
Fault: errors {
  error_code {
    asset_group_error: NOT_ENOUGH_HEADLINE_ASSET
  }
  message: "Headline asset for a valid asset group is not enough."
  trigger {
    string_value: "Asset type: headline"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
  }
}
errors {
  error_code {
    asset_group_error: NOT_ENOUGH_LONG_HEADLINE_ASSET
  }
  message: "Long headline asset for a valid asset group is not enough."
  trigger {
    string_value: "Asset type: long headline"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
  }
}
errors {
  error_code {
    asset_group_error: NOT_ENOUGH_DESCRIPTION_ASSET
  }
  message: "Description headline asset for a valid asset group is not enough."
  trigger {
    string_value: "Asset type: description"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
  }
}
errors {
  error_code {
    asset_group_error: NOT_ENOUGH_BUSINESS_NAME_ASSET
  }
  message: "Business name asset for a valid asset group is not enough."
  trigger {
    string_value: "Asset type: business name"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
  }
}
errors {
  error_code {
    asset_group_error: NOT_ENOUGH_MARKETING_IM

Google Ads API Forum Advisor

unread,
Jul 26, 2023, 10:49:48 AM7/26/23
to king...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Team. I hope you are doing well today.

With regards to your concern, upon checking the provided response logs with our team, I can see that you’ve encountered following errors on your request:

  • NOT_ENOUGH_HEADLINE_ASSET
  • NOT_ENOUGH_LONG_HEADLINE_ASSET
  • NOT_ENOUGH_DESCRIPTION_ASSET
  • NOT_ENOUGH_BUSINESS_NAME_ASSET
  • NOT_ENOUGH_MARKETING_IMAGE_ASSET


For the above errors, you may refer to this guide (https://developers.google.com/google-ads/api/reference/rpc/v13/AssetGroupErrorEnum.AssetGroupError) on why it's being thrown. 

Also, you may see how to link “assets to asset groups” using the interactive guide for Performance Max campaigns here (https://developers.google.com/google-ads/api/interactive-guides/performance-max?url=%2Fpmax%2FfullExample%2FassetGroupAssets). To successfully create the AssetGroupAssets with PMAX by creating assets first, then using those asset resource names in the assetGroupAssetOperation using REST API.

If you want to try using a client library, then you may use the sample working example to create retail PMAX here (https://developers.google.com/google-ads/api/samples/add-performance-max-retail-campaign).

For additional information, you may also see the Assets in a Performance Max Campaign: Ensure minimum asset requirements are met documentation and guidelines (https://developers.google.com/google-ads/api/docs/performance-max/assets#ensure_minimum_asset_requirements_are_met).

Let us know how it goes after following the above guidelines.

Have a great day.
 

This message is in relation to case "ref:_00D1U1174p._5004Q2nSlkt:ref"

Thanks,

 
Google Logo Google Ads API Team


庞金民·

unread,
Jul 26, 2023, 10:06:02 PM7/26/23
to Google Ads API and AdWords API Forum

Hello, thank you very much for your reply. I read the documents and links you replied above, but I still haven’t found a solution. My question is, regarding the headline asset on the account, I need to create a text asset, and then create an asset group , and then create a headline asset with the text asset and asset group. However, this is a sequential problem. When I create an asset group, my account is required to have a headline asset. Otherwise, the creation fails. How do I create an asset group? Then What about creating headline assets?

Google Ads API Forum Advisor

unread,
Jul 27, 2023, 5:15:39 AM7/27/23
to king...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for the reply.

Could you confirm if you already consider if this minimum asset requirements (https://developers.google.com/google-ads/api/docs/performance-max/assets#ensure_minimum_asset_requirements_are_met) are met when you are creating asset in performance max campaign? If still not then you may check it out this first.

Moving forward, for our team to also further check this and provide appropriate recommendations to you, could you please provide us with the complete API logs (request, response, and request-id) generated on your end?

Note that logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check here and click your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output. 

You may then send the requested information via the Reply privately to the author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

庞金民·

unread,
Jul 31, 2023, 3:03:38 AM7/31/23
to Google Ads API and AdWords API Forum

Hello, I have solved the above problem, but I have encountered a new problem. After I successfully created the asset group in the above way, I got the resource name of the asset group. I want to add some new elements to the asset group. For example, sitelink asset, I successfully created a sitelink asset, and then used asset group asset service to create a sitelink asset, but reported the following error. I want to know what is the reason, because I can't find a solution to this error on google.

Fault: errors {
  error_code {
    asset_link_error: UNSUPPORTED_FIELD_TYPE
  }
  message: "The given field type is not supported to be added directly through asset links."
  trigger {
    string_value: "SITELINK"

  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "field_type"
    }
  }
}
request_id: "5v1tI3rDT8jnmbrkW_24UQ"

Google Ads API Forum Advisor

unread,
Jul 31, 2023, 8:39:25 AM7/31/23
to king...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for getting back to us.

It appears that you have encountered UNSUPPORTED_FIELD_TYPE error which is an asset link error (https://developers.google.com/google-ads/api/reference/rpc/v14/AssetLinkErrorEnum.AssetLinkError#unsupported_field_type).  With this, could you provide us with the complete API logs (request, response, request-id and request header) generated on your end? This is so we could further check and provide more appropriate guidance. 

You may then send the requested information privately via the Reply to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com  alias instead.

Reference Links:

san...@knorex.com

unread,
Oct 17, 2023, 2:40:21 AM10/17/23
to Google Ads API and AdWords API Forum
Hi,

I have the same problem as getting the error "Headline asset for a valid asset group is not enough." when creating a new Asset group.
My account id: 9841065000
My campaign id: 20437451884

Note that we can create a new Asset group without Headlines in another type of Performance Max, campaign id: 20671574339

The difference between 2 campaigns is that one has a Merchant account, while the other has no Merchant account.

Martin

Google Ads API Forum Advisor

unread,
Oct 17, 2023, 10:29:14 AM10/17/23
to san...@knorex.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

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. Kindly note that Google Ads API mirrors UI. Can you also confirm if the same behavior is observed in the UI?

If yes, kindly provide us with the uncropped screenshot of the UI and updated complete API logs (request and response with request-id and request header) generated at your end to assist you better.

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.!5004Q02nSlkt:ref"


Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages