Re: Help wanted, collection_size_error TOO_FEW when creating adGroupAds

2022-07-10 Thread Adam Genshaft
Confirmed! Removing the resource_name and adding an ad_group instead 
worked. However, I had more similar errors downstream that I had to tinker 
through.

On Monday, July 4, 2022 at 4:06:15 PM UTC+3 adsapi wrote:

> Hi Adam,
>
> Thanks for your patience.
>
> Our team sees that you’re using AdGroupAdService to create ads, and 
> specified a resource name with -1 in the path as resource name. 
>
> Note that specifying *-1* in the resource name is intended only for Batch 
> Job and *GoogleAdsService.Mutate* 
> 
>  
> as they support temporary resource names that can be referenced later on in 
> the same request. If you have set using AdGroupAdService without using 
> batch job or Mutate, then you may need to avoid using temporary resource 
> names to avoid any error.
>
> Could you please confirm this? If you’re indeed using Batch Job or 
> *GoogleAdsService.Mutate* 
> ,
>  
> then you may provide us privately with the complete logs in the format of 
> the request 
> 
>  as 
> seen in their respective links.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2cFofy:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f2c420a8-aca2-4503-a73d-1f2b6c2cf09bn%40googlegroups.com.


Help wanted, collection_size_error TOO_FEW when creating adGroupAds

2022-07-03 Thread Adam Genshaft
I'm sending this object:

{
"status": "ENABLED",
"resource_name": "customers/1310914546/adGroupAds/138411489117~-1",
"ad": {
"name": "Image ad1656865946261",
"final_urls": [

"https://www.sobelifestylegroup.com/?retarget=1_source=retarget_medium=GG_campaign=;
],
"responsive_display_ad": {
"business_name": "Sobe Lifestyle Group",
"headline": "So Be It",
"long_headline": {
"text": "So Be It"
},
"descriptions": [
{
"text": "Reserve your next Miami vacation with the most 
trusted concierge service in Miami."
}
],
"marketing_images": [
{
"asset": "customers/1310914546/assets/43047554250"
}
],
"square_marketing_images": [
{
"asset": "customers/1310914546/assets/43017270794"
}
]
}
}
}

And I recieve this response:

{
  "errors": [
{
  "error_code": {
"collection_size_error": "TOO_FEW"
  },
  "message": "Too few.",
  "location": {
"field_path_elements": [
  {
"field_name": "operations",
"index": 0
  },
  {
"field_name": "create"
  },
  {
"field_name": "ad"
  },
  {
"field_name": "responsive_display_ad"
  }
]
  }
}
  ],
  "request_id": "mgwfdaAiCjDqvtX71qFfSQ"
}

Any idea why?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a0e968cc-7419-47cd-8bc5-2256db790d6dn%40googlegroups.com.