i am trying the curl below with the query to get all the assets and asset 
group information under a campapign, but getting an error everytime 

curl --location 
'https://googleads.googleapis.com/v16/customers/8702376.../googleAds:search' 
\
--header 'Content-Type: application/json' \
--header 'developer-token: 0-4PjaUzBnyeiqsEkhb.,..' \
--header 'login-customer-id: 8663393...' \
--header 'Authorization: Bearer 
ya29.a0AcM612y4lFoPfLi92ip1gV02KxFGeLDNPyppW3l3BXjXDM6zs7OgUp_t3eRU9GHJE-QU-dmWEtXuGqj1XTjpfjjpbleDGz0ZADm-VMpGRM4jiw6BulSr2AV_FeOy1f7UchVW8YClBWtNVd2ZVV7DhFC-h1sWpFLojI4TfI_xt2QaCgYKAfISARMSFQHGX2MiH5O6RLCadrM83djuCxekRA0...'
 
\
--data '{
  "query": "SELECT asset.id, asset.name, asset.type, asset.text_asset.text, 
asset.image_asset.full_size.url, asset.youtube_video_asset.youtube_video_id 
FROM asset_group_asset WHERE asset_group_asset.asset_group IN (SELECT 
asset_group.id FROM asset_group WHERE asset_group.campaign = 
'\''customers/8702376.../campaigns/21672892...'\'')"
}
'

 the error that i am getting is as shown below :

{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"queryError": "BAD_VALUE"
},
"message": "Error in WHERE clause: invalid value asset_group.id."
}
],
"requestId": "tJS8NgQapJKbPgITHKC17Q"
}
]
}
} please tell me the correct query to fetch all the assets, asset group and 
asset group asset information using a campaign resource.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/69f09887-555c-4034-babe-ec3d8c360797n%40googlegroups.com.
  • tr... Dushyant
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to