code
stringlengths
73
34.1k
label
stringclasses
1 value
public com.google.api.ads.admanager.axis.v201811.OperatingSystemTargeting getOperatingSystemTargeting() { return operatingSystemTargeting; }
java
public void setOperatingSystemTargeting(com.google.api.ads.admanager.axis.v201811.OperatingSystemTargeting operatingSystemTargeting) { this.operatingSystemTargeting = operatingSystemTargeting; }
java
public com.google.api.ads.admanager.axis.v201811.OperatingSystemVersionTargeting getOperatingSystemVersionTargeting() { return operatingSystemVersionTargeting; }
java
public com.google.api.ads.admanager.axis.v201902.Size getFlashAssetSize() { return flashAssetSize; }
java
public com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomer getManager() { return manager; }
java
public com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomer getClient() { return client; }
java
private static OfflineData createOfflineData( DateTime transactionTime, long transactionMicroAmount, String transactionCurrency, String conversionName, List<UserIdentifier> userIdentifiers) { StoreSalesTransaction storeSalesTransaction = new StoreSalesTransaction(); // For times u...
java
private static UserIdentifier createUserIdentifier( OfflineDataUploadUserIdentifierType identifierType, String value) throws UnsupportedEncodingException { // If the user identifier type is a hashed type, also call hash function // on the value. if (HASHED_IDENTIFIER_TYPES.contains(identifierTyp...
java
private static String toSHA256String(String str) throws UnsupportedEncodingException { // Normalize the string before hashing. byte[] hash = digest.digest(toNormalizedString(str).getBytes("UTF-8")); StringBuilder result = new StringBuilder(); for (byte b : hash) { result.append(String.format("%02x...
java
public com.google.api.ads.adwords.axis.v201809.cm.ParentParentType getParentType() { return parentType; }
java
public void setMezzanineFile(com.google.api.ads.admanager.axis.v201808.VideoRedirectAsset mezzanineFile) { this.mezzanineFile = mezzanineFile; }
java
public com.google.api.ads.adwords.axis.v201809.cm.OperatingSystemVersionOperatorType getOperatorType() { return operatorType; }
java
public void setValues(com.google.api.ads.admanager.axis.v201902.String_ValueMapEntry[] values) { this.values = values; }
java
private static AdCustomizerFeed createCustomizerFeed(AdWordsServicesInterface adWordsServices, AdWordsSession session, String feedName) throws RemoteException { // Get the AdCustomizerFeedService. AdCustomizerFeedServiceInterface adCustomizerFeedService = adWordsServices.get(session, AdCustomizerF...
java
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<>(); // Fee...
java
private static void restrictFeedItemToAdGroup( AdWordsServicesInterface adWordsServices, AdWordsSession session, FeedItem feedItem, long adGroupId) throws RemoteException { // Get the FeedItemTargetingService. FeedItemTargetServiceInterface feedItemTargetService = adWordsSe...
java
private static void createAdsWithCustomizations(AdWordsServicesInterface adWordsServices, AdWordsSession session, List<Long> adGroupIds, String feedName) throws RemoteException { // Get the AdGroupAdService. AdGroupAdServiceInterface adGroupAdService = adWordsServices.get(session, AdGroupAdService...
java
public void setPlacementSegment(com.google.api.ads.admanager.axis.v201902.PlacementTargeting placementSegment) { this.placementSegment = placementSegment; }
java
public void setCustomTargetingSegment(com.google.api.ads.admanager.axis.v201902.CustomCriteria[] customTargetingSegment) { this.customTargetingSegment = customTargetingSegment; }
java
public void setBandwidthSegment(com.google.api.ads.admanager.axis.v201902.BandwidthGroupTargeting bandwidthSegment) { this.bandwidthSegment = bandwidthSegment; }
java
public void setBrowserSegment(com.google.api.ads.admanager.axis.v201902.BrowserTargeting browserSegment) { this.browserSegment = browserSegment; }
java
public void setBrowserLanguageSegment(com.google.api.ads.admanager.axis.v201902.BrowserLanguageTargeting browserLanguageSegment) { this.browserLanguageSegment = browserLanguageSegment; }
java
public void setOperatingSystemVersionSegment(com.google.api.ads.admanager.axis.v201902.OperatingSystemVersionTargeting operatingSystemVersionSegment) { this.operatingSystemVersionSegment = operatingSystemVersionSegment; }
java
public void setMobileCarrierSegment(com.google.api.ads.admanager.axis.v201902.MobileCarrierTargeting mobileCarrierSegment) { this.mobileCarrierSegment = mobileCarrierSegment; }
java
public void setDeviceCapabilitySegment(com.google.api.ads.admanager.axis.v201902.DeviceCapabilityTargeting deviceCapabilitySegment) { this.deviceCapabilitySegment = deviceCapabilitySegment; }
java
public void setDeviceManufacturerSegment(com.google.api.ads.admanager.axis.v201902.DeviceManufacturerTargeting deviceManufacturerSegment) { this.deviceManufacturerSegment = deviceManufacturerSegment; }
java
public void setMobileApplicationSegment(com.google.api.ads.admanager.axis.v201902.MobileApplicationTargeting mobileApplicationSegment) { this.mobileApplicationSegment = mobileApplicationSegment; }
java
public com.google.api.ads.admanager.axis.v201902.VideoPositionTargeting getVideoPositionSegment() { return videoPositionSegment; }
java
private static DSAFeedDetails createFeed( AdWordsServicesInterface adWordsServices, AdWordsSession session) throws ApiException, RemoteException { // Get the FeedService. FeedServiceInterface feedService = adWordsServices.get(session, FeedServiceInterface.class); // Create attributes. FeedA...
java
private static void createFeedMapping( AdWordsServicesInterface adWordsServices, AdWordsSession session, DSAFeedDetails feedDetails) throws RemoteException { // Get the FeedMappingService. FeedMappingServiceInterface feedMappingService = adWordsServices.get(session, FeedMappingServiceInterfa...
java
private static void createFeedItems( AdWordsServicesInterface adWordsServices, AdWordsSession session, DSAFeedDetails feedDetails, String labelName) throws RemoteException { // Get the FeedItemService. FeedItemServiceInterface feedItemService = adWordsServices.get(session, ...
java
private static void updateCampaignDsaSetting( AdWordsServicesInterface adWordsServices, AdWordsSession session, Long campaignId, DSAFeedDetails feedDetails) throws ApiException, RemoteException { // Get the CampaignService. CampaignServiceInterface campaignService = adWords...
java
private static void addDsaTargeting( AdWordsServicesInterface adWordsServices, AdWordsSession session, Long adGroupId, String dsaPageUrlLabel) throws ApiException, RemoteException { // Get the AdGroupCriterionService. AdGroupCriterionServiceInterface adGroupCriterionService = ...
java
public void setUrls(com.google.api.ads.adwords.axis.v201809.cm.Media_Size_StringMapEntry[] urls) { this.urls = urls; }
java
public com.google.api.ads.adwords.axis.v201809.cm.MediaLegacyMimeType getMimeType() { return mimeType; }
java
public com.google.api.ads.adwords.axis.v201809.rm.NumberKey getKey() { return key; }
java
public com.google.api.ads.adwords.axis.v201809.rm.NumberRuleItemNumberOperator getOp() { return op; }
java
public com.google.api.ads.admanager.axis.v201808.Stats getValue() { return value; }
java
public void setErrors(com.google.api.ads.admanager.axis.v201811.ApiError[] errors) { this.errors = errors; }
java
public com.google.api.ads.adwords.axis.v201809.cm.CriterionTypeGroup getContentBidCriterionTypeGroup() { return contentBidCriterionTypeGroup; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AdGroupType getAdGroupType() { return adGroupType; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AdGroupAdRotationMode getAdGroupAdRotationMode() { return adGroupAdRotationMode; }
java
public com.google.api.ads.admanager.axis.v201808.ContentMetadataKeyHierarchyTargeting[] getTargetedContentMetadata() { return targetedContentMetadata; }
java
public com.google.api.ads.admanager.axis.v201808.ContentMetadataKeyHierarchyTargeting[] getExcludedContentMetadata() { return excludedContentMetadata; }
java
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."); ...
java
public com.google.api.ads.adwords.axis.v201809.cm.DateTimeRange getDateTimeRange() { return dateTimeRange; }
java
public QueryBuilder<V> withBindVariableValues(Map<String, V> values) { valueMap.putAll(values); return this; }
java
@Override 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 = s...
java
public void setBrowserLanguages(com.google.api.ads.admanager.axis.v201902.Technology[] browserLanguages) { this.browserLanguages = browserLanguages; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AdGroupAdPolicySummary getPolicySummary() { return policySummary; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AdStrengthInfo getAdStrengthInfo() { return adStrengthInfo; }
java
public com.google.api.ads.admanager.axis.v201808.DateTime getLicenseWindowStartDateTime() { return licenseWindowStartDateTime; }
java
public com.google.api.ads.admanager.axis.v201808.DateTime getLicenseWindowEndDateTime() { return licenseWindowEndDateTime; }
java
public void setLicenseWindowEndDateTime(com.google.api.ads.admanager.axis.v201808.DateTime licenseWindowEndDateTime) { this.licenseWindowEndDateTime = licenseWindowEndDateTime; }
java
public com.google.api.ads.adwords.axis.v201809.cm.ProductBiddingCategory getDimensionValue() { return dimensionValue; }
java
public com.google.api.ads.adwords.axis.v201809.cm.ProductBiddingCategory getParentDimensionValue() { return parentDimensionValue; }
java
public com.google.api.ads.adwords.axis.v201809.cm.String_StringMapEntry[] getDisplayValue() { return displayValue; }
java
public Object run( long clientCustomerId, final Object obj, final Method method, final Object[] args) throws Throwable { Callable<Object> callable = new Callable<Object>() { @Override public Object call() throws Exception { return method.invoke(obj, args); ...
java
public void setLogicalOperator(com.google.api.ads.admanager.axis.v201808.CustomCriteriaSetLogicalOperator logicalOperator) { this.logicalOperator = logicalOperator; }
java
public com.google.api.ads.admanager.axis.v201808.CreativeTemplate[] getResults() { return results; }
java
public com.google.api.ads.admanager.axis.v201805.VideoPositionType getPositionType() { return positionType; }
java
public void setPositionType(com.google.api.ads.admanager.axis.v201805.VideoPositionType positionType) { this.positionType = positionType; }
java
public void setFieldPathElements(com.google.api.ads.admanager.axis.v201805.FieldPathElement[] fieldPathElements) { this.fieldPathElements = fieldPathElements; }
java
public com.google.api.ads.adwords.axis.v201809.cm.EnumValuePair[] getEnumValuePairs() { return enumValuePairs; }
java
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 remar...
java
private static void attachUserList( AdWordsServicesInterface services, AdWordsSession session, AdGroup adGroup, long userListId) throws RemoteException { AdGroupCriterionServiceInterface adGroupCriterionService = services.get(session, AdGroupCriterionServiceInterface.class); CriterionUserLi...
java
private static AdGroupAd createAd( AdWordsServicesInterface services, AdWordsSession session, AdGroup adGroup) throws IOException { AdGroupAdServiceInterface adService = services.get(session, AdGroupAdServiceInterface.class); ResponsiveDisplayAd ad = new ResponsiveDisplayAd(); // This ad forma...
java
public com.google.api.ads.admanager.axis.v201808.Goal getGoal() { return goal; }
java
public com.google.api.ads.admanager.axis.v201808.ComputedStatus getComputedStatus() { return computedStatus; }
java
public com.google.api.ads.admanager.axis.v201808.ReservationStatus getReservationStatus() { return reservationStatus; }
java
public com.google.api.ads.admanager.axis.v201808.PricingModel getRateCardPricingModel() { return rateCardPricingModel; }
java
public void setSteps(com.google.api.ads.admanager.axis.v201805.ProgressStep[] steps) { this.steps = steps; }
java
public void setPremiumRateValues(com.google.api.ads.admanager.axis.v201811.PremiumRateValue[] premiumRateValues) { this.premiumRateValues = premiumRateValues; }
java
public com.google.api.ads.admanager.axis.v201902.SwiffyFallbackAsset getSwiffyAsset() { return swiffyAsset; }
java
public void setSwiffyAsset(com.google.api.ads.admanager.axis.v201902.SwiffyFallbackAsset swiffyAsset) { this.swiffyAsset = swiffyAsset; }
java
public void setOperator(com.google.api.ads.admanager.axis.v201811.AudienceSegmentCriteriaComparisonOperator operator) { this.operator = operator; }
java
public void setOperatingSystems(com.google.api.ads.admanager.axis.v201805.Technology[] operatingSystems) { this.operatingSystems = operatingSystems; }
java
public com.google.api.ads.admanager.axis.v201902.DateRange getTargetDateRange() { return targetDateRange; }
java
public void setTargetDateRange(com.google.api.ads.admanager.axis.v201902.DateRange targetDateRange) { this.targetDateRange = targetDateRange; }
java
public com.google.api.ads.admanager.axis.v201902.DateRange getReferenceDateRange() { return referenceDateRange; }
java
public void setReferenceDateRange(com.google.api.ads.admanager.axis.v201902.DateRange referenceDateRange) { this.referenceDateRange = referenceDateRange; }
java
public com.google.api.ads.adwords.axis.v201809.o.AdGroupEstimateRequest[] getAdGroupEstimateRequests() { return adGroupEstimateRequests; }
java
public com.google.api.ads.adwords.axis.v201809.cm.Money getDailyBudget() { return dailyBudget; }
java
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); ...
java
public void setGeoSegment(com.google.api.ads.admanager.axis.v201805.GeoTargeting geoSegment) { this.geoSegment = geoSegment; }
java
public void setAdUnitSegments(com.google.api.ads.admanager.axis.v201805.AdUnitTargeting[] adUnitSegments) { this.adUnitSegments = adUnitSegments; }
java
public com.google.api.ads.admanager.axis.v201808.Money getDfpRevenue() { return dfpRevenue; }
java
protected <H extends AdsServiceClientFactoryHelper<C, S, D>, F extends BaseAdsServiceClientFactory<C, S, D>> void configureFactories( TypeLiteral<AdsServiceClientFactoryInterface<C, S, D>> adsServiceClientFactoryTypeLiteral, TypeLiteral<AdsServiceDescriptorFactoryInterface<D>> ...
java
private static byte[] getByteArrayFromStream(final InputStream inputStream) throws IOException { return new ByteSource() { @Override public InputStream openStream() { return inputStream; } }.read(); }
java
@Override 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) { // Ignore and let the SOAP client handl...
java
protected Object unwrapRemoteCallReturn(RemoteCallReturn remoteCallReturn) throws Throwable { if (remoteCallReturn.getException() != null) { throw handleException(remoteCallReturn.getException()); } else { return remoteCallReturn.getReturnValue(); } }
java
public void setTargetedRequestPlatforms(com.google.api.ads.admanager.axis.v201808.RequestPlatform[] targetedRequestPlatforms) { this.targetedRequestPlatforms = targetedRequestPlatforms; }
java
public void setOptions(com.google.api.ads.admanager.axis.v201808.CustomFieldOption[] options) { this.options = options; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AssetLink[] getMarketingImages() { return marketingImages; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AssetLink[] getSquareMarketingImages() { return squareMarketingImages; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AssetLink[] getLogoImages() { return logoImages; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AssetLink[] getLandscapeLogoImages() { return landscapeLogoImages; }
java
public com.google.api.ads.adwords.axis.v201809.cm.AssetLink getLongHeadline() { return longHeadline; }
java
public void setYouTubeVideos(com.google.api.ads.adwords.axis.v201809.cm.AssetLink[] youTubeVideos) { this.youTubeVideos = youTubeVideos; }
java
public com.google.api.ads.adwords.axis.v201809.cm.Image getLandscapeLogoImage() { return landscapeLogoImage; }
java