QueryInfo

class QueryInfo


Data returned by query info generation.

Summary

Public functions

java-static Unit
generate(
    context: Context!,
    adFormat: AdFormat!,
    adRequest: AdRequest?,
    callback: QueryInfoGenerationCallback!
)

Generates query info that can be used as input in an ad request.

java-static Unit
generate(
    context: Context!,
    adFormat: AdFormat!,
    adRequest: AdRequest?,
    adUnitId: String!,
    callback: QueryInfoGenerationCallback!
)

Generates query info that can be used as input in an ad request.

String!

Gets query info that can be used as input in an ad request.

Public functions

generate

java-static fun generate(
    context: Context!,
    adFormat: AdFormat!,
    adRequest: AdRequest?,
    callback: QueryInfoGenerationCallback!
): Unit

Generates query info that can be used as input in an ad request.

Parameters
context: Context!

The application context.

adFormat: AdFormat!

The format of the ad being requested.

adRequest: AdRequest?

The ad request object that contains targeting information.

callback: QueryInfoGenerationCallback!

A QueryInfoGenerationCallback to receive callbacks. Callbacks are invoked asynchronously on the UI thread once query info has been successfully generated or when an error occurs.

generate

java-static fun generate(
    context: Context!,
    adFormat: AdFormat!,
    adRequest: AdRequest?,
    adUnitId: String!,
    callback: QueryInfoGenerationCallback!
): Unit

Generates query info that can be used as input in an ad request.

Parameters
context: Context!

The application context.

adFormat: AdFormat!

The format of the ad being requested.

adRequest: AdRequest?

The ad request object that contains targeting information.

adUnitId: String!

The ad unit ID.

callback: QueryInfoGenerationCallback!

A QueryInfoGenerationCallback to receive callbacks. Callbacks are invoked asynchronously on the UI thread once query info has been successfully generated or when an error occurs.

getQuery

fun getQuery(): String!

Gets query info that can be used as input in an ad request.