if (tqAdView == nil) {
tqAdView = [[AdvBar alloc] initWithAppId:@"Your app Id"
origin:CGPointMake(x_axis_of_the_bar,y_axis_of_the_bar) from:self
adType:@"Small_Ad"
adUnitId:particular_ad_unit_Id_registered_under_app];
// Based on the type of ad view you wish to integrate, adType can be @"Square_Ad" or @"FullScreen_Ad" or @"700x90" (Detail View of a SplitViewController) or @"1024x90" (Full Width) or @"Small_Ad" (for a 320x50 ad)
tqAdView.tag =131313;
tqAdView.mydelegate = self;
[self.view addSubView: tqAdView]
}
- (void)dealloc { tqAdView.timeOutForQuestion = nil; tqAdView.calledBy = nil; tqAdView = nil; }
if (tqAdView != nil) { [tqAdView recordMoment:@"Moment_Name" momentAttributes:nil_or_nsdictionary_of_moment_details]; }For Example:
In order to display tapCLIQ ads at a moment when a ‘Product is selected’ in your retail app –
- (void) productSelected: (id)sender { ... if (tqAdView != nil) { [tqAdView recordMoment::@”Product Selected” momentAttributes: [[NSDictionary dictionaryWithObjectsAndKeys: @”Product Name”, @”Running Shoes”, @”Brand”, @”Nike”]; ... }
- (void)removedT2RBar:(AdvBar*)bar
{
// tapCLIQ ad view is about to be removed from the view.
}
You can start showing 3rd party SDK ads again once tapCLIQ ad view is removed