public class QueryInfo extends Object
Data returned by query info generation.
Public Method Summary
static void |
generate(Context
context, AdFormat
adFormat, AdRequest
adRequest,
QueryInfoGenerationCallback callback)
Generates query info that can be used as input in an ad request.
|
static void | |
String |
getQuery()
Gets query info that can be used as input in an ad request.
|
Inherited Method Summary
Public Methods
public static void generate (Context context, AdFormat adFormat, AdRequest adRequest, QueryInfoGenerationCallback callback)
Generates query info that can be used as input in an ad request.
Parameters
context | The application context. |
---|---|
adFormat | The format of the ad being requested. |
adRequest | The ad request object that contains targeting information. |
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. |
public static void generate (Context context, AdFormat adFormat, AdRequest adRequest, String adUnitId, QueryInfoGenerationCallback callback)
Generates query info that can be used as input in an ad request.
Parameters
context | The application context. |
---|---|
adFormat | The format of the ad being requested. |
adRequest | The ad request object that contains targeting information. |
adUnitId | The ad unit ID. |
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. |
public String getQuery ()
Gets query info that can be used as input in an ad request.