Cant get asset.text_asset.text from Asset Resource

103 views
Skip to first unread message

Reggie Pasco

unread,
Sep 10, 2019, 7:25:12 AM9/10/19
to AdWords API and Google Ads API Forum
Hi, 

Im trying to get the AssetID of the my TextAsset/AdTextAsset I added on my Responsive Ads.
But the field asset.text_asset.text from the asset Resource is not returning:

aaa.png







Here is the script that I used for the query:

GoogleAdsServiceClient googleAdsService = client.GetService(Services.V1.GoogleAdsService);
string query = $@"SELECT asset.id, asset.name, asset.resource_name, asset.type, asset.text_asset.text FROM asset WHERE asset.type = TEXT";
PagedEnumerable<SearchGoogleAdsResponse, GoogleAdsRow> result = googleAdsService.Search(customerID, query);
foreach (GoogleAdsRow row in result)
{
...
}


Unlike the ImageAsset and YoutubeVideoAsset, how can I retrieve the ResourceName (or even just the AssetID) of Headlines and Descriptions assets upon creation?
Please advise. 

Thanks

Google Ads API Forum Advisor Prod

unread,
Sep 10, 2019, 4:25:29 PM9/10/19
to regi...@surefirelocal.com, adwor...@googlegroups.com

Hi Reggie,

Thank you for reaching support. I tried running the below report query and was successfully able to get the asset.text_asset.text value for the TextAsset/AdTextAsset added on the responsive ads in my account. Also, I was successfully able to retrieve the resource name and asset Id of headlines and descriptions assets added upon creation of the responsive display ads. Attached the logs for your reference. If you are still facing the issue, could you please share the complete request and response logs for me to investigate further by enabling PHP logging? You could enable the PHP logging by following this guide for PHP client library. Please use Reply privately to author option while sharing the details.
"SELECT asset.name, asset.id, asset.resource_name, asset.type, asset.text_asset.text FROM asset WHERE asset.type = 'TEXT' LIMIT 100"

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UHGGej:ref
logs

Reginald Chris Pasco

unread,
Sep 11, 2019, 6:41:39 AM9/11/19
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Thank you for your assistance. 
Reply all
Reply to author
Forward
0 new messages