Hello Filip,

This is exactly the approach.


-Danial, AdWords API Team.


On Thursday, November 27, 2014 4:28:19 PM UTC+3, Filip Holmberg wrote:
>
> Okey, so I got keyword bids changed individually(executed as a grouped 
> mutate of course) by setting a individual biddingStrategyConfiguration. 
> Might this be the best way or am I missing something here? 
>
> $keywordTest = [
>     ['keywordID' => '11372600', 'adgroupID' => '8941319456'],
>     ['keywordID' => '11938331', 'adgroupID' => '8941319456'],
> ];
>
> $TestApi = new Api(true);
> $TestApi->getUser()->SetClientCustomerId('542-765-9912');
> $CriteriaService = $TestApi->getUser()->GetService('AdGroupCriterionService');
>
> $operations = array();
> foreach($keywordTest as $keyword)
> {
>     $adGroupCriterion            = new \BiddableAdGroupCriterion();
>     $adGroupCriterion->adGroupId = $keyword['adgroupID'];
>     $adGroupCriterion->criterion = new \Criterion($keyword['keywordID']);
>
>     $bid      = new \CpcBid();
>     $bid->bid = new \Money(2.34 * \AdWordsConstants::MICROS_PER_DOLLAR);
>
>     $biddingStrategyConfiguration         = new 
> \BiddingStrategyConfiguration();
>     $biddingStrategyConfiguration->bids[] = $bid;
>
>     $adGroupCriterion->biddingStrategyConfiguration = 
> $biddingStrategyConfiguration;
>
>     $operation           = new \AdGroupCriterionOperation();
>     $operation->operand  = $adGroupCriterion;
>     $operation->operator = 'SET';
>
>     array_push($operations, $operation);
> }
> $CriteriaService->mutate($operations);
>
>
>
> On Thursday, 27 November 2014 12:50:32 UTC+2, Filip Holmberg wrote:
>>
>> Is it possible to update keywords bids individually in v201409? I got it 
>> to work on AdGroup level but some post and docs mention that it is not 
>> possible on a keyword level. 
>>
>> We would like to adjust bids based on their position. What's the best api 
>> approach to handle this. This is handled manually from the UI and 
>> "Automate" menu at the moment.
>>
>> Thanks in advance,
>> Filip
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f36bf6f1-8d22-4d26-ac15-7d28c43e7da8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to