[image: Screenshot from 2024-08-21 12-18-09.png]
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": [
{
"@type": 
"type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",
"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 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/19f5c1ce-da76-46fb-b427-8aff30089800n%40googlegroups.com.
  • re... Dushyant
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to