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
Inherited Members
Namespace: Google.Apis.Pagespeedonline.v4
Assembly: Google.Apis.Pagespeedonline.v4.dll
Syntax
public class RunpagespeedRequest : PagespeedonlineBaseServiceRequest<PagespeedApiPagespeedResponseV4>, IClientServiceRequest<PagespeedApiPagespeedResponseV4>, 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
FilterThirdPartyResources
Indicates if third party resources should be filtered out before PageSpeed analysis.
Declaration
[RequestParameter("filter_third_party_resources", RequestParameterType.Query)]
public virtual bool? FilterThirdPartyResources { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Locale
The locale used to localize formatted results
Declaration
[RequestParameter("locale", RequestParameterType.Query)]
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Rule
A PageSpeed rule to run; if none are given, all rules are run
Declaration
[RequestParameter("rule", RequestParameterType.Query)]
public virtual Repeatable<string> Rule { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<System.String> |
Screenshot
Indicates if binary data containing a screenshot should be included
Declaration
[RequestParameter("screenshot", RequestParameterType.Query)]
public virtual bool? Screenshot { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Snapshots
Indicates if binary data containing snapshot images should be included
Declaration
[RequestParameter("snapshots", RequestParameterType.Query)]
public virtual bool? Snapshots { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Strategy
The analysis strategy (desktop or mobile) to use, and desktop is the default
Declaration
[RequestParameter("strategy", RequestParameterType.Query)]
public virtual PagespeedapiResource.RunpagespeedRequest.StrategyEnum? Strategy { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<PagespeedapiResource.RunpagespeedRequest.StrategyEnum> |
Url
The URL to fetch and analyze
Declaration
[RequestParameter("url", RequestParameterType.Query)]
public virtual string Url { get; }
Property Value
Type | Description |
---|---|
System.String |
UtmCampaign
Campaign name for analytics.
Declaration
[RequestParameter("utm_campaign", RequestParameterType.Query)]
public virtual string UtmCampaign { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UtmSource
Campaign source for analytics.
Declaration
[RequestParameter("utm_source", RequestParameterType.Query)]
public virtual string UtmSource { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
InitParameters()
Initializes Runpagespeed parameter list.
Declaration
protected override void InitParameters()