Hi,

Please check out our Criteria Usage page 
<https://developers.google.com/adwords/api/docs/guides/criteria-usage>, 
which shows:

   - Whether you can target or exclude each criteria type at the 
   *CampaignCriterion* or *AdGroupCriterion* level
   - Which campaign types support each criteria type

That page shows that you can only *exclude* *MobileApplication* criteria at 
the campaign level, but you are attempting to *target* *MobileApplication* 
criteria 
at the campaign level.

If you want to target a *MobileApplication* criterion, you should instead 
set this up at the ad group level using an *AdGroupCriterion*. Note, 
however, that this is only available if the campaign is a *Display Network 
only* campaign.

Cheers,
Josh, AdWords API Team

On Tuesday, May 12, 2015 at 3:39:56 AM UTC-4, Orangevn wrote:
>
> I was create new campaign with type " Moblie app install" by guidline. I 
> was using CamapignCriterion: *MobileApplication* , but it has return API 
> Error: CriterionError.CANNOT_ADD_CRITERIA_TYPE
>
> my code: 
>
> var campaignCriterion = 
>                         new CampaignCriterion
>                         {
>                             campaignId = success[s.Key].id
>                             
>                     };
>
>                     var mobileApplication = new MobileApplication
>                         {
>                             appId =  m.AppId.ToString(),
>                             type = CriterionType.MOBILE_APPLICATION
>                         };
>                     campaignCriterion.criterion = mobileApplication;
>
>                     // Create operation.
>                     var operation = new CampaignCriterionOperation
>                         {
>                             operand = campaignCriterion,
>                             @operator = Operator.ADD
>                         };
>
>  campaignCriterionList.Add(operation);
>
>   CampaignCriterionReturnValue retVal = 
> campaignCriterionService.mutate(campaignCriterionList.ToArray());
>
>
> Help me.
>
> Thanks!
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d2b5c736-f189-48fc-90fc-4410a0b0feba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to