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


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to