Hi,
Thank you for assistance,
this is code snippet that I wrote for adding call out extension for account:
public CustomerExtensionSettingReturnValue
SetAccountCallOutExtention(string customerId, string calloutText)
{
CustomerExtensionSettingService customerExtensionSettingService
=
(CustomerExtensionSettingService)AdwordsUser.GetService(AdWordsService.v201702.CustomerExtensionSettingService);
_customerExtensionSettingService.RequestHeader.clientCustomerId
= customerId;
CustomerExtensionSetting customerExtensionSetting = new
CustomerExtensionSetting
{
extensionType = FeedType.CALLOUT,
extensionSetting = new ExtensionSetting()
{
extensions = new ExtensionFeedItem[]
{
new CalloutFeedItem
{
calloutText = calloutText,
feedType = FeedType.CALLOUT
}
}
}
};
CustomerExtensionSettingOperation customerOperation = new
CustomerExtensionSettingOperation()
{
operand = customerExtensionSetting,
@operator = Operator.ADD,
};
return customerExtensionSettingService.mutate(new[] {
customerOperation });
}
On Thursday, March 23, 2017 at 8:24:09 PM UTC+2, Shwetha Vastrad (AdWords
API Team) wrote:
>
> Hi,
>
> You need to set the clientCustomerId in the request header
> <https://developers.google.com/adwords/api/docs/guides/call-structure#request_headers>
> to
> add an extension at the customer level using
> CustomerExtensionSettingService
> <https://developers.google.com/adwords/api/docs/reference/v201702/CustomerExtensionSettingService>.
>
> You will not be setting the customerId in the CustomerExtensionSetting
> <https://developers.google.com/adwords/api/docs/reference/v201702/CustomerExtensionSettingService.CustomerExtensionSetting>
> object.
> You can programmatically set the clientCustomerId at runtime by following
> the instructions provided here
> <https://developers.google.com/adwords/api/docs/guides/samples-use-cases#anatomy_of_an_api_code_sample>
> for
> your client library.
>
> Regards,
> Shwetha, AdWords API Team.
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/b3fab1cd-8515-4578-8c46-7b7f5103e47b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.