How do you use the Google Ads API to update an asset that has the TextAsset type?

317 views
Skip to first unread message

Thinh Nguyen

unread,
Jun 10, 2022, 8:25:58 PM6/10/22
to Google Ads API and AdWords API Forum
Hi everyone,

I had created a Performance Max campaign using the Google Ads API client library for PHP.

I want to update a headline, but I can't.

It displays an error when I try to update it.

"Field 'text_asset.text' cannot be modified by the 'UPDATE' operation."

  1. Please guide me on how to update it.
  2. Why is Immutable. A text asset ?
  3. I can only remove that Asset and then create an Asset and create an AssetGroupAsset. What will be affected by any problems caused by this way?
Thank you very much!

Google Ads API Forum Advisor

unread,
Jun 13, 2022, 1:45:04 AM6/13/22
to thinhngu...@gmail.com, adwor...@googlegroups.com

Hi Nguyen,
 

Thanks for reaching out to the Google Ads API Support team.
 

With regards to your concern, you mentioned "It displays an error when I try to update it." , so our team can better check your concern and provide guidance to all your questions, could you please provide the complete API logs (request and response with request-id) so that we can look into your concern and the error you encountered?
 

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.


Regards,

Google Logo
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2b6mFz:ref

Thinh Nguyen

unread,
Jun 14, 2022, 11:17:00 PM6/14/22
to Google Ads API and AdWords API Forum
Hi Support team,

I had attached json files (request, response with request-id) and a screenshot.

Please check again for me.

Thank you and regards.

image_2022-06-15_100418902.png
request.json
response.json

Google Ads API Forum Advisor

unread,
Jun 15, 2022, 4:49:24 AM6/15/22
to thinhngu...@gmail.com, adwor...@googlegroups.com
Hi Nguyen,

Thank you for providing requested information. Upon checking this scenario I can see that this is not possible because according to this document, the TextAsset object is immutable. Let me know if you have further questions.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2b6mFz:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Jun 16, 2022, 10:00:00 AM6/16/22
to thinhngu...@gmail.com, adwor...@googlegroups.com
Hi Nguyen, 

Thank you for getting back to us. 

First of all I want to inform you that I will delete your latest response as it contains generated logs on your end. Allow me to reiterate the description of the latest concern and you can see it below:

"Hi Support team,

Thank you for replying
I have a new question.
I created an asset group with a "PAUSED" status
But it does not work. Asset group status is still ENABLED

Please check again for me.

Thank you and regards."


Moving forward, upon checking the provided logs, it appears that there is an issue with the asset group where the status that you set is not the same as the response. With this, allow me to raise this issue to the rest of my team to investigate. 

Thinh Nguyen

unread,
Jun 16, 2022, 10:28:13 AM6/16/22
to Google Ads API and AdWords API Forum
Hi Support team,

I would appreciate your attention to this matter and I look forward to your response.

Thanks and regards

Google Ads API Forum Advisor

unread,
Aug 9, 2022, 9:51:19 AM8/9/22
to thinhngu...@gmail.com, adwor...@googlegroups.com
Hi Thinh,

Could you give this another try? 

Regards
Anash

ref:_00D1U1174p._5004Q2b6mFz:ref
Reply all
Reply to author
Forward
0 new messages