ads

猿辅导面试-算法类

落花浮王杯 提交于 2019-11-27 05:46:34
一个小时,两道算法题 第一题:列表加和 给定一个int类型的列表(如[1, 9, 8, 8])和一个加和元素(如34),计算列表元素所组成的数字(1988)与加和元素相加后的结果(1988+34=2022,此处仅作为讲解示例,实际操作中不允许这样执行),并以列表的形式输出([2, 0, 2, 2])。 要求: 必须是在列表状态下进行操作,不能将列表中的元素重组为一个整数(如1988)与加和元素进行计算。 示例: [1, 9, 8, 8] + 34 -> [2, 0, 2, 2] [2, 7, 3, 9] + 25798 -> [2, 8, 5, 3, 7] 解题思路: 将加和元素拆分成列表,然后从后往前,按照加法计算公式,与列表中的元素对应相加,若大于等于10则进1,并将大于10的部分存储在结果列表中。 最后,将结果列表逆序输出即可。代码如下 def calc(ans, ads): ads = list(map(int, str(ads))) rst = [] nums_ans = len(ans) nums_ads = len(ads) r = 0 index_ans = nums_ans - 1 index_ads = nums_ads - 1 while index_ads >= 0 and index_ans >= 0: temp = ans[index_ans] +

Using the new Android Advertiser id inside an SDK

∥☆過路亽.° 提交于 2019-11-27 05:17:40
问题 It makes a lot of sense that Android ad SDKs will use Android's the new advertiser id. It seems that you can only get the id by using the google services sdk, as mentioned here: http://developer.android.com/google/play-services/id.html. Using the google play services sdk, requires referencing the google-play-services_lib project, which causes several problems: A lot of SDKs are jars, meaning they can't use google-play-services_lib as is (because they can't include resources). If I only want

Tracking iOS installs from multiple marketing sources

ε祈祈猫儿з 提交于 2019-11-26 19:59:13
问题 Use Case: I plan on marketing iOS apps that I own & operate. I plan on marketing these apps on FaceBook and Google. I want to understand my funnel conversion by source. Meaning what is the install rate on FaceBook v. Google from start to finish. Outside of the app economy I would simply pass a parameter in the URL to indicate source and the web application would suck it in. If I want to use an iTunes redirect URL how would I tracking which installs came from which source? 回答1: If it's a paid

What is fbclid? the new facebook parameter [closed]

妖精的绣舞 提交于 2019-11-26 15:25:14
问题 For two days, I have noticed that the URL that I publish on Facebook, there is a parameter is added: ?fbclid=uFCrBkUgEvKg... To be more precise something like: http://example.com?fbclid=uFCrBkUgEvKg... Does anyone know what this parameter does? What is it for and what is the use of the developers? Thanks for your comments. 回答1: I know that gclid , is short for ( G oogle Cl ick Id entifier) It's a unique tracking parameter that Google uses to transfer information between your Google Ads

Google DFP - Resize SafeFrame custom creative outer Iframe container from inside (expand ad)

ⅰ亾dé卋堺 提交于 2019-11-26 14:32:40
问题 i'm searching for solution, that can expand SafeFrame custom ad from inside of custom creative in Google DFP, is that possible somehow? 回答1: There are 2 possible solutions: 1) using SafeFrame API pros: u can use it "out of the box" you can use it on any website, no custom code on website is needed it's safe to use cons: it's limited to fill just visible area of website need to wait, until ad unit is visible to the user 2) code your own API with window.postMessage() javascript method cons: you

Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: Why?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 14:19:00
问题 I update my Android Studio (3.2.1) and its sdk to the latest version. After that it required a manual update for Manifest by adding these tags: <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:roundIcon="@drawable/ic_launcher" android:supportsRtl="true" android:theme="@style/AppTheme" tools:ignore="AllowBackup,GoogleAppIndexingWarning"> <meta-data android:name="com.google.android.gms.ads.APP_ID" android:value="ca-app-pub-###

Creating and managing a Facebook app from a Business Account [closed]

爷,独闯天下 提交于 2019-11-26 00:38:07
问题 Can I create or manage a Facebook app via a \'business\' account? When I try to access https://developers.facebook.com/apps when logged in as a business account it redirects me back to my homepage and won\'t let me create an app. Context: A business / advertising account (sometimes called a \'gray account\') is a special, now-deprecated type of account Facebook provided to advertisers to manage their Ads and Pages before Business Manager launched - the primary reason people want to use a

Detect Click into Iframe using JavaScript

我的未来我决定 提交于 2019-11-25 23:59:28
问题 I understand that it is not possible to tell what the user is doing inside an iframe if it is cross domain. What I would like to do is track if the user clicked at all in the iframe . I imagine a scenario where there is an invisible div on top of the iframe and the the div will just then pass the click event to the iframe . Is something like this possible? If it is, then how would I go about it? The iframes are ads, so I have no control over the tags that are used. 回答1: Is something like this