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": [
            {
                "@type": 
"type.googleapis.com/google.ads.googleads.v16.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": "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"
            }
        ]
    }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a0f8d0d3-ddff-4caf-a314-ae965b4ccaf4n%40googlegroups.com.

Reply via email to