Issue reg. Shopping Content V2.1

79 views
Skip to first unread message

Thomas Grübel

unread,
Mar 9, 2021, 8:24:46 AM3/9/21
to Google Ads Scripts Forum
Hi,

I'm jsut trying to update products by updating a supplemental feed.

I use this notation:
ShoppingContent.Products.insert(productObject, merchantId, optionalArgs)

optionalArgs = {'feedId':xxxxxxxx}

I aslways get this error:
We're sorry, a server error occurred. Please wait a bit and try again. (file Code.gs, line 186)

Without the optionalArgs it is working fine (but I don't update the suppemental feed).

Are scripts not working on ShoppingContent V2.1 or did I make an other mistake?

Thanks
Thomas

Google Ads Scripts Forum Advisor

unread,
Mar 9, 2021, 8:09:04 PM3/9/21
to adwords...@googlegroups.com

Hi Thomas,

Thank you for reaching out to us.

Looking on the notation you've mentioned (ShoppingContent), could you confirm if you're using the Shopping Content Service of the Google Apps Script? If yes, then I'm afraid that this is already out of our expertise. You may need to reach out to the Apps Script Team via this link instead.

However, so our team could also further check on our end, could you share with us your Google Ads customer ID and the script name via Reply privately to author option? If you're having issues when sending those details privately, you can send directly to this email (googleadsscr...@google.com) instead.

Regards,

Google Logo
Mark Kevin Albios
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2DMN2d:ref

Google Ads Scripts Forum Advisor

unread,
Mar 10, 2021, 4:26:54 AM3/10/21
to adwords...@googlegroups.com

Hi Thomas,

 

Thanks for coming back and providing the details. Harry here, teammate of Mark on the Google Ads Scripts Team.

 

As my colleague have already mentioned, we have limited expertise with regard to the Shopping Content API/Service and as I don't have access to this platform, I won't be able to replicate the issue on my end and further check on what causes it. It would still be best if you reach out to the Google Apps Script Team / Community also.

 

Nevertheless, allow me to still provide you assistance to the extent of our resources. Kindly check the argument values you are passing when inserting a product. Please see this example for your reference. Have you also considered to insert products using custombatch API instead?

 

Please see also Shopping Content Service documentation for further details and information.

 

Thanks,

Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2DMN2d:ref

Thomas Grübel

unread,
Mar 15, 2021, 5:01:00 AM3/15/21
to Google Ads Scripts Forum on behalf of adsscriptsforumadvisor

Hi Harry,

 

My question to the apps scripts team is still not answered and  I’m not able to create a bug in ths plattform for this Component.

 

Any other advise or someone who can help me?

 

Viele Grüße aus Bad Tabarz

Thomas Grübel

Geschäftsführer

 

InBiz Online Marketing GmbH & Co. KG

Langenhainer Str. 31A

99891 Bad Tabarz

 

Tel.:    036259 394066

Mobil: 01577 89 46249

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/In_562zzPKk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/iSvp6000000000000000000000000000000000000000000000QPQY8Q00629OhwbLTaiADpsZD7XHWA%40sfdc.net.

Google Ads Scripts Forum Advisor

unread,
Mar 15, 2021, 6:21:52 AM3/15/21
to adwords...@googlegroups.com

Hi Thomas,

 

It's unfortunate that your question has not been answered yet. You may also try to post your question to the Google Apps Script Community through Google Groups where the Google App Script Team also occasionally participate in conversations. In the meantime, you may look and read through the Shopping Content Service documentation.

Celebird

unread,
Mar 23, 2021, 7:07:28 AM3/23/21
to Google Ads Scripts Forum
please note, a supplemental-feed attached to the content-api-feed, 
for api product-inserts via a feed-id, is supported only when using 
the v2.1 version of the google-content-api-for-shopping.

currently, the ads-script shopping-content-service supports only v2.

the rough equivalent results of the v2.1 supplemental-feed/feed-id,
to update only a small subset of item attributes, may be doable by 
using the v2 inventory-resource, with a store-code value of online.

the ads-script inventory-resource implementation is undocumented --
but can be seen when using the ads-script ide auto-complete feature.

until the v2.1 content-api is officially supported in ads-scripts, 
there is likely no such concept as using a supplemental-feed/feed-id.

a hello, world, v2 inventory-resource, batch-insert, example is attached.

however, if the v2-inventory-resource method is attempted, be certain to 
carefully inspect the final-attributes, under the all-products-tab of 
the merchant-center-account; using multiple feeds, or mixing feed insert 
methods, is generally not recommended -- the last feed to set the data 
will overwrite all others, and show as the displayed shopping-ad.

displaying inaccurate data is grounds for a suspension.

// e.g. ads-script shopping-content-service, content-api-v2 inventory-service.
function mkv2inventory() {

  var v2inventoryResource = {
   "entries" : [
    {
     "batchId" : 1,
     "merchantId" : "0000000",
     "storeCode" : "online",
     "productId" : "online:en:AU:abc123",
     "inventory" : {
      "availability" : "out of stock",
      "price" : { "value" : "9876543.21", "currency" : "AUD" }
     }
    }
   ]
  };

  return ShoppingContent.Inventory.custombatch(v2inventoryResource);
}
// ###

Thomas Grübel

unread,
Mar 23, 2021, 11:29:58 AM3/23/21
to Google Ads Scripts Forum
Hi Celebird,

thanks for this helpful answer. I hav been afraid that scripts are using v2 instead of v2.1. As sunset of 2.0 is on 30th of September 2021, it can take only 6 months :-).

I already use the custombatch-functionality but it doesn't work for rapidly changes of prices (every 2 minutes). Therefore Google suggests supplemental feeds.

But thanks again - now I know what choices I have.
Thomas

Celebird

unread,
Mar 23, 2021, 3:00:08 PM3/23/21
to Google Ads Scripts Forum
first, you're welcome.

ads-scripts also implements the v2-inventory-resource set-method --
which may be a bit faster, with respect to individual item-updates.

importantly perhaps, the merchant-center has rather strict rules
and policies related to stable landing-pages and fixed-prices --
regardless of using the content-api, in any context.

products with prices that constantly change, or change too frequently,
generally cannot be submitted to the merchant-center, at all -- at least
not without risking  a disapproval, or a suspension from the program,
at any time.

Reply all
Reply to author
Forward
0 new messages