Hi,

You would create this at the *AdGroup* level as a 
BiddableAdGroupCriterion<https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.BiddableAdGroupCriterion>.
 
 To create a 
MobileApplication<https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.MobileApplication>
 criterion 
you simply need to provide the *appId*.  The documentation for each field 
on that object indicates which fields are required under each operation 
type, i.e., "This field is required and should not be null when it is 
contained within Operators : ADD."

Below is an example in Java.  The code for other languages and libraries 
would be similar.

    // Get the AdGroupCriterionService.
    AdGroupCriterionServiceInterface adGroupCriterionService =
        adWordsServices.get(session, 
AdGroupCriterionServiceInterface.class);

    // Create mobile application criterion.
    MobileApplication mobileApp = new MobileApplication();
    mobileApp.setAppId("2-com.labpixies.colordrips"); // using example from 
the MobileApplication API documentation

    // Create biddable ad group criterion.
    BiddableAdGroupCriterion biddableAdGroupCriterion1 = new 
BiddableAdGroupCriterion();
    biddableAdGroupCriterion1.setAdGroupId(adGroupId);
    biddableAdGroupCriterion1.setCriterion(mobileApp);

    // Create operations.
    AdGroupCriterionOperation adGroupCriterionOperation1 = new 
AdGroupCriterionOperation();
    adGroupCriterionOperation1.setOperand(biddableAdGroupCriterion1);
    adGroupCriterionOperation1.setOperator(Operator.ADD);

    AdGroupCriterionOperation[] operations =
        new AdGroupCriterionOperation[] {adGroupCriterionOperation1};

    // Add keywords.
    AdGroupCriterionReturnValue result = 
adGroupCriterionService.mutate(operations);

Cheers,
Josh, AdWords API Team

On Thursday, April 3, 2014 9:29:20 AM UTC-4, Roni Bardavid wrote:
>
> I couldn't find how to define criterion for mobileapplication.
> First of all is this normal or negative criterion?
> Second is do i need to fill id parameter or appid is enough?
>
> Can you give me example how to do? And how can i check the changes on 
> Google Adwords campaign management?
>
> Thanks
>
>
>
> On Wednesday, April 2, 2014 11:50:02 PM UTC+3, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi,
>>
>> A Display campaign created through the API is essentially a campaign with 
>> the *All features* option selected.  These features include creating an 
>> AdGroupCriterion with its 
>> criterion<https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.BiddableAdGroupCriterion#criterion>attribute
>>  set to a 
>> MobileApplication<https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.MobileApplication>criterion,
>>  which is the type that represents in-app targeting.
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Wednesday, April 2, 2014 1:00:36 PM UTC-4, Roni Bardavid wrote:
>>>
>>> how can it be that we can target specific mobile applications through 
>>> the API, but can't create an in-app campaign through it?
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to