Here is a PHP example,

https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php

On Saturday, March 1, 2014 5:58:38 AM UTC-5, Shantanu Harkut wrote:
>
>
> Hi Takeshi,
>
> I was trying same for mobileExtension with MutateJobService. Getting same 
> error.
>
> Can u please help?
>
>
>
> On Monday, October 7, 2013 9:59:15 AM UTC+5:30, Takeshi Hagikura (AdWords 
> API Team) wrote:
>>
>> Hi, 
>>
>> Some extensions (as of now, sitelink, call and app extensions)  are now 
>> only managed via feed services.
>> (Please see the blog post 
>> <http://googleadsdeveloper.blogspot.jp/2013/08/adwords-api-upgrading-your-ad.html>
>> )
>>
>> Please use feed services 
>> <https://developers.google.com/adwords/api/docs/guides/feed-services> 
>> onward.
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>> On Saturday, October 5, 2013 6:35:28 AM UTC+9, Олег Ковалёв wrote:
>>>
>>> Hi!
>>> When I try to add AdExtension (for example MobileExtension) i get an 
>>> error [AdExtensionError.INVALID_ADEXTENSION_TYPE @ 
>>> operations[0].operand.adExtension]. The same issue with SitelinksExtension. 
>>> Adwords PHP library version 4.6.0. But with LocationExtension everything is 
>>> OK.
>>>
>>> Below is a sample of code:
>>>         $campaignAdExtensionService =  
>>> $user->GetService('CampaignAdExtensionService');
>>>         $domainExtension = new SitelinksExtension();
>>>         $newsite1 = new Sitelink();
>>>         $newsite1->displayText = 'MobilePhones';
>>>         $newsite1->destinationUrl = 'http://citrus.ua';
>>>         $domainExtension->sitelinks = array($newsite1);
>>>         $campaignAdExtension = new CampaignAdExtension();
>>>         $campaignAdExtension->campaignId = 152524259;
>>>         $campaignAdExtension->adExtension = $domainExtension;
>>>         $operation = new CampaignAdExtensionOperation();
>>>         $operation->operand = $campaignAdExtension;
>>>         $operation->operator = 'ADD';
>>>         $operations = array($operation);
>>>         $result = $campaignAdExtensionService->mutate($operations);
>>>
>>> Please, help me
>>>
>>

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

Reply via email to