Change keyword bids bases on position in v201409

45 views
Skip to first unread message

Filip Holmberg

unread,
Nov 27, 2014, 5:50:32 AM11/27/14
to adwor...@googlegroups.com
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
Message has been deleted

Danial Klimkin

unread,
Nov 27, 2014, 8:30:04 AM11/27/14
to adwor...@googlegroups.com
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);

Filip Holmberg

unread,
Nov 27, 2014, 8:30:47 AM11/27/14
to adwor...@googlegroups.com
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' => 'XXXXXXXX', 'adgroupID' => 'XXXXXXXXXX'],
['keywordID' => 'XXXXXXXX', 'adgroupID' => 'XXXXXXXXXX'],
];

$TestApi = new Api(true);
$TestApi->getUser()->SetClientCustomerId('XXX-XXX-XXXX');
$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:

Filip Holmberg

unread,
Nov 27, 2014, 8:31:51 AM11/27/14
to adwor...@googlegroups.com
Ok, thanks for the confirmation. 


On Thursday, 27 November 2014 15:30:04 UTC+2, Danial Klimkin wrote:
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? 




Reply all
Reply to author
Forward
0 new messages