Hi, You can do this using the new extension setting services as follows:
1. Use CampaignExtensionSettingService <https://developers.google.com/adwords/api/docs/reference/v201502/CampaignExtensionSettingService> to create a CampaignExtensionSetting <https://developers.google.com/adwords/api/docs/reference/v201502/CampaignExtensionSettingService.CampaignExtensionSetting> with *campaignId* *= **your_campaign_id, **extensionType = CALLOUT, *and *extensionSetting *set to an ExtensionSetting <https://developers.google.com/adwords/api/docs/reference/v201502/CustomerExtensionSettingService.ExtensionSetting> whose extensions <https://developers.google.com/adwords/api/docs/reference/v201502/CustomerExtensionSettingService.ExtensionSetting#extensions> consists of a CalloutFeedItem <https://developers.google.com/adwords/api/docs/reference/v201502/CustomerExtensionSettingService.CalloutFeedItem>. This will add the callout extension to one of your campaigns. 2. From the response of that call, capture the *CalloutFeedItem* feedId <https://developers.google.com/adwords/api/docs/reference/v201502/CampaignExtensionSettingService.CalloutFeedItem#feedId> and feedItemId <https://developers.google.com/adwords/api/docs/reference/v201502/CampaignExtensionSettingService.CalloutFeedItem#feedItemId> 3. To add the *same* extension to another campaign, repeat step 1, but when creating the *CalloutFeedItem*, simply set the *feedId* and *feedItemId* to the values you captured in step 2 and leave all other fields unset. This will reuse the *CalloutFeedItem* you created in step 1 within the 2nd campaign. For a similar example that works with sitelinks instead of callout extensions, see the AddSitelinks.php sample <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201502/Extensions/AddSitelinks.php> in github. Cheers, Josh, AdWords API Team On Friday, June 26, 2015 at 12:48:41 PM UTC-4, Giovanni Cortes wrote: > > There is a way to create Ad extensions, for example callout, without > assign to a campaign or ad group? > > For example, I want to create 3 ad extensions but no assign to a campaign > or ad group. Then I want to retrieve the ad extension and assign to a > campaign, like the AdWords site, they create callout individually and then > assign it to a campaign. > > Example: > > createCallout(args) > createCallout(args) > createCallout(args) > > retrieveCallout(id) > > create calloutCampaign(): > callout = retrieveCallout(id) > callout2 = retrieveCallout(id) > > feed_service = self.client.GetService( > 'AdGroupExtensionSettingService' > ) > > operation = [{ > 'operator': 'ADD', > 'operand': { > 'adGroupId': ad_group_id, > 'extensionType': 'CALLOUT', > 'extensionSetting': { > 'extensions': [callout, callout2] > } > } > }] > > > There is a way to do this with python? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/dd6d686a-b386-465d-9bf3-819e85b34d4d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.