Skip to content

Commit

Permalink
feat(docs): Remove additional accordions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sporiff committed Oct 26, 2023
1 parent c62c8d9 commit 5ecff7a
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 218 deletions.
18 changes: 1 addition & 17 deletions src/content/docs/en/sdk/ios/configuration/skad.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ If you manage your conversion values with Adjust, the servers update this value

<UpdateConversionValue />

<Accordion>

### Example

This example demonstrates how to update a conversion value to `10` in response to a user triggering an event.
Expand Down Expand Up @@ -74,9 +72,7 @@ func onButtonClick() {
</Tab>
</Tabs>

</Accordion>

### Set up completion handlers
## Set up completion handlers

The Adjust SDK contains wrappers for Apple's `updatePostbackConversionValue` methods. These methods provide more options for handling SKAdNetwork postbacks, including the option to handle failures.

Expand Down Expand Up @@ -110,8 +106,6 @@ updatePostbackConversionValue

</Table>

<Accordion>

### Example

<Tabs>
Expand Down Expand Up @@ -151,14 +145,10 @@ if (@available(iOS 16.1, *)) {
</Tab>
</Tabs>

</Accordion>

## Listen for changes to conversion values

If you use Adjust to manage conversion values, the Adjust's servers send conversion value updates to the SDK. You can set up a delegate function to listen for these changes using the `adjustConversionValueUpdated` method.

<Accordion>

### Example

This example demonstrates how to log the following when the conversion value updates:
Expand Down Expand Up @@ -191,8 +181,6 @@ func adjustConversionValueUpdated(_ conversionValue: NSNumber?) {
</Tab>
</Tabs>

</Accordion>

## SKAdNetwork 4.0 callbacks

SKAdNetwork 4.0 postbacks contain some additional information to give advertisers more insight into their users. When Adjust's servers update conversion values, this additional information is sent in a payload. You can access this information with the `adjustConversionValueUpdated` callback method.
Expand All @@ -217,8 +205,6 @@ SKAdNetwork 4.0 postbacks contain some additional information to give advertiser

</Table>

<Accordion>

### Example

This example demonstrates how to log the the fine conversion value, the coarse conversion value, and whether the SKAdNetwork postback is set to send before the conversion window ends.
Expand Down Expand Up @@ -252,8 +238,6 @@ func adjustConversionValueUpdated(_ fineValue: NSNumber?, coarseValue: String?,
</Tab>
</Tabs>

</Accordion>

## Set up direct install postbacks

<Callout type="note">
Expand Down
18 changes: 1 addition & 17 deletions src/content/docs/en/sdk/ios/features/ad-revenue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To send ad revenue to Adjust:

## Sources

<Table>
<Table height="full-height">

| Parameter | Source |
| ------------------------------------ | ----------------- |
Expand Down Expand Up @@ -77,46 +77,30 @@ Check the [guide to tracking purchases in different currencies](https://help.adj

The ad revenue object contains properties you can use to report on your ad campaigns.

<Accordion>

### Ad impressions

Record the number of ad impressions by passing an **integer** value to the <Tooltip>`setAdImpressionsCount` method || <SetAdImpressionsCountSig /></Tooltip>.

<SetAdImpressionsCount />

</Accordion>

<Accordion>

### Ad revenue network

Record which network generated the revenue by passing a **string** value to the <Tooltip>`setAdRevenueNetwork` method || <SetAdRevenueNetworkSig /></Tooltip>.

<SetAdRevenueNetwork />

</Accordion>

<Accordion>

### Ad revenue unit

Record which ad revenue unit generated the revenue by passing a **string** value to the <Tooltip>`setAdRevenueUnit` method || <SetAdRevenueUnitSig /></Tooltip>.

<SetAdRevenueUnit />

</Accordion>

<Accordion>

### Ad revenue placement

Record the placement of your ad by passing a **string** value to the <Tooltip>`setAdRevenuePlacement` method || <SetAdRevenuePlacementSig /></Tooltip>.

<SetAdRevenuePlacement />

</Accordion>

## Add callback parameters

If you [register a callback URL](https://help.adjust.com/en/article/recommended-placeholders-callbacks) in the Adjust dashboard, the SDK sends a GET request to your callback URL when it records an event.
Expand Down
26 changes: 0 additions & 26 deletions src/content/docs/en/sdk/ios/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ You can associate your [Adjust event tokens](https://help.adjust.com/en/article/

<TrackEvent />

<Accordion>

### Example

This example demonstrates how to record an event with the token `g3mfiw` whenever a user interacts with a button.

<Tabs>
Expand Down Expand Up @@ -111,8 +107,6 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

</Accordion>

## Record event revenue

You can record revenue associated with an event by setting the revenue and currency properties on your event instance. Use this feature to record revenue-generating actions in your app.
Expand All @@ -133,8 +127,6 @@ Check the guide to [tracking purchases in different currencies](https://help.adj

<SetRevenue />

<Accordion>

### Example

This example demonstrates how to record an event with the token `g3mfiw` whenever a user interacts with a button. The function sets the `revenue` property of this event to _`0.25`_ and the `currency` property to _`EUR`_.
Expand Down Expand Up @@ -220,8 +212,6 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

</Accordion>

## Unique events

You can pass an optional identifier to avoid recording duplicate events. The SDK stores the last ten identifiers and skips revenue events with duplicate transaction IDs.
Expand All @@ -230,8 +220,6 @@ To set the identifier, call the <Tooltip>`setTransactionId` method || <SetTransa

<SetTransactionId />

<Accordion>

### Example

This example demonstrates how to record an event with the token `g3mfiw` whenever a user interacts with a button. The function sets the `uniqueId` to `5e85484b-1ebc-4141-aab7-25b869e54c49` using the <Tooltip>`setTransactionId` method || <SetTransactionIdSig /></Tooltip>.
Expand Down Expand Up @@ -321,8 +309,6 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

</Accordion>

## Add callback parameters

If you [register a callback URL](https://help.adjust.com/en/article/set-up-callbacks) in the Adjust dashboard, the SDK sends a GET request to your callback URL when it records an event.
Expand Down Expand Up @@ -355,8 +341,6 @@ You can read more about using URL callbacks, including a full list of available

</Callout>

<Accordion>

### Example

This example demonstrates how to record an event with the token `g3mfiw` whenever a user interacts with a button. The following callback parameters are added:
Expand Down Expand Up @@ -457,8 +441,6 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

</Accordion>

## Add partner parameters

You can send extra information to your network partners by adding [partner parameters](https://help.adjust.com/en/article/advanced-event-setup#receive-custom-data-with-partner-parameters).
Expand All @@ -475,8 +457,6 @@ Add partner parameters to your event by calling the <Tooltip>`addPartnerParamete

<AddPartnerParameter />

<Accordion>

### Example

This example demonstrates how to record an event with the token `g3mfiw` whenever a user interacts with a button. The following partner parameters are added:
Expand Down Expand Up @@ -570,8 +550,6 @@ class ViewControllerSwift: UIViewController {
</Tab>
</Tabs>

</Accordion>

## Add a callback identifier

You can add a custom string identifier to each event you want to measure. Adjust's servers can report on this identifier in event callbacks. This enables you to keep track of which events have been successfully measured.
Expand All @@ -580,8 +558,6 @@ Set up this identifier by calling the <Tooltip>`setCallbackId` method || <SetCal

<SetCallbackId />

<Accordion>

### Example

This example demonstrates how to record an event with the token `g3mfiw` whenever a user interacts with a button. In this example, the `callbackId` is set to `f2e728d8-271b-49ab-80ea-27830a215147`.
Expand Down Expand Up @@ -668,5 +644,3 @@ class ViewControllerSwift: UIViewController {

</Tab>
</Tabs>

</Accordion>
85 changes: 77 additions & 8 deletions src/content/docs/en/sdk/ios/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To add the SDK using Swift's package manager:
### Alternative installation methods

<Tabs>
<Tab>
<Tab sync="cocoapods">

### Cocoapods

Expand All @@ -41,7 +41,7 @@ pod 'Adjust/WebBridge', '~> v4.35.0'
```

</Tab>
<Tab>
<Tab sync="carthage">

### Carthage

Expand All @@ -52,7 +52,7 @@ github "adjust/ios_sdk"
```

</Tab>
<Tab>
<Tab sync="framework">

### Add as framework

Expand All @@ -78,7 +78,8 @@ Choose the frameworks you need and add them to your `Xcode` project:

Once you've added the Adjust SDK to your `Xcode` project, you need to integrate it in your app.

<Accordion>
<Tabs>
<Tab sync="cocoapods">

### Cocoapods

Expand Down Expand Up @@ -121,11 +122,78 @@ If you use the Adjust Web Bridge, add the following to your `AppDelegate.h` file
</Tab>
</Tabs>

</Accordion>
</Tab>
<Tab sync="carthage">

### Carthage

Add the relevant import statements in your project files:

<Tabs>
<Tab sync="swift">

### Swift

To import the Adjust SDK, add the following to your bridging header file:

```objc
#import <Adjust/Adjust.h>
```

If you use the Adjust Web Bridge, add the following to your bridging header file:

```objc
#import <AdjustSdkWebBridge/AdjustBridge.h>
```

If you use the Adjust SDK in a tvOS app, add the following to your bridging header file:

```objc
#import <AdjustSdkTv/Adjust.h>
```

If you use the Adjust SDK in a iMessage app, add the following to your bridging header file:

```objc
#import <AdjustSdkIm/Adjust.h>
```

</Tab>
<Tab sync="objc">

### Objective-C

To import the Adjust SDK, add the following to your `AppDelegate.h` file:

```objc
#import <AdjustSdk/Adjust.h>
```

If you use the Adjust Web Bridge, add the following to your `AppDelegate.h` file:

<Accordion>
```objc
#import <AdjustSdkWebBridge/AdjustBridge.h>
```

### Carthage and framework import
If you use the Adjust SDK in your tvOS app, add the following to your `AppDelegate.h` file:

```objc
#import <AdjustSdkTv/Adjust.h>
```

If you use the Adjust SDK in your iMessage app, add the following to your `AppDelegate.h` file:

```objc
#import <AdjustSdkIm/Adjust.h>
```

</Tab>
</Tabs>

</Tab>
<Tab sync="framework">

### Framework import

Add the relevant import statements in your project files:

Expand Down Expand Up @@ -190,7 +258,8 @@ If you use the Adjust SDK in your iMessage app, add the following to your `AppDe
</Tab>
</Tabs>

</Accordion>
</Tab>
</Tabs>

## 3. Add iOS frameworks

Expand Down
8 changes: 0 additions & 8 deletions src/content/docs/en/sdk/unity/configuration/att.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ The Adjust SDK also records the consent status if you use a custom prompt. If yo

<RequestTrackingAuthorization />

<Accordion>

### Example

This example demonstrates how to log a human-readable description of the user's authorization status when they interact with a prompt.
Expand All @@ -74,16 +72,12 @@ Adjust.requestTrackingAuthorizationWithCompletionHandler((status) =>
});
```

</Accordion>

## Get current authorization status

You can retrieve a user's current authorization status at any time. Call the <Tooltip>`appTrackingAuthorizationStatus` method || <AppTrackingAuthorizationStatusSig /></Tooltip> to return the authorization status code as an **integer**.

<AppTrackingAuthorizationStatus />

<Accordion>

### Example

This example demonstrates how to collect the user's authorization status and convert it to a `String`. This information is assigned to a variable called `authorizationStatus` and passed as a session partner parameter with the key `"status"`.
Expand All @@ -93,8 +87,6 @@ string authorizationStatus = Convert.ToString(Adjust.getAppTrackingAuthorization
Adjust.addSessionPartnerParameter("status", authorizationStatus);
```

</Accordion>

## Check for authorization status changes

If you use a custom ATT prompt, you need to inform the Adjust SDK of changes to the user's authorization status. Call the <Tooltip>`checkForNewAttStatus` method || <CheckForNewAttStatusSig /></Tooltip> to send the authorization status to Adjust's servers.
Expand Down
Loading

0 comments on commit 5ecff7a

Please sign in to comment.