I was create new campaign with type " Moblie app install" by guidline, 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

Orange.

Vào 23:41:17 UTC+7 Thứ Năm, ngày 25 tháng 9 năm 2014, Josh Radcliff 
(AdWords API Team) đã viết:
>
> Hi,
>
> Campaigns created through the API have all features enabled, so you cannot 
> (and need not) set the sub type for mobile app installs. Instead, you can 
> simply do the following:
>
>    1. Create a CampaignCriterion 
>    
> <https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService.CampaignCriterion>
>  where 
>    the *criterion* is set to a MobileApplication 
>    
> <https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService.MobileApplication>
>  object, 
>    configured for your app.
>    2. Create another *CampaignCriterion* where the *criterion* is set to 
>    an OperatingSystemVersion 
>    
> <https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService.OperatingSystemVersion>
>  object 
>    where the ID is set to the desired ID taken from the mobile platforms 
>    list 
>    <https://developers.google.com/adwords/api/docs/appendix/mobileplatforms>
>    .
>
> Cheers,
> Josh, AdWords API Team
>
> On Thursday, September 25, 2014 7:00:21 AM UTC-4, Jelly Hu wrote:
>>
>> Hi,
>>
>> I want to know whether it's available for me to create "mobile app 
>> installs" campaign via API?
>>
>> I couldn't find anything about "mobile app installs" during the API 
>> document,
>> especially 
>> the CampaignService.
>>
>> What can I do to create "mobile app installs" campaign via API?
>>
>> 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/4fde8994-e60b-4cea-86ee-e4a17e1ebf38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to