I am trying to attach some criterion to my campaign *20425685181* . I managed to add several criterions `*LOCATION*`/ `*LANGUAGE*`/`*DEVICE*` respectively for the campaign
However, it got errors when I try to attach '*USER_INTEREST*' and 'GENDER' to it. Please check this *two* error responses from REST API. -------------------------- { "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "criterionError": "INVALID_USER_INTEREST" }, "message": "Invalid user interest criterion.", "trigger": { "int64Value": "259" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "user_interest" }, { "fieldName": "user_interest_category" } ] } } ], "requestId": "A_POyf23iGnRt6UMkWIpew" } ] } } { "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "criterionError": "FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING" }, "message": "The field is not allowed to be set when the negative field is set to true, for example, we don't allow bids in negative ad group or campaign criteria.", "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "gender" } ] } } ], "requestId": "KN8B8oZZ-M5KeeoE8J5ESQ" } ] } } -------------------------- Best regards, John 在2023年8月24日星期四 UTC+8 18:31:06<Google Ads API Forum Advisor> 写道: > Hi John, > > > > For your first concern, I'm afraid that it would depend on your use-case > as well as which type of campaign you're using. Kindly note that audience > targeting is supported for performance max and discovery campaigns: > > - Performance Max campaigns use an AssetGroupSignal < > > https://developers.google.com/google-ads/api/reference/rpc/v14/AssetGroupSignal> > > to target audiences. > - Discovery campaigns support adding audience ad group criterion with > this process. This campaign uses AdGroupCriterion < > > https://developers.google.com/google-ads/api/reference/rpc/v14/AdGroupCriterion> > > to target audiences. > > > > For creating an audience with audience segments, you would need to use the > AudienceService < > https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceService> > > and specify your AudienceDimension < > https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceDimension> > > into AudienceSegmentDimension < > https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceSegmentDimension> > > with segments[] < > https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceSegment > >. > > > > Let us know if you have any clarifications. > > > This message is in relation to case "ref:_00D1U1174p._5004Q2nquf7:ref" > > Thanks, > > [image: Google Logo] Google Ads API Team > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/97e23587-c697-4725-944c-b964bc24a408n%40googlegroups.com.