I tried this code, it seems to be not working, what did I do wrong?
* $criterion_type = new MobileApplication();*
* $criterion_type->setDisplayName('Mobile App: Ken Player (Google
Play), by Ken V7');*
On Thursday, December 14, 2017 at 3:14:05 PM UTC+8, [email protected] wrote:
>
> I have this code adding placements using ad group id and url
>
>
> * $adGroupCriterionService = $adWordsServices->get($session,
> AdGroupCriterionService::class);*
>
> * $placement = new Placement();*
> * $placement->setUrl($url);*
>
> * if($exclude == 'true'){*
> * $adGroupCriterion = new NegativeAdGroupCriterion();*
> * }else{*
> * $adGroupCriterion = new BiddableAdGroupCriterion();*
> * $adGroupCriterion->setBidModifier($bid_adjustment);*
> * $adGroupCriterion->setCriterion($placement);*
> * } *
>
> * $adGroupCriterion->setAdGroupId($adGroupId);*
>
> * $adGroupCriterionOperation = new AdGroupCriterionOperation();*
> * $adGroupCriterionOperation->setOperand($adGroupCriterion);*
>
> * switch ($operator) {*
> * case 'add':*
> * $adGroupCriterionOperation->setOperator(Operator::ADD);*
> * break;*
> * case 'set':*
> * $adGroupCriterionOperation->setOperator(Operator::SET);*
> * break;*
> * case 'remove':*
> * $adGroupCriterionOperation->setOperator(Operator::REMOVE);*
> * break;*
> * default:*
> * // default is add*
> * $adGroupCriterionOperation->setOperator(Operator::ADD);*
> * break;*
> * }*
>
>
> * $operations[] = $adGroupCriterionOperation;*
>
>
> * $results = $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 [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
---
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 [email protected].
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/e75593a9-e95c-40f2-9b14-5e71eed442f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.