Hi-
I'm using API 201402 successfully to update bids (basic CPC) for traditional text ads, using the PHP library example as a guide. Here's the basic code:
-------
$adGroupCriterionService = $user->GetService('AdGroupCriterionService', ADWORDS_VERSION);
$criterion = new Criterion();
$criterion->id = $keywordCriterionId;
$biddableAdgroupCriterion = new BiddableAdGroupCriterion();
$biddableAdgroupCriterion->adGroupId = $adGroupId;
$biddableAdgroupCriterion->criterion = $criterion;
$CPCbid = new CpcBid();
$CPCbid->bid = new Money($microBid);
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->bids = $CPCbid;
$biddableAdgroupCriterion->biddingStrategyConfiguration = $biddingStrategyConfiguration;
$operation = new AdGroupCriterionOperation();
$operation->operand = $biddableAdgroupCriterion;
$operation->operator = 'SET';
$operations = array($operation);
$result = $adGroupCriterionService->mutate($operations);
------
I have transitioned our PLA campaigns to thew new Shopping Campaigns and would like to perform the same function using the API. Our bids are split into multiple ad groups, and the ad groups can go up to 3 levels deep on product type. For example:
Campaign: Apparel
Ad Group: Shoes
Product Type: Mens > Athletic > Basketball
Product Type: Mens > Athletic > Soccer
etc.
I would like to be able to retrieve the current data from the campaign (in case someone make changes in the AdWords UI and I need to sync our local database), as well as be able to update the bid using the API.
I was assuming I still use the BiddingStrategyConfiguration for this operation but I'm having trouble understanding how the above code would change for a shopping campaign.
Thanks,
Bill