Unable to create sitelinks for ad group in bulk (batch job)

195 views
Skip to first unread message

Antoni Martyniuk

unread,
Feb 27, 2021, 10:56:32 PM2/27/21
to AdWords API and Google Ads API Forum

Hi! Is that possible to create sitelinks and assign them into ad group in the same Batch Job?

it looks like I cannot use temporary IDs for feed items? 

What should I do differently to create feed items and assign into ad group in a single Batch Job then?

Please take a look at code examples here (cannot figure out how to paste code here) 

https://github.com/googleads/google-ads-python/issues/386

Google Ads API Forum Advisor Prod

unread,
Mar 1, 2021, 10:41:47 PM3/1/21
to a.mar...@directica.pl, adwor...@googlegroups.com
Hi Antoni,

Thank you for reaching out.

There are no limitations mentioned here, when using temporary IDs for creating feed items in bulk. Since this is more of an implementation concern using Python, you may continue discussion with the Python client library owners instead in the Github issue you provided in the link, as they should be the more appropriate team to provide further guidance.

However, if you encounter or is already encountering API specific errors being returned in the request and response logs, please write back and include the mentioned logs (with the request-id), so we can look into the issue closer. You may send the logs using the Reply privately to author option.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJguC:ref

Antoni Martyniuk

unread,
Mar 2, 2021, 6:29:05 AM3/2/21
to AdWords API and Google Ads API Forum
Unfortunately I can't see how may I get the logs of failed operation within BatchJob. I've managed to create Sitelink extensions in Batch Job (for some reason one should specify Temporary IDs in `.id` property of feed item rather than setting proper `resource_name` which is weird taking into account that all other API endpoints works with resource_name. 

However when trying to create AdGroupExtensionSettingOperation I'm getting cryptic error in BatchJob results log:

Batch job #51 has a status "Multiple errors in ‘details’. First error: Field must be set., at mutate_operations[51].ad_group_extension_setting_operation" and response type "N/A" #.... 

Out[26]: operation_index: 51 status { code: 3 message: "Multiple errors in \342\200\230details\342\200\231. First error: Field must be set., at mutate_operations[51].ad_group_extension_setting_operation" details { type_url: "type.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure" value: "\n^\n\003\270\006$\022\022Field must be set.\032\002*\000\"?\022\025\n\021mutate_operations\0303\022&\n$ad_group_extension_setting_operation" } }

It says `Field must be set` but doesn't say which one :/

Google Ads API Forum Advisor Prod

unread,
Mar 3, 2021, 10:20:40 AM3/3/21
to a.mar...@directica.pl, adwor...@googlegroups.com
Hello,

My name is Matt and I work alongside Ernie. Thanks for providing the errors from the operation at index, 51. Would it be possible for you to send us the operation that gave you the error you mentioned?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJguC:ref

Antoni Martyniuk

unread,
Mar 3, 2021, 6:09:24 PM3/3/21
to AdWords API and Google Ads API Forum
Hello Matt!

Here is the operation:

ad_group_extension_setting_operation { create { extension_type: SITELINK ad_group: "customers/<hidden>/adGroups/-27" extension_feed_items: "customers/<hidden>/extensionFeedItems/-34" } }

Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Mar 4, 2021, 2:27:12 PM3/4/21
to a.mar...@directica.pl, adwor...@googlegroups.com
Hi All,

Thanks for providing this additional information. Can you please reproduce this issue and share with us:
  • customer ID
  • request ID
  • request and response logs
With this extra information, we can examine the issue more closely. 
Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Mar 8, 2021, 12:50:25 AM3/8/21
to a...@prototype.co.hu, adwor...@googlegroups.com
Hi,

Thank you for sharing these details. I had to remove some of your earlier responses since it contained snippets of your logs.

Moving forward, apart from the batch IDs, our team would also require the complete request and response logs, with the request-id, to further investigate.

If logging is already enabled, please retry your request and provide the complete logs so I can discuss the issue with the rest of our team. You may send the requested details using the Reply privately to author option.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJguC:ref

Prototype.co

unread,
Mar 8, 2021, 10:16:03 AM3/8/21
to AdWords API and Google Ads API Forum
I have the customer ID, request ID, request and response logs ready, but I do not have permission to reply privately to author in this topic. Seeing that this is not possible, and that I shouldn't expose the entire log to the public, how should I send it to you for investigation?

Google Ads API Forum Advisor Prod

unread,
Mar 9, 2021, 1:54:50 AM3/9/21
to a...@prototype.co.hu, adwor...@googlegroups.com
Hi,

Please try to send the requested details on this email alias googleadsa...@google.com instead for privacy purposes.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJguC:ref

Prototype.co

unread,
Mar 9, 2021, 11:38:26 AM3/9/21
to AdWords API and Google Ads API Forum
I have sent the log file to the e-mail address specified. Please get back to us with any information on why it is not possible to use temporary IDs with extensions.

Thank you for your help!

On Tuesday, March 9, 2021 at 7:54:50 AM UTC+1 adsapiforumadvisor wrote:
Hi,

Please try to send the requested details on this email alias googleadsapi-support@google.com instead for privacy purposes.

Antoni Martyniuk

unread,
Mar 15, 2021, 9:32:54 AM3/15/21
to AdWords API and Google Ads API Forum
Hi! 
Any updates on this? 

wtorek, 9 marca 2021 o 17:38:26 UTC+1 Prototype.co napisał(a):
I have sent the log file to the e-mail address specified. Please get back to us with any information on why it is not possible to use temporary IDs with extensions.

Thank you for your help!

On Tuesday, March 9, 2021 at 7:54:50 AM UTC+1 adsapiforumadvisor wrote:
Hi,

Please try to send the requested details on this email alias googleadsa...@google.com instead for privacy purposes.

Google Ads API Forum Advisor Prod

unread,
Mar 16, 2021, 3:06:37 AM3/16/21
to a.mar...@directica.pl, adwor...@googlegroups.com
Hi Antoni,

The other user of this forum thread has provided their API transaction logs privately and our team is currently investigating it. Unfortunately, our team haven't received any updates yet. However, so that I can also discuss the issue that you encountered with the rest of the team, please provide the customer ID and the complete request and response logs with the request-id generated on your end.

You can provide it via Reply privately to author option or send it to this email alias googleadsa...@google.com for privacy purposes.

Prototype.co

unread,
Mar 16, 2021, 5:51:30 AM3/16/21
to AdWords API and Google Ads API Forum
Hi!

Thanks for the heads up. We're really waiting for at least some information (Is this an issue on Google's end, or did *we* mess something up so bad? Will it be corrected? Will it be corrected in an upcoming version only? When is that likely due? Should we rewrite everything to use bare mutates en masse in the meantime?), because we are currently holding projects back because of this issue. I understand that investigating an issue like this might take some time, and that is fine. However, should you have information, please do get back to us, because your response will be used to decide what path to take.

Honestly, I wouldn't want to send mutates en masse outside of a BatchJob (like in the ad extensions examples), but if you say this issue won't be fixed in the near future, we will start rewriting code. But we're holding back from this until we get some feedback on the matter.

Thank you for your support!

Google Ads API Forum Advisor Prod

unread,
Mar 16, 2021, 3:12:19 PM3/16/21
to a...@prototype.co.hu, adwor...@googlegroups.com
Hello,

Thanks for your patience on this issue. I see you have posted recently on the private thread. To simplify communication and limit any confusion, please allow us to limit any back and forth to the private thread, for now. At the moment, this issue is still being processed internally. As soon as there is new information on the issue, an update will be provided on the private thread. 

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJguC:ref
Reply all
Reply to author
Forward
0 new messages