Hi everyone, I have got the same issue. The difference between the UI and the API is : - In the UI you have a select choice field for the language. - With the API we can send only the string header already translate and the values.
And of course the *string header translate can match several languages*. https://fusiontables.google.com/DataSource?docid=1WsjLeMap4eJKDWZSnHFn2231zwBqRFrf2SoDtgLu#rows:id=1 For example, '*services*' header, we have : *nl*, *en-AU*, *en-GB *and *fr.* Another example, '*brands*' header, we have : *da*, *en-AU*, *en-GB * In my case, with 'brands' send by API, in the UI the default language selected is Danish (da). I though, the UI, check the string header value, the first language is set when it match. This is why James has *nl* as local language for 'services' header. I don't know why the UI has a select choice with language, and the API doesn't ask for this information... Regards, Wilfried Le mardi 27 mars 2018 05:07:43 UTC-4, Jay W a écrit : > > > Hello, > > > I am trying to create a StructuredSnippetFeedItem using the latest version > of the api (201802) but it is setting the locale to nl (Dutch) when it > needs to be en-gb. I will put a copy of my code below but i can only assume > that it is to do with services being the same in dutch and english. > > Is there a way to pass in english in the header or is there something else > i'm missing. > > I know the code below works because it creates the snippets in adwords, > just the wrong locale. > > > $snippets = ['item 1', 'item 2', 'item 3']; > > $snip = new StructuredSnippetFeedItem(); > $snip->setHeader('Services'); > $snip->setValues($snippets); > > $customerExtensionSetting = new CampaignExtensionSetting(); > $customerExtensionSetting->setCampaignId("google_campagin_id"); > $customerExtensionSetting->setExtensionType(FeedType::STRUCTURED_SNIPPET); > $customerExtensionSetting->setExtensionSetting(new ExtensionSetting()); > $customerExtensionSetting->getExtensionSetting()->setExtensions([$snip]); > > $operation = new CampaignExtensionSettingOperation(); > $operation->setOperator(Operator::ADD); > $operation->setOperand($customerExtensionSetting); > $operations = [$operation]; > > $result = $campaign_extension_setting_service->mutate($operations); > > > I have posted this on git > <https://github.com/googleads/googleads-php-lib/issues/472#event-1542433837> > as a issue under the php adwords api and i was told to post it here as it's > related to the translation of the values on AdWords API server side? > > > > James > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to firstname.lastname@example.org 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 "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/cf7727f9-d45d-44eb-b285-ef7d62e1b2c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.