Okay.. Figured it out...: { "operations": [ { "create": { "type": "LISTING_GROUP", "status":"ENABLED", "adGroup": "customers/7803661715/adGroups/150631446858", "resourceName":"customers/7803661715/adGroupCriteria/150631446858~-1", "listingGroup": { "type": "SUBDIVISION" } } }, { "create": { "type": "LISTING_GROUP", "status": "PAUSED", "adGroup": "customers/7803661715/adGroups/150631446858", "negative": true, "listingGroup": { "type": "UNIT", "caseValue": { "productItemId": {} }, "parentAdGroupCriterion": "customers/7803661715/adGroupCriteria/150631446858~-1" } } }, { "create": { "type": "LISTING_GROUP", "status": "PAUSED", "adGroup": "customers/7803661715/adGroups/150631446858", "cpcBidMicros": "10000", "listingGroup": { "type": "UNIT", "caseValue": { "productItemId": { "value": "shopify_fr_8211946045734_4473156881642" } }, "parentAdGroupCriterion": "customers/7803661715/adGroupCriteria/150631446858~-1" } } } ] }
On Thursday, May 25, 2023 at 9:16:20 PM UTC+2 ma...@danzrust.cz wrote: > Okay, so of course it works now but I do have a follow up question . I > need to exclude the "everything else in All Products" listing group but the > JSON is still generating both product groups as active. > > I was reading the REST documentation but could not find anything about the > exclusions. I'm attaching what I am after. > > { "operations": [ { "create": { "type": "LISTING_GROUP", > "status":"ENABLED", "adGroup": "customers/7803661715 > <(780)%20366-1715>/adGroups/148252268534", > "resourceName":"customers/7803661715 > <(780)%20366-1715>/adGroupCriteria/148252268534~-1", > "listingGroup": { "type": "SUBDIVISION" } } }, { "create": { "type": > "LISTING_GROUP", * "status": "PAUSED",* "adGroup": "customers/7803661715 > <(780)%20366-1715>/adGroups/148252268534", "cpcBidMicros": "10000", > "listingGroup": { "type": "UNIT", "caseValue": { "productItemId": {} }, > "parentAdGroupCriterion": "customers/7803661715 > <(780)%20366-1715>/adGroupCriteria/148252268534~-1" > } } }, { "create": { "type": "LISTING_GROUP", "status": "PAUSED", > "adGroup": "customers/7803661715 <(780)%20366-1715>/adGroups/148252268534", > "cpcBidMicros": "10000", "listingGroup": { "type": "UNIT", "caseValue": { > "productItemId": { "value": "shopify_fr_8211946045734_4473156881642" } }, > "parentAdGroupCriterion": "customers/7803661715 > <(780)%20366-1715>/adGroupCriteria/148252268534~-1" > } } } ] } > > On Thursday, May 25, 2023 at 8:50:22 PM UTC+2 Google Ads API Forum Advisor > wrote: > >> Hello, >> >> In addition to our previous response. You may send the requested details >> privately via “*Reply To Author*” option. If that option is not >> available to you, send it directly to googleadsa...@google.com instead, >> and let us know here once it is provided. >> >> This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy: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/8980a0e5-6ce9-4741-b3f9-6ca9a82d6d25n%40googlegroups.com.