Delete or update exisiting text assets (headline, long headline, description) in asset groups for performance max campaings

102 views
Skip to first unread message

Gavin Groeneveld

unread,
Feb 3, 2025, 5:35:06 AM2/3/25
to Google Ads Scripts Forum
Hi,

We need to change the text assets for our Pmax campaigns regularly. However it doesn't look like I am able to delete text assets or update them, but only able to add new text assets. However, continuously creating new asset groups also isn't preferable, because of a limit of 100 assetgroups per Pmax campaign.

Is it possible to change text assets in assetgroups for Pmax or is the only alternative to add new Pmax asset groups?


Google Ads Scripts Forum

unread,
Feb 3, 2025, 5:41:05 PM2/3/25
to Google Ads Scripts Forum

Hi,

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

Please be informed that currently, it is not possible to update the asset text of a Performance Max assets. It is only possible to change names and remove assets by using the setName and removeAsset methods. For more information on available methods in Performance Max assets, I would recommend that you refer to the AdsApp.​AssetGroup document.

Thanks,
Google Ads Scripts support team

Hudson

unread,
May 21, 2025, 4:28:34 AM5/21/25
to Google Ads Scripts Forum
Dear Google Ads Scripts Support Team,

 I try to use the removeAsset function to remove assets from a Performance Max campaign asset group. However, the function does not seem to be working as expected, and I am encountering an error during execution.

I have attached the relevant code snippet and a screenshot of the error message for your review.

removeAssetFromAssetGroup('235514251098', 'AD_IMAGE', currentAssetGrp);

function removeAssetFromAssetGroup(assetId, fieldType, assetGroup){
var currentAsset = AdsApp.adAssets().assets().withIds([assetId]).get().next();
assetGroup.removeAsset(currentAsset, fieldType);
}

Please let me know if there’s a recommended workaround or if any additional permissions or conditions must be met for removeAsset to work correctly.

Looking forward to your assistance.


Screenshot 2025-05-21 at 1.40.28 PM.png

Google Ads Scripts Forum

unread,
May 21, 2025, 11:56:22 AM5/21/25
to Google Ads Scripts Forum

Hi,

In order to investigate your issue further, could you please provide us with the following details?

  • Google Ads account ID/CID
  • Name of the affected script
  • Shareable spreadsheet link if you are using any in the script. You may refer to this article to share a file publicly

You can share the requested details via Reply privately to the author option or a direct private reply to this email.

Thanks,
Google Ads Scripts team
Reply all
Reply to author
Forward
0 new messages