Re: creating single product listing groups through rest api

2023-07-04 Thread Punit Pushkar
Hey Guys, Can you help in how can I do the same process while only using 
the API and not the Rest API. 

On Thursday, 1 June 2023 at 19:46:46 UTC+5:30 Google Ads API Forum Advisor 
wrote:

> Hi DZ,
>
> Thank you for the reply.
>
> If you have additional questions that are specific with the *Google Ads 
> API**(https://developers.google.com/google-ads/api/docs/start 
> )*, feel free to 
> send those over to our team and we would be happy to assist you further.
>
>
>
> 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/42ea7d07-29d5-4462-a197-76d9556e291fn%40googlegroups.com.


Re: creating single product listing groups through rest api

2023-05-29 Thread ma...@danzrust.cz
Yep, it's all good now. Thanks for support.

DZ

On Monday, May 29, 2023 at 9:14:58 PM UTC+2 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thanks for getting back with us.
>
> It seems that you already have figured out the answer to your concern. Can 
> you confirm if you have any more questions regarding Google Ads API related 
> concerns? If so, then don't hesitate to contact us.
>   
> 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/f3a17c8e-fbb9-45f3-9fc7-9a6c08887c80n%40googlegroups.com.


Re: creating single product listing groups through rest api

2023-05-29 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thanks for getting back with us.

It seems that you already have figured out the answer to your concern. Can you 
confirm if you have any more questions regarding Google Ads API related 
concerns? If so, then don't hesitate to contact us.

This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy:ref"

Thanks,

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/7uNGa0RVFPGC00tw8g00pJToeuHf0bA09Gxg%40sfdc.net.


Re: creating single product listing groups through rest api

2023-05-25 Thread ma...@danzrust.cz
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": "1", 
"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": "1", 
> "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": "1", "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.


Re: creating single product listing groups through rest api

2023-05-25 Thread ma...@danzrust.cz
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/adGroups/148252268534", 
"resourceName":"customers/7803661715/adGroupCriteria/148252268534~-1", 
"listingGroup": { "type": "SUBDIVISION" } } }, { "create": { "type": 
"LISTING_GROUP", * "status": "PAUSED",* "adGroup": 
"customers/7803661715/adGroups/148252268534", "cpcBidMicros": "1", 
"listingGroup": { "type": "UNIT", "caseValue": { "productItemId": {} }, 
"parentAdGroupCriterion": 
"customers/7803661715/adGroupCriteria/148252268534~-1" } } }, { "create": { 
"type": "LISTING_GROUP", "status": "PAUSED", "adGroup": 
"customers/7803661715/adGroups/148252268534", "cpcBidMicros": "1", 
"listingGroup": { "type": "UNIT", "caseValue": { "productItemId": { 
"value": "shopify_fr_8211946045734_4473156881642" } }, 
"parentAdGroupCriterion": 
"customers/7803661715/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/c2ec94cd-9cb3-4c68-8925-a0bdb53dd4edn%40googlegroups.com.


RE: creating single product listing groups through rest api

2023-05-25 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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 googleadsapi-supp...@google.com instead, and let us know 
here once it is provided.

This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy:ref"

Thanks,

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/Xmac40RV89NH00Mxv1MhEHShWVTMn6A-IszA%40sfdc.net.


Re: creating single product listing groups through rest api

2023-05-25 Thread ma...@danzrust.cz
Oh, damn, that might be it. I will try in a bit. I knew it was gonna be 
something super simple like this after seeing so many java/python hints.

DZ

On Thursday, May 25, 2023 at 8:47:16 PM UTC+2 Google Ads API Forum Advisor 
wrote:

> Hello,
>
> Welcome to Google Ads API Support team. Thank you for reaching out to us.
>
> With regards to your concern, it appears that the resource name in your 
> request is malformed as it has *adGroups *instead of the expected 
> *adGroupCriteria.*
>
>
>
> * Resource name 'customers/7803661715 
> <(780)%20366-1715>/adGroups/151093305002~-1' is malformed: expected 
> 'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}'. *
>
>
>
> We would recommend that you follow this guidance 
> https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.adGroupCriteria/mutate
>  for 
> your reference.
>
> Let us know how it goes and if the issue persist, kindly provide to us the 
> complete *request *and *response* logs with *request id *and *request 
> header* generated on your end and we will be happy to look into it.
>
> Note that these logs can be requested or provided to the developer 
> handling the Google Ads API transactions when logging of the API requests 
> has been enabled. You may check here (
> https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging)
>  and 
> click your client library for the specific guideline to enable it.
>
> For REST interface requests, you can enable logging via the curl command 
> by using the -i flag. This will cause the tool to include the HTTP response 
> headers in the output.
>
> Links to the highlighted words above:
>
>- *request* - 
>
> https://developers.google.com/google-ads/api/docs/concepts/field-service#request
>  
>- *response* - 
>
> https://developers.google.com/google-ads/api/docs/concepts/field-service#response
>  
>- *request id* - 
>
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id
>  
>- *request header *- 
>
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers
>  
>
>  
> 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/274af138-cbb7-4b01-b645-2ae550080e41n%40googlegroups.com.


RE: creating single product listing groups through rest api

2023-05-25 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello,

Welcome to Google Ads API Support team. Thank you for reaching out to us.

With regards to your concern, it appears that the resource name in your request 
is malformed as it has adGroups instead of the expected adGroupCriteria.

Resource name 'customers/7803661715/adGroups/151093305002~-1' is malformed: 
expected 'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}'.

We would recommend that you follow this guidance 
https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.adGroupCriteria/mutate
 for your reference.

Let us know how it goes and if the issue persist, kindly provide to us the 
complete request and response logs with request id and request header generated 
on your end and we will be happy to look into it.

Note that these logs can be requested or provided to the developer handling the 
Google Ads API transactions when logging of the API requests has been enabled. 
You may check here 
(https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging)
 and click your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by 
using the -i flag. This will cause the tool to include the HTTP response 
headers in the output.

Links to the highlighted words above:

request - 
https://developers.google.com/google-ads/api/docs/concepts/field-service#request
response - 
https://developers.google.com/google-ads/api/docs/concepts/field-service#response
request id - 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id
request header - 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers


This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy:ref"

Thanks,

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/UNz3G0RV89I800yZoDVzdQQpiv3xq1Bcmp1g%40sfdc.net.


Re: Creating Single Product Listing Groups Through Rest API

2023-05-24 Thread ma...@danzrust.cz
So I believe, I'm getting very close but now I'm stuck again.

This is my JSON:
{
"operations": [

{
"create": {
"type": "LISTING_GROUP",
"status":"ENABLED",
"adGroup": "customers/7803661715/adGroups/151093305002",

"resourceName":"customers/7803661715/adGroups/151093305002~-1",
"listingGroup": {
"type": "SUBDIVISION"
}
}
},


{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/151093305002",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/151093305002~-1"
}

}
},


{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/151093305002",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {
"value": 
"shopify_fr_8211946045734_4473156881642"
}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/151093305002~-1"  
}
}
}
]
}
##
##
##

Now I'm getting:
*◉ Resource name 'customers/7803661715/adGroups/151093305002~-1' is 
malformed: expected 
'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}'. *

I've seen multiple posts where people would use the* "~-1" *trick while 
doing multiple operations at once but it was always in a different language 
(Java, Python etc.). 

How can I replicate the "~-1" the trick in the rest API? I see no mentions 
in the REST documentation.

I've also tried running the first operation to create root (the SUBDIVISION 
part in my code) to get the parentAdGroupCriterion for the two remaining 
*create 
*operations but that's not working either. When creating the SUBDIVISION, 
I'm getting error an error saying that "other group must be created" so it 
feels like I really need to do everything in one API call. 

DZ




On Tuesday, May 23, 2023 at 11:16:20 PM UTC+2 ma...@danzrust.cz wrote:

> So I believe I'm getting close after recycling some of the older posts but 
> something is still wrong.
>
> Here is my currrent JSON:
>
> {
> "operations": [
> {
> "create": {
> "type": "LISTING_GROUP",
> "status": "ENABLED",
> "adGroup": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149870319335",
> "resourceName": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149870319335~-1",
> "listingGroup": {
> "type": "SUBDIVISION"
> }
> }
> },
>
> {
> "create": {
> "type": "LISTING_GROUP",
> "status": "ENABLED",
> "adGroup": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149870319335",
> "cpcBidMicros": "1",
> "listingGroup": {
> "type": "UNIT",
> "caseValue": {
> "productItemId": {
> "value": 
> "shopify_fr_8211946045734_4473156881642"
> }
> },
> "parentAdGroupCriterion": "customers/7803661715 
> <(780)%20366-1715>/adGroups/149870319335~-1"
> }
> }
> },
>
> {
> "create": {
> "type": "LISTING_GROUP",
> "status": "ENABLED",
> "adGroup": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149870319335",
> "cpcBidMicros": "1",
> "listingGroup": {
> "type": "UNIT",
> "caseValue": {
> "productCondition": {}
> }
> },
> "parentAdGroupCriterion": "customers/7803661715 
> <(780)%20366-1715>/adGroups/149870319335~-1"
> }
> }
> ]
> }
>
>
> ==> My understanding is that first I need to create a subdivision and then 
> create the one product I want to have + all other products, however when I 
> ran this JSON,  I've been getting:
>
> {
> "error": {
> "code": 400,
> "message": "Invalid JSON payload received. Unknown name 
> \"parentAdGroupCriterion\

Re: Creating Single Product Listing Groups Through Rest API

2023-05-23 Thread ma...@danzrust.cz
So I believe I'm getting close after recycling some of the older posts but 
something is still wrong.

Here is my currrent JSON:
{
"operations": [
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/149870319335",
"resourceName": 
"customers/7803661715/adGroups/149870319335~-1",
"listingGroup": {
"type": "SUBDIVISION"
}
}
},
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/149870319335",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {
"value": 
"shopify_fr_8211946045734_4473156881642"
}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/149870319335~-1"
}
}
},
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/149870319335",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productCondition": {}
}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/149870319335~-1"
}
}
]
}


==> My understanding is that first I need to create a subdivision and then 
create the one product I want to have + all other products, however when I 
ran this JSON,  I've been getting:

{
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name 
\"parentAdGroupCriterion\" at 'operations[2].create': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "operations[2].create",
"description": "Invalid JSON payload received. 
Unknown name \"parentAdGroupCriterion\" at 'operations[2].create': Cannot 
find field."
}
]
}
]
}
}




Any ideas?

DZ
On Tuesday, May 23, 2023 at 8:57:48 PM UTC+2 ma...@danzrust.cz wrote:

> Hi guys,
> I'm trying to create new single product listing groups via Rest API but 
> I'm just stuck - I don't know what mandatory information I need to provide. 
>
> At this point, I am creating a new *ad_group_criterion:*
> POST 
> https://googleads.googleapis.com/v12/customers/7803661715/adGroupCriteria:mutate
>
> {
> "operations": [
> {
> "create": {
> "type": "LISTING_GROUP",
> "status": "ENABLED",
> "ad_group": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149520355436",
> "cpc_bid_micros": 1000,
> "listing_group": {
> "case_value": {
> "product_item_id": {
> "value": 
> "shopify_fr_8211946045734_4473156881642"
> }
> }
> }
> }
> }
> ]
> }
>
> And I keep get back
> {
> "type": "error",
> "array": "INVALID_ARGUMENT (400) Request contains an invalid argument. 
> \n◉ The required field was not present."
> }
>
> Basically, my goal is to create the hierarchy shown in the attachment. 
>
> Cam you pls advise?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2658dcd0-2575-4590-b346-5fe7dffb11ffn%40googlegroups.com.


Creating Single Product Listing Groups Through Rest API

2023-05-23 Thread ma...@danzrust.cz
Hi guys,
I'm trying to create new single product listing groups via Rest API but I'm 
just stuck - I don't know what mandatory information I need to provide. 

At this point, I am creating a new *ad_group_criterion:*
POST 
https://googleads.googleapis.com/v12/customers/7803661715/adGroupCriteria:mutate

{
"operations": [
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"ad_group": "customers/7803661715/adGroups/149520355436",
"cpc_bid_micros": 1000,
"listing_group": {
"case_value": {
"product_item_id": {
"value": 
"shopify_fr_8211946045734_4473156881642"
}
}
}
}
}
]
}

And I keep get back
{
"type": "error",
"array": "INVALID_ARGUMENT (400) Request contains an invalid argument. 
\n◉ The required field was not present."
}

Basically, my goal is to create the hierarchy shown in the attachment. 

Cam you pls advise?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7cb63db5-da19-4985-85bb-a3e71e22c0c2n%40googlegroups.com.