Re: How do you add a placement in ad group with criterion_type: MOBILE_APPLICATION?

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

Based on the code snippet you provided, it appears that you did not specify 
a value for the AppId 

 field. 
Could you retry and include the said field in your request and see if the 
issue persists? If you are still unable to add a mobile application 
criterion, could you provide the complete SOAP request and response so I 
can better identify what caused the issue?

You may refer to this guide 

 on 
how to enable SOAP logging at your end and reply to me privately via the *Reply 
privately to author* option when sending the logs.

Best 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/7251e25c-0573-41c1-9750-634cf34c7d7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do you add a placement in ad group with criterion_type: MOBILE_APPLICATION?

2017-12-14 Thread kendan
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, ken...@blvnp.com 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 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/e75593a9-e95c-40f2-9b14-5e71eed442f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do you add a placement in ad group with criterion_type: MOBILE_APPLICATION?

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

Adding a mobile application criterion as a BiddableAdGroupCriterion 

 is 
similar to how you added your placement criterion. In your code, just 
replace the Placement 

 object 
and the required fields with the ones specified in the MobileApplication 

 documentation.

Best 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/996a9162-f8a0-4833-9239-bb34a2426a12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do you add a placement in ad group with criterion_type: MOBILE_APPLICATION?

2017-12-13 Thread kendan
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 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/d1ec547e-762f-4f65-8553-c60de5ce6b17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.