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 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 
"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/51020eb8-5fd1-4a72-968c-150e87f7059b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... 'Jay W' via AdWords API Forum
    • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
    • ... wtemmerman
      • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
        • ... wtemmerman
          • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
        • ... 'Jay W' via AdWords API and Google Ads API Forum
          • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... 'Jay W' via AdWords API and Google Ads API Forum
      • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
        • ... wtemmerman

Reply via email to