idx int64 0 41.2k | question stringlengths 74 4.04k | target stringlengths 7 750 |
|---|---|---|
39,900 | public com . google . api . ads . admanager . axis . v201811 . OperatingSystemTargeting getOperatingSystemTargeting ( ) { return operatingSystemTargeting ; } | Gets the operatingSystemTargeting value for this TechnologyTargeting . |
39,901 | public void setOperatingSystemTargeting ( com . google . api . ads . admanager . axis . v201811 . OperatingSystemTargeting operatingSystemTargeting ) { this . operatingSystemTargeting = operatingSystemTargeting ; } | Sets the operatingSystemTargeting value for this TechnologyTargeting . |
39,902 | public com . google . api . ads . admanager . axis . v201811 . OperatingSystemVersionTargeting getOperatingSystemVersionTargeting ( ) { return operatingSystemVersionTargeting ; } | Gets the operatingSystemVersionTargeting value for this TechnologyTargeting . |
39,903 | public com . google . api . ads . admanager . axis . v201902 . Size getFlashAssetSize ( ) { return flashAssetSize ; } | Gets the flashAssetSize value for this FlashRedirectOverlayCreative . |
39,904 | public com . google . api . ads . adwords . axis . v201809 . mcm . ManagedCustomer getManager ( ) { return manager ; } | Gets the manager value for this PendingInvitation . |
39,905 | public com . google . api . ads . adwords . axis . v201809 . mcm . ManagedCustomer getClient ( ) { return client ; } | Gets the client value for this PendingInvitation . |
39,906 | private static OfflineData createOfflineData ( DateTime transactionTime , long transactionMicroAmount , String transactionCurrency , String conversionName , List < UserIdentifier > userIdentifiers ) { StoreSalesTransaction storeSalesTransaction = new StoreSalesTransaction ( ) ; storeSalesTransaction . setTransactionTime ( transactionTime . toString ( "yyyyMMdd HHmmss ZZZ" ) ) ; storeSalesTransaction . setConversionName ( conversionName ) ; storeSalesTransaction . setUserIdentifiers ( userIdentifiers . toArray ( new UserIdentifier [ userIdentifiers . size ( ) ] ) ) ; Money money = new Money ( ) ; money . setMicroAmount ( transactionMicroAmount ) ; MoneyWithCurrency moneyWithCurrency = new MoneyWithCurrency ( ) ; moneyWithCurrency . setMoney ( money ) ; moneyWithCurrency . setCurrencyCode ( transactionCurrency ) ; storeSalesTransaction . setTransactionAmount ( moneyWithCurrency ) ; OfflineData offlineData = new OfflineData ( ) ; offlineData . setStoreSalesTransaction ( storeSalesTransaction ) ; return offlineData ; } | Returns a new offline data object with the specified values . |
39,907 | private static UserIdentifier createUserIdentifier ( OfflineDataUploadUserIdentifierType identifierType , String value ) throws UnsupportedEncodingException { if ( HASHED_IDENTIFIER_TYPES . contains ( identifierType ) ) { value = toSHA256String ( value ) ; } UserIdentifier userIdentifier = new UserIdentifier ( ) ; userIdentifier . setUserIdentifierType ( identifierType ) ; userIdentifier . setValue ( value ) ; return userIdentifier ; } | Returns a new user identifier with the specified type and value . |
39,908 | private static String toSHA256String ( String str ) throws UnsupportedEncodingException { byte [ ] hash = digest . digest ( toNormalizedString ( str ) . getBytes ( "UTF-8" ) ) ; StringBuilder result = new StringBuilder ( ) ; for ( byte b : hash ) { result . append ( String . format ( "%02x" , b ) ) ; } return result . toString ( ) ; } | Hash a string using SHA - 256 hashing algorithm . |
39,909 | public com . google . api . ads . adwords . axis . v201809 . cm . ParentParentType getParentType ( ) { return parentType ; } | Gets the parentType value for this Parent . |
39,910 | public void setMezzanineFile ( com . google . api . ads . admanager . axis . v201808 . VideoRedirectAsset mezzanineFile ) { this . mezzanineFile = mezzanineFile ; } | Sets the mezzanineFile value for this VideoRedirectCreative . |
39,911 | public com . google . api . ads . adwords . axis . v201809 . cm . OperatingSystemVersionOperatorType getOperatorType ( ) { return operatorType ; } | Gets the operatorType value for this OperatingSystemVersion . |
39,912 | public void setValues ( com . google . api . ads . admanager . axis . v201902 . String_ValueMapEntry [ ] values ) { this . values = values ; } | Sets the values value for this Statement . |
39,913 | private static AdCustomizerFeed createCustomizerFeed ( AdWordsServicesInterface adWordsServices , AdWordsSession session , String feedName ) throws RemoteException { AdCustomizerFeedServiceInterface adCustomizerFeedService = adWordsServices . get ( session , AdCustomizerFeedServiceInterface . class ) ; AdCustomizerFeed customizerFeed = new AdCustomizerFeed ( ) ; customizerFeed . setFeedName ( feedName ) ; AdCustomizerFeedAttribute nameAttribute = new AdCustomizerFeedAttribute ( ) ; nameAttribute . setName ( "Name" ) ; nameAttribute . setType ( AdCustomizerFeedAttributeType . STRING ) ; AdCustomizerFeedAttribute priceAttribute = new AdCustomizerFeedAttribute ( ) ; priceAttribute . setName ( "Price" ) ; priceAttribute . setType ( AdCustomizerFeedAttributeType . STRING ) ; AdCustomizerFeedAttribute dateAttribute = new AdCustomizerFeedAttribute ( ) ; dateAttribute . setName ( "Date" ) ; dateAttribute . setType ( AdCustomizerFeedAttributeType . DATE_TIME ) ; customizerFeed . setFeedAttributes ( new AdCustomizerFeedAttribute [ ] { nameAttribute , priceAttribute , dateAttribute } ) ; AdCustomizerFeedOperation feedOperation = new AdCustomizerFeedOperation ( ) ; feedOperation . setOperand ( customizerFeed ) ; feedOperation . setOperator ( Operator . ADD ) ; AdCustomizerFeed addedFeed = adCustomizerFeedService . mutate ( new AdCustomizerFeedOperation [ ] { feedOperation } ) . getValue ( ) [ 0 ] ; System . out . printf ( "Created ad customizer feed with ID %d, name '%s' and attributes:%n" , addedFeed . getFeedId ( ) , addedFeed . getFeedName ( ) ) ; for ( AdCustomizerFeedAttribute feedAttribute : addedFeed . getFeedAttributes ( ) ) { System . out . printf ( " ID: %d, name: '%s', type: %s%n" , feedAttribute . getId ( ) , feedAttribute . getName ( ) , feedAttribute . getType ( ) ) ; } return addedFeed ; } | Creates a new AdCustomizerFeed . |
39,914 | private static FeedItemOperation createFeedItemAddOperation ( String name , String price , String date , AdCustomizerFeed adCustomizerFeed ) { FeedItem feedItem = new FeedItem ( ) ; feedItem . setFeedId ( adCustomizerFeed . getFeedId ( ) ) ; List < FeedItemAttributeValue > attributeValues = new ArrayList < > ( ) ; FeedItemAttributeValue nameAttributeValue = new FeedItemAttributeValue ( ) ; nameAttributeValue . setFeedAttributeId ( adCustomizerFeed . getFeedAttributes ( 0 ) . getId ( ) ) ; nameAttributeValue . setStringValue ( name ) ; attributeValues . add ( nameAttributeValue ) ; FeedItemAttributeValue priceAttributeValue = new FeedItemAttributeValue ( ) ; priceAttributeValue . setFeedAttributeId ( adCustomizerFeed . getFeedAttributes ( 1 ) . getId ( ) ) ; priceAttributeValue . setStringValue ( price ) ; attributeValues . add ( priceAttributeValue ) ; FeedItemAttributeValue dateAttributeValue = new FeedItemAttributeValue ( ) ; dateAttributeValue . setFeedAttributeId ( adCustomizerFeed . getFeedAttributes ( 2 ) . getId ( ) ) ; dateAttributeValue . setStringValue ( date ) ; attributeValues . add ( dateAttributeValue ) ; feedItem . setAttributeValues ( attributeValues . toArray ( new FeedItemAttributeValue [ attributeValues . size ( ) ] ) ) ; FeedItemOperation feedItemOperation = new FeedItemOperation ( ) ; feedItemOperation . setOperand ( feedItem ) ; feedItemOperation . setOperator ( Operator . ADD ) ; return feedItemOperation ; } | Creates a FeedItemOperation that will create a FeedItem with the specified values and ad group target when sent to FeedItemService . mutate . |
39,915 | private static void restrictFeedItemToAdGroup ( AdWordsServicesInterface adWordsServices , AdWordsSession session , FeedItem feedItem , long adGroupId ) throws RemoteException { FeedItemTargetServiceInterface feedItemTargetService = adWordsServices . get ( session , FeedItemTargetServiceInterface . class ) ; FeedItemAdGroupTarget adGroupTarget = new FeedItemAdGroupTarget ( ) ; adGroupTarget . setFeedId ( feedItem . getFeedId ( ) ) ; adGroupTarget . setFeedItemId ( feedItem . getFeedItemId ( ) ) ; adGroupTarget . setAdGroupId ( adGroupId ) ; FeedItemTargetOperation operation = new FeedItemTargetOperation ( ) ; operation . setOperator ( Operator . ADD ) ; operation . setOperand ( adGroupTarget ) ; FeedItemTargetReturnValue returnValue = feedItemTargetService . mutate ( new FeedItemTargetOperation [ ] { operation } ) ; FeedItemAdGroupTarget addedAdGroupTarget = ( FeedItemAdGroupTarget ) returnValue . getValue ( 0 ) ; System . out . printf ( "Feed item target for feed ID %d and feed item ID %d " + "was created to restrict serving to ad group ID %d.%n" , addedAdGroupTarget . getFeedId ( ) , addedAdGroupTarget . getFeedItemId ( ) , addedAdGroupTarget . getAdGroupId ( ) ) ; } | Restricts the feed item to an ad group . |
39,916 | private static void createAdsWithCustomizations ( AdWordsServicesInterface adWordsServices , AdWordsSession session , List < Long > adGroupIds , String feedName ) throws RemoteException { AdGroupAdServiceInterface adGroupAdService = adWordsServices . get ( session , AdGroupAdServiceInterface . class ) ; ExpandedTextAd textAd = new ExpandedTextAd ( ) ; textAd . setHeadlinePart1 ( String . format ( "Luxury Cruise to {=%s.Name}" , feedName ) ) ; textAd . setHeadlinePart2 ( String . format ( "Only {=%s.Price}" , feedName ) ) ; textAd . setDescription ( String . format ( "Offer ends in {=countdown(%s.Date)}!" , feedName ) ) ; textAd . setFinalUrls ( new String [ ] { "http://www.example.com" } ) ; List < AdGroupAdOperation > adGroupAdOperations = new ArrayList < > ( ) ; for ( Long adGroupId : adGroupIds ) { AdGroupAd adGroupAd = new AdGroupAd ( ) ; adGroupAd . setAdGroupId ( adGroupId ) ; adGroupAd . setAd ( textAd ) ; AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation ( ) ; adGroupAdOperation . setOperand ( adGroupAd ) ; adGroupAdOperation . setOperator ( Operator . ADD ) ; adGroupAdOperations . add ( adGroupAdOperation ) ; } AdGroupAdReturnValue adGroupAdReturnValue = adGroupAdService . mutate ( adGroupAdOperations . toArray ( new AdGroupAdOperation [ adGroupAdOperations . size ( ) ] ) ) ; for ( AdGroupAd addedAd : adGroupAdReturnValue . getValue ( ) ) { System . out . printf ( "Created an ad with ID %d, type '%s' and status '%s'.%n" , addedAd . getAd ( ) . getId ( ) , addedAd . getAd ( ) . getAdType ( ) , addedAd . getStatus ( ) ) ; } } | Creates expanded text ads that use ad customizations for the specified ad group IDs . |
39,917 | public void setPlacementSegment ( com . google . api . ads . admanager . axis . v201902 . PlacementTargeting placementSegment ) { this . placementSegment = placementSegment ; } | Sets the placementSegment value for this ProductSegmentation . |
39,918 | public void setCustomTargetingSegment ( com . google . api . ads . admanager . axis . v201902 . CustomCriteria [ ] customTargetingSegment ) { this . customTargetingSegment = customTargetingSegment ; } | Sets the customTargetingSegment value for this ProductSegmentation . |
39,919 | public void setBandwidthSegment ( com . google . api . ads . admanager . axis . v201902 . BandwidthGroupTargeting bandwidthSegment ) { this . bandwidthSegment = bandwidthSegment ; } | Sets the bandwidthSegment value for this ProductSegmentation . |
39,920 | public void setBrowserSegment ( com . google . api . ads . admanager . axis . v201902 . BrowserTargeting browserSegment ) { this . browserSegment = browserSegment ; } | Sets the browserSegment value for this ProductSegmentation . |
39,921 | public void setBrowserLanguageSegment ( com . google . api . ads . admanager . axis . v201902 . BrowserLanguageTargeting browserLanguageSegment ) { this . browserLanguageSegment = browserLanguageSegment ; } | Sets the browserLanguageSegment value for this ProductSegmentation . |
39,922 | public void setOperatingSystemVersionSegment ( com . google . api . ads . admanager . axis . v201902 . OperatingSystemVersionTargeting operatingSystemVersionSegment ) { this . operatingSystemVersionSegment = operatingSystemVersionSegment ; } | Sets the operatingSystemVersionSegment value for this ProductSegmentation . |
39,923 | public void setMobileCarrierSegment ( com . google . api . ads . admanager . axis . v201902 . MobileCarrierTargeting mobileCarrierSegment ) { this . mobileCarrierSegment = mobileCarrierSegment ; } | Sets the mobileCarrierSegment value for this ProductSegmentation . |
39,924 | public void setDeviceCapabilitySegment ( com . google . api . ads . admanager . axis . v201902 . DeviceCapabilityTargeting deviceCapabilitySegment ) { this . deviceCapabilitySegment = deviceCapabilitySegment ; } | Sets the deviceCapabilitySegment value for this ProductSegmentation . |
39,925 | public void setDeviceManufacturerSegment ( com . google . api . ads . admanager . axis . v201902 . DeviceManufacturerTargeting deviceManufacturerSegment ) { this . deviceManufacturerSegment = deviceManufacturerSegment ; } | Sets the deviceManufacturerSegment value for this ProductSegmentation . |
39,926 | public void setMobileApplicationSegment ( com . google . api . ads . admanager . axis . v201902 . MobileApplicationTargeting mobileApplicationSegment ) { this . mobileApplicationSegment = mobileApplicationSegment ; } | Sets the mobileApplicationSegment value for this ProductSegmentation . |
39,927 | public com . google . api . ads . admanager . axis . v201902 . VideoPositionTargeting getVideoPositionSegment ( ) { return videoPositionSegment ; } | Gets the videoPositionSegment value for this ProductSegmentation . |
39,928 | private static DSAFeedDetails createFeed ( AdWordsServicesInterface adWordsServices , AdWordsSession session ) throws ApiException , RemoteException { FeedServiceInterface feedService = adWordsServices . get ( session , FeedServiceInterface . class ) ; FeedAttribute urlAttribute = new FeedAttribute ( ) ; urlAttribute . setType ( FeedAttributeType . URL_LIST ) ; urlAttribute . setName ( "Page URL" ) ; FeedAttribute labelAttribute = new FeedAttribute ( ) ; labelAttribute . setType ( FeedAttributeType . STRING_LIST ) ; labelAttribute . setName ( "Label" ) ; Feed dsaPageFeed = new Feed ( ) ; dsaPageFeed . setName ( "DSA Feed #" + System . currentTimeMillis ( ) ) ; dsaPageFeed . setAttributes ( new FeedAttribute [ ] { urlAttribute , labelAttribute } ) ; dsaPageFeed . setOrigin ( FeedOrigin . USER ) ; FeedOperation operation = new FeedOperation ( ) ; operation . setOperand ( dsaPageFeed ) ; operation . setOperator ( Operator . ADD ) ; Feed newFeed = feedService . mutate ( new FeedOperation [ ] { operation } ) . getValue ( 0 ) ; DSAFeedDetails feedDetails = new DSAFeedDetails ( ) ; feedDetails . feedId = newFeed . getId ( ) ; FeedAttribute [ ] savedAttributes = newFeed . getAttributes ( ) ; feedDetails . urlAttributeId = savedAttributes [ 0 ] . getId ( ) ; feedDetails . labelAttributeId = savedAttributes [ 1 ] . getId ( ) ; System . out . printf ( "Feed with name '%s' and ID %d with urlAttributeId %d" + " and labelAttributeId %d was created.%n" , newFeed . getName ( ) , feedDetails . feedId , feedDetails . urlAttributeId , feedDetails . labelAttributeId ) ; return feedDetails ; } | Creates the feed for DSA page URLs . |
39,929 | private static void createFeedMapping ( AdWordsServicesInterface adWordsServices , AdWordsSession session , DSAFeedDetails feedDetails ) throws RemoteException { FeedMappingServiceInterface feedMappingService = adWordsServices . get ( session , FeedMappingServiceInterface . class ) ; AttributeFieldMapping urlFieldMapping = new AttributeFieldMapping ( ) ; urlFieldMapping . setFeedAttributeId ( feedDetails . urlAttributeId ) ; urlFieldMapping . setFieldId ( DSA_PAGE_URLS_FIELD_ID ) ; AttributeFieldMapping labelFieldMapping = new AttributeFieldMapping ( ) ; labelFieldMapping . setFeedAttributeId ( feedDetails . labelAttributeId ) ; labelFieldMapping . setFieldId ( DSA_LABEL_FIELD_ID ) ; FeedMapping feedMapping = new FeedMapping ( ) ; feedMapping . setCriterionType ( DSA_PAGE_FEED_CRITERION_TYPE ) ; feedMapping . setFeedId ( feedDetails . feedId ) ; feedMapping . setAttributeFieldMappings ( new AttributeFieldMapping [ ] { urlFieldMapping , labelFieldMapping } ) ; FeedMappingOperation operation = new FeedMappingOperation ( ) ; operation . setOperand ( feedMapping ) ; operation . setOperator ( Operator . ADD ) ; FeedMapping newFeedMapping = feedMappingService . mutate ( new FeedMappingOperation [ ] { operation } ) . getValue ( 0 ) ; System . out . printf ( "Feed mapping with ID %d and criterionType %d was saved for feed with ID %d.%n" , newFeedMapping . getFeedMappingId ( ) , newFeedMapping . getCriterionType ( ) , newFeedMapping . getFeedId ( ) ) ; } | Creates the feed mapping for the DSA page feeds . |
39,930 | private static void createFeedItems ( AdWordsServicesInterface adWordsServices , AdWordsSession session , DSAFeedDetails feedDetails , String labelName ) throws RemoteException { FeedItemServiceInterface feedItemService = adWordsServices . get ( session , FeedItemServiceInterface . class ) ; FeedItemOperation [ ] operations = new FeedItemOperation [ ] { createDsaUrlAddOperation ( feedDetails , "http://www.example.com/discounts/rental-cars" , labelName ) , createDsaUrlAddOperation ( feedDetails , "http://www.example.com/discounts/hotel-deals" , labelName ) , createDsaUrlAddOperation ( feedDetails , "http://www.example.com/discounts/flight-deals" , labelName ) , } ; FeedItemReturnValue result = feedItemService . mutate ( operations ) ; for ( FeedItem item : result . getValue ( ) ) { System . out . printf ( "Feed item with feed item ID %d was added.%n" , item . getFeedItemId ( ) ) ; } } | Creates the page URLs in the DSA page feed . |
39,931 | private static void updateCampaignDsaSetting ( AdWordsServicesInterface adWordsServices , AdWordsSession session , Long campaignId , DSAFeedDetails feedDetails ) throws ApiException , RemoteException { CampaignServiceInterface campaignService = adWordsServices . get ( session , CampaignServiceInterface . class ) ; Selector selector = new SelectorBuilder ( ) . fields ( CampaignField . Id , CampaignField . Settings ) . equalsId ( campaignId ) . build ( ) ; CampaignPage campaignPage = campaignService . get ( selector ) ; if ( campaignPage . getEntries ( ) == null || campaignPage . getTotalNumEntries ( ) == 0 ) { throw new IllegalArgumentException ( "No campaign found with ID: " + campaignId ) ; } Campaign campaign = campaignPage . getEntries ( 0 ) ; if ( campaign . getSettings ( ) == null ) { throw new IllegalArgumentException ( "Campaign with ID " + campaignId + " is not a DSA campaign." ) ; } DynamicSearchAdsSetting dsaSetting = ( DynamicSearchAdsSetting ) Arrays . stream ( campaign . getSettings ( ) ) . filter ( DynamicSearchAdsSetting . class :: isInstance ) . findFirst ( ) . orElse ( null ) ; if ( dsaSetting == null ) { throw new IllegalArgumentException ( "Campaign with ID " + campaignId + " is not a DSA campaign." ) ; } PageFeed pageFeed = new PageFeed ( ) ; pageFeed . setFeedIds ( new long [ ] { feedDetails . feedId } ) ; dsaSetting . setPageFeed ( pageFeed ) ; dsaSetting . setUseSuppliedUrlsOnly ( true ) ; Campaign updatedCampaign = new Campaign ( ) ; updatedCampaign . setId ( campaignId ) ; updatedCampaign . setSettings ( campaign . getSettings ( ) ) ; CampaignOperation operation = new CampaignOperation ( ) ; operation . setOperand ( updatedCampaign ) ; operation . setOperator ( Operator . SET ) ; updatedCampaign = campaignService . mutate ( new CampaignOperation [ ] { operation } ) . getValue ( 0 ) ; System . out . printf ( "DSA page feed for campaign ID %d was updated with feed ID %d.%n" , updatedCampaign . getId ( ) , feedDetails . feedId ) ; } | Updates the campaign DSA setting to add DSA pagefeeds . |
39,932 | private static void addDsaTargeting ( AdWordsServicesInterface adWordsServices , AdWordsSession session , Long adGroupId , String dsaPageUrlLabel ) throws ApiException , RemoteException { AdGroupCriterionServiceInterface adGroupCriterionService = adWordsServices . get ( session , AdGroupCriterionServiceInterface . class ) ; Webpage webpage = new Webpage ( ) ; WebpageParameter parameter = new WebpageParameter ( ) ; parameter . setCriterionName ( "Test criterion" ) ; webpage . setParameter ( parameter ) ; WebpageCondition condition = new WebpageCondition ( ) ; condition . setOperand ( WebpageConditionOperand . CUSTOM_LABEL ) ; condition . setArgument ( dsaPageUrlLabel ) ; parameter . setConditions ( new WebpageCondition [ ] { condition } ) ; BiddableAdGroupCriterion criterion = new BiddableAdGroupCriterion ( ) ; criterion . setAdGroupId ( adGroupId ) ; criterion . setCriterion ( webpage ) ; BiddingStrategyConfiguration biddingStrategyConfiguration = new BiddingStrategyConfiguration ( ) ; CpcBid cpcBid = new CpcBid ( ) ; Money money = new Money ( ) ; money . setMicroAmount ( 1_500_000L ) ; cpcBid . setBid ( money ) ; biddingStrategyConfiguration . setBids ( new Bids [ ] { cpcBid } ) ; criterion . setBiddingStrategyConfiguration ( biddingStrategyConfiguration ) ; AdGroupCriterionOperation operation = new AdGroupCriterionOperation ( ) ; operation . setOperand ( criterion ) ; operation . setOperator ( Operator . ADD ) ; BiddableAdGroupCriterion newCriterion = ( BiddableAdGroupCriterion ) adGroupCriterionService . mutate ( new AdGroupCriterionOperation [ ] { operation } ) . getValue ( 0 ) ; System . out . printf ( "Web page criterion with ID %d and status '%s' was created.%n" , newCriterion . getCriterion ( ) . getId ( ) , newCriterion . getUserStatus ( ) ) ; } | Sets custom targeting for the page feed URLs based on a list of labels . |
39,933 | public void setUrls ( com . google . api . ads . adwords . axis . v201809 . cm . Media_Size_StringMapEntry [ ] urls ) { this . urls = urls ; } | Sets the urls value for this Media . |
39,934 | public com . google . api . ads . adwords . axis . v201809 . cm . MediaLegacyMimeType getMimeType ( ) { return mimeType ; } | Gets the mimeType value for this Media . |
39,935 | public com . google . api . ads . adwords . axis . v201809 . rm . NumberKey getKey ( ) { return key ; } | Gets the key value for this NumberRuleItem . |
39,936 | public com . google . api . ads . adwords . axis . v201809 . rm . NumberRuleItemNumberOperator getOp ( ) { return op ; } | Gets the op value for this NumberRuleItem . |
39,937 | public com . google . api . ads . admanager . axis . v201808 . Stats getValue ( ) { return value ; } | Gets the value value for this Long_StatsMapEntry . |
39,938 | public void setErrors ( com . google . api . ads . admanager . axis . v201811 . ApiError [ ] errors ) { this . errors = errors ; } | Sets the errors value for this ApiException . |
39,939 | public com . google . api . ads . adwords . axis . v201809 . cm . CriterionTypeGroup getContentBidCriterionTypeGroup ( ) { return contentBidCriterionTypeGroup ; } | Gets the contentBidCriterionTypeGroup value for this AdGroup . |
39,940 | public com . google . api . ads . adwords . axis . v201809 . cm . AdGroupType getAdGroupType ( ) { return adGroupType ; } | Gets the adGroupType value for this AdGroup . |
39,941 | public com . google . api . ads . adwords . axis . v201809 . cm . AdGroupAdRotationMode getAdGroupAdRotationMode ( ) { return adGroupAdRotationMode ; } | Gets the adGroupAdRotationMode value for this AdGroup . |
39,942 | public com . google . api . ads . admanager . axis . v201808 . ContentMetadataKeyHierarchyTargeting [ ] getTargetedContentMetadata ( ) { return targetedContentMetadata ; } | Gets the targetedContentMetadata value for this ContentTargeting . |
39,943 | public com . google . api . ads . admanager . axis . v201808 . ContentMetadataKeyHierarchyTargeting [ ] getExcludedContentMetadata ( ) { return excludedContentMetadata ; } | Gets the excludedContentMetadata value for this ContentTargeting . |
39,944 | public Credential refreshCredential ( Credential credential ) throws IOException { if ( isCredentialRefreshable ( credential ) ) { if ( ! callRefreshToken ( credential ) ) { libLogger . warn ( "OAuth2 token could not be refreshed. " + "Add a refreshListener to the Credential to capture this failure." ) ; } } return credential ; } | Refreshes the credential if within the refresh window . |
39,945 | public com . google . api . ads . adwords . axis . v201809 . cm . DateTimeRange getDateTimeRange ( ) { return dateTimeRange ; } | Gets the dateTimeRange value for this CustomerSyncSelector . |
39,946 | public QueryBuilder < V > withBindVariableValues ( Map < String , V > values ) { valueMap . putAll ( values ) ; return this ; } | Adds all key value mappings . |
39,947 | public String buildQuery ( ) { validateQuery ( ) ; StringBuilder stringBuilder = new StringBuilder ( ) ; if ( ! Strings . isNullOrEmpty ( select ) ) { stringBuilder = stringBuilder . append ( SELECT ) . append ( " " ) . append ( select ) . append ( " " ) ; } if ( ! Strings . isNullOrEmpty ( from ) ) { stringBuilder = stringBuilder . append ( FROM ) . append ( " " ) . append ( from ) . append ( " " ) ; } if ( ! Strings . isNullOrEmpty ( where ) ) { stringBuilder = stringBuilder . append ( WHERE ) . append ( " " ) . append ( where ) . append ( " " ) ; } if ( ! Strings . isNullOrEmpty ( orderBy ) ) { stringBuilder = stringBuilder . append ( ORDER_BY ) . append ( " " ) . append ( orderBy ) . append ( " " ) ; } if ( limit != null ) { stringBuilder = stringBuilder . append ( LIMIT ) . append ( " " ) . append ( limit ) . append ( " " ) ; } if ( offset != null ) { stringBuilder = stringBuilder . append ( OFFSET ) . append ( " " ) . append ( offset ) . append ( " " ) ; } return stringBuilder . toString ( ) . trim ( ) ; } | Builds the query from the clauses . |
39,948 | public void setBrowserLanguages ( com . google . api . ads . admanager . axis . v201902 . Technology [ ] browserLanguages ) { this . browserLanguages = browserLanguages ; } | Sets the browserLanguages value for this BrowserLanguageTargeting . |
39,949 | public com . google . api . ads . adwords . axis . v201809 . cm . AdGroupAdPolicySummary getPolicySummary ( ) { return policySummary ; } | Gets the policySummary value for this AdGroupAd . |
39,950 | public com . google . api . ads . adwords . axis . v201809 . cm . AdStrengthInfo getAdStrengthInfo ( ) { return adStrengthInfo ; } | Gets the adStrengthInfo value for this AdGroupAd . |
39,951 | public com . google . api . ads . admanager . axis . v201808 . DateTime getLicenseWindowStartDateTime ( ) { return licenseWindowStartDateTime ; } | Gets the licenseWindowStartDateTime value for this SetTopBoxCreative . |
39,952 | public com . google . api . ads . admanager . axis . v201808 . DateTime getLicenseWindowEndDateTime ( ) { return licenseWindowEndDateTime ; } | Gets the licenseWindowEndDateTime value for this SetTopBoxCreative . |
39,953 | public void setLicenseWindowEndDateTime ( com . google . api . ads . admanager . axis . v201808 . DateTime licenseWindowEndDateTime ) { this . licenseWindowEndDateTime = licenseWindowEndDateTime ; } | Sets the licenseWindowEndDateTime value for this SetTopBoxCreative . |
39,954 | public com . google . api . ads . adwords . axis . v201809 . cm . ProductBiddingCategory getDimensionValue ( ) { return dimensionValue ; } | Gets the dimensionValue value for this ProductBiddingCategoryData . |
39,955 | public com . google . api . ads . adwords . axis . v201809 . cm . ProductBiddingCategory getParentDimensionValue ( ) { return parentDimensionValue ; } | Gets the parentDimensionValue value for this ProductBiddingCategoryData . |
39,956 | public com . google . api . ads . adwords . axis . v201809 . cm . String_StringMapEntry [ ] getDisplayValue ( ) { return displayValue ; } | Gets the displayValue value for this ProductBiddingCategoryData . |
39,957 | public Object run ( long clientCustomerId , final Object obj , final Method method , final Object [ ] args ) throws Throwable { Callable < Object > callable = new Callable < Object > ( ) { public Object call ( ) throws Exception { return method . invoke ( obj , args ) ; } } ; String actionDescription = method . getClass ( ) . getSimpleName ( ) + "." + method . getName ( ) ; ApiRetryHelper < Object > retryHelper = new ApiRetryHelper < Object > ( clientCustomerId , callable , actionDescription , retryStrategy ) ; try { return retryHelper . callWithRetries ( ) ; } catch ( ApiInvocationException e ) { throw e . getCause ( ) ; } } | The core method for invoking AdWords API call and handling RateExceededError . |
39,958 | public void setLogicalOperator ( com . google . api . ads . admanager . axis . v201808 . CustomCriteriaSetLogicalOperator logicalOperator ) { this . logicalOperator = logicalOperator ; } | Sets the logicalOperator value for this CustomCriteriaSet . |
39,959 | public com . google . api . ads . admanager . axis . v201808 . CreativeTemplate [ ] getResults ( ) { return results ; } | Gets the results value for this CreativeTemplatePage . |
39,960 | public com . google . api . ads . admanager . axis . v201805 . VideoPositionType getPositionType ( ) { return positionType ; } | Gets the positionType value for this VideoPosition . |
39,961 | public void setPositionType ( com . google . api . ads . admanager . axis . v201805 . VideoPositionType positionType ) { this . positionType = positionType ; } | Sets the positionType value for this VideoPosition . |
39,962 | public void setFieldPathElements ( com . google . api . ads . admanager . axis . v201805 . FieldPathElement [ ] fieldPathElements ) { this . fieldPathElements = fieldPathElements ; } | Sets the fieldPathElements value for this ApiError . |
39,963 | public com . google . api . ads . adwords . axis . v201809 . cm . EnumValuePair [ ] getEnumValuePairs ( ) { return enumValuePairs ; } | Gets the enumValuePairs value for this ReportDefinitionField . |
39,964 | private static AdGroup createAdGroup ( AdWordsServicesInterface services , AdWordsSession session , Campaign campaign ) throws RemoteException { AdGroupServiceInterface adGroupService = services . get ( session , AdGroupServiceInterface . class ) ; AdGroup group = new AdGroup ( ) ; group . setName ( "Dynamic remarketing ad group" ) ; group . setCampaignId ( campaign . getId ( ) ) ; group . setStatus ( AdGroupStatus . ENABLED ) ; AdGroupOperation op = new AdGroupOperation ( ) ; op . setOperand ( group ) ; op . setOperator ( Operator . ADD ) ; AdGroupReturnValue result = adGroupService . mutate ( new AdGroupOperation [ ] { op } ) ; return result . getValue ( 0 ) ; } | Creates an ad group in the specified campaign . |
39,965 | private static void attachUserList ( AdWordsServicesInterface services , AdWordsSession session , AdGroup adGroup , long userListId ) throws RemoteException { AdGroupCriterionServiceInterface adGroupCriterionService = services . get ( session , AdGroupCriterionServiceInterface . class ) ; CriterionUserList userList = new CriterionUserList ( ) ; userList . setUserListId ( userListId ) ; BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion ( ) ; adGroupCriterion . setCriterion ( userList ) ; adGroupCriterion . setAdGroupId ( adGroup . getId ( ) ) ; AdGroupCriterionOperation op = new AdGroupCriterionOperation ( ) ; op . setOperand ( adGroupCriterion ) ; op . setOperator ( Operator . ADD ) ; adGroupCriterionService . mutate ( new AdGroupCriterionOperation [ ] { op } ) ; } | Attach a user list to an ad group . The user list provides positive targeting and feed information to drive the dynamic content of the ad . |
39,966 | private static AdGroupAd createAd ( AdWordsServicesInterface services , AdWordsSession session , AdGroup adGroup ) throws IOException { AdGroupAdServiceInterface adService = services . get ( session , AdGroupAdServiceInterface . class ) ; ResponsiveDisplayAd ad = new ResponsiveDisplayAd ( ) ; ad . setMarketingImage ( uploadImage ( services , session , "https://goo.gl/3b9Wfh" ) ) ; ad . setShortHeadline ( "Travel" ) ; ad . setLongHeadline ( "Travel the World" ) ; ad . setDescription ( "Take to the air!" ) ; ad . setBusinessName ( "Interplanetary Cruises" ) ; ad . setFinalUrls ( new String [ ] { "http://www.example.com/" } ) ; ad . setCallToActionText ( "Apply Now" ) ; DynamicSettings dynamicDisplayAdSettings = createDynamicDisplayAdSettings ( services , session ) ; ad . setDynamicDisplayAdSettings ( dynamicDisplayAdSettings ) ; Image optionalImage = uploadImage ( services , session , "https://goo.gl/mtt54n" ) ; ad . setLogoImage ( optionalImage ) ; ad . setSquareMarketingImage ( optionalImage ) ; AdGroupAd adGroupAd = new AdGroupAd ( ) ; adGroupAd . setAd ( ad ) ; adGroupAd . setAdGroupId ( adGroup . getId ( ) ) ; AdGroupAdOperation op = new AdGroupAdOperation ( ) ; op . setOperand ( adGroupAd ) ; op . setOperator ( Operator . ADD ) ; AdGroupAdReturnValue result = adService . mutate ( new AdGroupAdOperation [ ] { op } ) ; return result . getValue ( 0 ) ; } | Creates an ad for serving dynamic content in a remarketing campaign . |
39,967 | public com . google . api . ads . admanager . axis . v201808 . Goal getGoal ( ) { return goal ; } | Gets the goal value for this ProposalLineItem . |
39,968 | public com . google . api . ads . admanager . axis . v201808 . ComputedStatus getComputedStatus ( ) { return computedStatus ; } | Gets the computedStatus value for this ProposalLineItem . |
39,969 | public com . google . api . ads . admanager . axis . v201808 . ReservationStatus getReservationStatus ( ) { return reservationStatus ; } | Gets the reservationStatus value for this ProposalLineItem . |
39,970 | public com . google . api . ads . admanager . axis . v201808 . PricingModel getRateCardPricingModel ( ) { return rateCardPricingModel ; } | Gets the rateCardPricingModel value for this ProposalLineItem . |
39,971 | public void setSteps ( com . google . api . ads . admanager . axis . v201805 . ProgressStep [ ] steps ) { this . steps = steps ; } | Sets the steps value for this WorkflowProgress . |
39,972 | public void setPremiumRateValues ( com . google . api . ads . admanager . axis . v201811 . PremiumRateValue [ ] premiumRateValues ) { this . premiumRateValues = premiumRateValues ; } | Sets the premiumRateValues value for this PremiumRate . |
39,973 | public com . google . api . ads . admanager . axis . v201902 . SwiffyFallbackAsset getSwiffyAsset ( ) { return swiffyAsset ; } | Gets the swiffyAsset value for this FlashCreative . |
39,974 | public void setSwiffyAsset ( com . google . api . ads . admanager . axis . v201902 . SwiffyFallbackAsset swiffyAsset ) { this . swiffyAsset = swiffyAsset ; } | Sets the swiffyAsset value for this FlashCreative . |
39,975 | public void setOperator ( com . google . api . ads . admanager . axis . v201811 . AudienceSegmentCriteriaComparisonOperator operator ) { this . operator = operator ; } | Sets the operator value for this AudienceSegmentCriteria . |
39,976 | public void setOperatingSystems ( com . google . api . ads . admanager . axis . v201805 . Technology [ ] operatingSystems ) { this . operatingSystems = operatingSystems ; } | Sets the operatingSystems value for this OperatingSystemTargeting . |
39,977 | public com . google . api . ads . admanager . axis . v201902 . DateRange getTargetDateRange ( ) { return targetDateRange ; } | Gets the targetDateRange value for this HistoricalAdjustment . |
39,978 | public void setTargetDateRange ( com . google . api . ads . admanager . axis . v201902 . DateRange targetDateRange ) { this . targetDateRange = targetDateRange ; } | Sets the targetDateRange value for this HistoricalAdjustment . |
39,979 | public com . google . api . ads . admanager . axis . v201902 . DateRange getReferenceDateRange ( ) { return referenceDateRange ; } | Gets the referenceDateRange value for this HistoricalAdjustment . |
39,980 | public void setReferenceDateRange ( com . google . api . ads . admanager . axis . v201902 . DateRange referenceDateRange ) { this . referenceDateRange = referenceDateRange ; } | Sets the referenceDateRange value for this HistoricalAdjustment . |
39,981 | public com . google . api . ads . adwords . axis . v201809 . o . AdGroupEstimateRequest [ ] getAdGroupEstimateRequests ( ) { return adGroupEstimateRequests ; } | Gets the adGroupEstimateRequests value for this CampaignEstimateRequest . |
39,982 | public com . google . api . ads . adwords . axis . v201809 . cm . Money getDailyBudget ( ) { return dailyBudget ; } | Gets the dailyBudget value for this CampaignEstimateRequest . |
39,983 | public String serialize ( T object , boolean includeXmlDeclaration ) { try { Marshaller marshaller = jaxbContext . createMarshaller ( ) ; marshaller . setProperty ( Marshaller . JAXB_FRAGMENT , Boolean . valueOf ( ! includeXmlDeclaration ) ) ; JAXBElement < T > element = new JAXBElement < T > ( qname , clazz , object ) ; StringWriter stringWriter = new StringWriter ( ) ; marshaller . marshal ( element , stringWriter ) ; return stringWriter . toString ( ) ; } catch ( JAXBException e ) { throw new SerializationException ( String . format ( "Could not serialize object: %s." , object ) , e ) ; } } | Serializes the object with the option to include or exclude the XML declaration . |
39,984 | public void setGeoSegment ( com . google . api . ads . admanager . axis . v201805 . GeoTargeting geoSegment ) { this . geoSegment = geoSegment ; } | Sets the geoSegment value for this ProductSegmentation . |
39,985 | public void setAdUnitSegments ( com . google . api . ads . admanager . axis . v201805 . AdUnitTargeting [ ] adUnitSegments ) { this . adUnitSegments = adUnitSegments ; } | Sets the adUnitSegments value for this ProductSegmentation . |
39,986 | public com . google . api . ads . admanager . axis . v201808 . Money getDfpRevenue ( ) { return dfpRevenue ; } | Gets the dfpRevenue value for this ReconciliationReportRow . |
39,987 | protected < H extends AdsServiceClientFactoryHelper < C , S , D > , F extends BaseAdsServiceClientFactory < C , S , D > > void configureFactories ( TypeLiteral < AdsServiceClientFactoryInterface < C , S , D > > adsServiceClientFactoryTypeLiteral , TypeLiteral < AdsServiceDescriptorFactoryInterface < D > > adsServiceDescriptorFactoryTypeLiteral , TypeLiteral < C > adsServiceClientTypeLiteral , TypeLiteral < D > adsServiceDescriptorTypeLiteral , Class < H > adsServiceClientFactoryHelperClass , Class < F > baseAdsServiceClientFactoryClass ) { install ( new FactoryModule < C , D , S , H , F > ( adsServiceClientFactoryTypeLiteral , adsServiceDescriptorFactoryTypeLiteral , adsServiceClientTypeLiteral , adsServiceDescriptorTypeLiteral , adsServiceClientFactoryHelperClass , baseAdsServiceClientFactoryClass ) ) ; } | Configures the factories . |
39,988 | private static byte [ ] getByteArrayFromStream ( final InputStream inputStream ) throws IOException { return new ByteSource ( ) { public InputStream openStream ( ) { return inputStream ; } } . read ( ) ; } | Gets the byte array from the input stream containing the full data from that stream . |
39,989 | public Object invoke ( Object proxy , final Method method , final Object [ ] args ) throws Throwable { try { return getClass ( ) . getMethod ( method . getName ( ) , method . getParameterTypes ( ) ) . invoke ( this , args ) ; } catch ( NoSuchMethodException e ) { } setHeaders ( ) ; RemoteCallReturn remoteCallReturn = callSoapClient ( createSoapCall ( soapClientHandler . getSoapClientMethod ( soapClient , method ) , args ) ) ; logSoapCall ( remoteCallReturn ) ; return unwrapRemoteCallReturn ( remoteCallReturn ) ; } | Wraps the underlying SOAP RPC such that first the method by its name is applied to the runtime class . If no such method exists it is assumed that the call is meant for the SOAP client . In this case the SOAP client handler will invoke the SOAP client method with provided arguments . |
39,990 | protected Object unwrapRemoteCallReturn ( RemoteCallReturn remoteCallReturn ) throws Throwable { if ( remoteCallReturn . getException ( ) != null ) { throw handleException ( remoteCallReturn . getException ( ) ) ; } else { return remoteCallReturn . getReturnValue ( ) ; } } | Unwraps a SOAP remote call return such that if there was an exception it is thrown and if it was a successful call the return value of the SOAP call is returned . |
39,991 | public void setTargetedRequestPlatforms ( com . google . api . ads . admanager . axis . v201808 . RequestPlatform [ ] targetedRequestPlatforms ) { this . targetedRequestPlatforms = targetedRequestPlatforms ; } | Sets the targetedRequestPlatforms value for this RequestPlatformTargeting . |
39,992 | public void setOptions ( com . google . api . ads . admanager . axis . v201808 . CustomFieldOption [ ] options ) { this . options = options ; } | Sets the options value for this DropDownCustomField . |
39,993 | public com . google . api . ads . adwords . axis . v201809 . cm . AssetLink [ ] getMarketingImages ( ) { return marketingImages ; } | Gets the marketingImages value for this MultiAssetResponsiveDisplayAd . |
39,994 | public com . google . api . ads . adwords . axis . v201809 . cm . AssetLink [ ] getSquareMarketingImages ( ) { return squareMarketingImages ; } | Gets the squareMarketingImages value for this MultiAssetResponsiveDisplayAd . |
39,995 | public com . google . api . ads . adwords . axis . v201809 . cm . AssetLink [ ] getLogoImages ( ) { return logoImages ; } | Gets the logoImages value for this MultiAssetResponsiveDisplayAd . |
39,996 | public com . google . api . ads . adwords . axis . v201809 . cm . AssetLink [ ] getLandscapeLogoImages ( ) { return landscapeLogoImages ; } | Gets the landscapeLogoImages value for this MultiAssetResponsiveDisplayAd . |
39,997 | public com . google . api . ads . adwords . axis . v201809 . cm . AssetLink getLongHeadline ( ) { return longHeadline ; } | Gets the longHeadline value for this MultiAssetResponsiveDisplayAd . |
39,998 | public void setYouTubeVideos ( com . google . api . ads . adwords . axis . v201809 . cm . AssetLink [ ] youTubeVideos ) { this . youTubeVideos = youTubeVideos ; } | Sets the youTubeVideos value for this MultiAssetResponsiveDisplayAd . |
39,999 | public com . google . api . ads . adwords . axis . v201809 . cm . Image getLandscapeLogoImage ( ) { return landscapeLogoImage ; } | Gets the landscapeLogoImage value for this DynamicSettings . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.