Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured Snippet Feed Item Setting Locale #472

Closed
james-waring opened this issue Mar 26, 2018 · 1 comment
Closed

Structured Snippet Feed Item Setting Locale #472

james-waring opened this issue Mar 26, 2018 · 1 comment
Assignees
Labels

Comments

@james-waring
Copy link

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);

James

@fiboknacky fiboknacky self-assigned this Mar 27, 2018
@fiboknacky fiboknacky added the P2 label Mar 27, 2018
@fiboknacky
Copy link
Member

Hi @Docred5

Regarding this, could you please submit your question on AdWords API forum, as it's related to the translation of the values on AdWords API server side?

Best,
Knack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants