Search in sources :

Example 6 with AssetLink

use of com.google.api.ads.adwords.axis.v201809.cm.AssetLink in project googleads-java-lib by googleads.

the class AddResponsiveSearchAd method createAssetLinkForText.

/**
 * Creates an {@link AssetLink} containing a {@link TextAsset} with the specified string.
 *
 * @param text the text for the text asset.
 * @return a new {@link AssetLink}
 */
private static AssetLink createAssetLinkForText(String text) {
    AssetLink assetLink = new AssetLink();
    TextAsset textAsset = new TextAsset();
    textAsset.setAssetText(text);
    assetLink.setAsset(textAsset);
    return assetLink;
}
Also used : TextAsset(com.google.api.ads.adwords.axis.v201809.cm.TextAsset) AssetLink(com.google.api.ads.adwords.axis.v201809.cm.AssetLink)

Aggregations

AssetLink (com.google.api.ads.adwords.axis.v201809.cm.AssetLink)6 AdGroupAd (com.google.api.ads.adwords.axis.v201809.cm.AdGroupAd)3 AdGroupAdServiceInterface (com.google.api.ads.adwords.axis.v201809.cm.AdGroupAdServiceInterface)3 TextAsset (com.google.api.ads.adwords.axis.v201809.cm.TextAsset)3 AdGroupAdOperation (com.google.api.ads.adwords.axis.v201809.cm.AdGroupAdOperation)2 AdGroupAdReturnValue (com.google.api.ads.adwords.axis.v201809.cm.AdGroupAdReturnValue)2 ImageAsset (com.google.api.ads.adwords.axis.v201809.cm.ImageAsset)2 ResponsiveSearchAd (com.google.api.ads.adwords.axis.v201809.cm.ResponsiveSearchAd)2 ServedAssetFieldType (com.google.api.ads.adwords.axis.v201809.cm.ServedAssetFieldType)2 ArrayList (java.util.ArrayList)2 Parameter (com.beust.jcommander.Parameter)1 AdWordsServices (com.google.api.ads.adwords.axis.factory.AdWordsServices)1 SelectorBuilder (com.google.api.ads.adwords.axis.utils.v201809.SelectorBuilder)1 AdGroupAdPage (com.google.api.ads.adwords.axis.v201809.cm.AdGroupAdPage)1 AdGroupAdStatus (com.google.api.ads.adwords.axis.v201809.cm.AdGroupAdStatus)1 ApiError (com.google.api.ads.adwords.axis.v201809.cm.ApiError)1 ApiException (com.google.api.ads.adwords.axis.v201809.cm.ApiException)1 AssetOperation (com.google.api.ads.adwords.axis.v201809.cm.AssetOperation)1 AssetServiceInterface (com.google.api.ads.adwords.axis.v201809.cm.AssetServiceInterface)1 DisplayAdFormatSetting (com.google.api.ads.adwords.axis.v201809.cm.DisplayAdFormatSetting)1