How to add the phone to companies adwords api?

50 views
Skip to first unread message

ultrasport

unread,
Aug 18, 2015, 9:47:42 AM8/18/15
to AdWords API Forum
$campaignExtensionSettingService = $user->GetService('CampaignExtensionSettingService', ADWORDS_VERSION);
$campaignExtensionSetting = new CampaignExtensionSetting();
$campaignExtensionSetting->campaignId = $campaignId;
$campaignExtensionSetting->extensionType = 'CALL';
$campaignExtensionSetting->extensionSetting = new ExtensionSetting();
$campaignExtensionSetting->extensionSetting->extensions = array();

// добавляем телефон
$phone = new CallFeedItem();
$phone->callCountryCode = "RU";
$phone->callPhoneNumber = "+7 (495) 587-75-75";
$campaignExtensionSetting->extensionSetting->extensions[] = $phone;

$operation = new CampaignExtensionSettingOperation();
$operation->operator = 'ADD';
$operation->operand = $campaignExtensionSetting;
$operations = array($operation);


$result = $campaignExtensionSettingService->mutate($operations);

"+7 (495) 587-75-75" - [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]

"587-75-75" - [ExtensionSettingError.PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY @ operations[0].operand.extensionSetting.extensions[0].callPhoneNumber]

Try different options may be on the test does not work?

Thanet Knack Praneenararat (AdWords API Team)

unread,
Aug 24, 2015, 6:29:22 AM8/24/15
to AdWords API Forum
Hello,

Could you please send me the SOAP request and response for this API call by clicking Reply privately to author on the top right of this answer.
Make sure you strip your developer token off your logs.

Cheers,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages