Implementation according to your answer:
public AdGroupExtensionSettingReturnValue
CreateAccountCalloutExtension(long adGroupId, string calloutText)
{
AdGroupExtensionSetting adGroupExtensionSetting = new
AdGroupExtensionSetting
{
adGroupId = adGroupId,
extensionType = FeedType.CALLOUT,
extensionSetting = new ExtensionSetting()
{
extensions = new ExtensionFeedItem[]
{
new CalloutFeedItem() {calloutText = calloutText}
}
}
};
var operation = new AdGroupExtensionSettingOperation()
{
operand = adGroupExtensionSetting,
@operator = Operator.ADD
};
Logger.Instance.Info($"Attempting to create callout extension
for AdGroup. text: {calloutText}");
return _adGroupExtensionSettingService.mutate(new[] { operation
});
}
On Friday, January 13, 2017 at 12:33:32 AM UTC+2, Matthew Wawrin wrote:
>
> Hi,
>
> You can use the AdGroupExtensionSettingService similar to how the document
> you reference uses the CampaignExtensionSettingService, but instead of
> specifying a campaignId, you specify an adGroupId.
> See the reference:
>
> https://developers.google.com/adwords/api/docs/reference/v201609/AdGroupExtensionSettingService
> and
>
> https://developers.google.com/adwords/api/docs/reference/v201609/AdGroupExtensionSettingService.AdGroupExtensionSetting
>
> I don't believe there's example code specific to adGroupExtensionSetting,
> but it's nearly identical to the campaign setting, but with adgroup
> substituted for campaign.
>
> Hope this helps.
>
> On Thursday, January 12, 2017 at 4:18:27 AM UTC-6, [email protected]
> wrote:
>>
>> How can I create callout extensions as Ad group extension or/and Ad group
>> extension
>>
>> I can create callout extensions in Campaign extension level according to
>> example:
>>
>> https://developers.google.com/adwords/api/docs/guides/extension-settings#callout_extensions
>>
>> but I can't find how can it be created in Ad group extension or/and Ad
>> group extension level
>>
>>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ee8d06a6-ced3-4150-9e31-c0f6ab9daeef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.