From 0befb07f67761f739359a00bd1c784eb7229686e Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Thu, 28 May 2020 17:18:03 -0400 Subject: [PATCH] Regenerate to pick up reformatted Doubleclicksearch naming. --- GoogleAPIClientForREST.podspec | 4 +- Package.swift | 8 +- .../Doubleclicksearch/GTLRDoubleclicksearch.h | 14 + .../GTLRDoubleclicksearchObjects.h | 859 ++++++++++++++++++ .../GTLRDoubleclicksearchObjects.m | 287 ++++++ .../GTLRDoubleclicksearchQuery.h | 359 ++++++++ .../GTLRDoubleclicksearchQuery.m | 239 +++++ .../GTLRDoubleclicksearchService.h | 81 ++ .../GTLRDoubleclicksearchService.m | 46 + Source/Tools/GenerateCheckedInServices | 5 - 10 files changed, 1891 insertions(+), 11 deletions(-) create mode 100644 Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearch.h create mode 100644 Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.h create mode 100644 Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.m create mode 100644 Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.h create mode 100644 Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.m create mode 100644 Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.h create mode 100644 Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.m diff --git a/GoogleAPIClientForREST.podspec b/GoogleAPIClientForREST.podspec index deaaea20d..c78fe1424 100644 --- a/GoogleAPIClientForREST.podspec +++ b/GoogleAPIClientForREST.podspec @@ -384,9 +384,9 @@ Pod::Spec.new do |s| sp.dependency 'GoogleAPIClientForREST/Core' sp.source_files = 'Source/GeneratedServices/DoubleClickBidManager/*.{h,m}' end - s.subspec 'DoubleClickSearch' do |sp| + s.subspec 'Doubleclicksearch' do |sp| sp.dependency 'GoogleAPIClientForREST/Core' - sp.source_files = 'Source/GeneratedServices/DoubleClickSearch/*.{h,m}' + sp.source_files = 'Source/GeneratedServices/Doubleclicksearch/*.{h,m}' end s.subspec 'Drive' do |sp| sp.dependency 'GoogleAPIClientForREST/Core' diff --git a/Package.swift b/Package.swift index cf0463833..95b5f0e77 100644 --- a/Package.swift +++ b/Package.swift @@ -370,8 +370,8 @@ let package = Package( targets: ["GoogleAPIClientForREST_DoubleClickBidManager"] ), .library( - name: "GoogleAPIClientForREST_DoubleClickSearch", - targets: ["GoogleAPIClientForREST_DoubleClickSearch"] + name: "GoogleAPIClientForREST_Doubleclicksearch", + targets: ["GoogleAPIClientForREST_Doubleclicksearch"] ), .library( name: "GoogleAPIClientForREST_Drive", @@ -1284,9 +1284,9 @@ let package = Package( publicHeadersPath: "." ), .target( - name: "GoogleAPIClientForREST_DoubleClickSearch", + name: "GoogleAPIClientForREST_Doubleclicksearch", dependencies: ["GoogleAPIClientForRESTCore"], - path: "Source/GeneratedServices/DoubleClickSearch", + path: "Source/GeneratedServices/Doubleclicksearch", publicHeadersPath: "." ), .target( diff --git a/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearch.h b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearch.h new file mode 100644 index 000000000..1d2e924f1 --- /dev/null +++ b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearch.h @@ -0,0 +1,14 @@ +// NOTE: This file was generated by the ServiceGenerator. + +// ---------------------------------------------------------------------------- +// API: +// Search Ads 360 API (doubleclicksearch/v2) +// Description: +// Reports and modifies your advertising data in DoubleClick Search (for +// example, campaigns, ad groups, keywords, and conversions). +// Documentation: +// https://developers.google.com/doubleclick-search/ + +#import "GTLRDoubleclicksearchObjects.h" +#import "GTLRDoubleclicksearchQuery.h" +#import "GTLRDoubleclicksearchService.h" diff --git a/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.h b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.h new file mode 100644 index 000000000..96d89acec --- /dev/null +++ b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.h @@ -0,0 +1,859 @@ +// NOTE: This file was generated by the ServiceGenerator. + +// ---------------------------------------------------------------------------- +// API: +// Search Ads 360 API (doubleclicksearch/v2) +// Description: +// Reports and modifies your advertising data in DoubleClick Search (for +// example, campaigns, ad groups, keywords, and conversions). +// Documentation: +// https://developers.google.com/doubleclick-search/ + +#if SWIFT_PACKAGE || GTLR_USE_MODULAR_IMPORT + @import GoogleAPIClientForRESTCore; +#elif GTLR_BUILT_AS_FRAMEWORK + #import "GTLR/GTLRObject.h" +#else + #import "GTLRObject.h" +#endif + +#if GTLR_RUNTIME_VERSION != 3000 +#error This file was generated by a different version of ServiceGenerator which is incompatible with this GTLR library source. +#endif + +@class GTLRDoubleclicksearch_Availability; +@class GTLRDoubleclicksearch_Conversion; +@class GTLRDoubleclicksearch_CustomDimension; +@class GTLRDoubleclicksearch_CustomMetric; +@class GTLRDoubleclicksearch_Report_Files_Item; +@class GTLRDoubleclicksearch_ReportApiColumnSpec; +@class GTLRDoubleclicksearch_ReportRequest; +@class GTLRDoubleclicksearch_ReportRequest_Filters_Item; +@class GTLRDoubleclicksearch_ReportRequest_OrderBy_Item; +@class GTLRDoubleclicksearch_ReportRequest_ReportScope; +@class GTLRDoubleclicksearch_ReportRequest_TimeRange; +@class GTLRDoubleclicksearch_ReportRow; +@class GTLRDoubleclicksearch_SavedColumn; + +// Generated comments include content from the discovery document; avoid them +// causing warnings since clang's checks are some what arbitrary. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdocumentation" + +NS_ASSUME_NONNULL_BEGIN + +/** + * A message containing availability data relevant to DoubleClick Search. + */ +@interface GTLRDoubleclicksearch_Availability : GTLRObject + +/** + * DS advertiser ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *advertiserId; + +/** + * DS agency ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *agencyId; + +/** + * The time by which all conversions have been uploaded, in epoch millis UTC. + * + * Uses NSNumber of unsignedLongLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *availabilityTimestamp; + +/** + * The numeric segmentation identifier (for example, DoubleClick Search + * Floodlight activity ID). + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *segmentationId; + +/** + * The friendly segmentation identifier (for example, DoubleClick Search + * Floodlight activity name). + */ +@property(nonatomic, copy, nullable) NSString *segmentationName; + +/** + * The segmentation type that this availability is for (its default value is + * FLOODLIGHT). + */ +@property(nonatomic, copy, nullable) NSString *segmentationType; + +@end + + +/** + * A conversion containing data relevant to DoubleClick Search. + */ +@interface GTLRDoubleclicksearch_Conversion : GTLRObject + +/** + * DS ad group ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *adGroupId; + +/** + * DS ad ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *adId; + +/** + * DS advertiser ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *advertiserId; + +/** + * DS agency ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *agencyId; + +/** + * Available to advertisers only after contacting DoubleClick Search customer + * support. + */ +@property(nonatomic, copy, nullable) NSString *attributionModel; + +/** + * DS campaign ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *campaignId; + +/** + * Sales channel for the product. Acceptable values are: + * - "local": a physical store + * - "online": an online store + */ +@property(nonatomic, copy, nullable) NSString *channel; + +/** DS click ID for the conversion. */ +@property(nonatomic, copy, nullable) NSString *clickId; + +/** + * For offline conversions, advertisers provide this ID. Advertisers can + * specify any ID that is meaningful to them. Each conversion in a request must + * specify a unique ID, and the combination of ID and timestamp must be unique + * amongst all conversions within the advertiser. + * For online conversions, DS copies the dsConversionId or floodlightOrderId + * into this property depending on the advertiser's Floodlight instructions. + */ +@property(nonatomic, copy, nullable) NSString *conversionId; + +/** + * The time at which the conversion was last modified, in epoch millis UTC. + * + * Uses NSNumber of unsignedLongLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *conversionModifiedTimestamp; + +/** + * The time at which the conversion took place, in epoch millis UTC. + * + * Uses NSNumber of unsignedLongLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *conversionTimestamp; + +/** + * Available to advertisers only after contacting DoubleClick Search customer + * support. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *countMillis; + +/** + * DS criterion (keyword) ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *criterionId; + +/** + * The currency code for the conversion's revenue. Should be in ISO 4217 + * alphabetic (3-char) format. + */ +@property(nonatomic, copy, nullable) NSString *currencyCode; + +/** + * Custom dimensions for the conversion, which can be used to filter data in a + * report. + */ +@property(nonatomic, strong, nullable) NSArray *customDimension; + +/** Custom metrics for the conversion. */ +@property(nonatomic, strong, nullable) NSArray *customMetric; + +/** The type of device on which the conversion occurred. */ +@property(nonatomic, copy, nullable) NSString *deviceType; + +/** + * ID that DoubleClick Search generates for each conversion. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *dsConversionId; + +/** + * DS engine account ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *engineAccountId; + +/** The Floodlight order ID provided by the advertiser for the conversion. */ +@property(nonatomic, copy, nullable) NSString *floodlightOrderId; + +/** + * ID that DS generates and uses to uniquely identify the inventory account + * that contains the product. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *inventoryAccountId; + +/** + * The country registered for the Merchant Center feed that contains the + * product. Use an ISO 3166 code to specify a country. + */ +@property(nonatomic, copy, nullable) NSString *productCountry; + +/** + * DS product group ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *productGroupId; + +/** The product ID (SKU). */ +@property(nonatomic, copy, nullable) NSString *productId; + +/** + * The language registered for the Merchant Center feed that contains the + * product. Use an ISO 639 code to specify a language. + */ +@property(nonatomic, copy, nullable) NSString *productLanguage; + +/** + * The quantity of this conversion, in millis. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *quantityMillis; + +/** + * The revenue amount of this TRANSACTION conversion, in micros (value + * multiplied by 1000000, no decimal). For example, to specify a revenue value + * of "10" enter "10000000" (10 million) in your request. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *revenueMicros; + +/** + * The numeric segmentation identifier (for example, DoubleClick Search + * Floodlight activity ID). + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *segmentationId; + +/** + * The friendly segmentation identifier (for example, DoubleClick Search + * Floodlight activity name). + */ +@property(nonatomic, copy, nullable) NSString *segmentationName; + +/** The segmentation type of this conversion (for example, FLOODLIGHT). */ +@property(nonatomic, copy, nullable) NSString *segmentationType; + +/** + * The state of the conversion, that is, either ACTIVE or REMOVED. Note: state + * DELETED is deprecated. + */ +@property(nonatomic, copy, nullable) NSString *state; + +/** + * The ID of the local store for which the product was advertised. Applicable + * only when the channel is "local". + */ +@property(nonatomic, copy, nullable) NSString *storeId; + +/** + * The type of the conversion, that is, either ACTION or TRANSACTION. An ACTION + * conversion is an action by the user that has no monetarily quantifiable + * value, while a TRANSACTION conversion is an action that does have a + * monetarily quantifiable value. Examples are email list signups (ACTION) + * versus ecommerce purchases (TRANSACTION). + */ +@property(nonatomic, copy, nullable) NSString *type; + +@end + + +/** + * A list of conversions. + */ +@interface GTLRDoubleclicksearch_ConversionList : GTLRObject + +/** The conversions being requested. */ +@property(nonatomic, strong, nullable) NSArray *conversion; + +/** + * Identifies this as a ConversionList resource. Value: the fixed string + * doubleclicksearch#conversionList. + */ +@property(nonatomic, copy, nullable) NSString *kind; + +@end + + +/** + * A message containing the custome dimension. + */ +@interface GTLRDoubleclicksearch_CustomDimension : GTLRObject + +/** Custom dimension name. */ +@property(nonatomic, copy, nullable) NSString *name; + +/** Custom dimension value. */ +@property(nonatomic, copy, nullable) NSString *value; + +@end + + +/** + * A message containing the custome metric. + */ +@interface GTLRDoubleclicksearch_CustomMetric : GTLRObject + +/** Custom metric name. */ +@property(nonatomic, copy, nullable) NSString *name; + +/** + * Custom metric numeric value. + * + * Uses NSNumber of doubleValue. + */ +@property(nonatomic, strong, nullable) NSNumber *value; + +@end + + +/** + * A DoubleClick Search report. This object contains the report request, some + * report metadata such as currency code, and the generated report rows or + * report files. + */ +@interface GTLRDoubleclicksearch_Report : GTLRObject + +/** + * Asynchronous report only. Contains a list of generated report files once the + * report has successfully completed. + */ +@property(nonatomic, strong, nullable) NSArray *files; + +/** + * Asynchronous report only. Id of the report. + * + * identifier property maps to 'id' in JSON (to avoid Objective C's 'id'). + */ +@property(nonatomic, copy, nullable) NSString *identifier; + +/** + * Asynchronous report only. True if and only if the report has completed + * successfully and the report files are ready to be downloaded. + * + * Uses NSNumber of boolValue. + */ +@property(nonatomic, strong, nullable) NSNumber *isReportReady; + +/** + * Identifies this as a Report resource. Value: the fixed string + * doubleclicksearch#report. + */ +@property(nonatomic, copy, nullable) NSString *kind; + +/** + * The request that created the report. Optional fields not specified in the + * original request are filled with default values. + */ +@property(nonatomic, strong, nullable) GTLRDoubleclicksearch_ReportRequest *request; + +/** + * The number of report rows generated by the report, not including headers. + * + * Uses NSNumber of intValue. + */ +@property(nonatomic, strong, nullable) NSNumber *rowCount; + +/** Synchronous report only. Generated report rows. */ +@property(nonatomic, strong, nullable) NSArray *rows; + +/** + * The currency code of all monetary values produced in the report, including + * values that are set by users (e.g., keyword bid settings) and metrics (e.g., + * cost and revenue). The currency code of a report is determined by the + * statisticsCurrency field of the report request. + */ +@property(nonatomic, copy, nullable) NSString *statisticsCurrencyCode; + +/** + * If all statistics of the report are sourced from the same time zone, this + * would be it. Otherwise the field is unset. + */ +@property(nonatomic, copy, nullable) NSString *statisticsTimeZone; + +@end + + +/** + * GTLRDoubleclicksearch_Report_Files_Item + */ +@interface GTLRDoubleclicksearch_Report_Files_Item : GTLRObject + +/** + * The size of this report file in bytes. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *byteCount; + +/** Use this url to download the report file. */ +@property(nonatomic, copy, nullable) NSString *url; + +@end + + +/** + * A request object used to create a DoubleClick Search report. + */ +@interface GTLRDoubleclicksearch_ReportApiColumnSpec : GTLRObject + +/** Name of a DoubleClick Search column to include in the report. */ +@property(nonatomic, copy, nullable) NSString *columnName; + +/** + * Segments a report by a custom dimension. The report must be scoped to an + * advertiser or lower, and the custom dimension must already be set up in + * DoubleClick Search. The custom dimension name, which appears in DoubleClick + * Search, is case sensitive. + * If used in a conversion report, returns the value of the specified custom + * dimension for the given conversion, if set. This column does not segment the + * conversion report. + */ +@property(nonatomic, copy, nullable) NSString *customDimensionName; + +/** + * Name of a custom metric to include in the report. The report must be scoped + * to an advertiser or lower, and the custom metric must already be set up in + * DoubleClick Search. The custom metric name, which appears in DoubleClick + * Search, is case sensitive. + */ +@property(nonatomic, copy, nullable) NSString *customMetricName; + +/** + * Inclusive day in YYYY-MM-DD format. When provided, this overrides the + * overall time range of the report for this column only. Must be provided + * together with startDate. + */ +@property(nonatomic, copy, nullable) NSString *endDate; + +/** + * Synchronous report only. Set to true to group by this column. Defaults to + * false. + * + * Uses NSNumber of boolValue. + */ +@property(nonatomic, strong, nullable) NSNumber *groupByColumn; + +/** + * Text used to identify this column in the report output; defaults to + * columnName or savedColumnName when not specified. This can be used to + * prevent collisions between DoubleClick Search columns and saved columns with + * the same name. + */ +@property(nonatomic, copy, nullable) NSString *headerText; + +/** + * The platform that is used to provide data for the custom dimension. + * Acceptable values are "floodlight". + */ +@property(nonatomic, copy, nullable) NSString *platformSource; + +/** + * Returns metrics only for a specific type of product activity. Accepted + * values are: + * - "sold": returns metrics only for products that were sold + * - "advertised": returns metrics only for products that were advertised in a + * Shopping campaign, and that might or might not have been sold + */ +@property(nonatomic, copy, nullable) NSString *productReportPerspective; + +/** + * Name of a saved column to include in the report. The report must be scoped + * at advertiser or lower, and this saved column must already be created in the + * DoubleClick Search UI. + */ +@property(nonatomic, copy, nullable) NSString *savedColumnName; + +/** + * Inclusive date in YYYY-MM-DD format. When provided, this overrides the + * overall time range of the report for this column only. Must be provided + * together with endDate. + */ +@property(nonatomic, copy, nullable) NSString *startDate; + +@end + + +/** + * A request object used to create a DoubleClick Search report. + */ +@interface GTLRDoubleclicksearch_ReportRequest : GTLRObject + +/** + * The columns to include in the report. This includes both DoubleClick Search + * columns and saved columns. For DoubleClick Search columns, only the + * columnName parameter is required. For saved columns only the savedColumnName + * parameter is required. Both columnName and savedColumnName cannot be set in + * the same stanza. + * The maximum number of columns per request is 300. + */ +@property(nonatomic, strong, nullable) NSArray *columns; + +/** + * Format that the report should be returned in. Currently csv or tsv is + * supported. + */ +@property(nonatomic, copy, nullable) NSString *downloadFormat; + +/** + * A list of filters to be applied to the report. + * The maximum number of filters per request is 300. + */ +@property(nonatomic, strong, nullable) NSArray *filters; + +/** + * Determines if removed entities should be included in the report. Defaults to + * false. Deprecated, please use includeRemovedEntities instead. + * + * Uses NSNumber of boolValue. + */ +@property(nonatomic, strong, nullable) NSNumber *includeDeletedEntities; + +/** + * Determines if removed entities should be included in the report. Defaults to + * false. + * + * Uses NSNumber of boolValue. + */ +@property(nonatomic, strong, nullable) NSNumber *includeRemovedEntities; + +/** + * Asynchronous report only. The maximum number of rows per report file. A + * large report is split into many files based on this field. Acceptable values + * are 1000000 to 100000000, inclusive. + * + * Uses NSNumber of intValue. + */ +@property(nonatomic, strong, nullable) NSNumber *maxRowsPerFile; + +/** + * Synchronous report only. A list of columns and directions defining sorting + * to be performed on the report rows. + * The maximum number of orderings per request is 300. + */ +@property(nonatomic, strong, nullable) NSArray *orderBy; + +/** + * The reportScope is a set of IDs that are used to determine which subset of + * entities will be returned in the report. The full lineage of IDs from the + * lowest scoped level desired up through agency is required. + */ +@property(nonatomic, strong, nullable) GTLRDoubleclicksearch_ReportRequest_ReportScope *reportScope; + +/** + * Determines the type of rows that are returned in the report. For example, if + * you specify reportType: keyword, each row in the report will contain data + * about a keyword. See the Types of Reports reference for the columns that are + * available for each type. + */ +@property(nonatomic, copy, nullable) NSString *reportType; + +/** + * Synchronous report only. The maximum number of rows to return; additional + * rows are dropped. Acceptable values are 0 to 10000, inclusive. Defaults to + * 10000. + * + * Uses NSNumber of intValue. + */ +@property(nonatomic, strong, nullable) NSNumber *rowCount; + +/** + * Synchronous report only. Zero-based index of the first row to return. + * Acceptable values are 0 to 50000, inclusive. Defaults to 0. + * + * Uses NSNumber of intValue. + */ +@property(nonatomic, strong, nullable) NSNumber *startRow; + +/** + * Specifies the currency in which monetary will be returned. Possible values + * are: usd, agency (valid if the report is scoped to agency or lower), + * advertiser (valid if the report is scoped to * advertiser or lower), or + * account (valid if the report is scoped to engine account or lower). + */ +@property(nonatomic, copy, nullable) NSString *statisticsCurrency; + +/** + * If metrics are requested in a report, this argument will be used to restrict + * the metrics to a specific time range. + */ +@property(nonatomic, strong, nullable) GTLRDoubleclicksearch_ReportRequest_TimeRange *timeRange; + +/** + * If true, the report would only be created if all the requested stat data are + * sourced from a single timezone. Defaults to false. + * + * Uses NSNumber of boolValue. + */ +@property(nonatomic, strong, nullable) NSNumber *verifySingleTimeZone; + +@end + + +/** + * GTLRDoubleclicksearch_ReportRequest_Filters_Item + */ +@interface GTLRDoubleclicksearch_ReportRequest_Filters_Item : GTLRObject + +/** + * Column to perform the filter on. This can be a DoubleClick Search column or + * a saved column. + */ +@property(nonatomic, strong, nullable) GTLRDoubleclicksearch_ReportApiColumnSpec *column; + +/** + * Operator to use in the filter. See the filter reference for a list of + * available operators. + * + * Remapped to 'operatorProperty' to avoid language reserved word 'operator'. + */ +@property(nonatomic, copy, nullable) NSString *operatorProperty; + +/** + * A list of values to filter the column value against. + * The maximum number of filter values per request is 300. + * + * Can be any valid JSON type. + */ +@property(nonatomic, strong, nullable) NSArray *values; + +@end + + +/** + * GTLRDoubleclicksearch_ReportRequest_OrderBy_Item + */ +@interface GTLRDoubleclicksearch_ReportRequest_OrderBy_Item : GTLRObject + +/** + * Column to perform the sort on. This can be a DoubleClick Search-defined + * column or a saved column. + */ +@property(nonatomic, strong, nullable) GTLRDoubleclicksearch_ReportApiColumnSpec *column; + +/** The sort direction, which is either ascending or descending. */ +@property(nonatomic, copy, nullable) NSString *sortOrder; + +@end + + +/** + * The reportScope is a set of IDs that are used to determine which subset of + * entities will be returned in the report. The full lineage of IDs from the + * lowest scoped level desired up through agency is required. + */ +@interface GTLRDoubleclicksearch_ReportRequest_ReportScope : GTLRObject + +/** + * DS ad group ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *adGroupId; + +/** + * DS ad ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *adId; + +/** + * DS advertiser ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *advertiserId; + +/** + * DS agency ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *agencyId; + +/** + * DS campaign ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *campaignId; + +/** + * DS engine account ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *engineAccountId; + +/** + * DS keyword ID. + * + * Uses NSNumber of longLongValue. + */ +@property(nonatomic, strong, nullable) NSNumber *keywordId; + +@end + + +/** + * If metrics are requested in a report, this argument will be used to restrict + * the metrics to a specific time range. + */ +@interface GTLRDoubleclicksearch_ReportRequest_TimeRange : GTLRObject + +/** + * Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See + * additional references on how changed attribute reports work. + */ +@property(nonatomic, strong, nullable) GTLRDateTime *changedAttributesSinceTimestamp; + +/** + * Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See + * additional references on how changed metrics reports work. + */ +@property(nonatomic, strong, nullable) GTLRDateTime *changedMetricsSinceTimestamp; + +/** Inclusive date in YYYY-MM-DD format. */ +@property(nonatomic, copy, nullable) NSString *endDate; + +/** Inclusive date in YYYY-MM-DD format. */ +@property(nonatomic, copy, nullable) NSString *startDate; + +@end + + +/** + * A row in a DoubleClick Search report. + * + * @note This class is documented as having more properties of any valid JSON + * type. Use @c -additionalJSONKeys and @c -additionalPropertyForName: to + * get the list of properties and then fetch them; or @c + * -additionalProperties to fetch them all at once. + */ +@interface GTLRDoubleclicksearch_ReportRow : GTLRObject +@end + + +/** + * A saved column + */ +@interface GTLRDoubleclicksearch_SavedColumn : GTLRObject + +/** + * Identifies this as a SavedColumn resource. Value: the fixed string + * doubleclicksearch#savedColumn. + */ +@property(nonatomic, copy, nullable) NSString *kind; + +/** The name of the saved column. */ +@property(nonatomic, copy, nullable) NSString *savedColumnName; + +/** The type of data this saved column will produce. */ +@property(nonatomic, copy, nullable) NSString *type; + +@end + + +/** + * A list of saved columns. Advertisers create saved columns to report on + * Floodlight activities, Google Analytics goals, or custom KPIs. To request + * reports with saved columns, you'll need the saved column names that are + * available from this list. + * + * @note This class supports NSFastEnumeration and indexed subscripting over + * its "items" property. + */ +@interface GTLRDoubleclicksearch_SavedColumnList : GTLRCollectionObject + +/** + * The saved columns being requested. + * + * @note This property is used to support NSFastEnumeration and indexed + * subscripting on this class. + */ +@property(nonatomic, strong, nullable) NSArray *items; + +/** + * Identifies this as a SavedColumnList resource. Value: the fixed string + * doubleclicksearch#savedColumnList. + */ +@property(nonatomic, copy, nullable) NSString *kind; + +@end + + +/** + * The request to update availability. + */ +@interface GTLRDoubleclicksearch_UpdateAvailabilityRequest : GTLRObject + +/** The availabilities being requested. */ +@property(nonatomic, strong, nullable) NSArray *availabilities; + +@end + + +/** + * The response to a update availability request. + */ +@interface GTLRDoubleclicksearch_UpdateAvailabilityResponse : GTLRObject + +/** The availabilities being returned. */ +@property(nonatomic, strong, nullable) NSArray *availabilities; + +@end + +NS_ASSUME_NONNULL_END + +#pragma clang diagnostic pop diff --git a/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.m b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.m new file mode 100644 index 000000000..d9b587b10 --- /dev/null +++ b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchObjects.m @@ -0,0 +1,287 @@ +// NOTE: This file was generated by the ServiceGenerator. + +// ---------------------------------------------------------------------------- +// API: +// Search Ads 360 API (doubleclicksearch/v2) +// Description: +// Reports and modifies your advertising data in DoubleClick Search (for +// example, campaigns, ad groups, keywords, and conversions). +// Documentation: +// https://developers.google.com/doubleclick-search/ + +#import "GTLRDoubleclicksearchObjects.h" + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_Availability +// + +@implementation GTLRDoubleclicksearch_Availability +@dynamic advertiserId, agencyId, availabilityTimestamp, segmentationId, + segmentationName, segmentationType; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_Conversion +// + +@implementation GTLRDoubleclicksearch_Conversion +@dynamic adGroupId, adId, advertiserId, agencyId, attributionModel, campaignId, + channel, clickId, conversionId, conversionModifiedTimestamp, + conversionTimestamp, countMillis, criterionId, currencyCode, + customDimension, customMetric, deviceType, dsConversionId, + engineAccountId, floodlightOrderId, inventoryAccountId, productCountry, + productGroupId, productId, productLanguage, quantityMillis, + revenueMicros, segmentationId, segmentationName, segmentationType, + state, storeId, type; + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"customDimension" : [GTLRDoubleclicksearch_CustomDimension class], + @"customMetric" : [GTLRDoubleclicksearch_CustomMetric class] + }; + return map; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ConversionList +// + +@implementation GTLRDoubleclicksearch_ConversionList +@dynamic conversion, kind; + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"conversion" : [GTLRDoubleclicksearch_Conversion class] + }; + return map; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_CustomDimension +// + +@implementation GTLRDoubleclicksearch_CustomDimension +@dynamic name, value; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_CustomMetric +// + +@implementation GTLRDoubleclicksearch_CustomMetric +@dynamic name, value; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_Report +// + +@implementation GTLRDoubleclicksearch_Report +@dynamic files, identifier, isReportReady, kind, request, rowCount, rows, + statisticsCurrencyCode, statisticsTimeZone; + ++ (NSDictionary *)propertyToJSONKeyMap { + return @{ @"identifier" : @"id" }; +} + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"files" : [GTLRDoubleclicksearch_Report_Files_Item class], + @"rows" : [GTLRDoubleclicksearch_ReportRow class] + }; + return map; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_Report_Files_Item +// + +@implementation GTLRDoubleclicksearch_Report_Files_Item +@dynamic byteCount, url; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ReportApiColumnSpec +// + +@implementation GTLRDoubleclicksearch_ReportApiColumnSpec +@dynamic columnName, customDimensionName, customMetricName, endDate, + groupByColumn, headerText, platformSource, productReportPerspective, + savedColumnName, startDate; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ReportRequest +// + +@implementation GTLRDoubleclicksearch_ReportRequest +@dynamic columns, downloadFormat, filters, includeDeletedEntities, + includeRemovedEntities, maxRowsPerFile, orderBy, reportScope, + reportType, rowCount, startRow, statisticsCurrency, timeRange, + verifySingleTimeZone; + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"columns" : [GTLRDoubleclicksearch_ReportApiColumnSpec class], + @"filters" : [GTLRDoubleclicksearch_ReportRequest_Filters_Item class], + @"orderBy" : [GTLRDoubleclicksearch_ReportRequest_OrderBy_Item class] + }; + return map; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ReportRequest_Filters_Item +// + +@implementation GTLRDoubleclicksearch_ReportRequest_Filters_Item +@dynamic column, operatorProperty, values; + ++ (NSDictionary *)propertyToJSONKeyMap { + return @{ @"operatorProperty" : @"operator" }; +} + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"values" : [NSObject class] + }; + return map; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ReportRequest_OrderBy_Item +// + +@implementation GTLRDoubleclicksearch_ReportRequest_OrderBy_Item +@dynamic column, sortOrder; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ReportRequest_ReportScope +// + +@implementation GTLRDoubleclicksearch_ReportRequest_ReportScope +@dynamic adGroupId, adId, advertiserId, agencyId, campaignId, engineAccountId, + keywordId; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ReportRequest_TimeRange +// + +@implementation GTLRDoubleclicksearch_ReportRequest_TimeRange +@dynamic changedAttributesSinceTimestamp, changedMetricsSinceTimestamp, endDate, + startDate; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_ReportRow +// + +@implementation GTLRDoubleclicksearch_ReportRow + ++ (Class)classForAdditionalProperties { + return [NSObject class]; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_SavedColumn +// + +@implementation GTLRDoubleclicksearch_SavedColumn +@dynamic kind, savedColumnName, type; +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_SavedColumnList +// + +@implementation GTLRDoubleclicksearch_SavedColumnList +@dynamic items, kind; + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"items" : [GTLRDoubleclicksearch_SavedColumn class] + }; + return map; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_UpdateAvailabilityRequest +// + +@implementation GTLRDoubleclicksearch_UpdateAvailabilityRequest +@dynamic availabilities; + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"availabilities" : [GTLRDoubleclicksearch_Availability class] + }; + return map; +} + +@end + + +// ---------------------------------------------------------------------------- +// +// GTLRDoubleclicksearch_UpdateAvailabilityResponse +// + +@implementation GTLRDoubleclicksearch_UpdateAvailabilityResponse +@dynamic availabilities; + ++ (NSDictionary *)arrayPropertyToClassMap { + NSDictionary *map = @{ + @"availabilities" : [GTLRDoubleclicksearch_Availability class] + }; + return map; +} + +@end diff --git a/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.h b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.h new file mode 100644 index 000000000..0258011d5 --- /dev/null +++ b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.h @@ -0,0 +1,359 @@ +// NOTE: This file was generated by the ServiceGenerator. + +// ---------------------------------------------------------------------------- +// API: +// Search Ads 360 API (doubleclicksearch/v2) +// Description: +// Reports and modifies your advertising data in DoubleClick Search (for +// example, campaigns, ad groups, keywords, and conversions). +// Documentation: +// https://developers.google.com/doubleclick-search/ + +#if SWIFT_PACKAGE || GTLR_USE_MODULAR_IMPORT + @import GoogleAPIClientForRESTCore; +#elif GTLR_BUILT_AS_FRAMEWORK + #import "GTLR/GTLRQuery.h" +#else + #import "GTLRQuery.h" +#endif + +#if GTLR_RUNTIME_VERSION != 3000 +#error This file was generated by a different version of ServiceGenerator which is incompatible with this GTLR library source. +#endif + +@class GTLRDoubleclicksearch_ConversionList; +@class GTLRDoubleclicksearch_ReportRequest; +@class GTLRDoubleclicksearch_UpdateAvailabilityRequest; + +// Generated comments include content from the discovery document; avoid them +// causing warnings since clang's checks are some what arbitrary. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdocumentation" + +NS_ASSUME_NONNULL_BEGIN + +/** + * Parent class for other Doubleclicksearch query classes. + */ +@interface GTLRDoubleclicksearchQuery : GTLRQuery + +/** Selector specifying which fields to include in a partial response. */ +@property(nonatomic, copy, nullable) NSString *fields; + +@end + +/** + * Retrieves a list of conversions from a DoubleClick Search engine account. + * + * Method: doubleclicksearch.conversion.get + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ConversionGet : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForConversionGetWithagencyId:advertiserId:engineAccountId:endDate:rowCount:startDate:startRow:] + +/** Numeric ID of the ad group. */ +@property(nonatomic, assign) long long adGroupId; + +/** Numeric ID of the ad. */ +@property(nonatomic, assign) long long adId; + +/** Numeric ID of the advertiser. */ +@property(nonatomic, assign) long long advertiserId; + +/** Numeric ID of the agency. */ +@property(nonatomic, assign) long long agencyId; + +/** Numeric ID of the campaign. */ +@property(nonatomic, assign) long long campaignId; + +/** Numeric ID of the criterion. */ +@property(nonatomic, assign) long long criterionId; + +/** + * Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. + * + * @note The documented range is 20091101..99991231. + */ +@property(nonatomic, assign) NSInteger endDate; + +/** Numeric ID of the engine account. */ +@property(nonatomic, assign) long long engineAccountId; + +/** + * The number of conversions to return per call. + * + * @note The documented range is 1..1000. + */ +@property(nonatomic, assign) NSInteger rowCount; + +/** + * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. + * + * @note The documented range is 20091101..99991231. + */ +@property(nonatomic, assign) NSInteger startDate; + +/** The 0-based starting index for retrieving conversions results. */ +@property(nonatomic, assign) NSUInteger startRow; + +/** + * Fetches a @c GTLRDoubleclicksearch_ConversionList. + * + * Retrieves a list of conversions from a DoubleClick Search engine account. + * + * @param agencyId Numeric ID of the agency. + * @param advertiserId Numeric ID of the advertiser. + * @param engineAccountId Numeric ID of the engine account. + * @param endDate Last date (inclusive) on which to retrieve conversions. + * Format is yyyymmdd. (Range 20091101..99991231) + * @param rowCount The number of conversions to return per call. (Range + * 1..1000) + * @param startDate First date (inclusive) on which to retrieve conversions. + * Format is yyyymmdd. (Range 20091101..99991231) + * @param startRow The 0-based starting index for retrieving conversions + * results. + * + * @return GTLRDoubleclicksearchQuery_ConversionGet + */ ++ (instancetype)queryWithAgencyId:(long long)agencyId + advertiserId:(long long)advertiserId + engineAccountId:(long long)engineAccountId + endDate:(NSInteger)endDate + rowCount:(NSInteger)rowCount + startDate:(NSInteger)startDate + startRow:(NSUInteger)startRow; + +@end + +/** + * Inserts a batch of new conversions into DoubleClick Search. + * + * Method: doubleclicksearch.conversion.insert + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ConversionInsert : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForConversionInsertWithObject:] + +/** + * Fetches a @c GTLRDoubleclicksearch_ConversionList. + * + * Inserts a batch of new conversions into DoubleClick Search. + * + * @param object The @c GTLRDoubleclicksearch_ConversionList to include in the + * query. + * + * @return GTLRDoubleclicksearchQuery_ConversionInsert + */ ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ConversionList *)object; + +@end + +/** + * Updates a batch of conversions in DoubleClick Search. + * + * Method: doubleclicksearch.conversion.update + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ConversionUpdate : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForConversionUpdateWithObject:] + +/** + * Fetches a @c GTLRDoubleclicksearch_ConversionList. + * + * Updates a batch of conversions in DoubleClick Search. + * + * @param object The @c GTLRDoubleclicksearch_ConversionList to include in the + * query. + * + * @return GTLRDoubleclicksearchQuery_ConversionUpdate + */ ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ConversionList *)object; + +@end + +/** + * Updates the availabilities of a batch of floodlight activities in + * DoubleClick Search. + * + * Method: doubleclicksearch.conversion.updateAvailability + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ConversionUpdateAvailability : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForConversionUpdateAvailabilityWithObject:] + +/** + * Fetches a @c GTLRDoubleclicksearch_UpdateAvailabilityResponse. + * + * Updates the availabilities of a batch of floodlight activities in + * DoubleClick Search. + * + * @param object The @c GTLRDoubleclicksearch_UpdateAvailabilityRequest to + * include in the query. + * + * @return GTLRDoubleclicksearchQuery_ConversionUpdateAvailability + */ ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_UpdateAvailabilityRequest *)object; + +@end + +/** + * Generates and returns a report immediately. + * + * Method: doubleclicksearch.reports.generate + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ReportsGenerate : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForReportsGenerateWithObject:] + +/** + * Fetches a @c GTLRDoubleclicksearch_Report. + * + * Generates and returns a report immediately. + * + * @param object The @c GTLRDoubleclicksearch_ReportRequest to include in the + * query. + * + * @return GTLRDoubleclicksearchQuery_ReportsGenerate + */ ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ReportRequest *)object; + +@end + +/** + * Polls for the status of a report request. + * + * Method: doubleclicksearch.reports.get + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ReportsGet : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForReportsGetWithreportId:] + +/** ID of the report request being polled. */ +@property(nonatomic, copy, nullable) NSString *reportId; + +/** + * Fetches a @c GTLRDoubleclicksearch_Report. + * + * Polls for the status of a report request. + * + * @param reportId ID of the report request being polled. + * + * @return GTLRDoubleclicksearchQuery_ReportsGet + */ ++ (instancetype)queryWithReportId:(NSString *)reportId; + +@end + +/** + * Downloads a report file encoded in UTF-8. + * + * Method: doubleclicksearch.reports.getFile + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ReportsGetFile : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForReportsGetFileWithreportId:reportFragment:] + +/** The index of the report fragment to download. */ +@property(nonatomic, assign) NSInteger reportFragment; + +/** ID of the report. */ +@property(nonatomic, copy, nullable) NSString *reportId; + +/** + * Fetches the requested resource data as a @c GTLRDataObject. + * + * Downloads a report file encoded in UTF-8. + * + * @param reportId ID of the report. + * @param reportFragment The index of the report fragment to download. + * + * @return GTLRDoubleclicksearchQuery_ReportsGetFile + */ ++ (instancetype)queryForMediaWithReportId:(NSString *)reportId + reportFragment:(NSInteger)reportFragment; + +@end + +/** + * Inserts a report request into the reporting system. + * + * Method: doubleclicksearch.reports.request + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_ReportsRequest : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForReportsRequestWithObject:] + +/** + * Fetches a @c GTLRDoubleclicksearch_Report. + * + * Inserts a report request into the reporting system. + * + * @param object The @c GTLRDoubleclicksearch_ReportRequest to include in the + * query. + * + * @return GTLRDoubleclicksearchQuery_ReportsRequest + */ ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ReportRequest *)object; + +@end + +/** + * Retrieve the list of saved columns for a specified advertiser. + * + * Method: doubleclicksearch.savedColumns.list + * + * Authorization scope(s): + * @c kGTLRAuthScopeDoubleclicksearch + */ +@interface GTLRDoubleclicksearchQuery_SavedColumnsList : GTLRDoubleclicksearchQuery +// Previous library name was +// +[GTLQueryDoubleclicksearch queryForSavedColumnsListWithagencyId:advertiserId:] + +/** DS ID of the advertiser. */ +@property(nonatomic, assign) long long advertiserId; + +/** DS ID of the agency. */ +@property(nonatomic, assign) long long agencyId; + +/** + * Fetches a @c GTLRDoubleclicksearch_SavedColumnList. + * + * Retrieve the list of saved columns for a specified advertiser. + * + * @param agencyId DS ID of the agency. + * @param advertiserId DS ID of the advertiser. + * + * @return GTLRDoubleclicksearchQuery_SavedColumnsList + */ ++ (instancetype)queryWithAgencyId:(long long)agencyId + advertiserId:(long long)advertiserId; + +@end + +NS_ASSUME_NONNULL_END + +#pragma clang diagnostic pop diff --git a/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.m b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.m new file mode 100644 index 000000000..e426d1c3d --- /dev/null +++ b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchQuery.m @@ -0,0 +1,239 @@ +// NOTE: This file was generated by the ServiceGenerator. + +// ---------------------------------------------------------------------------- +// API: +// Search Ads 360 API (doubleclicksearch/v2) +// Description: +// Reports and modifies your advertising data in DoubleClick Search (for +// example, campaigns, ad groups, keywords, and conversions). +// Documentation: +// https://developers.google.com/doubleclick-search/ + +#import "GTLRDoubleclicksearchQuery.h" + +#import "GTLRDoubleclicksearchObjects.h" + +@implementation GTLRDoubleclicksearchQuery + +@dynamic fields; + +@end + +@implementation GTLRDoubleclicksearchQuery_ConversionGet + +@dynamic adGroupId, adId, advertiserId, agencyId, campaignId, criterionId, + endDate, engineAccountId, rowCount, startDate, startRow; + ++ (instancetype)queryWithAgencyId:(long long)agencyId + advertiserId:(long long)advertiserId + engineAccountId:(long long)engineAccountId + endDate:(NSInteger)endDate + rowCount:(NSInteger)rowCount + startDate:(NSInteger)startDate + startRow:(NSUInteger)startRow { + NSArray *pathParams = @[ + @"advertiserId", @"agencyId", @"engineAccountId" + ]; + NSString *pathURITemplate = @"agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion"; + GTLRDoubleclicksearchQuery_ConversionGet *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:nil + pathParameterNames:pathParams]; + query.agencyId = agencyId; + query.advertiserId = advertiserId; + query.engineAccountId = engineAccountId; + query.endDate = endDate; + query.rowCount = rowCount; + query.startDate = startDate; + query.startRow = startRow; + query.expectedObjectClass = [GTLRDoubleclicksearch_ConversionList class]; + query.loggingName = @"doubleclicksearch.conversion.get"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_ConversionInsert + ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ConversionList *)object { + if (object == nil) { +#if defined(DEBUG) && DEBUG + NSAssert(object != nil, @"Got a nil object"); +#endif + return nil; + } + NSString *pathURITemplate = @"conversion"; + GTLRDoubleclicksearchQuery_ConversionInsert *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:@"POST" + pathParameterNames:nil]; + query.bodyObject = object; + query.expectedObjectClass = [GTLRDoubleclicksearch_ConversionList class]; + query.loggingName = @"doubleclicksearch.conversion.insert"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_ConversionUpdate + ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ConversionList *)object { + if (object == nil) { +#if defined(DEBUG) && DEBUG + NSAssert(object != nil, @"Got a nil object"); +#endif + return nil; + } + NSString *pathURITemplate = @"conversion"; + GTLRDoubleclicksearchQuery_ConversionUpdate *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:@"PUT" + pathParameterNames:nil]; + query.bodyObject = object; + query.expectedObjectClass = [GTLRDoubleclicksearch_ConversionList class]; + query.loggingName = @"doubleclicksearch.conversion.update"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_ConversionUpdateAvailability + ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_UpdateAvailabilityRequest *)object { + if (object == nil) { +#if defined(DEBUG) && DEBUG + NSAssert(object != nil, @"Got a nil object"); +#endif + return nil; + } + NSString *pathURITemplate = @"conversion/updateAvailability"; + GTLRDoubleclicksearchQuery_ConversionUpdateAvailability *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:@"POST" + pathParameterNames:nil]; + query.bodyObject = object; + query.expectedObjectClass = [GTLRDoubleclicksearch_UpdateAvailabilityResponse class]; + query.loggingName = @"doubleclicksearch.conversion.updateAvailability"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_ReportsGenerate + ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ReportRequest *)object { + if (object == nil) { +#if defined(DEBUG) && DEBUG + NSAssert(object != nil, @"Got a nil object"); +#endif + return nil; + } + NSString *pathURITemplate = @"reports/generate"; + GTLRDoubleclicksearchQuery_ReportsGenerate *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:@"POST" + pathParameterNames:nil]; + query.bodyObject = object; + query.expectedObjectClass = [GTLRDoubleclicksearch_Report class]; + query.loggingName = @"doubleclicksearch.reports.generate"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_ReportsGet + +@dynamic reportId; + ++ (instancetype)queryWithReportId:(NSString *)reportId { + NSArray *pathParams = @[ @"reportId" ]; + NSString *pathURITemplate = @"reports/{reportId}"; + GTLRDoubleclicksearchQuery_ReportsGet *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:nil + pathParameterNames:pathParams]; + query.reportId = reportId; + query.expectedObjectClass = [GTLRDoubleclicksearch_Report class]; + query.loggingName = @"doubleclicksearch.reports.get"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_ReportsGetFile + +@dynamic reportFragment, reportId; + ++ (instancetype)queryWithReportId:(NSString *)reportId + reportFragment:(NSInteger)reportFragment { + NSArray *pathParams = @[ + @"reportFragment", @"reportId" + ]; + NSString *pathURITemplate = @"reports/{reportId}/files/{reportFragment}"; + GTLRDoubleclicksearchQuery_ReportsGetFile *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:nil + pathParameterNames:pathParams]; + query.reportId = reportId; + query.reportFragment = reportFragment; + query.loggingName = @"doubleclicksearch.reports.getFile"; + return query; +} + ++ (instancetype)queryForMediaWithReportId:(NSString *)reportId + reportFragment:(NSInteger)reportFragment { + GTLRDoubleclicksearchQuery_ReportsGetFile *query = + [self queryWithReportId:reportId + reportFragment:reportFragment]; + query.downloadAsDataObjectType = @"media"; + query.useMediaDownloadService = YES; + query.loggingName = @"Download doubleclicksearch.reports.getFile"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_ReportsRequest + ++ (instancetype)queryWithObject:(GTLRDoubleclicksearch_ReportRequest *)object { + if (object == nil) { +#if defined(DEBUG) && DEBUG + NSAssert(object != nil, @"Got a nil object"); +#endif + return nil; + } + NSString *pathURITemplate = @"reports"; + GTLRDoubleclicksearchQuery_ReportsRequest *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:@"POST" + pathParameterNames:nil]; + query.bodyObject = object; + query.expectedObjectClass = [GTLRDoubleclicksearch_Report class]; + query.loggingName = @"doubleclicksearch.reports.request"; + return query; +} + +@end + +@implementation GTLRDoubleclicksearchQuery_SavedColumnsList + +@dynamic advertiserId, agencyId; + ++ (instancetype)queryWithAgencyId:(long long)agencyId + advertiserId:(long long)advertiserId { + NSArray *pathParams = @[ + @"advertiserId", @"agencyId" + ]; + NSString *pathURITemplate = @"agency/{agencyId}/advertiser/{advertiserId}/savedcolumns"; + GTLRDoubleclicksearchQuery_SavedColumnsList *query = + [[self alloc] initWithPathURITemplate:pathURITemplate + HTTPMethod:nil + pathParameterNames:pathParams]; + query.agencyId = agencyId; + query.advertiserId = advertiserId; + query.expectedObjectClass = [GTLRDoubleclicksearch_SavedColumnList class]; + query.loggingName = @"doubleclicksearch.savedColumns.list"; + return query; +} + +@end diff --git a/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.h b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.h new file mode 100644 index 000000000..22c4ff83f --- /dev/null +++ b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.h @@ -0,0 +1,81 @@ +// NOTE: This file was generated by the ServiceGenerator. + +// ---------------------------------------------------------------------------- +// API: +// Search Ads 360 API (doubleclicksearch/v2) +// Description: +// Reports and modifies your advertising data in DoubleClick Search (for +// example, campaigns, ad groups, keywords, and conversions). +// Documentation: +// https://developers.google.com/doubleclick-search/ + +#if SWIFT_PACKAGE || GTLR_USE_MODULAR_IMPORT + @import GoogleAPIClientForRESTCore; +#elif GTLR_BUILT_AS_FRAMEWORK + #import "GTLR/GTLRService.h" +#else + #import "GTLRService.h" +#endif + +#if GTLR_RUNTIME_VERSION != 3000 +#error This file was generated by a different version of ServiceGenerator which is incompatible with this GTLR library source. +#endif + +// Generated comments include content from the discovery document; avoid them +// causing warnings since clang's checks are some what arbitrary. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdocumentation" + +NS_ASSUME_NONNULL_BEGIN + +// ---------------------------------------------------------------------------- +// Authorization scope + +/** + * Authorization scope: View and manage your advertising data in DoubleClick + * Search + * + * Value "https://www.googleapis.com/auth/doubleclicksearch" + */ +FOUNDATION_EXTERN NSString * const kGTLRAuthScopeDoubleclicksearch; + +// ---------------------------------------------------------------------------- +// GTLRDoubleclicksearchService +// + +/** + * Service for executing Search Ads 360 API queries. + * + * Reports and modifies your advertising data in DoubleClick Search (for + * example, campaigns, ad groups, keywords, and conversions). + */ +@interface GTLRDoubleclicksearchService : GTLRService + +// No new methods + +// Clients should create a standard query with any of the class methods in +// GTLRDoubleclicksearchQuery.h. The query can the be sent with GTLRService's +// execute methods, +// +// - (GTLRServiceTicket *)executeQuery:(GTLRQuery *)query +// completionHandler:(void (^)(GTLRServiceTicket *ticket, +// id object, NSError *error))handler; +// or +// - (GTLRServiceTicket *)executeQuery:(GTLRQuery *)query +// delegate:(id)delegate +// didFinishSelector:(SEL)finishedSelector; +// +// where finishedSelector has a signature of: +// +// - (void)serviceTicket:(GTLRServiceTicket *)ticket +// finishedWithObject:(id)object +// error:(NSError *)error; +// +// The object passed to the completion handler or delegate method +// is a subclass of GTLRObject, determined by the query method executed. + +@end + +NS_ASSUME_NONNULL_END + +#pragma clang diagnostic pop diff --git a/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.m b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.m new file mode 100644 index 000000000..7b06639bf --- /dev/null +++ b/Source/GeneratedServices/Doubleclicksearch/GTLRDoubleclicksearchService.m @@ -0,0 +1,46 @@ +// NOTE: This file was generated by the ServiceGenerator. + +// ---------------------------------------------------------------------------- +// API: +// Search Ads 360 API (doubleclicksearch/v2) +// Description: +// Reports and modifies your advertising data in DoubleClick Search (for +// example, campaigns, ad groups, keywords, and conversions). +// Documentation: +// https://developers.google.com/doubleclick-search/ + +#import "GTLRDoubleclicksearch.h" + +// ---------------------------------------------------------------------------- +// Authorization scope + +NSString * const kGTLRAuthScopeDoubleclicksearch = @"https://www.googleapis.com/auth/doubleclicksearch"; + +// ---------------------------------------------------------------------------- +// GTLRDoubleclicksearchService +// + +@implementation GTLRDoubleclicksearchService + +- (instancetype)init { + self = [super init]; + if (self) { + // From discovery. + self.rootURLString = @"https://www.googleapis.com/"; + self.servicePath = @"doubleclicksearch/v2/"; + self.batchPath = @"batch/doubleclicksearch/v2"; + self.prettyPrintQueryParameterNames = @[ @"prettyPrint" ]; + } + return self; +} + ++ (NSDictionary *)kindStringToClassMap { + return @{ + @"doubleclicksearch#conversionList" : [GTLRDoubleclicksearch_ConversionList class], + @"doubleclicksearch#report" : [GTLRDoubleclicksearch_Report class], + @"doubleclicksearch#savedColumn" : [GTLRDoubleclicksearch_SavedColumn class], + @"doubleclicksearch#savedColumnList" : [GTLRDoubleclicksearch_SavedColumnList class], + }; +} + +@end diff --git a/Source/Tools/GenerateCheckedInServices b/Source/Tools/GenerateCheckedInServices index 333da2896..84f8d421b 100755 --- a/Source/Tools/GenerateCheckedInServices +++ b/Source/Tools/GenerateCheckedInServices @@ -71,11 +71,6 @@ SERVICE_GENERATOR_COMMAND+=( # Not sure why this is in discovery, turn it off. prod_tt_sasportal:- - # doubleclicksearch got retitled to "Search Ads 360 API" so we no longer guess - # a good formatted name. Force the name to keep things in sync (can revisit - # this in the future). - --formattedName doubleclicksearch:v2=DoubleClickSearch - # Include a filter so there are no warnings/infos during normal generation. --messageFilter "${ToolsDir}/${ScriptName}-message_filter.json" )