Context:
We have created ad group of type "HOTEL_ADS" using API for a campaign. Next 
we want to create the root hotel group so that we can have different 
categories of hotels (example based on Hotel Id) for each ad group.  Ref: 
create 
listing groups 
<https://developers.google.com/google-ads/api/docs/hotel-ads/create-listing-groups>

We want the same hierarchy as seen in the google ads dashboard UI ( 'All 
hotels' (root subdivision) -> '1001', '1002').

Now, based on the google API v14 docs, we are using the AdGroupCriterion 
<https://developers.google.com/google-ads/api/rest/reference/rest/v14/AdGroupCriterion>.
 
Specifically we are using the type listing group to achieve our 
requirements. 

Problem:
Ideally, we first have to create a listing group of type 'SUBDIVISION' so 
that we can retrieve the criterion id, using this criterion id, we will 
have to add the individual hotel ids to the root groups.
When we execute this code, we get this error: *'to create the root 
subdivision listing group requires others case'*. But to make *the others 
case, we need the root criterion id*, which obviously is not possible as 
the API is not allowing to create root listing group without the others 
case.

We also tried to create the root listing group with 'UNIT' type. The 
listing group got created and we got out root criterion id, but since its 
of type 'UNIT', we were not able to add children nodes ( hotel Ids in our 
case).

Tech stack:
- Node js
- Google Ads Rest Interface V14 APIs 
<https://developers.google.com/google-ads/api/rest/overview>​​

Is there a solution for this? 
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d7082f65-c8e8-42a0-ba5b-afb359383f45n%40googlegroups.com.

Reply via email to