-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filling more logic to create a custom audience
Summary: ## Context GPS Protected Audience API is an on-device technology for ads retargeting purpose. It allows ad tech to join users into custom audience groups based on their app events, and shows more personalized ads to users based on the groups. We will utilize the API on our client-side ranking product. ## This diff * Created the CA name based on the app event name and app id. * Set more fields to make sure that the ca joining request can be run through. Reviewed By: youerkang Differential Revision: D67260269 fbshipit-source-id: cc6cbbe2fc21a80c1aeba005f8e4319c64109b52
- Loading branch information
1 parent
0fb74d3
commit d3691c0
Showing
7 changed files
with
161 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
facebook-core/src/main/java/android/adservices/common/AdSelectionSignals.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package android.adservices.common; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
public class AdSelectionSignals { | ||
public static AdSelectionSignals fromString(@NonNull String source) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
facebook-core/src/main/java/android/adservices/customaudience/TrustedBiddingData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package android.adservices.customaudience; | ||
|
||
import android.net.Uri; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import java.util.List; | ||
|
||
public class TrustedBiddingData { | ||
public static class Builder { | ||
public Builder setTrustedBiddingUri(@NonNull Uri trustedBiddingUri) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public Builder setTrustedBiddingKeys(@NonNull List<String> trustedBiddingKeys) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public TrustedBiddingData build() { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters