GANSearchAdRequest Class

GANSearchAdRequest Class Reference

Overview

Typically, the client of the SDK will instantiate a GANSearchAdRequest with the appropriate query and then it will use to load ads through the GANSearchAdController (-loadAds:).

Inherits NSObject. Implements <NSCopying>.

Property Summary

NSString * query
 The search query, such as "flowers". More...
 
NSString * testGeolocation
 For testing purposes, sets the user's location to return location-targeted shopping ads (optional). More...
 
NSString * targetLanguage
 The target language for the ad request. More...
 

Property Detail

- (NSString*) query
readwritenonatomiccopy

The search query, such as "flowers".

It must be a non empty string. It should not be URL-encoded.

- (NSString*) testGeolocation
readwritenonatomiccopy

For testing purposes, sets the user's location to return location-targeted shopping ads (optional).

Only valid for AdSense for Shopping (AFSh) ads with adtest on. Provide the two-letter country code, case-insensitive.

- (NSString*) targetLanguage
readwritenonatomiccopy

The target language for the ad request.

Languages specified using the Google AdWords API language codes. The default value is 'en'.