/// <summary> /// Updates an existing floodlight activity. This method supports patch semantics. /// Documentation https://developers.google.com/dfareporting/v2.5beta1/reference/floodlightActivities/patch /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="id">Floodlight activity ID.</param> /// <param name="body">A valid dfareporting v2.5beta1 body.</param> /// <returns>FloodlightActivityResponse</returns> public static FloodlightActivity Patch(dfareportingService service, string profileId, string id, FloodlightActivity body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (id == null) { throw new ArgumentNullException(id); } // Make the request. return(service.FloodlightActivities.Patch(body, profileId, id).Execute()); } catch (Exception ex) { throw new Exception("Request FloodlightActivities.Patch failed.", ex); } }
/// <summary> /// Inserts conversions. /// Documentation https://developers.google.com/dfareporting/v2.6/reference/conversions/batchinsert /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="body">A valid dfareporting v2.6 body.</param> /// <returns>ConversionsBatchInsertResponseResponse</returns> public static ConversionsBatchInsertResponse Batchinsert(dfareportingService service, string profileId, ConversionsBatchInsertRequest body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Make the request. return(service.Conversions.Batchinsert(body, profileId).Execute()); } catch (Exception ex) { throw new Exception("Request Conversions.Batchinsert failed.", ex); } }
/// <summary> /// Gets one operating system by DART ID. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/operatingSystems/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="dartId">Operating system DART ID.</param> /// <returns>OperatingSystemResponse</returns> public static OperatingSystem Get(dfareportingService service, string profileId, string dartId) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (dartId == null) { throw new ArgumentNullException(dartId); } // Make the request. return(service.OperatingSystems.Get(profileId, dartId).Execute()); } catch (Exception ex) { throw new Exception("Request OperatingSystems.Get failed.", ex); } }
/// <summary> /// Updates an existing creative field value. This method supports patch semantics. /// Documentation https://developers.google.com/dfareporting/v2.5beta1/reference/creativeFieldValues/patch /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="creativeFieldId">Creative field ID for this creative field value.</param> /// <param name="id">Creative Field Value ID</param> /// <param name="body">A valid dfareporting v2.5beta1 body.</param> /// <returns>CreativeFieldValueResponse</returns> public static CreativeFieldValue Patch(dfareportingService service, string profileId, string creativeFieldId, string id, CreativeFieldValue body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (creativeFieldId == null) { throw new ArgumentNullException(creativeFieldId); } if (id == null) { throw new ArgumentNullException(id); } // Make the request. return(service.CreativeFieldValues.Patch(body, profileId, creativeFieldId, id).Execute()); } catch (Exception ex) { throw new Exception("Request CreativeFieldValues.Patch failed.", ex); } }
/// <summary> /// Gets one content category by ID. /// Documentation https://developers.google.com/dfareporting/v2.5/reference/contentCategories/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="id">Content category ID.</param> /// <returns>ContentCategoryResponse</returns> public static ContentCategory Get(dfareportingService service, string profileId, string id) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (id == null) { throw new ArgumentNullException(id); } // Make the request. return(service.ContentCategories.Get(profileId, id).Execute()); } catch (Exception ex) { throw new Exception("Request ContentCategories.Get failed.", ex); } }
/// <summary> /// Deletes an existing campaign landing page. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/landingPages/delete /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="campaignId">Landing page campaign ID.</param> /// <param name="id">Landing page ID.</param> public static void Delete(dfareportingService service, string profileId, string campaignId, string id) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (campaignId == null) { throw new ArgumentNullException(campaignId); } if (id == null) { throw new ArgumentNullException(id); } // Make the request. return(service.LandingPages.Delete(profileId, campaignId, id).Execute()); } catch (Exception ex) { throw new Exception("Request LandingPages.Delete failed.", ex); } }
/// <summary> /// Inserts a new creative asset. /// Documentation https://developers.google.com/dfareporting/v2.6/reference/creativeAssets/insert /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="advertiserId">Advertiser ID of this creative. This is a required field.</param> /// <param name="body">A valid dfareporting v2.6 body.</param> /// <returns>CreativeAssetMetadataResponse</returns> public static CreativeAssetMetadata Insert(dfareportingService service, string profileId, string advertiserId, CreativeAssetMetadata body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (advertiserId == null) { throw new ArgumentNullException(advertiserId); } // Make the request. return(service.CreativeAssets.Insert(body, profileId, advertiserId).Execute()); } catch (Exception ex) { throw new Exception("Request CreativeAssets.Insert failed.", ex); } }
/// <summary> /// Updates an existing ad. /// Documentation https://developers.google.com/dfareporting/v2.5beta1/reference/ads/update /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="body">A valid dfareporting v2.5beta1 body.</param> /// <returns>AdResponse</returns> public static Ad Update(dfareportingService service, string profileId, Ad body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Make the request. return(service.Ads.Update(body, profileId).Execute()); } catch (Exception ex) { throw new Exception("Request Ads.Update failed.", ex); } }
/// <summary> /// Retrieves list of report dimension values for a list of filters. /// Documentation https://developers.google.com/dfareporting/v2.6/reference/dimensionValues/query /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">The DFA user profile ID.</param> /// <param name="body">A valid dfareporting v2.6 body.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>DimensionValueListResponse</returns> public static DimensionValueList Query(dfareportingService service, string profileId, DimensionValueRequest body, DimensionValuesQueryOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Building the initial request. var request = service.DimensionValues.Query(body, profileId); // Applying optional parameters to the request. request = (DimensionValuesResource.QueryRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request DimensionValues.Query failed.", ex); } }
/// <summary> /// Deletes an existing dynamic targeting key. /// Documentation https://developers.google.com/dfareporting/v2.5beta1/reference/dynamicTargetingKeys/delete /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="objectId">ID of the object of this dynamic targeting key. This is a required field.</param> /// <param name="name">Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.</param> /// <param name="objectType">Type of the object of this dynamic targeting key. This is a required field.</param> public static void Delete(dfareportingService service, string profileId, string objectId, string name, string objectType) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (objectId == null) { throw new ArgumentNullException(objectId); } if (name == null) { throw new ArgumentNullException(name); } if (objectType == null) { throw new ArgumentNullException(objectType); } // Make the request. return(service.DynamicTargetingKeys.Delete(profileId, objectId, name, objectType).Execute()); } catch (Exception ex) { throw new Exception("Request DynamicTargetingKeys.Delete failed.", ex); } }
/// <summary> /// Gets one postal code by ID. /// Documentation https://developers.google.com/dfareporting/v2.5/reference/postalCodes/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="code">Postal code ID.</param> /// <returns>PostalCodeResponse</returns> public static PostalCode Get(dfareportingService service, string profileId, string code) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (code == null) { throw new ArgumentNullException(code); } // Make the request. return(service.PostalCodes.Get(profileId, code).Execute()); } catch (Exception ex) { throw new Exception("Request PostalCodes.Get failed.", ex); } }
/// <summary> /// Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/compatibleFields/query /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">The DFA user profile ID.</param> /// <param name="body">A valid dfareporting v2.7 body.</param> /// <returns>CompatibleFieldsResponse</returns> public static CompatibleFields Query(dfareportingService service, string profileId, Report body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Make the request. return(service.CompatibleFields.Query(body, profileId).Execute()); } catch (Exception ex) { throw new Exception("Request CompatibleFields.Query failed.", ex); } }
/// <summary> /// Gets the account's active ad summary by account ID. /// Documentation https://developers.google.com/dfareporting/v2.5/reference/accountActiveAdSummaries/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="summaryAccountId">Account ID.</param> /// <returns>AccountActiveAdSummaryResponse</returns> public static AccountActiveAdSummary Get(dfareportingService service, string profileId, string summaryAccountId) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (summaryAccountId == null) { throw new ArgumentNullException(summaryAccountId); } // Make the request. return(service.AccountActiveAdSummaries.Get(profileId, summaryAccountId).Execute()); } catch (Exception ex) { throw new Exception("Request AccountActiveAdSummaries.Get failed.", ex); } }
/// <summary> /// Gets one user role permission group by ID. /// Documentation https://developers.google.com/dfareporting/v2.5beta1/reference/userRolePermissionGroups/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="id">User role permission group ID.</param> /// <returns>UserRolePermissionGroupResponse</returns> public static UserRolePermissionGroup Get(dfareportingService service, string profileId, string id) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (id == null) { throw new ArgumentNullException(id); } // Make the request. return(service.UserRolePermissionGroups.Get(profileId, id).Execute()); } catch (Exception ex) { throw new Exception("Request UserRolePermissionGroups.Get failed.", ex); } }
/// <summary> /// Gets one remarketing list by ID. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/targetableRemarketingLists/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="id">Remarketing list ID.</param> /// <returns>TargetableRemarketingListResponse</returns> public static TargetableRemarketingList Get(dfareportingService service, string profileId, string id) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (id == null) { throw new ArgumentNullException(id); } // Make the request. return(service.TargetableRemarketingLists.Get(profileId, id).Execute()); } catch (Exception ex) { throw new Exception("Request TargetableRemarketingLists.Get failed.", ex); } }
/// <summary> /// Retrieves a report file. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/files/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">The DFA profile ID.</param> /// <param name="reportId">The ID of the report.</param> /// <param name="fileId">The ID of the report file.</param> /// <returns>FileResponse</returns> public static File Get(dfareportingService service, string profileId, string reportId, string fileId) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (reportId == null) { throw new ArgumentNullException(reportId); } if (fileId == null) { throw new ArgumentNullException(fileId); } // Make the request. return(service.Files.Get(profileId, reportId, fileId).Execute()); } catch (Exception ex) { throw new Exception("Request Files.Get failed.", ex); } }
/// <summary> /// Updates an existing remarketing list share. This method supports patch semantics. /// Documentation https://developers.google.com/dfareporting/v2.5/reference/remarketingListShares/patch /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="remarketingListId">Remarketing list ID.</param> /// <param name="body">A valid dfareporting v2.5 body.</param> /// <returns>RemarketingListShareResponse</returns> public static RemarketingListShare Patch(dfareportingService service, string profileId, string remarketingListId, RemarketingListShare body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (remarketingListId == null) { throw new ArgumentNullException(remarketingListId); } // Make the request. return(service.RemarketingListShares.Patch(body, profileId, remarketingListId).Execute()); } catch (Exception ex) { throw new Exception("Request RemarketingListShares.Patch failed.", ex); } }
/// <summary> /// Retrieves a list of content categories, possibly filtered. This method supports paging. /// Documentation https://developers.google.com/dfareporting/v2.5/reference/contentCategories/list /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>ContentCategoriesListResponseResponse</returns> public static ContentCategoriesListResponse List(dfareportingService service, string profileId, ContentCategoriesListOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Building the initial request. var request = service.ContentCategories.List(profileId); // Applying optional parameters to the request. request = (ContentCategoriesResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request ContentCategories.List failed.", ex); } }
/// <summary> /// Inserts a new placement group. /// Documentation https://developers.google.com/dfareporting/v2.6/reference/placementGroups/insert /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="body">A valid dfareporting v2.6 body.</param> /// <returns>PlacementGroupResponse</returns> public static PlacementGroup Insert(dfareportingService service, string profileId, PlacementGroup body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Make the request. return(service.PlacementGroups.Insert(body, profileId).Execute()); } catch (Exception ex) { throw new Exception("Request PlacementGroups.Insert failed.", ex); } }
/// <summary> /// Inserts a new landing page for the specified campaign. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/landingPages/insert /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="campaignId">Landing page campaign ID.</param> /// <param name="body">A valid dfareporting v2.7 body.</param> /// <returns>LandingPageResponse</returns> public static LandingPage Insert(dfareportingService service, string profileId, string campaignId, LandingPage body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (campaignId == null) { throw new ArgumentNullException(campaignId); } // Make the request. return(service.LandingPages.Insert(body, profileId, campaignId).Execute()); } catch (Exception ex) { throw new Exception("Request LandingPages.Insert failed.", ex); } }
/// <summary> /// Generates a tag for a floodlight activity. /// Documentation https://developers.google.com/dfareporting/v2.5beta1/reference/floodlightActivities/generatetag /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>FloodlightActivitiesGenerateTagResponseResponse</returns> public static FloodlightActivitiesGenerateTagResponse Generatetag(dfareportingService service, string profileId, FloodlightActivitiesGeneratetagOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Building the initial request. var request = service.FloodlightActivities.Generatetag(profileId); // Applying optional parameters to the request. request = (FloodlightActivitiesResource.GeneratetagRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request FloodlightActivities.Generatetag failed.", ex); } }
/// <summary> /// Inserts a new campaign. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/campaigns/insert /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="defaultLandingPageName">Default landing page name for this new campaign. Must be less than 256 characters long.</param> /// <param name="defaultLandingPageUrl">Default landing page URL for this new campaign.</param> /// <param name="body">A valid dfareporting v2.7 body.</param> /// <returns>CampaignResponse</returns> public static Campaign Insert(dfareportingService service, string profileId, string defaultLandingPageName, string defaultLandingPageUrl, Campaign body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (profileId == null) { throw new ArgumentNullException(profileId); } if (defaultLandingPageName == null) { throw new ArgumentNullException(defaultLandingPageName); } if (defaultLandingPageUrl == null) { throw new ArgumentNullException(defaultLandingPageUrl); } // Make the request. return(service.Campaigns.Insert(body, profileId, defaultLandingPageName, defaultLandingPageUrl).Execute()); } catch (Exception ex) { throw new Exception("Request Campaigns.Insert failed.", ex); } }
/// <summary> /// Retrieves list of user profiles for a user. /// Documentation https://developers.google.com/dfareporting/v2.6/reference/userProfiles/list /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <returns>UserProfileListResponse</returns> public static UserProfileList List(dfareportingService service) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } // Make the request. return(service.UserProfiles.List().Execute()); } catch (Exception ex) { throw new Exception("Request UserProfiles.List failed.", ex); } }
/// <summary> /// Retrieves a list of platform types. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/platformTypes/list /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <returns>PlatformTypesListResponseResponse</returns> public static PlatformTypesListResponse List(dfareportingService service, string profileId) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Make the request. return(service.PlatformTypes.List(profileId).Execute()); } catch (Exception ex) { throw new Exception("Request PlatformTypes.List failed.", ex); } }
/// <summary> /// Gets one video format by ID. /// Documentation https://developers.google.com/dfareporting/v2.7/reference/videoFormats/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated dfareporting service.</param> /// <param name="profileId">User profile ID associated with this request.</param> /// <param name="id">Video format ID.</param> /// <returns>VideoFormatResponse</returns> public static VideoFormat Get(dfareportingService service, string profileId, int id) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (profileId == null) { throw new ArgumentNullException(profileId); } // Make the request. return(service.VideoFormats.Get(profileId, id).Execute()); } catch (Exception ex) { throw new Exception("Request VideoFormats.Get failed.", ex); } }