Re: how to set bid modifier to a placement in a ad group

2017-12-07 Thread 'Peter Oliquino' via AdWords API Forum
Hi,

My apologies as I specialize more in Java instead of PHP. However, looking 
at your code, it appears already correct since you have specified the 
Placement 

 criterion 
as the Criterion 

 of 
the ad group and included a value for the BidModifier 

 field. 
For more information,  you may also refer to our bidding 
 guide and 
specifically to this section 

 for 
adding bids at the ad group or ad group criterion level.

I hope this helps and feel free to write back for any further 
clarifications.

Thanks and regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5f44aa13-b888-46b6-8ff4-5caf2c6d9f01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to set bid modifier to a placement in a ad group

2017-12-06 Thread kendan
I am trying to set bid modifier to a placement in a ad group

$placement = new Placement();
$placement->setUrl('wordpress.com');

$biddableAdGroupCriterion = new BiddableAdGroupCriterion();
$biddableAdGroupCriterion->setAdGroupId(47069225942);
$biddableAdGroupCriterion->setCriterion($placement);
$biddableAdGroupCriterion->setBidModifier(1.5);

// Create an ad group criterion operation and add it to the list.
$biddableAdGroupCriterionOperation = new AdGroupCriterionOperation();

$biddableAdGroupCriterionOperation->setOperand($biddableAdGroupCriterion);
$biddableAdGroupCriterionOperation->setOperator(Operator::ADD);


$operations[] = $biddableAdGroupCriterionOperation;

$result = $adGroupCriterionService->mutate($operations);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a8d68a90-cac9-41f1-a042-758564bc1a1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.