this is my code for adjust bid in ad schedule.
    // Create a mobile platform. The ID can be found in the documentation.
    // https://developers.google.com/adwords/api/docs/appendix/platforms
    $adsched = new AdSchedule();
    $adsched->setDayOfWeek(strtoupper($day_of_the_week));
    $adsched->setStartHour($start_hour);
    $adsched->setStartMinute(strtoupper($string_start_min));
    $adsched->setEndHour($end_hour);
    $adsched->setEndMinute(strtoupper($string_end_min));

    // Create a criterion with modified bid.
    $criterion = new CampaignCriterion();
    $criterion->setCampaignId($campaign_id);
    $criterion->setCriterion($adsched);
    $criterion->setBidModifier($bid_modifier);

    // Create a campaign criterion operation and add it to the operations 
list.
    $operation = new CampaignCriterionOperation();
    $operation->setOperator(Operator::ADD);
    $operation->setOperand($criterion);
    $operations = [$operation];

and this is my error

 [CampaignCriterionError.CANNOT_ADD_EXISTING_FIELD @ 
operations[0].operand.bidModifier]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ecbaee91-a02d-4ee3-814e-31d2ea83cb2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to