I am writing a script to choose the best performing ad and deleting the rest.I want to pull ads based on size
Is there a way to pull the size of the image ad through adwords scripts?
I found the solution from the "AD_PERFORMANCE_REPORT" if you pull the field "Headline" you get the Ad name and size.
Related
I have a Google Action that I can share the location with and ask for some information. In order to upload an image it has to link to a web app and then upload the image there. Then that image can be seen back in Google Assistant if I then open it up again, call up the Google Action and ask for it. Is there any way of upload an image in the Google Assistant to a database? (firebase)
Not directly, no. There is no API (yet) to get access to the camera on devices that have it. Your workaround is currently the most direct method we have.
The adwords UI has a nice "Ad showing now?" dialog that says if an ad is showing or not, and in the case the ad isn't showing has a little message explaining why.
Is there a way to programmatically access this information directly on the ad?
as far as I know, there is no direct way, how to see exactly the same information as in web interface.
However, through API, you can download:
Keywords Approval Status
(https://developers.google.com/adwords/scripts/docs/examples/keywords)
and Ad status - CreativeApprovalStatus
(https://developers.google.com/adwords/api/docs/appendix/reports/ad-performance-report)
and maybe for ex. no. of impressions to each, and since you can download this up to 1000x a day (I would recommend less), you shall have less precise, but similar information as well.
API usage & limitations: https://developers.google.com/adwords/api/docs/ratesheet
I am using twitter photo card(its's approved) for my application. When I am trying to post large size(for ex: 540X810 in px ) it displays 'View photo' link on Twitter without displaying image. How do I solve this?
In Twitter if we post the same image directly it shows at least half the image then displays 'View photo' link below.
Vamshichalla, you've identified a significant issue with implementing the Photo Card on twitter; the Photo Card will not show your image in an expanded view if you are hosting it on your own server. This issue came up in the Twitter forums where employees explained that photos will be hidden in the timeline unless they originate from twitter's servers (typically pbs.twimg.com).
There are two solutions to fix the hidden Photo Card photo in timeline.
Use the Twitter API
One option is using the Twitter API to upload an image. This seems like the route you took as of Sep 29 2014.
Upload Photo Twitter's Compose & Find the src tag
A second option is uploading your images using twitter's standard photo upload tool. That process is described here where you compose a tweet and upload images to your account. The final step is to make note of the source address of these images on the twitter server. You can then use this src in your card so the image will appear expanded in the timeline. Please see the Photo Card docs if there are questions about setting up the card meta-data itself.
Summary
Discovering the need to host your images on Twitter's servers is not well publicized as of the time of this writing. The solution is to upload the image to Twitter's servers. I hope this answer saves other people valuable time.
PS - Organizations that have an advertising relationship with Twitter may not have to follow these steps.
Other Troubleshooting (if your image doesn't show at all)
Please note that there are other issues that could be preventing your image from showing at all which are covered in Twitter's troubleshooting guide. These mainly involve if your hosted address has not yet requested approval. Use the Validator Tool on your card for that -- after preview if it fails the authentication requirement it gives you an option to request approval. The other common issue would be if you have a robots.txt (a file that is used to tell web crawlers where to look for meta-data) that is telling the Twitter crawler to stay away from your images.
These days I am thinking about an idea I had for a new iOS app. This app should be able to login in to an account on existing website and then "download" all the possible data available from the user profile page and transform it in an NSString and then in to a UILabel to display it on the device screen. The data I want to download are only text and not images or other elements. Let's say this app should be able to StackOverflow, go to my personal profile page and take, for example, my current reputation points number and set it to a NSString. Is that possible? If yes, could that be possible even without any (public or private) API available for that very website?
Thank you for your help.
Yes you can.
Without ani API you can use a NSURLSession (Reference) to authenticate and download your pages.
Then you have to parse the data using some NSRegularExpression to extract the bits you need.
I am trying to upload image to Salesforce just like updating Leads or Accounts through my Phonegap iOS app. I can get the image but by googling a bit, I got to know that i have to convert the image into a BLOB.
My query is about two things:
1. How to convert the image into a blob?
2. How to upload that blob to Salesforce?
Thanks in advance
A blob is just a Binary Large OBject, i.e. a lump of binary data. You just want to read the file into memory and use it's content directly. There may be a need to base64 encode it, but I wouldn't have thought so.
There's a Phonegap plugin for downloading binary data on iOS here, you can see how it uses the standard Apple SDK calls for file access, so opening them shouldn't be a problem for you.
The blog would be a field on an object, much like fields on your Accounts and Contacts, I'm not sure how you specify the size, but putting the binary data into the field shouldn't be a problem.
There's an example of using the REST API to upload binary data (to a document) here — I imagine your solution would be similar to this. What Salesforce API are you using for your app? Are you using their Mobile SDK?
You can attach images to Salesforce record on iPhone using Salesforce Mobile app. This requires a little customization - VF page and apex class. Once you have created the VF page for attachment, then you need add this VF page as 'Visualforce Tab' and enable it on Salesforce Mobile Configuration. Steps to add the newly created Visualforce Tab onto Salesforce Mobile Configuration : Setup->Mobile Administration->Salesforce Mobile->Configuration->'Select your Configuration'->Mobile Tab.
Now using this tab on Salesforce app, you can upload images as attachment.