Create Ad group ad DISCOVERY_CAROUSEL_AD: FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE error

51 views
Skip to first unread message

Nga Ngo

unread,
May 7, 2024, 8:41:11 PM5/7/24
to Google Ads API and AdWords API Forum
Hi,
I called https://googleads.googleapis.com/v16/customers/../googleAds:mutate via Postman and failed to create a ad group ad with error code FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE.

This is the body part that threw error:
{
      "assetOperation": {
        "create": {
          "resourceName": "customers/../assets/-5",
          "name": "Asset TEST2 #${RANDOM}",
          "type": "IMAGE",
          "imageAsset": {
            "data": "...base64value..."
          }
        }
      }
    },
{
      "assetOperation": {
        "create": {
          "resourceName": "customers/../assets/-6",
          "name": "Asset TEST2 #${RANDOM}",
          "type": "IMAGE",
          "imageAsset": {
            "data": "...base64value..."
          }
        }
      }
    },
    {
      "adGroupAdOperation": {
        "create": {
          "adGroup": "customers/../adGroups/-3",
          "status": "ENABLED",
          "ad": {
            "name": "Ad TEST2",
            "type": "DISCOVERY_CAROUSEL_AD",            
            "finalUrls": [
                "https://www..."
            ],
            "discoveryCarouselAd": {
                "businessName": "...",
                "logoImage": {
                    "asset": "customers/../assets/-7"
                },
                "headline": {
                    "text": "..."
                },
                "description": {
                    "text": "..."
                },
                "carouselCards": [
                    {
                        "asset": "customers/../assets/-5"
                    },
                    {
                        "asset": "customers/../assets/-6"
                    }
                ]
            }
          }
        }
      }
    }
Below is the response. Please advise. Thanks.
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "errors": [
                    {
                        "errorCode": {
                            "assetLinkError": "FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE"
                        },
                        "message": "The given asset's type and the specified field type are incompatible.",
                        "trigger": {
                            "int64Value": "138807277852"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "mutate_operations",
                                    "index": 8
                                },
                                {
                                    "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": "138707581647"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "mutate_operations",
                                    "index": 8
                                },
                                {
                                    "fieldName": "ad_group_ad_operation"
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "ad"
                                },
                                {
                                    "fieldName": "discovery_carousel_ad"
                                },
                                {
                                    "fieldName": "carousel_cards",
                                    "index": 1
                                },
                                {
                                    "fieldName": "asset"
                                }
                            ]
                        }
                    }
                ],
                "requestId": "RwuYbnhb8VzXvoXa6nlCsQ"
            }
        ]
    }
}

Google Ads API Forum Advisor

unread,
May 8, 2024, 12:09:25 AM5/8/24
to zorro...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I see that you have already raised this concern on another thread with the subject 'Create ad group criterion location: UNKNOWN error / The error code is not in this version / Trigger OWNED_AND_OPERATED', and we have already responded there for this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tIucZ:ref" (ADR-00234052)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages