Get Started with Avocarrot

Overview

Examples

Android

Overview

Getting Started

- Integrating Ads

Stream

Native Assets

Banner

Interstitial

Video

- Others

Troubleshooting

- Adapters

Admob Android Adapter

Mopub Android Adapter

iOS

Overview

Getting Started

- Integrating Ads

Stream

Native Assets

Banner

Interstitial

Video

- Others

Troubleshooting

- Adapters

Admob iOS Adapter

Mopub iOS Adapter

API Documentation

Reporting API

Help

Supported Networks & Ad Types

General

Earnings

Payments and Accounting

Integration

Reporting

Mediation Network Optimization

Legal and Privacy

Updates

SDK Change Log

Android Change Log

iOS Change Log

Troubleshooting

Updated 6 months ago ​by Chris

Overview

To debug your Avocarrot integration enable the Avocarrot Logger in your project.

 Copy To Clipboard

  // Log any events related with Avocarrot
  [myAd setLogger:YES withLevel:@"ALL"]; 

You can see the SDK version changes in the iOS SDK Changelog page.
Avocarrot Issues
BUILD FAILS: Apple Mach-O Linker Error
This error indicates that you haven't imported the the SDK dependencies correctly.
ERROR: No placement with name <NAME> exists.
You have used an invalid Placement key.
Log in to your dashboard and make sure that you are using the correct placement key.
ERROR: Unauthorized. Please provide a valid api key.
You have used an invalid API Key.
Log in to your dashboard and make sure that you are using the correct key for your app.
ERROR: Missing api key from the request body or auth headers
You have failed to initialize your AvocarrotComponent. To initialize the object include the following instruction.

 Copy To Clipboard

[myAd setApiKey:@"<your API Key>"];

AvocarrotCustom Issues
TIP:I cannot update my UI on (void) adDidLoad:(AVCustomAd *)
Make sure that you update your UI in a background thread, once you receive your AVCustomAd object

 Copy To Clipboard

- (void)adDidLoad:(AVCustomAd *)ad
{
  dispatch_after(DISPATCH_TIME_NOW, dispatch_get_main_queue(), ^(void){
    // Update your UI here
  });
}

INFO: Cannot register Ad click because impression has not been tracked.
Make sure that you call the method [bindToView] before calling [handleClick].
For a full working demo click here.
ERROR:[AvocarrotCustom handleClick]: unrecognized selector sent to instance
Make sure that your reference to AVCustomAd *myAdis not deallocated when calling [handleClick[.
AvocarrotInstream Issues
ERROR: Failed to obtain the number of sections for parent tableView
Make sure that pass a valid tableView reference when calling [[AvocarrotInstream alloc]initWithController: ...]


Was this article useful?