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 discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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/groups/opt_out.

Reply via email to