after reffering to your documnetation for making an asset group in php, i tried the same and made a curl for making an asset group . as shown in your documentation, that we passed performance_max_temporary_id in the campaign field , it throws an error as shown below in the curl :
curl --location '
https://googleads.googleapis.com/v17/customers/8702376846/assetGroups:mutate' \
--header 'Content-Type: application/json' \
--header 'developer-token: 0-4PjaUzBnyeiqsEkhbpgg' \
--header 'login-customer-id:
8663393180' \
--header 'Authorization: Bearer ya29.a0AcM612xfUrX7gKzHcjmFBLFoW38ybbPs6bbOiLt7Dq5QRatNp3vdUZmhAhIa0D-pYsgseL5VFoA-xWL4IfEctpFkE5RWJKZyvKXe1LztcwqVGGVokA4VTv_HKGl5IlkEq1S_oFvoxs_V2f1HbTZta7FvWVFc6wKFvvvATDLWDgaCgYKAa4SARMSFQHGX2MibNVpgzEfCzZ2cdIxHDkwJA0177' \
--data '{
"operations": [
{
"create": {
"resourceName": "customers/
8702376846/assetGroups/-1",
"campaign": "customers/
8702376846/campaigns/-2",
"name": "latest-pm-asset-group",
"finalUrls": [
"
https://google.com"
],
"finalMobileUrls": [
"
https://your-mobile-landing-page.com"
],
"status": "PAUSED"
}
}
]
}'
the error i get is shown below :
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"errors": [
{
"errorCode": {
"mutateError": "RESOURCE_NOT_FOUND"
},
"message": "Resource was not found.",
"trigger": {
"int64Value": "-2"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "campaign"
}
]
}
}
],
"requestId": "GAjzrcpRo44Zm56AtcAzJg"
}
]
}
}
please guide me where am i making a mistake