RE: ASSET_DATA_IS_MISSING error on create text_asset

2020-12-10 Thread Google Ads API Forum Advisor Prod
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,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q28oZOt:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/I-MVw0QL5PKE00PyD1KY5aQ-GqE_xZbBzIyQ%40sfdc.net.


ASSET_DATA_IS_MISSING error on create text_asset

2020-12-09 Thread Eleni Lianou
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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ec55604e-e743-4656-a0f6-e59729f90731n%40googlegroups.com.