ASSET_DATA_IS_MISSING error on create text_asset

54 views
Skip to first unread message

Eleni Lianou

unread,
Dec 9, 2020, 6:32:29 AM12/9/20
to AdWords API and Google Ads API Forum
Hello, 
I am trying to create a text asset using the REST interface and I get the error ASSET_DATA_IS_MISSING
Here's my request:
{"operations":[{"create":{"text_asset":{"text":"Test text"}}}]}

and here's the error I get:
400 - {"error":{"code":400,"message":"Request contains an invalid argument.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure","errors":[{"errorCode":{"assetError":"ASSET_DATA_IS_MISSING"},"message":"The Asset.asset_data oneof is empty.","location":{"fieldPathElements":[{"fieldName":"operations","index":0}]}}]}]}}

Can you please help me? Thank you,
Eleni

Google Ads API Forum Advisor Prod

unread,
Dec 10, 2020, 10:56:02 PM12/10/20
to eleni....@gmail.com, adwor...@googlegroups.com
Hi Eleni,

Thanks for posting your concern.

You may construct your API request for creating text asset using REST by following this guide and this link.

However, we also recommend using the Google-supported client libraries as they will construct this at the backend on your behalf.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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