Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<PagespeedApiPagespeedResponseV5>
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>
PagespeedapiResource.RunpagespeedRequest
Implements
IClientServiceRequest<PagespeedApiPagespeedResponseV5>
IClientServiceRequest
Inherited Members
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.Xgafv
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.AccessToken
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.Alt
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.Callback
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.Fields
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.Key
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.OauthToken
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.PrettyPrint
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.QuotaUser
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.UploadType
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.UploadProtocol
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.Execute()
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ExecuteAsStream()
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ExecuteAsync()
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ExecuteAsync(CancellationToken)
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ExecuteAsStreamAsync()
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.CreateRequest(bool?)
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.GenerateRequestUri()
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.GetBody()
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.GetDefaultETagAction(string)
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ETagAction
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ModifyRequest
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ValidateParameters
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.ApiVersion
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.RequestParameters
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.PagespeedInsights.v5
Assembly: Google.Apis.PagespeedInsights.v5.dll
Syntax
public class PagespeedapiResource.RunpagespeedRequest : PagespeedInsightsBaseServiceRequest<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
string url

Properties

CaptchaToken

The captcha token passed when filling out a captcha.

Declaration
[RequestParameter("captchaToken", RequestParameterType.Query)]
public virtual string CaptchaToken { get; set; }
Property Value
Type Description
string

Category

A Lighthouse category to run; if none are given, only Performance category will be run

Declaration
[RequestParameter("category", RequestParameterType.Query)]
public virtual PagespeedapiResource.RunpagespeedRequest.CategoryEnum? Category { get; set; }
Property Value
Type Description
PagespeedapiResource.RunpagespeedRequest.CategoryEnum?
Remarks

Use this property to set a single value for the parameter, or CategoryList to set multiple values. Do not set both properties.

CategoryList

A Lighthouse category to run; if none are given, only Performance category will be run

Declaration
[RequestParameter("category", RequestParameterType.Query)]
public virtual Repeatable<PagespeedapiResource.RunpagespeedRequest.CategoryEnum> CategoryList { get; set; }
Property Value
Type Description
Repeatable<PagespeedapiResource.RunpagespeedRequest.CategoryEnum>
Remarks

Use this property to set one or more values for the parameter. Do not set both this property and Category.

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.HttpMethod

Locale

The locale used to localize formatted results

Declaration
[RequestParameter("locale", RequestParameterType.Query)]
public virtual string Locale { get; set; }
Property Value
Type Description
string

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<PagespeedApiPagespeedResponseV5>.RestPath

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
PagespeedapiResource.RunpagespeedRequest.StrategyEnum?

Url

Required. The URL to fetch and analyze

Declaration
[RequestParameter("url", RequestParameterType.Query)]
public virtual string Url { get; }
Property Value
Type Description
string

UtmCampaign

Campaign name for analytics.

Declaration
[RequestParameter("utm_campaign", RequestParameterType.Query)]
public virtual string UtmCampaign { get; set; }
Property Value
Type Description
string

UtmSource

Campaign source for analytics.

Declaration
[RequestParameter("utm_source", RequestParameterType.Query)]
public virtual string UtmSource { get; set; }
Property Value
Type Description
string

Methods

InitParameters()

Initializes Runpagespeed parameter list.

Declaration
protected override void InitParameters()
Overrides
PagespeedInsightsBaseServiceRequest<PagespeedApiPagespeedResponseV5>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX