本文介绍了向广告组添加扩展广告的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞!我使用Bing Ads API v11版  在广告组中创建展开式广告,下面是我的代码。我收到此错误"无法创建抽象类"。任何人都可以帮助我,让我知道我做错了什么。 我关注这个作为参考https://docs.microsoft.com/en-us/bingads/campaign-management-service/addads?view=bingads-11 我们的守则:  $ actionAddAdTextsForAdGroups =" AddAds"; $ expandedTextAd = array( 'TitlePart1'=> $ textAdsForAdGroup ['textAdHeadLine1'], ' TitlePart2'=> $ textAdsForAdGroup ['textAdHeadLine2'], 'Text'=> $ textAdsForAdGroup ['textAdDescription'], ' DisplayUrl'=> $ textAdsForAdGroup ['destinationURL'] ); $ parametersForBingAdsAPIAddAdTextsForAdGroups =数组('AdGroupId'=> $ textAdsForAdGroup ['adGroupId'],  '广告'=>数组('广告'=> ; array('FinalUrls'=> $ textAdsForAdGroup ['destinationURL'], 'Type'=>数组('AdType'=>'ExpandedText',  'ExpandedTextAd'=> $ expandedTextAd )  ) ) );   $ resultAddAdGroups [] = $ this-> bingAPIClient-> __ soapCall( $ actionAddAdTextsForAdGroups, array($ actionAddAdTextsForAdGroups.'Request'=> $ parametersForBingAdsAPIAddAdTextsForAdGroups), null, $ this-> bingAPIInputHeaders, $ outputHeadersI am using Bing Ads API v11 version to create Expanded Ads in AdGroups, below is my code. I am getting this error "Cannot create an abstract class". Can anyone help me on this, let me know what I am doing wrong in it.I am following this as reference https://docs.microsoft.com/en-us/bingads/campaign-management-service/addads?view=bingads-11Our Code: $actionAddAdTextsForAdGroups = "AddAds";$expandedTextAd = array('TitlePart1' => $textAdsForAdGroup['textAdHeadLine1'],'TitlePart2' => $textAdsForAdGroup['textAdHeadLine2'],'Text' => $textAdsForAdGroup['textAdDescription'],'DisplayUrl' => $textAdsForAdGroup['destinationURL']);$parametersForBingAdsAPIAddAdTextsForAdGroups = array('AdGroupId' => $textAdsForAdGroup['adGroupId'], 'Ads' => array('Ad' => array('FinalUrls' => $textAdsForAdGroup['destinationURL'],'Type' => array('AdType' => 'ExpandedText', 'ExpandedTextAd' => $expandedTextAd) ))); $resultAddAdGroups[] = $this->bingAPIClient->__soapCall ($actionAddAdTextsForAdGroups,array( $actionAddAdTextsForAdGroups.'Request' => $parametersForBingAdsAPIAddAdTextsForAdGroups ),null,$this->bingAPIInputHeaders,$outputHeaders推荐答案 不接受广告基类,因此类型属性需要为ExpandedTextAd编码,例如,通过SoapVar,如 此示例。 如果您有任何其他问题,请与我们联系。Please let me know if you have any further questions. 这篇关于向广告组添加扩展广告的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 05:05