Hi Google Team! 
Could you please help me on this:
How can I get image asset data field - that one base64 encoded? I mean this:
params = {
"query": "SELECT asset.id, asset.name, asset.resource_name, asset.type, 
asset.image_asset.mime_type, asset.image_asset.data FROM asset WHERE 
asset.id = XXXXXXXXX"
}

url = 
'https://googleads.googleapis.com/v11/customers/XXXXXXX/googleAds:search' 
response = await aiohttp_session.post(url, json=params, headers=headers)
query without asset.image_asset.data works and return requested fields, but 
with data field it responds:
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": 
"type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "queryError": 
"PROHIBITED_FIELD_IN_SELECT_CLAUSE"
                        },
                        "message": "The following field may not be used in 
SELECT clause: 'asset.image_asset.data'."
                    }
                ],
                "requestId": "Zmal0VKtrZDYVQgFbM6CWA"
            }
        ]
    }
}

Request ID is "*Zmal0VKtrZDYVQgFbM6CWA*"
What select query should I have for this?
Thanks in advance!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/ff8955ef-eeaa-4c9a-919d-9316784f6cfcn%40googlegroups.com.

Reply via email to