hi ,
Myself  partick , am creating google ads via performance max campaign way , 
am also getting the same error .
suggest me to solve this error 
Input : 

    let payload = {
      'operations' : [
      {
           'create' : {
            'resourceName'  :"customers/2645742961/assetGroups/-1",
            'campaign' : 'customers/2645742961/campaigns/21803796935',
            "name": "Performance Max asset group",
            "finalUrls": [
              "http://worktual.co.uk";
            ],
            "finalMobileUrls": [
              "http://worktual.co.uk";
            ],
            "status": "PAUSED"
          },

        }
      ]
    }

await axios.post(
'https://googleads.googleapis.com/v17/customers/2645742961/assetGroups:mutate', 
payload, {headers}).then((resp)=>{
  console.log("resp---",resp);
})
.catch((err)=>{
  console.log("err---",err);
      res.send(err.response.data.error)
})
output : 
{
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
        {
            "@type": 
"type.googleapis.com/google.ads.googleads.v17.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": "operations",
                                "index": 0
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "assetGroupError": "NOT_ENOUGH_LONG_HEADLINE_ASSET"
                    },
                    "message": "Long headline asset for a valid asset group 
is not enough.",
                    "trigger": {
                        "stringValue": "Asset type: long headline"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "assetGroupError": "NOT_ENOUGH_DESCRIPTION_ASSET"
                    },
                    "message": "Description headline asset for a valid 
asset group is not enough.",
                    "trigger": {
                        "stringValue": "Asset type: description"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "assetGroupError": 
"NOT_ENOUGH_MARKETING_IMAGE_ASSET"
                    },
                    "message": "Marketing image asset for a valid asset 
group is not enough.",
                    "trigger": {
                        "stringValue": "Asset type: marketing image"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "assetGroupError": 
"NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET"
                    },
                    "message": "Square marketing image asset for a valid 
asset group is not enough.",
                    "trigger": {
                        "stringValue": "Asset type: square marketing image"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "assetGroupError": "NOT_ENOUGH_BUSINESS_NAME_ASSET"
                    },
                    "message": "Business name asset for a valid asset group 
is not enough.",
                    "trigger": {
                        "stringValue": "Asset type: business name"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "assetGroupError": "NOT_ENOUGH_LOGO_ASSET"
                    },
                    "message": "Logo asset for a valid asset group is not 
enough.",
                    "trigger": {
                        "stringValue": "Asset type: logo"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "assetGroupError": "SHORT_DESCRIPTION_REQUIRED"
                    },
                    "message": "Short description asset for a valid asset 
group is required.",
                    "trigger": {
                        "stringValue": "Asset type: description"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            }
                        ]
                    }
                }
            ],
            "requestId": "TrhY4HSFQWTJfEjQxUCtsw"
        }
    ]
}

On Tuesday, August 20, 2024 at 5:51:28 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Based on the provided information, I understand that you are getting a "
> RESOURCE_NOT_FOUND 
> <https://developers.google.com/google-ads/api/reference/rpc/v17/MutateErrorEnum.MutateError#resource_not_found>"
>  
> error from the API, this error means that the request refers to a resource 
> that could not be found. The common cause of this error is that the request 
> attempted to mutate or otherwise reference a resource that does not exist 
> or has been removed. Or, the given resource name for the resource is 
> malformed.
>
> To handle this error, use a search request to retrieve the resource name 
> for an existing resource before submitting a mutate request. Review our 
> client 
> library <https://developers.google.com/google-ads/api/docs/client-libs> 
> guides, 
> which include documentation on how to construct valid resource names in 
> every supported language. In order to prevent this error, kindly don't 
> create resource names manually. Use one of the helper methods offered by 
> our client libraries.
>
> Also, I understand that you are getting an error "asset_group_error 
> <https://developers.google.com/google-ads/api/reference/rpc/v16/AssetGroupErrorEnum.AssetGroupError>"
>  
> while making the request to MutateAssetGroups 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v16/customers.assetGroups/mutate>.
>  
> Kindly note that the AssetGroup within a Performance Max campaign 
> necessitates an initial minimum assortment of assets. These assets may 
> comprise pre-existing ones utilized in other campaigns or newly created 
> assets tailored specifically for an AssetGroup within a Performance Max 
> campaign. These errors might occur when asset requirements are not met. 
> Kindly follow this guide to Ensure minimum asset requirements are met 
> <https://developers.google.com/google-ads/api/docs/performance-max/assets?hl=en#ensure_minimum_asset_requirements_are_met>
> .
>
> If you are still facing the issues even after following the given 
> suggestions, please provide us the complete API logs (*request* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and *response* 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  with *request-id* 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and *request header* 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
> ).
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides *Java* 
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
> ,* .Net* 
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
> ,* PHP* 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
> ,* Python* 
> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
> ,* Ruby* 
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
>  or* Perl* 
> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct 
> private reply* to this email.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vF9hE:ref" (ADR-00263997)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4d591b97-de59-4fef-9379-701db5c5a915n%40googlegroups.com.
  • Er... Dushyant
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... 3P Integration
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to