CreateResponsiveAdRecommendation Service Operation - Campaign Management
Reserved.
Request Elements
The CreateResponsiveAdRecommendationRequest object defines the body and header elements of the service operation request. The elements must be in the same order as shown in the Request SOAP.
Note
Unless otherwise noted below, all request elements are required.
Request Body Elements
Element | Description | Data Type |
---|---|---|
AdSubType | Reserved. | AdSubType |
FinalUrls | Reserved. | string array |
Prompt | Reserved. | string |
TextTone | Reserved. | AdRecommendationTextTone |
Request Header Elements
Element | Description | Data Type |
---|---|---|
AuthenticationToken | The OAuth access token that represents the credentials of a user who has permissions to Microsoft Advertising accounts. For more information see Authentication with OAuth. |
string |
CustomerAccountId | The identifier of the ad account that owns or is associated with the entities in the request. This header element must have the same value as the AccountId body element when both are required. This element is required for most service operations, and as a best practice you should always set it. For more information see Get Your Account and Customer IDs. |
string |
CustomerId | The identifier of the manager account (customer) the user is accessing or operating from. A user can have access to multiple manager accounts. This element is required for most service operations, and as a best practice you should always set it. For more information see Get Your Account and Customer IDs. |
string |
DeveloperToken | The developer token used to access the Bing Ads API. For more information see Get a Developer Token. |
string |
Password | This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. | string |
UserName | This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. | string |
Response Elements
The CreateResponsiveAdRecommendationResponse object defines the body and header elements of the service operation response. The elements are returned in the same order as shown in the Response SOAP.
Response Body Elements
Element | Description | Data Type |
---|---|---|
ImageSuggestions | Reserved. | AdRecommendationImageSuggestion array |
ResponsiveAd | Reserved. | ResponsiveAd |
VideoSuggestions | Reserved. | AdRecommendationVideoSuggestion array |
Response Header Elements
Element | Description | Data Type |
---|---|---|
TrackingId | The identifier of the log entry that contains the details of the API call. | string |
Request SOAP
This template was generated by a tool to show the order of the body and header elements for the SOAP request. For supported types that you can use with this service operation, see the Request Body Elements reference above.
<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
<Action mustUnderstand="1">CreateResponsiveAdRecommendation</Action>
<AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
<CustomerAccountId i:nil="false">ValueHere</CustomerAccountId>
<CustomerId i:nil="false">ValueHere</CustomerId>
<DeveloperToken i:nil="false">ValueHere</DeveloperToken>
</s:Header>
<s:Body>
<CreateResponsiveAdRecommendationRequest xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
<AdSubType i:nil="false">ValueHere</AdSubType>
<FinalUrls i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:string>ValueHere</a1:string>
</FinalUrls>
<Prompt i:nil="false">ValueHere</Prompt>
<TextTone i:nil="false">ValueHere</TextTone>
</CreateResponsiveAdRecommendationRequest>
</s:Body>
</s:Envelope>
Response SOAP
This template was generated by a tool to show the order of the body and header elements for the SOAP response.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
<TrackingId d3p1:nil="false" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</TrackingId>
</s:Header>
<s:Body>
<CreateResponsiveAdRecommendationResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
<ResponsiveAd d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<AdSubType d4p1:nil="false">ValueHere</AdSubType>
<BusinessName d4p1:nil="false">ValueHere</BusinessName>
<CallToAction d4p1:nil="false">ValueHere</CallToAction>
<CallToActionLanguage d4p1:nil="false">ValueHere</CallToActionLanguage>
<Descriptions d4p1:nil="false">
<AssetLink>
<Asset d4p1:nil="false" d4p1:type="-- derived type specified here with the appropriate prefix --">
<Id d4p1:nil="false">ValueHere</Id>
<Name d4p1:nil="false">ValueHere</Name>
<Type d4p1:nil="false">ValueHere</Type>
<!--This field is applicable if the derived type attribute is set to TextAsset-->
<Text d4p1:nil="false">ValueHere</Text>
<!--These fields are applicable if the derived type attribute is set to ImageAsset-->
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
<!--These fields are applicable if the derived type attribute is set to VideoAsset-->
<SubType d4p1:nil="false">ValueHere</SubType>
<ThumbnailImage d4p1:nil="false">
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
</ThumbnailImage>
</Asset>
<AssetPerformanceLabel d4p1:nil="false">ValueHere</AssetPerformanceLabel>
<EditorialStatus d4p1:nil="false">ValueHere</EditorialStatus>
<PinnedField d4p1:nil="false">ValueHere</PinnedField>
</AssetLink>
</Descriptions>
<Headline d4p1:nil="false">ValueHere</Headline>
<Headlines d4p1:nil="false">
<AssetLink>
<Asset d4p1:nil="false" d4p1:type="-- derived type specified here with the appropriate prefix --">
<Id d4p1:nil="false">ValueHere</Id>
<Name d4p1:nil="false">ValueHere</Name>
<Type d4p1:nil="false">ValueHere</Type>
<!--This field is applicable if the derived type attribute is set to TextAsset-->
<Text d4p1:nil="false">ValueHere</Text>
<!--These fields are applicable if the derived type attribute is set to ImageAsset-->
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
<!--These fields are applicable if the derived type attribute is set to VideoAsset-->
<SubType d4p1:nil="false">ValueHere</SubType>
<ThumbnailImage d4p1:nil="false">
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
</ThumbnailImage>
</Asset>
<AssetPerformanceLabel d4p1:nil="false">ValueHere</AssetPerformanceLabel>
<EditorialStatus d4p1:nil="false">ValueHere</EditorialStatus>
<PinnedField d4p1:nil="false">ValueHere</PinnedField>
</AssetLink>
</Headlines>
<Images d4p1:nil="false">
<AssetLink>
<Asset d4p1:nil="false" d4p1:type="-- derived type specified here with the appropriate prefix --">
<Id d4p1:nil="false">ValueHere</Id>
<Name d4p1:nil="false">ValueHere</Name>
<Type d4p1:nil="false">ValueHere</Type>
<!--This field is applicable if the derived type attribute is set to TextAsset-->
<Text d4p1:nil="false">ValueHere</Text>
<!--These fields are applicable if the derived type attribute is set to ImageAsset-->
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
<!--These fields are applicable if the derived type attribute is set to VideoAsset-->
<SubType d4p1:nil="false">ValueHere</SubType>
<ThumbnailImage d4p1:nil="false">
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
</ThumbnailImage>
</Asset>
<AssetPerformanceLabel d4p1:nil="false">ValueHere</AssetPerformanceLabel>
<EditorialStatus d4p1:nil="false">ValueHere</EditorialStatus>
<PinnedField d4p1:nil="false">ValueHere</PinnedField>
</AssetLink>
</Images>
<ImpressionTrackingUrls d4p1:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a1:string>ValueHere</a1:string>
</ImpressionTrackingUrls>
<LongHeadline d4p1:nil="false">
<Asset d4p1:nil="false" d4p1:type="-- derived type specified here with the appropriate prefix --">
<Id d4p1:nil="false">ValueHere</Id>
<Name d4p1:nil="false">ValueHere</Name>
<Type d4p1:nil="false">ValueHere</Type>
<!--This field is applicable if the derived type attribute is set to TextAsset-->
<Text d4p1:nil="false">ValueHere</Text>
<!--These fields are applicable if the derived type attribute is set to ImageAsset-->
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
<!--These fields are applicable if the derived type attribute is set to VideoAsset-->
<SubType d4p1:nil="false">ValueHere</SubType>
<ThumbnailImage d4p1:nil="false">
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
</ThumbnailImage>
</Asset>
<AssetPerformanceLabel d4p1:nil="false">ValueHere</AssetPerformanceLabel>
<EditorialStatus d4p1:nil="false">ValueHere</EditorialStatus>
<PinnedField d4p1:nil="false">ValueHere</PinnedField>
</LongHeadline>
<LongHeadlineString d4p1:nil="false">ValueHere</LongHeadlineString>
<LongHeadlines d4p1:nil="false">
<AssetLink>
<Asset d4p1:nil="false" d4p1:type="-- derived type specified here with the appropriate prefix --">
<Id d4p1:nil="false">ValueHere</Id>
<Name d4p1:nil="false">ValueHere</Name>
<Type d4p1:nil="false">ValueHere</Type>
<!--This field is applicable if the derived type attribute is set to TextAsset-->
<Text d4p1:nil="false">ValueHere</Text>
<!--These fields are applicable if the derived type attribute is set to ImageAsset-->
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
<!--These fields are applicable if the derived type attribute is set to VideoAsset-->
<SubType d4p1:nil="false">ValueHere</SubType>
<ThumbnailImage d4p1:nil="false">
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
</ThumbnailImage>
</Asset>
<AssetPerformanceLabel d4p1:nil="false">ValueHere</AssetPerformanceLabel>
<EditorialStatus d4p1:nil="false">ValueHere</EditorialStatus>
<PinnedField d4p1:nil="false">ValueHere</PinnedField>
</AssetLink>
</LongHeadlines>
<Text d4p1:nil="false">ValueHere</Text>
<VerifiedTrackingSettings d4p1:nil="false">
<Details xmlns:e149="http://schemas.datacontract.org/2004/07/System.Collections.Generic" d4p1:nil="false">
<e149:ArrayOfKeyValuePairOfstringstring>
<e149:KeyValuePairOfstringstring>
<e149:key d4p1:nil="false">ValueHere</e149:key>
<e149:value d4p1:nil="false">ValueHere</e149:value>
</e149:KeyValuePairOfstringstring>
</e149:ArrayOfKeyValuePairOfstringstring>
</Details>
</VerifiedTrackingSettings>
<Videos d4p1:nil="false">
<AssetLink>
<Asset d4p1:nil="false" d4p1:type="-- derived type specified here with the appropriate prefix --">
<Id d4p1:nil="false">ValueHere</Id>
<Name d4p1:nil="false">ValueHere</Name>
<Type d4p1:nil="false">ValueHere</Type>
<!--This field is applicable if the derived type attribute is set to TextAsset-->
<Text d4p1:nil="false">ValueHere</Text>
<!--These fields are applicable if the derived type attribute is set to ImageAsset-->
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
<!--These fields are applicable if the derived type attribute is set to VideoAsset-->
<SubType d4p1:nil="false">ValueHere</SubType>
<ThumbnailImage d4p1:nil="false">
<CropHeight d4p1:nil="false">ValueHere</CropHeight>
<CropWidth d4p1:nil="false">ValueHere</CropWidth>
<CropX d4p1:nil="false">ValueHere</CropX>
<CropY d4p1:nil="false">ValueHere</CropY>
<SubType d4p1:nil="false">ValueHere</SubType>
<TargetHeight d4p1:nil="false">ValueHere</TargetHeight>
<TargetWidth d4p1:nil="false">ValueHere</TargetWidth>
</ThumbnailImage>
</Asset>
<AssetPerformanceLabel d4p1:nil="false">ValueHere</AssetPerformanceLabel>
<EditorialStatus d4p1:nil="false">ValueHere</EditorialStatus>
<PinnedField d4p1:nil="false">ValueHere</PinnedField>
</AssetLink>
</Videos>
</ResponsiveAd>
<ImageSuggestions d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<AdRecommendationImageSuggestion>
<Image d4p1:nil="false">
<Data d4p1:nil="false">ValueHere</Data>
</Image>
<ImageUrl d4p1:nil="false">ValueHere</ImageUrl>
</AdRecommendationImageSuggestion>
</ImageSuggestions>
<VideoSuggestions d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
<AdRecommendationVideoSuggestion>
<Video d4p1:nil="false">
<AspectRatio d4p1:nil="false">ValueHere</AspectRatio>
<CreatedDateTimeInUTC d4p1:nil="false">ValueHere</CreatedDateTimeInUTC>
<Description d4p1:nil="false">ValueHere</Description>
<DurationInMilliseconds d4p1:nil="false">ValueHere</DurationInMilliseconds>
<FailureCode d4p1:nil="false">ValueHere</FailureCode>
<Id d4p1:nil="false">ValueHere</Id>
<ModifiedDateTimeInUTC d4p1:nil="false">ValueHere</ModifiedDateTimeInUTC>
<SourceUrl d4p1:nil="false">ValueHere</SourceUrl>
<Status d4p1:nil="false">ValueHere</Status>
<ThumbnailUrl d4p1:nil="false">ValueHere</ThumbnailUrl>
<Url d4p1:nil="false">ValueHere</Url>
</Video>
</AdRecommendationVideoSuggestion>
</VideoSuggestions>
</CreateResponsiveAdRecommendationResponse>
</s:Body>
</s:Envelope>
Code Syntax
The example syntax can be used with Bing Ads SDKs. See Bing Ads API Code Examples for more examples.
public async Task<CreateResponsiveAdRecommendationResponse> CreateResponsiveAdRecommendationAsync(
AdSubType? adSubType,
IList<string> finalUrls,
string prompt,
AdRecommendationTextTone? textTone)
{
var request = new CreateResponsiveAdRecommendationRequest
{
AdSubType = adSubType,
FinalUrls = finalUrls,
Prompt = prompt,
TextTone = textTone
};
return (await CampaignManagementService.CallAsync((s, r) => s.CreateResponsiveAdRecommendationAsync(r), request));
}
static CreateResponsiveAdRecommendationResponse createResponsiveAdRecommendation(
ArrayList<AdSubType> adSubType,
ArrayOfstring finalUrls,
java.lang.String prompt,
AdRecommendationTextTone textTone) throws RemoteException, Exception
{
CreateResponsiveAdRecommendationRequest request = new CreateResponsiveAdRecommendationRequest();
request.setAdSubType(adSubType);
request.setFinalUrls(finalUrls);
request.setPrompt(prompt);
request.setTextTone(textTone);
return CampaignManagementService.getService().createResponsiveAdRecommendation(request);
}
static function CreateResponsiveAdRecommendation(
$adSubType,
$finalUrls,
$prompt,
$textTone)
{
$GLOBALS['Proxy'] = $GLOBALS['CampaignManagementProxy'];
$request = new CreateResponsiveAdRecommendationRequest();
$request->AdSubType = $adSubType;
$request->FinalUrls = $finalUrls;
$request->Prompt = $prompt;
$request->TextTone = $textTone;
return $GLOBALS['CampaignManagementProxy']->GetService()->CreateResponsiveAdRecommendation($request);
}
response=campaignmanagement_service.CreateResponsiveAdRecommendation(
AdSubType=AdSubType,
FinalUrls=FinalUrls,
Prompt=Prompt,
TextTone=TextTone)
Requirements
Service: CampaignManagementService.svc v13
Namespace: https://bingads.microsoft.com/CampaignManagement/v13
Request Url
https://campaign.api.bingads.microsoft.com/CampaignManagement/v13/ResponsiveAdRecommendation/Create
Request Elements
The CreateResponsiveAdRecommendationRequest object defines the body and header elements of the service operation request.
Note
Unless otherwise noted below, all request elements are required.
Request Body Elements
Element | Description | Data Type |
---|---|---|
AdSubType | Reserved. | AdSubType |
FinalUrls | Reserved. | string array |
Prompt | Reserved. | string |
TextTone | Reserved. | AdRecommendationTextTone |
Request Header Elements
Element | Description | Data Type |
---|---|---|
Authorization | The OAuth access token that represents the credentials of a user who has permissions to Microsoft Advertising accounts. Please ensure that the token is prefixed with "Bearer ", this is necessary for proper authentication. For more information see Authentication with OAuth. |
string |
CustomerAccountId | The identifier of the ad account that owns or is associated with the entities in the request. This header element must have the same value as the AccountId body element when both are required. This element is required for most service operations, and as a best practice you should always set it. For more information see Get Your Account and Customer IDs. |
string |
CustomerId | The identifier of the manager account (customer) the user is accessing or operating from. A user can have access to multiple manager accounts. This element is required for most service operations, and as a best practice you should always set it. For more information see Get Your Account and Customer IDs. |
string |
DeveloperToken | The developer token used to access the Bing Ads API. For more information see Get a Developer Token. |
string |
Password | This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. | string |
UserName | This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. | string |
Response Elements
The CreateResponsiveAdRecommendationResponse object defines the body and header elements of the service operation response. The elements are returned in the same order as shown in the Response JSON.
Response Body Elements
Element | Description | Data Type |
---|---|---|
ImageSuggestions | Reserved. | AdRecommendationImageSuggestion array |
ResponsiveAd | Reserved. | ResponsiveAd |
VideoSuggestions | Reserved. | AdRecommendationVideoSuggestion array |
Response Header Elements
Element | Description | Data Type |
---|---|---|
TrackingId | The identifier of the log entry that contains the details of the API call. | string |
Request JSON
This template was generated by a tool to show the body and header elements for the JSON request. For supported types that you can use with this service operation, see the Request Body Elements reference above.
{
"AdSubType": "ValueHere",
"FinalUrls": [
"ValueHere"
],
"Prompt": "ValueHere",
"TextTone": "ValueHere"
}
Response JSON
This template was generated by a tool to show the body and header elements for the JSON response.
Below is an example that is applicable if the type of Asset is ImageAsset.
{
"ResponsiveAd": {
"AdSubType": "ValueHere",
"BusinessName": "ValueHere",
"CallToAction": "ValueHere",
"CallToActionLanguage": "ValueHere",
"Descriptions": [
{
"Asset": {
"Id": "LongValueHere",
"Name": "ValueHere",
"Type": "ImageAsset",
"CropHeight": IntValueHere,
"CropWidth": IntValueHere,
"CropX": IntValueHere,
"CropY": IntValueHere,
"SubType": "ValueHere",
"TargetHeight": IntValueHere,
"TargetWidth": IntValueHere
},
"AssetPerformanceLabel": "ValueHere",
"EditorialStatus": "ValueHere",
"PinnedField": "ValueHere"
}
],
"Headline": "ValueHere",
"Headlines": [
{
"Asset": {
"Id": "LongValueHere",
"Name": "ValueHere",
"Type": "ImageAsset",
"CropHeight": IntValueHere,
"CropWidth": IntValueHere,
"CropX": IntValueHere,
"CropY": IntValueHere,
"SubType": "ValueHere",
"TargetHeight": IntValueHere,
"TargetWidth": IntValueHere
},
"AssetPerformanceLabel": "ValueHere",
"EditorialStatus": "ValueHere",
"PinnedField": "ValueHere"
}
],
"Images": [
{
"Asset": {
"Id": "LongValueHere",
"Name": "ValueHere",
"Type": "ImageAsset",
"CropHeight": IntValueHere,
"CropWidth": IntValueHere,
"CropX": IntValueHere,
"CropY": IntValueHere,
"SubType": "ValueHere",
"TargetHeight": IntValueHere,
"TargetWidth": IntValueHere
},
"AssetPerformanceLabel": "ValueHere",
"EditorialStatus": "ValueHere",
"PinnedField": "ValueHere"
}
],
"ImpressionTrackingUrls": [
"ValueHere"
],
"LongHeadline": {
"Asset": {
"Id": "LongValueHere",
"Name": "ValueHere",
"Type": "ImageAsset",
"CropHeight": IntValueHere,
"CropWidth": IntValueHere,
"CropX": IntValueHere,
"CropY": IntValueHere,
"SubType": "ValueHere",
"TargetHeight": IntValueHere,
"TargetWidth": IntValueHere
},
"AssetPerformanceLabel": "ValueHere",
"EditorialStatus": "ValueHere",
"PinnedField": "ValueHere"
},
"LongHeadlines": [
{
"Asset": {
"Id": "LongValueHere",
"Name": "ValueHere",
"Type": "ImageAsset",
"CropHeight": IntValueHere,
"CropWidth": IntValueHere,
"CropX": IntValueHere,
"CropY": IntValueHere,
"SubType": "ValueHere",
"TargetHeight": IntValueHere,
"TargetWidth": IntValueHere
},
"AssetPerformanceLabel": "ValueHere",
"EditorialStatus": "ValueHere",
"PinnedField": "ValueHere"
}
],
"LongHeadlineString": "ValueHere",
"Text": "ValueHere",
"VerifiedTrackingSettings": {
"Details": [
{
"key": "ValueHere",
"value": "ValueHere"
}
]
},
"Videos": [
{
"Asset": {
"Id": "LongValueHere",
"Name": "ValueHere",
"Type": "ImageAsset",
"CropHeight": IntValueHere,
"CropWidth": IntValueHere,
"CropX": IntValueHere,
"CropY": IntValueHere,
"SubType": "ValueHere",
"TargetHeight": IntValueHere,
"TargetWidth": IntValueHere
},
"AssetPerformanceLabel": "ValueHere",
"EditorialStatus": "ValueHere",
"PinnedField": "ValueHere"
}
]
},
"ImageSuggestions": [
{
"Image": {
"Data": "ValueHere"
},
"ImageUrl": "ValueHere"
}
],
"VideoSuggestions": [
{
"Video": {
"AspectRatio": "ValueHere",
"CreatedDateTimeInUTC": "ValueHere",
"Description": "ValueHere",
"DurationInMilliseconds": IntValueHere,
"FailureCode": "ValueHere",
"Id": "LongValueHere",
"ModifiedDateTimeInUTC": "ValueHere",
"SourceUrl": "ValueHere",
"Status": "ValueHere",
"ThumbnailUrl": "ValueHere",
"Url": "ValueHere"
}
}
]
}
Code Syntax
To call REST API through SDKs, you need to upgrade SDK to a certain version and configure the system parameters.The example syntax can be used with Bing Ads SDKs. See Bing Ads API Code Examples for more examples.
public async Task<CreateResponsiveAdRecommendationResponse> CreateResponsiveAdRecommendationAsync(
AdSubType? adSubType,
IList<string> finalUrls,
string prompt,
AdRecommendationTextTone? textTone)
{
var request = new CreateResponsiveAdRecommendationRequest
{
AdSubType = adSubType,
FinalUrls = finalUrls,
Prompt = prompt,
TextTone = textTone
};
return (await CampaignManagementService.CallAsync((s, r) => s.CreateResponsiveAdRecommendationAsync(r), request));
}
static CreateResponsiveAdRecommendationResponse createResponsiveAdRecommendation(
ArrayList<AdSubType> adSubType,
ArrayOfstring finalUrls,
java.lang.String prompt,
AdRecommendationTextTone textTone) throws RemoteException, Exception
{
CreateResponsiveAdRecommendationRequest request = new CreateResponsiveAdRecommendationRequest();
request.setAdSubType(adSubType);
request.setFinalUrls(finalUrls);
request.setPrompt(prompt);
request.setTextTone(textTone);
return CampaignManagementService.getService().createResponsiveAdRecommendation(request);
}
static function CreateResponsiveAdRecommendation(
$adSubType,
$finalUrls,
$prompt,
$textTone)
{
$GLOBALS['Proxy'] = $GLOBALS['CampaignManagementProxy'];
$request = new CreateResponsiveAdRecommendationRequest();
$request->AdSubType = $adSubType;
$request->FinalUrls = $finalUrls;
$request->Prompt = $prompt;
$request->TextTone = $textTone;
return $GLOBALS['CampaignManagementProxy']->GetService()->CreateResponsiveAdRecommendation($request);
}
response=campaignmanagement_service.CreateResponsiveAdRecommendation(
AdSubType=AdSubType,
FinalUrls=FinalUrls,
Prompt=Prompt,
TextTone=TextTone)