Hi,

We generally recommend creating one Feed per extension type, so in your 
case I would have:

   - One Feed 
   
<https://developers.google.com/adwords/api/docs/reference/v201406/FeedService.Feed>
 object 
   for call extensions
   - Within that *Feed*, a FeedItem 
   
<https://developers.google.com/adwords/api/docs/reference/v201406/FeedItemService.FeedItem>
 for 
   each distinct phone number and country code you'll want to use, e.g., one 
   per adgroup
   - An AdGroupFeed 
   
<https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupFeedService.AdGroupFeed>
 for 
   each ad group, with placeholderTypes 
   
<https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupFeedService.AdGroupFeed#placeholderTypes>
 set 
   to 2 (for the CALL placeholder type 
   <https://developers.google.com/adwords/api/docs/appendix/placeholders>), 
   and a matchingFunction 
   
<https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupFeedService.AdGroupFeed#matchingFunction>
 that 
   specifies the ID of the *FeedItem* that corresponds to the ad group

Note that you could also set up a *CampaignFeed* if all of the ad groups in 
the campaign should use the same call extension.

Cheers,
Josh, AdWords API Team

On Wednesday, July 23, 2014 3:45:01 AM UTC-4, James Mills wrote:
>
> I am successfully adding new AdGroups to the Campaign of my choosing. 
>
> I would now like to add a phone number to be displayed against the ads in 
> that adgroup. I understand this to be an Call Extension. Looking into this 
> I have found that this needs to be added using the API Feed Service (
> http://goo.gl/LzkI4g). I understand that this works the same as adding 
> SiteLinks and I have found this example 
> examples/AdWords/v201406/AdvancedOperations/AddSitelinks.php 
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/AdvancedOperations/AddSitelinks.php>
>  in 
> the PHP client library. 
>
> I have reworked this to add a CALL rather than SITELINKS. I have also 
> reworked this to add this feed to the AdGroup rather than the Campaign. 
> https://gist.github.com/jamesmills/675fa4574484468a04a5
>
> My first question is: 
>
> Every time I add a Feed it says the name needs to be unique. Does this 
> mean I can create one Feed item of this type and then just reuse it and 
> only add the attributes needed for the AdGroup? So I guess I mean add one 
> Feed for the Campaign and then just update the phone number and country 
> code for each individual adgroup?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to