QueryInfo

public class QueryInfo 

Data returned by query info generation.

Summary

Public methods

static void
generate (
Context  context,
AdFormat  adFormat,
    @ Nullable AdRequest  adRequest,
QueryInfoGenerationCallback  callback
)

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

static void
generate (
Context  context,
AdFormat  adFormat,
    @ Nullable AdRequest  adRequest,
String  adUnitId,
QueryInfoGenerationCallback  callback
)

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 methods

generate

public static void  generate 
(
Context  context,
AdFormat  adFormat,
    @ Nullable AdRequest  adRequest,
QueryInfoGenerationCallback  callback
)

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.

@ Nullable AdRequest  adRequest

The ad request object that contains targeting information.

QueryInfoGenerationCallback  callback

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

public static void  generate 
(
Context  context,
AdFormat  adFormat,
    @ Nullable AdRequest  adRequest,
String  adUnitId,
QueryInfoGenerationCallback  callback
)

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.

@ Nullable AdRequest  adRequest

The ad request object that contains targeting information.

String  adUnitId

The ad unit ID.

QueryInfoGenerationCallback  callback

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

public  String 
 getQuery 
()

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

Create a Mobile Website
View Site in Mobile | Classic
Share by: