ERROR: Marketing image asset for a valid asset group is not enough.

188 views
Skip to first unread message

surya sun

unread,
May 30, 2024, 8:49:34 AM5/30/24
to Google Ads API and AdWords API Forum
Hi,

I am trying to clone an existing PMax campaign through Google Ads API by using all of its values in creating a new PMax campaign, including asset groups if there's any. When I am trying to duplicate the asset groups of the existing campaign and link it to the new campaign, I am fetching all the asset details of the existing campaign from the asset group asset table and using it to create a new asset resource name and asset operation, just like this in github repo. But I am getting errors in mutating asset group operations.

   asset_group_error: NOT_ENOUGH_MARKETING_IMAGE_ASSET
  }
  message: "Marketing image asset for a valid asset group is not enough."
  trigger {
    string_value: "Asset type: marketing image"
  }
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 5
    }
    field_path_elements {
      field_name: "asset_group_asset_operation"
    }
  }
}
errors {
  error_code {
    asset_group_error: NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET
  }
  message: "Square marketing image asset for a valid asset group is not enough."
  trigger {
    string_value: "Asset type: square marketing image"
  }
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 5
    }
    field_path_elements {
      field_name: "asset_group_asset_operation"
    }
  }
}
errors {
  error_code {
    asset_group_error: NOT_ENOUGH_LOGO_ASSET
  }
  message: "Logo asset for a valid asset group is not enough."
  trigger {
    string_value: "Asset type: logo"
  }
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 5
    }
    field_path_elements {
      field_name: "asset_group_asset_operation"
    }
  }

For your information, I am using exactly the values retrieved from assetgroupasset table in this query builder link. For ex, the image full size, image height, width, url etc. The below is the asset field type and the count retrieved from GAds for an existing campaign and an asset group.

asset_field_type:
BUSINESS_NAME - 1
DESCRIPTION - 5
HEADLINE -15
LANDSCAPE_LOGO - 1
LOGO - 4
LONG_HEADLINE -   5
MARKETING_IMAGE - 5
PORTRAIT_MARKETING_IMAGE - 1
SQUARE_MARKETING_IMAGE - 14
YOUTUBE_VIDEO - 5

Kindly give me the reason why I am not able to duplicate asset group using the same asset details of an existing asset group.
Thank you.

Regards,
Ayang

Google Ads API Forum Advisor

unread,
May 30, 2024, 9:55:07 AM5/30/24
to surya.s...@gmail.com, adwor...@googlegroups.com
Hi Ayang, 

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

Upon checking your concern, I understand that you are getting an error "asset_group_error" while making the request to MutateAssetGroups. Kindly note that the AssetGroup within a Performance Max campaign necessitates an initial minimum assortment of assets. These assets may comprise pre-existing ones utilized in other campaigns or newly created assets tailored specifically for an AssetGroup within a Performance Max campaign. These errors might occur when asset requirements are not met. Kindly follow this guide to Ensure minimum asset requirements are met.

Kindly note that you have not shared the complete API logs as it doesn't contain the request body of what you are passing in your API request. In order to further investigate your issue, kindly share the complete updated API logs (request and response logs with request-id and request header) generated at your end to better assist you further. 

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.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ8am:ref" (ADR-00237200)

Thanks,
 
Google Logo Google Ads API Team


surya sun

unread,
Jun 2, 2024, 9:37:21 AM6/2/24
to Google Ads API and AdWords API Forum
Hi,

I am sending the response error and request id of the API call in the attached file with this mail.

As I mentioned in my first mail. I am trying to copy an existing asset group by using all the asset details of the asset group and creating a new asset resource name and linking to the new duplicated asset group. But I am getting "NOT ENOUGH" error message. Please note that I am using 20 image assets, that I got the details from an existing asset group. I am not able to understand why some of these images are not accepted as it should be for the new asset group. Kindly please resolve my issue soon.  

Thank you.
pmax_error.docx
Reply all
Reply to author
Forward
0 new messages