-
Notifications
You must be signed in to change notification settings - Fork 124
AdMob AdRequest Neighboring Content URLS #769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdMob AdRequest Neighboring Content URLS #769
Conversation
@@ -193,10 +194,14 @@ void ForEachAppDelegateClass(void (^block)(Class)); | |||
NSMutableArray *StringVectorToNSMutableArray( | |||
const std::vector<std::string> &vector); | |||
|
|||
// Convert a unordered_set of strings into an NSMutableArray. | |||
NSMutableArray *StringUnorderedSetToNSMutableArray( | |||
const std::unordered_set<std::string> &set); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <unordered_set>
is indeed at the top of the file.
void NSArrayOfNSStringToVectorOfString(NSArray* array, | ||
std::vector<std::string>* string_vector); | ||
void NSArrayOfNSStringToVectorOfString( | ||
NSArray *array, std::vector<std::string> *string_vector); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <vector>
is indeed at the top of the file.
@@ -120,6 +120,11 @@ static const char* kAdNetworkExtrasInvalidClassName = "abc123321cba"; | |||
|
|||
static const char* kContentUrl = "http://www.firebase.com"; | |||
|
|||
static const std::vector<std::string> kNeighboringContentURLs = { | |||
"https://firebase.google.com/products-build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these real URLs? should we use fake ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, as long as the underlying SDK doesn't mess up if it expects URLs and gets these instead. :)
@@ -193,10 +194,14 @@ void ForEachAppDelegateClass(void (^block)(Class)); | |||
NSMutableArray *StringVectorToNSMutableArray( | |||
const std::vector<std::string> &vector); | |||
|
|||
// Convert a unordered_set of strings into an NSMutableArray. | |||
NSMutableArray *StringUnorderedSetToNSMutableArray( | |||
const std::unordered_set<std::string> &set); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add #include <unordered_set> for unordered_set<>
void NSArrayOfNSStringToVectorOfString(NSArray *array, | ||
std::vector<std::string> *string_vector); | ||
void NSArrayOfNSStringToVectorOfString( | ||
NSArray *array, std::vector<std::string> *string_vector); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add #include <vector> for vector<>
@@ -24,6 +24,7 @@ | |||
|
|||
#include <map> | |||
#include <string> | |||
#include <unordered_set> | |||
#include <vector> | |||
|
|||
#include "app/src/include/firebase/variant.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can fix the lint error if you move the system #includes above the #ifdef __OBJC__.
❌ Integration test FAILEDRequested by @DellaBitta on commit dc62717
Add flaky tests to go/fpl-cpp-flake-tracker |
Description
Adds the ability to configure Neighboring Content URL strings to the AdRequest object.
Additionally renamed the parameter in the
AdRequest::add_extra
method fromadd_extra(const char* ad_network, …)
toadd_extra(const char* adapter_class_name, … )
to match nomenclature in the iOS and Android SDKs.Testing
Integration Tests CI
Type of Change
Place an
x
the applicable box: