Re: Ruby: CAMPAIGN PERFORMANCE REPORT differ and returned incorrect metrics in report

2017-03-01 Thread SOHAIR AHMAD
YES true. Thanks alot for your help. I appriciate this. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You

Re: Ruby: CAMPAIGN PERFORMANCE REPORT differ and returned incorrect metrics in report

2017-02-28 Thread SOHAIR AHMAD
True, Adding Date return many duplicate records and i am applying unique by if on that duplicate record. Can you please confirm what field should i get instead of DATE if i really needed the DATE ? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: h

Ruby On Rails: AdsCommon::Errors::AuthError - OAuth2 token refresh failed:

2017-02-24 Thread SOHAIR AHMAD
Hi, I just regenerated the Refresh token and Access token. My problem is not resolved yet, as I am still getting the same error. I am using Ruby wrapper https://github.com/googleads/google-api-ads-ruby, and I also asked the question here: https://github.com/googleads/google-api-ads-ruby/issue

Re: Report service returning duplicate performance data for creative?

2017-02-23 Thread SOHAIR AHMAD
*Date in CAMPAIGN_PERFORMANCE_REPORT * also have the same issue if I need the Date (Day) then what should I do of these multiple records ? On Wednesday, 2 September 2009 13:49:19 UTC+6, Zweitze wrote: > > Try leaving out columns MaximumCPC and MaxContentCPC. > A short explanation is that these

Re: Get Targeted Locations with geo radius map against campaign ID

2016-12-28 Thread SOHAIR AHMAD
Thanks Joyce, Things worked for me :) If anyone needs help in ruby (ruby on rails) here is an example; require 'adwords_api' > config = YAML.load_file(Rails.root.join('config/adwords_api_test.yml')) > API_VERSION = :v201607 > adwords = AdwordsApi::Api.new(config) > campaign_criterion_srv = adw

Re: Get Targeted Locations with geo radius map against campaign ID

2016-12-28 Thread SOHAIR AHMAD
Hi Joyce, I have tried that sample that worked without campaign ID, i.e, it gives me results of location names When I updated my selector with Campaign ID predicate: selector = { > :fields => ['CampaignId', 'Id', 'LocationName', 'CanonicalName', > 'DisplayType', > 'ParentLocat

Re: How to resolve manager accounts throwing the USER_PERMISSION_DENIED error

2016-12-28 Thread SOHAIR AHMAD
I had the same issue, resolved finally, not sure why this happen and what is the difference between Manager Id and Leaf account id; but I resolved by doing this. Check the customer client ID of your user, Check if this match with your adwords account manager id (the account with which you are

Get Targeted Locations with geo radius map against campaign ID

2016-12-27 Thread SOHAIR AHMAD
I am trying to retrieve the detail of campaign, but I am not able to find any solution of getting Targeted location against campaign id, with targeted location, radius map, and reach. https://developers.google.com/adwords/api/docs/samples/ruby/targeting#get-all-campaign-targeting-criteria does

Issues: google-adwords-api :v201601 to :v201607 migration

2016-11-02 Thread SOHAIR AHMAD
Hi All, I was using google-adwords-api :v201601 of the api, and as we know its depreciated on August 27. There is an error that I faced on :v201601 *AdwordsApi::Errors::ReportError (HTTP code: 400, body: !!!2|||-1|||Invalid version for use with report XML???):* this is happening when I try