Re: AddAdGroups.php gives error
Hi, I try to catch the Exception like this: try { $result = $adGroupService->mutate($operations); } catch (Exception $e) { printf("An error has occurred: %s\n", $e->getMessage()); } But no exception is catched... I can output anything before the line $result = $adGroupService->mutate($operations); But I have to comment this line out to get the output. When I output $operations just before the mutate I get: Array ( [0] => AdGroupOperation Object ( [operand] => AdGroup Object ( [id] => [campaignId] => 673033 [campaignName] => [name] => Earth to Mars Cruise #4fdb074a0055c [status] => ENABLED [bids] => ManualCPCAdGroupBids Object ( [keywordMaxCpc] => Bid Object ( [amount] => Money Object ( [microAmount] => 100 [ComparableValueType] => [_parameterMap:private] => Array ( [ComparableValue.Type] => ComparableValueType ) ) ) [keywordContentMaxCpc] => Bid Object ( [amount] => Money Object ( [microAmount] => 75 [ComparableValueType] => [_parameterMap:private] => Array ( [ComparableValue.Type] => ComparableValueType ) ) ) [siteMaxCpc] => [enhancedCpcEnabled] => [interactionBids] => [AdGroupBidsType] => [_parameterMap:private] => Array ( [AdGroupBids.Type] => AdGroupBidsType ) ) [experimentData] => [stats] => ) [operator] => ADD [OperationType] => [_parameterMap:private] => Array ( [Operation.Type] => OperationType ) ) [1] => AdGroupOperation Object ( [operand] => AdGroup Object ( [id] => [campaignId] => 673033 [campaignName] => [name] => Earth to Mars Cruise #4fdb074a0059c [status] => ENABLED [bids] => ManualCPCAdGroupBids Object ( [keywordMaxCpc] => Bid Object ( [amount] => Money Object ( [microAmount] => 100 [ComparableValueType] => [_parameterMap:private] => Array ( [ComparableValue.Type] => ComparableValueType ) ) ) [keywordContentMaxCpc] => Bid Object ( [amount] => Money Object ( [microAmount] => 75 [ComparableValueType] => [_parameterMap:private] => Array ( [ComparableValue.Type] => ComparableValueType ) ) ) [siteMaxCpc] => [enhancedCpcEnabled] => [interactionBids] => [AdGroupBidsType] => [_parameterMap:private] => Array ( [AdGroupBids.Type] => AdGroupBidsType ) ) [experimentData] => [stats] => ) [operator] => ADD [OperationType] => [_parameterMap:private] => Array ( [Operation.Type] => OperationType ) ) ) I just used the AddAdGroups.php from the client library and filled in the campaign id. So I can't do much wrong there, I think. AddCampaign.php and GetCampaigns.php are working fine. Thank you for your help. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Tracking site-link performance.
Does the Destination URL Report allow us to track individual site-link performance? The fields I want to use to track this are: EffectiveDestinationUrl ClickType CampaignId By knowing a click is attributed to a site-link, and knowing the destination urls assigned to the site-links configured in a given campaign, can I know that particular site-links are performing better than others? This question depends on the EffectiveDestinationUrl actually being the page the user was brought to as a result of the click. Is this actually how the data is collected? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: v201109_1 CALL_METRICS_CALL_DETAILS_REPORT error
Hi Anash! Where should I set this ProxyURL? And what URl is that? Thanks On Thursday, June 14, 2012 2:02:17 AM UTC-3, Anash P. Oommen wrote: > > Hi Sean, > > Could you email me an http dump to anash.p.oom...@google.com? To do this, > download and start Fiddler in HTTPS capture mode. Then set ProxyUrl setting > to the Fiddler url and then run your code. > > Thanks, > Anash P. Oommen, > AdWords API Advisor. > > On Tuesday, 12 June 2012 23:56:54 UTC+5:30, Sean wrote: >> >> Dim ReportFields as string = >> "AdGroupId,AdGroupName,CallDuration,CallEndTime,CallerNationalDesignatedCode,CallStartTime,CallStatus,CampaignId,CampaignName" >> >> Dim headers As New Dictionary(Of String, String)() >> >> headers.Add("email", Email) >> headers.Add("password", Password) >> headers.Add("useragent", engineAccountName) >> headers.Add("developerToken", devToken) >> headers.Add("applicationToken", authToken) >> headers.Add("ClientCustomerId", acct_id) >> >> Dim user As New AdWordsUser(headers) >> >> Dim fields() As String = ReportFields.Split(",") >> Dim s As Integer = 0 >> >> Dim selector As New Selector() >> >> Dim rd As ReportDefinition = New ReportDefinition() >> rd.reportName = ReportName & " " & Date.Today() >> rd.dateRangeType = ReportDefinitionDateRangeType.YESTERDAY >> >> selector.fields = fields >> >> >> rd.reportType = >> ReportDefinitionReportType.CALL_METRICS_CALL_DETAILS_REPORT >> rd.downloadFormat = DownloadFormat.CSV >> rd.selector = selector >> >> >> Dim ed As Date = DateAdd(DateInterval.Day, -1, Date.Today()) >> Dim reportMo As String = ed.Month >> Dim ReportDy As String = ed.Day >> If Len(reportMo) = 1 Then >> reportMo = "0" & reportMo >> End If >> If Len(ReportDy) = 1 Then >> ReportDy = "0" & ReportDy >> End If >> Dim endDate As String = Year(ed) & "-" & reportMo & "-" & ReportDy >> >> Dim reportId As String = "" >> >> ' Add report definition. >> Dim process_time As DateTime = DateTime.Now() >> Dim conv1 As String = "N" >> >> rd.includeZeroImpressions = False >> >> fileName = engine & "-"c & 15 & "-"c & site_id & "-"c & >> Replace(acct_id, "-"c, "_") & "-"c & "1" & "-"c & endDate.ToString >> & conv1 & ".csv" >> >> >> >> Try >> Dim utilities As New ReportUtilities(user) >> utilities.DownloadClientReport(Of ReportDefinition)(rd, >> ReportDir & fileName) >> >> >> Catch ex As Google.Api.Ads.AdWords.Lib.AdWordsApiException >> If Not ex.Message.ToString.Contains("Email cannot be null") >> Then >> AddAPIError(site_id, Processor_id, ex.Message.ToString, >> acct_id) >> End If >> Catch ex As Google.Api.Ads.AdWords.Lib.AdWordsException >> If Not ex.Message.ToString.Contains("Email cannot be null") >> Then >> 'AddAPIError(site_id, Processor_id, ex.Message.ToString + >> "-" + ex.InnerException.Message.ToString, acct_id) >> End If >> Catch ex As Exception >> If Not ex.Message.ToString.Contains("Email cannot be null") >> Then >> AddAPIError(site_id, Processor_id, ex.Message.ToString, >> acct_id) >> 'MailError(site_id, queryid & "-" & ex.Message.ToString, >> ex.InnerException.ToString, "Error: " & ex.Message, Date.Now()) >> End If >> End Try >> >> On Wednesday, June 6, 2012 11:39:51 AM UTC-4, Sean wrote: >> >>> Hi, I'm using the .NET libraries. v14.5 dll. I get this error when >>> trying to call the new report. The code works on all other report types. >>> The fields included are: >>> >>> AdGroupId,AdGroupName,CallDuration,CallEndTime,CallerNationalDesignatedCode,CallStartTime,CallStatus,CampaignId,CampaignName >>> >>> !!!2|||-1|||cvc-complex-type.2.4.a: Invalid content was found starting >>> with element 'selector'. One of '{" >>> https://adwords.google.com/api/adwords/cm/v201109":id, " >>> https://adwords.google.com/api/adwords/cm/v201109":selector}' is >>> expected.??? >>> >> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Birth date api
I am not able to update the Birthdate. (using c# google API ) My code is as follows: Contact profile = m_objContactReq.Retrieve(new Uri("https://www.google.com/m8/feeds/profiles/domain/"; + DomainName + "/full/" + UserName)); profile.ContactEntry.Birthday = "1987-01-07"; Contact updatedContact1 = m_objContactReq.Update(profile); this code gives following error :- "A temporary internal problem has occurred. Try again later." Same code is working for another domain. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Hanging out for the Summer
Hi All, If you'd like to join us during one of our upcoming AdWords API Office Hours, we've posted our schedule for the summer on the calendar. See http://googleadsdeveloper.blogspot.com/2012/06/hanging-out-for-summer.html for details. Please come with your questions, feedback, and requests! Thanks, --Stan, AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: Sandbox not generating 5 new accounts
I had the same challenge as mwunit11: the response I got back from the sandbox was: {"total_num_entries":0,"page_type":"CampaignPage","total_budget":{"period":"DAILY","amount":{"comparable_value_type":"Money","micro_amount":0}}} (parsed it as JSON ... I use Rails so this seemed more natural) so clearly the call is working since I'm getting something back. But it's not what I expected from the Sandbox. Also **why** is the documentation so unfriendly in explaining what to do next? It's written from the perspective of someone who already knows how to work with the API, not from the perspective of someone trying to learn the API. Anyway, my short code (based completely on Examples found online): def example1 adwords = setup_adwords #adwords = AdwordsApi::Api.new campaign_srv = adwords.service(:CampaignService, :v201109_1) # Get 'Id', 'Name' and 'Status' fields of all campaigns. campaigns = campaign_srv.get({:fields => ['Id', 'Name', 'Status']}) respond_with campaigns.to_json end and def setup_adwords adwords = AdwordsApi::Api.new({ :authentication => { :method => 'ClientLogin', :developer_token => 'MY_EMAIL_HERE++USD', :user_agent => 'Ruby Sample', :password => 'MY_PASSWORD_HERE', :email => 'MY_EMAIL_HERE' }, :service => { :environment => 'SANDBOX' } }); end On Wednesday, June 6, 2012 5:42:10 AM UTC-5, Danial Klimkin wrote: > > Hello mwunit11, > > > Please send me the full XML responses for getCampaign and > getAccountHierarchy over email. Also, please attach auth.ini (make sure to > remove password). > > > -Danial, AdWords API Team. > > > On Tuesday, June 5, 2012 6:43:28 PM UTC+4, mwunit11 wrote: >> >> Hi Danial, >> >> I created a new Google account, and followed the same steps: set the >> values in auth.ini, ran the getCampaigns example script, and then the >> getAccountHeirarchy example script with the exact same results. No accounts >> were generated. >> >> How can we debug this further? I have been trying to get a working >> sandbox account for over a week already, to no avail. >> >> Thanks >> >> On Monday, June 4, 2012 3:05:55 PM UTC+3, Danial Klimkin wrote: >>> >>> Hello mwunit11, >>> >>> >>> The very first request to the sandbox needs to be getCampaigns in order >>> for it to initialize properly. >>> >>> In case it was the first one but you still see no accounts created, >>> please try initializing a new sandbox with another Google account. >>> >>> >>> -Danial, AdWords API Team. >>> >>> >>> On Thursday, May 31, 2012 7:33:07 PM UTC+4, mwunit11 wrote: Hello, I downloaded the API library for PHP, edited the settings.ini to read: DEFAULT_SERVER = "https://adwords-sandbox.google.com"; and edited the auth.ini to read: email = "**@gmail.com" password = "*" userAgent = "MWWP" developerToken = "@gmail.com++USD" I ran /examples/v201109_1/BasicOperations/GetCampaigns.php which produced: "No campaigns were found." I then ran /examples/v201109_1/AccountManagement/GetAccountHierarchy.php which produced: (Customer Id, Account Name/Login, Link Status) 0, @gmail.com, N/A Am I doing something wrong? How come 5 test accounts are not being generated? Do I need to be using an MCC google account? thanks! >>> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: I have no clue how to start downloading reports
Danial, I completely understand you're trying to be helpful. But the biggest obstacle to getting started with the API **is** the code examples shipped with every library! You're trying to do the best you can and answering a lot of emails --- but it's the lack of proper dox that is causing the the problem. No one is doubting that the examples exist, simply that they aren't terribly useful, at least during the "getting started" phase. That isn't meant as a criticism, it's meant as a plea to "get someone to write the documentation who knows how to write" On Thursday, June 7, 2012 6:41:31 AM UTC-5, Danial Klimkin wrote: > > Hello enkil2003, > > > We have code examples shipped with every client library. Please refer to > this one for PHP: > > > http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201109_1/Reporting/DownloadCriteriaReport.php > > The ReportDefinitionService is deprecated and no longer used. > > > -Danial, AdWords API Team. > > > On Tuesday, June 5, 2012 12:51:56 AM UTC+4, enkil2003 wrote: >> >> Well this is very frustrating, I cant find any good documentation that >> shows working examples about how to download reports neither a good >> documentation. There are tons and tons of webpages blogs and so on, but >> none of the are clarifying to me. >> >> This is my code, (not working) What i want is to download >> the DESTINATION_URL_REPORT, so I do this >> >> $user = new AdWordsUser(); >> >> // >> >> $selector = new Selector(); >> >> $selector->fields = array( >> >> 'Date', >> >> 'CampaignId', >> >> 'Id', >> >> 'HourOfDay', >> >> 'Impressions', >> >> 'Clicks', >> >> 'Cost' >> >> ); >> >> $reportDefinitionService = $user->GetService('ReportDefinitionService'); >> >> $reportDefinition = new ReportDefinition(); >> >> $reportDefinition->reportName = 'El nombre del reporte'; >> >> $reportDefinition->reportType = 'DESTINATION_URL_REPORT'; >> >> $reportDefinition->dateRangeType = 'LAST_7_DAYS'; >> >> $reportDefinition->downloadFormat = 'CSV'; >> >> $reportDefinition->selector = $selector; >> >> >> $page = $reportDefinitionService->get($reportDefinition); >> >> print_r($page); >> >> >> of course this doesnt work, because >> the $reportDefinitionService->get($reportDefinition); does not expect this >> kind of parameter, but i hope you can get the idea behind. >> >> >> Thanks in advance! >> > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en