Hi, LocalBusinessAds cannot be created using the v200909 API:
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupAdService.LocalBusinessAd.html "Represents Legacy Local Business Ad Legacy LBAs can be deleted or paused/unpaused, but are not editable." Best, - Eric On Mar 8, 7:31 am, "[email protected]" <[email protected]> wrote: > Hi, > > i still not able to publish localbusiness ad. > > code for notmal text ad publish is > // Create text ad. > $textAd = new TextAd(); > $textAd->headline = $dataArray['name']; > $textAd->description1 = $dataArray['desc1']; > $textAd->description2 = $dataArray['desc2']; > $textAd->displayUrl = $dataArray['displayUrl']; > $textAd->url = $dataArray['destUrl']; > > // Create ad group ad. > $adGroupAd = new AdGroupAd(); > $adGroupAd->adGroupId = $adGroupId; > $adGroupAd->ad =$textAd; > > // Create operations. > $adGroupAdOperation = new AdGroupAdOperation(); > $adGroupAdOperation->operand = $adGroupAd; > $adGroupAdOperation->operator = 'ADD'; > > code for localbusiness ad is > > // Create local business ad. > $businessAd = new LocalBusinessAd(); > $businessAd->fullBusinessName = $dataArray['name']; > $businessAd->businessName = $dataArray['name']; > $businessAd->description1 = $dataArray['desc1']; > $businessAd->description2 = $dataArray['desc2']; > $businessAd->displayUrl = $dataArray['displayUrl']; > $businessAd->url = $dataArray['destUrl']; > > $businessAd->phoneNumber = $dataArray['phoneNumber']; > $businessAd->streetAddress = $dataArray['address']; > $businessAd->city = $dataArray['city']; > $businessAd->region = $dataArray['region']; > $businessAd->regionCode = $dataArray['region']; > $businessAd->postalCode = $dataArray['postalcode']; > $businessAd->countryCode = $dataArray['countryCode']; > > // Create ad group ad. > $adGroupAd = new AdGroupAd(); > $adGroupAd->adGroupId = $adGroupId; > $adGroupAd->ad =$businessAd; > > // Create operations. > $adGroupAdOperation = new AdGroupAdOperation(); > $adGroupAdOperation->operand = $adGroupAd; > $adGroupAdOperation->operator = 'ADD'; > > so what else need to change in localbusiness. > > reply me ASAP. > > On Mar 4, 5:36 am, AdWords API Advisor <[email protected]> > wrote: > > > > > Hi, > > > Local Business Ads are not supported in the v2009 version of the API. > > Instead you must use Location Extensions: > > > http://adwordsapi.blogspot.com/2009/12/discover-v2009-location-extens... > > > Best, > > - Eric Koleda, AdWords API Team > > > On Mar 3, 4:33 am, "[email protected]" <[email protected]> > > wrote: > > > > local business ad publish is failing. > > > it's giving error UNSUPPORTED_OPERATION. > > > > let me suggest what changes need to publish local business ad. -- 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.
