Hi,
I am trying to remove some of the previously set Campaign Criterions, such
as language.
I use the following peace of code:
public function removeCampaignCriterion(
$customerId,
$campaignId,
$criterionId
) {
$campaignCriterionResourceName = ResourceNames::forCampaignCriterion
($customerId,$campaignId,$criterionId);
$campaignCriterionOperation = new CampaignCriterionOperation();
$campaignCriterionOperation->setRemove($campaignCriterionResourceName);
$campaignCriterionServiceClient = $this->googleAdsClient->
getCampaignCriterionServiceClient();
$campaignCriterionServiceClient->mutateCampaignCriteria(
$customerId,
$campaignCriterionOperation
);
Unfortunately this doesn't work and I get the following message:
*Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "Request
contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT",
"details": [ { "@type": 0, "data":
"type.googleapis.com\/google.ads.googleads.v8.errors.GoogleAdsFailure" }, {
"@type": 0, "data": [ { "errorCode": { "mutateError": "RESOURCE_NOT_FOUND"
}, "message": "Resource was not found.", "trigger": { "int64Value":
"XXXXXXX" }, "location": { "fieldPathElements": [ { "fieldName":
"operations", "index": 0 }, { "fieldName": "remove" } in
*/var/www/html/Direktorijum/google-ads-php/vendor/google/gax/src/ApiException.php*
on
line *139*
I have checked and the campaign Id (XXXXXX value) is correct.
Could you please help me with this?
Thanks in advance,
Filip
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads 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/d4c2dbda-5d7c-4b32-bf08-fba9f1b0cbe0n%40googlegroups.com.