Class PagespeedapiResource.RunpagespeedRequest
Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.
Inheritance
System.Object
PagespeedapiResource.RunpagespeedRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.Finalize()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Pagespeedonline.v5
Assembly: Google.Apis.Pagespeedonline.v5.dll
Syntax
public class RunpagespeedRequest : PagespeedonlineBaseServiceRequest<PagespeedApiPagespeedResponseV5>, IClientServiceRequest<PagespeedApiPagespeedResponseV5>, IClientServiceRequest
Constructors
RunpagespeedRequest(IClientService, String)
Constructs a new Runpagespeed request.
Declaration
public RunpagespeedRequest(IClientService service, string url)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
System.String | url |
Properties
Category
A Lighthouse category to run; if none are given, only Performance category will be run
Declaration
public virtual Nullable<PagespeedapiResource.RunpagespeedRequest.CategoryEnum> Category { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<PagespeedapiResource.RunpagespeedRequest.CategoryEnum> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Pagespeedonline.v5.Data.PagespeedApiPagespeedResponseV5>.HttpMethod
Locale
The locale used to localize formatted results
Declaration
public virtual string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Pagespeedonline.v5.Data.PagespeedApiPagespeedResponseV5>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Pagespeedonline.v5.Data.PagespeedApiPagespeedResponseV5>.RestPath
Strategy
The analysis strategy (desktop or mobile) to use, and desktop is the default
Declaration
public virtual Nullable<PagespeedapiResource.RunpagespeedRequest.StrategyEnum> Strategy { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<PagespeedapiResource.RunpagespeedRequest.StrategyEnum> |
Url
The URL to fetch and analyze
Declaration
public virtual string Url { get; }
Property Value
Type | Description |
---|---|
System.String |
UtmCampaign
Campaign name for analytics.
Declaration
public virtual string UtmCampaign { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UtmSource
Campaign source for analytics.
Declaration
public virtual string UtmSource { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
InitParameters()
Initializes Runpagespeed parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Pagespeedonline.v5.PagespeedonlineBaseServiceRequest<Google.Apis.Pagespeedonline.v5.Data.PagespeedApiPagespeedResponseV5>.InitParameters()