How to avoid collection_size_error: TOO_MANY error while makin google ads api call to upload user data - google-ads-api

I want to upload user details(hashed email, mobiles) to audiences that I have created in google ads.
But I am getting collection_size_error: TOO_MANY when the userList size is greater than or equal to 10. How to fix this?

Related

Can't get Image URL from Google Ads API for HTML5 Ads

I'm trying to get access to Display Ad images via the Google Ads API. At the moment, my code doesn't seem to be working for certain ads. As near as I can tell from my debugging efforts so far, the issue is that it's not working for HTML5 ads.
Here is the query I'm using :
SELECT
ad_group.name,
campaign.name,
ad_group_ad.ad.responsive_display_ad.logo_images,
ad_group_ad.ad.responsive_display_ad.marketing_images,
ad_group_ad.ad.image_ad.preview_image_url,
ad_group_ad.ad.image_ad.image_url
FROM
ad_group_ad
WHERE
campaign.advertising_channel_type = \'DISPLAY\'
LIMIT
100
For accounts using HTML5 ads, there is nothing returned for any of the last (4) fields. For other accounts, I'm using the "ad_group_ad.ad.image_ad.image_url" field to get the ad image.
What am I missing?
ad_group_ad.ad has a pseudo-attribute ad_data which is a Union field that will have one specific, effective name depending on what type of ad is represented. See the documentation of the Ad resource.
Specifically, this means that all fields below ad_group_ad.ad.image_ad such as image_url will only be populated for an ad of type IMAGE_AD. Similarly, ad.responsive_display_ad.* will only contain data for ads with type RESPONSIVE_DISPLAY_AD.
For an HTML5 ad, you can access the available fields using the selector ad_group_ad.ad.display_upload_ad. You won't be able to obtain an image of the ad, however.

iOS: How to track firebase dynamic link

i have added UTM parameter using FIRDynamicLinkGoogleAnalyticsParameters
FIRDynamicLinkGoogleAnalyticsParameters *analyticsParams =
[FIRDynamicLinkGoogleAnalyticsParameters parametersWithSource:Source
medium:Medium
campaign:Campaign];
analyticsParams.term = Term;
analyticsParams.content = Content;
components.analyticsParameters = analyticsParams;
Now i want to track the dynamic link like this,
if i have shared on Facebook, any one tap on that link then it will go to application if there else it will go to App Store.
After i need to show message based upon it’s source i.e welcome from Facebook like message.
So can we track dynamic link and check from where the link has been tapped and show relevant message based upon i’t source.
Can anyone explain how to implement this:
https://firebase.google.com/docs/dynamic-links/analytics
By adding these tracking parameters to your Dynamic Links, Google
Analytics and iTunes Connect can treat them like any other campaign
it's measuring attribution reporting for, and you can view conversion
events not just by the ad campaigns responsible for bringing in those
users, but also by which Dynamic Links might have brought them in.
The following parameters are passed to Google Analytics: utm_source,
utm_medium, utm_campaign, utm_term, utm_content, gclid
The following parameters are passed to the App Store: at, ct, mt, pt
The same question was asked in this thread:
App link tracking with Firebase
Also I had posted this question on Firebase GitHub and got the reply:
https://github.com/firebase/firebase-ios-sdk/issues/4775
You can't track where the link was tapped from unless you create a
custom link (or add custom parameters) for each source, but even then
this will result in mismatches if a user ever copies a link and shares
it to a different source.

How to fetch only WhatsApp Contacts from iPhone Contacts?

How can I fetch only WhatsApp contacts from iPhone contact list using swift.
I fetched contacts information from my phone got following response:
whats app contact
<CNContact: 0x13bd92310: identifier=04B80557-011F-4437-B132-43E2B0D70CD9, givenName=Tech, familyName=.vijaykart, organizationName=, phoneNumbers=("<CNLabeledValue: 0x170661e80: identifier=579A8A18-F113-4C6E-878A-68D18BFE4A8B, label=_$!<Mobile>!$_, value=<CNPhoneNumber: 0x17023f420: countryCode=in, digits=+919791291980>>"), emailAddresses=(not fetched), postalAddresses=(not fetched)>
Non WhatsApp contact
<CNContact: 0x13bd808d0: identifier=E09E916A-7829-4288-8731-A3789FA75F18, givenName=Kcm, familyName=Milk, organizationName=, phoneNumbers=("<CNLabeledValue: 0x174264bc0: identifier=CCF42FEB-2062-4425-81B9-1BF9EABE771C, label=_$!<Mobile>!$_, value=<CNPhoneNumber: 0x17422ddc0: countryCode=in, digits=+919443551702>>"),emailAddresses=(not fetched), postalAddresses=(not fetched)>
But not able to detect if it's WhatsApp contact or not.
Yes according to #Bittoo who have commented above is rit, It is not possible to get only WhatsApp contact, IOS Not allowed you to get others data within the app without the apps permission, if suppose WhatsApp provides their sdk like FB or instagram then it may allowed you through their sdk, if user phone has whatsapp installed, then through their sdk, they may allow you to get their contacts.

Appboy SDK iOS, the unreadCardCountForCategories delegate doesn't gives count for an updated card

I have integrated the Appboy News feed in my iOS application. I fetch the badge count for the unread number of cards through the unreadCardCountForCategories delegate provided by the SDK. But the count returned by the delegate doesn't refresh if I update an already existing (read/unread) card from the Appboy dashboard. Here is the code I use:
[[Appboy sharedInstance] requestFeedRefresh];
[[AppBoyHandler appboySharedInstance].feedController unreadCardCountForCategories:ABKCardCategoryAll]];
Any help is appreciated !!
Appboy marks unread feed cards as read when a user views the card in the application's News Feed. If you aren't interacting with the News Feed and viewing previously unread cards in between calls to requestFeedRefresh, the count returned from unreadCardCountForCategories is expected to return the same value.
Please let us know if the above isn't the case, and you're seeing unreadCardCountForCategories returning the same value, even after viewing previously unread cards on the News Feed.

Parse SDK iOS Analytics

I am working with Parse SDK in my iOS Application. I have integrated Parse Facebook SDK with my Application. I just want to do an analytics based on Users not overall count like we can give read count or something. (e.g) I want to do know the current user's access count of modules which I am having in my application and overall How many users have visited the particular module in certian period of time.Please help me out on this.Thanks in advance
What you are looking for is the [PFAnalytics trackEvent: dimensions:] call. This allows you to track an event with a particular name as an NSString and provide dimensions as an NSDictionary.
Here's an example of what you could put in the loading code for each module:
NSDictionary *dimensions = #{
// Define the user via whatever unique ID you use
#"user": userId,
// Define the name of the module that is being loaded
#"module": #"moduleName",
};
// Send the dimensions to Parse along with the 'search' event
[PFAnalytics trackEvent:#"moduleLoad" dimensions:dimensions];
To get a total number of events, you will need to use the Parse.com dashboard. You may also need to download the events log and sum it via Excel.
Also, if you are looking for analytics tracking that is more robust at the user-level, I recommend http://www.mixpanel.com

Resources