Hello Google Team

I am integrating PMAX campaigns into my application. 

I am in the process of creating the assetGroup by batch, but I am getting 
an error which is not very clear, as I am passing all the minimum required 
items, below I am leaving the mutateOperations.

RequestID: ptFy8T1aK8alI2qTX4gVsw

Operations:

[
  {
    "assetGroupOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assetGroups/-1",
        "campaign": "customers/{customerID}/campaigns/{campaignID}",
        "name": "Asset Group - Buzzly AI",
        "status": "ENABLED",
        "finalUrls": ["https://www.heybuzzly.ai/";]
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-100",
        "textAsset": { "text": "Impulsa Tus Anuncios Hoy" }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-101",
        "textAsset": { "text": "Optimiza Con Buzzly AI" }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-102",
        "textAsset": { "text": "Sácale Provecho A Tus Ads" }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-200",
        "textAsset": {
          "text": "Descubre Buzzly AI: Optimiza tus campañas con 
inteligencia artificial y logra resultados."
        }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-300",
        "textAsset": {
          "text": "Optimiza tus anuncios y consigue mejores resultados. 
Pruébalo ahora."
        }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-301",
        "textAsset": {
          "text": "Gestiona campañas con inteligencia artificial y mejora 
tu ROI hoy mismo."
        }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-400",
        "textAsset": { "text": "Buzzly AI" }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-500",
        "name": "568c4c0c-22d4-4847-9708-4be4bd86d06d",
        "imageAsset": {
          "data": "base64.../9j/4AAQSkZJRgABAQAAAQABAAD/...",
          "mimeType": "UNKNOWN"
        }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-501",
        "name": "26419567-9219-49a2-abb8-bd117453910c",
        "imageAsset": {
          "data": "base64.../9j/4AAQSkZJRgABAQAAAQ",
          "mimeType": "UNKNOWN"
        }
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "resourceName": "customers/{customerID}/assets/-502",
        "name": "6e81ef8a-76ca-4bee-bf5c-bb384d8a7658",
        "imageAsset": {
          "data": "base64.../9j/4AAQSkZJRgABAQAAAQ",
          "mimeType": "UNKNOWN"
        }
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-100",
        "fieldType": "HEADLINE"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-101",
        "fieldType": "HEADLINE"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-102",
        "fieldType": "HEADLINE"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-200",
        "fieldType": "LONG_HEADLINE"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-300",
        "fieldType": "DESCRIPTION"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-301",
        "fieldType": "DESCRIPTION"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-400",
        "fieldType": "BUSINESS_NAME"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-500",
        "fieldType": "SQUARE_MARKETING_IMAGE"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-501",
        "fieldType": "MARKETING_IMAGE"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "assetGroup": "customers/{customerID}/assetGroups/-1",
        "asset": "customers/{customerID}/assets/-502",
        "fieldType": "LOGO"
      }
    }
  }
]

 
Error:
{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "
type.googleapis.com/google.ads.googleads.v18.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 0 },
                { "fieldName": "asset_group_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 11 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 12 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 13 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 14 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 15 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 16 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 17 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 18 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 19 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          },
          {
            "errorCode": { "assetGroupError": "SHORT_DESCRIPTION_REQUIRED" 
},
            "message": "Short description asset for a valid asset group is 
required.",
            "trigger": { "stringValue": "Asset type: description" },
            "location": {
              "fieldPathElements": [
                { "fieldName": "mutate_operations", "index": 20 },
                { "fieldName": "asset_group_asset_operation" }
              ]
            }
          }
        ],
        "requestId": "ptFy8T1aK8alI2qTX4gVsw"
      }
    ]
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/40f261c1-a6e6-47da-9752-46c92f57f79en%40googlegroups.com.
  • Er... Marlon Gómez
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to