Hello!

We can do the upgrade bid for Adgroup, using AdGroupService and passing the 
two Adgroups ID in the array, like:

function UpdateAdGroupExample …

// Create ad group using an existing ID.

  $adGroup = new AdGroup();
  $adGroup->id = $adGroupId-1;
…  
// Update the bid.
  $adGroup->bids = new ManualCPCAdGroupBids();
…
  // Create operation.

 $operation = new AdGroupOperation();
$operation->operand = $adGroup;
 $operation->operator = 'SET';
$operations[] = $operation;

It’s  - [0]

And the same for $adGroupId-2 in the same function  :

// Create ad group using an existing ID.

  $adGroup = new AdGroup();
  $adGroup->id = $adGroupId-2; !!!
…  
// Update the bid.
  $adGroup->bids = new ManualCPCAdGroupBids();
…
  // Create operation.

 $operation = new AdGroupOperation();
$operation->operand = $adGroup;
 $operation->operator = 'SET';
$operations[] = $operation;

It’s  - [1]

 It's ok! We Update bids for 2 Adgroups.

 But why  we can’t  the upgrade bid for the two keywords?? Using 
AdGroupCriterionService.

If  I do the same things like with AdGroups, I get: 
An error has occurred: [DistinctError.DUPLICATE_ELEMENT @ operations[1]]

If I update only one keyword, it’s ok. But why I can’t update two 
keywords?? Because manipulation with 2 Adgroups - ok! :-\ 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en



Reply via email to