Greetings Google Ads API Technical Support Team,
I'm trying to create Discovery Carousel Ads via the REST API.
I have created multiple image assets via the API already. The images I'm
trying to use are all 1200 px * 1200 px.
There are 2 questions from my side:
- does the extension of the image matter at all? It's uploaded with a
base64 string, I'm using both pang and jpg as extensions
- Why does the API call fail? Please check below the request and the
response.
- In short basically it says that the asset's type is not compatible
with the field's type. "The given asset's type and the specified field
type
are incompatible."
Thanks!
Adam
API Request
{
"mutateOperations": [
{
"adGroupAdOperation": {
"create": {
"adGroup": "customers/5810957480/adGroups/137501321958",
"status": "PAUSED",
"ad": {
"discoveryCarouselAd": {
"businessName": "Smartly.io API",
"headline": {
"text": "headline API"
},
"description": {
"text": "description API"
},
"logoImage": {
"asset":
"customers/5810957480/assets/39292148799"
},
"carouselCards": [
{
"asset":
"customers/5810957480/assets/39292888195"
},
{
"asset":
"customers/5810957480/assets/39292148799"
}
]
},
"finalUrls": [
"https://www.smartly.io/api"
]
}
}
}
}
]
}
API RESPONSE
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type":
"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"assetLinkError":
"FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE"
},
"message": "The given asset's type and the
specified field type are incompatible.",
"trigger": {
"int64Value": "39292888195"
},
"location": {
"fieldPathElements": [
{
"fieldName": "mutate_operations",
"index": 0
},
{
"fieldName": "ad_group_ad_operation"
},
{
"fieldName": "create"
},
{
"fieldName": "ad"
},
{
"fieldName": "discovery_carousel_ad"
},
{
"fieldName": "carousel_cards",
"index": 0
},
{
"fieldName": "asset"
}
]
}
},
{
"errorCode": {
"assetLinkError":
"FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE"
},
"message": "The given asset's type and the
specified field type are incompatible.",
"trigger": {
"int64Value": "39292148799"
},
"location": {
"fieldPathElements": [
{
"fieldName": "mutate_operations",
"index": 0
},
{
"fieldName": "ad_group_ad_operation"
},
{
"fieldName": "create"
},
{
"fieldName": "ad"
},
{
"fieldName": "discovery_carousel_ad"
},
{
"fieldName": "carousel_cards",
"index": 1
},
{
"fieldName": "asset"
}
]
}
}
],
"requestId": "oheKC29aXwfDbcDDqfvCjg"
}
]
}
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c093eb46-5ec8-4601-8889-3ade51034f49n%40googlegroups.com.