I tried creating an asset group of performance max campaign via  
https://googleads.googleapis.com/v16/customers/5185.../googleAds:mutate  but 
it failed due to error <NOT_ENOUGH_HEADLINE_ASSET>

I added 3 headlines, 1 with 15 characters or less based on the guide from 
https://developers.google.com/google-ads/api/performance-max/asset-requirements?hl=en
.

This is the error:
{
    "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": {
                            "assetGroupError": "NOT_ENOUGH_HEADLINE_ASSET"
                        },
                        "message": "Headline asset for a valid asset group 
is not enough.",
                        "trigger": {
                            "stringValue": "Asset type: headline"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "mutate_operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "asset_group_operation"
                                }
                            ]
                        }
                    },
...
                ],
                "requestId": "uI8p-0Lju5mOPztCUf6uug"
            }
        ]
    }
}

This is the body:
{
  "mutateOperations":[
  {
    "assetGroupOperation": {
      "create": {
        "name": "Asset group 1",
        "campaign": "customers/5185432.../campaigns/21337629...",
        "status": "ENABLED",
        "finalUrls": [
          "..."
        ],
        "resourceName": "customers/5185432.../assetGroups/-1"
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "type": "TEXT",
        "textAsset": {
          "text": "Stort utbud av begagnade båtar"
        },
        "resourceName": "customers/5185432.../assets/-2"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "fieldType": "HEADLINE",
        "assetGroup": "customers/5185432.../assetGroups/-1",
        "asset": "customers/5185432.../assets/-2"
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "type": "TEXT",
        "textAsset": {
          "text": "Sugen på begagnad båt?"
        },
        "resourceName": "customers/5185432.../assets/-3"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "fieldType": "HEADLINE",
        "assetGroup": "customers/5185432.../assetGroups/-1",
        "asset": "customers/5185432.../assets/-3"
      }
    }
  },
  {
    "assetOperation": {
      "create": {
        "type": "TEXT",
        "textAsset": {
          "text": "Begagnad båtar"
        },
        "resourceName": "customers/5185432.../assets/-4"
      }
    }
  },
  {
    "assetGroupAssetOperation": {
      "create": {
        "fieldType": "HEADLINE",
        "assetGroup": "customers/5185432.../assetGroups/-1",
        "asset": "customers/5185432.../assets/-4"
      }
    }
  }
]
}
Please advise. Thanks 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/80f5ea0d-3a48-4300-8ea3-4744eb6345e5n%40googlegroups.com.
  • Cr... Nga Ngo
    • ... Nga Ngo
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Nga Ngo
        • ... Nga Ngo
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to