Hello Team,
Goal: To add/remove target location in campaign
I want to add location in campaign target location. To achieve this I am using this code:$campaignCriterionService =
$user->GetService('
$user->SetClientCustomerId(
//echo '<pre>';
//print_r($ajaxData);die();
$campaignCriteria = array();
// Create locations. The IDs can be found in the documentation or retrieved
// with the LocationCriterionService.
$location = new Location();
$location->id = intval($ajaxData['Target']); // location id e.g. 2840 etc.
//$campaignCriteria[] = new CampaignCriterion($ajaxData['
$campaignCriteria[] = new CampaignCriterion(intval($
// Create operations.
$operations = array();
foreach ($campaignCriteria as $campaignCriterion) {
$operations[] = new CampaignCriterionOperation($
}
// Make the mutate request.
$result = $campaignCriterionService->
<br />
<b>Fatal error</b>: Uncaught SoapFault exception: [soap:Server] [EntityNotFound.INVALID_ID @ operations
[0].operand.campaignId; trigger:'CampaignId: 254533954'] in /home/bergstromdev/public_
/Ads/Common/Lib/AdsSoapClient.
Stack trace:
#0 /home/bergstromdev/public_
('mutate', Array, NULL, Array, Array)
#1 /home/bergstromdev/public_
AdsSoapClient->__soapCall(
#2 /home/bergstromdev/public_
)
#3 /home/bergstromdev/public_
), Array)
#4 {main}
thrown in <b>/home/bergstromdev/public_
<b>216</b><br />
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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+unsubscribe@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 "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8286366b-e0ef-47b4-bfdc-6af4e964b1ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment