Hi David, As you may already know, this appId <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.MobileApplication#appid> is not in the right format which is why you're getting the INVALID_MOBILE_APP <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.CriterionError.Reason#INVALID_MOBILE_APP> error. For IOS, the 9 digit string, while for android, the application's package name. For your "ca-gmail" value, it appears that this is not the right format. Could you provide more details as to where you were able to get the appId: 10001-ca-gmail? Could you also try to set the appId value as *mobileapp::10001-ca-gmail*?
Thanks, Luis AdWords API Team On Wednesday, October 24, 2018 at 12:33:37 AM UTC+8, david wrote: > > Hi, > We've encountered some appIDs within automatic placements which are not of > the format we would usually expect. > This thread mentions some alternatives to the 1- (iOS) or 2- (Android) > format: > https://groups.google.com/d/msg/adwords-api/7n3tKhv36uc/8tdQl0x_DgAJ > > In this case the appId is: > > *10001-ca-gmail* > > Problem is we'd like to create a negative placement for it, but the > *CampaignCriterionService* keeps returning *INVALID_MOBILE_APP* when we > use "*10001-ca-gmail*" as the *appId *within a *NegativeCampaignCriterion > *object. > > > The SOAP request body would be: > > * <SOAP-ENV:Body> <mutate > xmlns="https://adwords.google.com/api/adwords/cm/v201802 > <https://adwords.google.com/api/adwords/cm/v201802>"> <operations> > <operator>ADD</operator> <operand xsi:type="NegativeCampaignCriterion" > > <campaignId>123456789</campaignId> <criterion xsi:type="MobileApplication" > > <appId>10001-ca-gmail**<appId>* > * </criterion> </operand> </operations> </mutate> </SOAP-ENV:Body>* > > The response we're getting is the following. Is there a way to achieve a > negative placement for such an appId? > Thanks > > *<?xml version="1.0"?> <soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ > <http://schemas.xmlsoap.org/soap/envelope/>"> <soap:Header> <ResponseHeader > xmlns="https://adwords.google.com/api/adwords/cm/v201802 > <https://adwords.google.com/api/adwords/cm/v201802>"> > <requestId>000578ce5282c4380a372fc45c03ba6d</requestId> > <serviceName>CampaignCriterionService</serviceName> > <methodName>mutate</methodName> <operations>1</operations> > <responseTime>158</responseTime> </ResponseHeader> </soap:Header> > <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> > <faultstring>[CriterionError.INVALID_MOBILE_APP @ > operations[0].operand.criterion.appId; > trigger:'10001-ca-gmail']</faultstring> <detail> <ApiExceptionFault > xmlns="https://adwords.google.com/api/adwords/cm/v201802 > <https://adwords.google.com/api/adwords/cm/v201802>"> > <message>[CriterionError.INVALID_MOBILE_APP @ > operations[0].operand.criterion.appId; trigger:'10001-ca-gmail']</message> > <ApplicationException.Type>ApiException</ApplicationException.Type> <errors > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > <http://www.w3.org/2001/XMLSchema-instance>" xsi:type="CriterionError"> > <fieldPath>operations[0].operand.criterion.appId</fieldPath> > <fieldPathElements> <field>operations</field> <index>0</index> > </fieldPathElements> <fieldPathElements> <field>operand</field> > </fieldPathElements> <fieldPathElements> <field>criterion</field> > </fieldPathElements> <fieldPathElements> <field>appId</field> > </fieldPathElements> <trigger>10001-ca-gmail</trigger> > <errorString>CriterionError.INVALID_MOBILE_APP</errorString> > <ApiError.Type>CriterionError</ApiError.Type> > <reason>INVALID_MOBILE_APP</reason> </errors> </ApiExceptionFault> > </detail> </soap:Fault> </soap:Body> </soap:Envelope>* > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads 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/d1989e2e-cf2f-4b82-83e2-be6a658a48f4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
