Hello everyone, I am writing to ask who help du a problem.
when I create a group I get this error regarding the allocation of
maxcpm: ([AdGroupServiceError.BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH @
operations[0].operand.bids])
the code used is as follows:
.....
.....
// Get the AdGroupService.
$adGroupService = $user->GetAdGroupService('v201008');
$campaignId = (float) $_POST['campaign_id'];
// Create ad group.
$adGroup = new AdGroup();
$adGroup->name = 'group1';
$adGroup->status = 'ENABLED';
$adGroup->campaignId = $campaignId;
// Create ad group bid.
$adGroupBids = new ManualCPCAdGroupBids();
$adGroupBids->keywordMaxCpc = new Bid(new Money($_POST['maxcpm] *
1000000));
$adGroup->bids = $adGroupBids;
// Create operations.
$operation = new AdGroupOperation();
$operation->operand = $adGroup;
$operation->operator = 'ADD';
$operations = array($operation);
// Add ad group.
$result = $adGroupService->mutate($operations);
.....
.....
sapreste consigliarmi come risolvere il problema? non ho più idee :)
Grazie
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en