Get Started with Avocarrot

Overview

Examples

Android

Overview

- Avocarrot Exchange SDK

Setup Exchange SDK

Stream

Native Assets

Exchange Troubleshooting

- Avocarrot Mediation SDK

Setup Mediation

Stream Ads Mediation

Native ads Mediation

Native Assets Mediation

Banner Mediation

Interstitial Mediation

Video Mediation

Supported Networks & Ad Types

Mediation Troubleshooting

iOS

Overview

- Avocarrot Exchange SDK

Setup SDK

Stream

Native Assets

Exchange Troubleshooting

- Avocarrot Mediation

Getting Started With Mediation

Stream Ads Mediation

Native Ads Mediation

Banner Ads Mediation

Interstitial Ads Mediation

Video Ads Mediation

Supported Networks & Ad Types

Mediation Troubleshooting

API Documentation

Reporting API

Help

FAQ

Updates

SDK Change Log

Android Change Log

iOS Change Log

Exchange Troubleshooting

Updated 2 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

 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
  });
}

Log shows:

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 *myAd is 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?