MCC account and generating report for each advertiser account

2014-03-11 Thread MA
I am trying to get all the advertiser accounts under my MCC account and 
generate an ad performance report for each.  I wanted to run the report 
once - but that isn't allowed from the MCC account.  I'm coding in vb.net. 
  I have used some of the example code as my starting point.  I have the 
list of advertiser accounts under the MCC account - and I need to be able 
to change to the new ClientCustomerId.  The ClientCustomerId value 
specified in my app.config file is that of the MCC account.  How to I do 
this?  Right now when I run it - I am getting the 
error CUSTOMER_SERVING_TYPE_REPORT_MISMATCH because it is trying to run the 
report using the customer ID of the MCC account.

Thank you!

Imports System
Imports System.Collections.Generic
Imports System.IO
Imports System.Web
Imports System.Text

Imports Google.Api.Ads.AdWords.Lib
Imports Google.Api.Ads.AdWords.Util.Reports
Imports Google.Api.Ads.AdWords.v201402



Namespace Google.Api.Ads.AdWords.Examples.VB.v201402

Public Class DoubleClick_Adwords_Report_Download_With_AQWL


Public Shared Sub Main(ByVal args As String())
Try
Dim AcctHeirarchy As New 
DoubleClick_Adwords_Report_Download_With_AQWL
'  Get accounts (advertisers) under the MCM account ID that 
was supplied in the app.config file

AcctHeirarchy.GetAccts(New AdWordsUser)

Catch ex As System.Exception
Console.WriteLine("An exception occurred", ex)
Environment.Exit(-1)
End Try
End Sub

Public Sub GetAccts(ByVal user As AdWordsUser)
' Get the ManagedCustomerService.
Dim mcService As ManagedCustomerService = 
user.GetService(AdWordsService.v201402.ManagedCustomerService)
mcService.RequestHeader.clientCustomerId = Nothing

' Create selector.
Dim selector As New Selector()
selector.fields = New String() {"Login", "CustomerId", "Name"}

Try
' Get results.
Dim page As ManagedCustomerPage = mcService.get(selector)

' Display serviced account graph.
If Not page.entries Is Nothing Then
' Create map from customerId to customer node.
Dim customerIdToCustomerNode As Dictionary(Of Long, 
ManagedCustomerTreeNode) = New Dictionary(Of Long, 
ManagedCustomerTreeNode)()

' Create account tree nodes for each customer.
For Each customer As ManagedCustomer In page.entries
Dim node As New ManagedCustomerTreeNode()
node.Account = customer
customerIdToCustomerNode.Add(customer.customerId, 
node)
Next

' For each link, connect nodes in tree.
If (Not page.links Is Nothing) Then
For Each link As ManagedCustomerLink In page.links
Dim managerNode As ManagedCustomerTreeNode = 
customerIdToCustomerNode(link.managerCustomerId)
Dim childNode As ManagedCustomerTreeNode = 
customerIdToCustomerNode(link.clientCustomerId)
childNode.ParentNode = managerNode
If (Not managerNode Is Nothing) Then
managerNode.ChildAccounts.Add(childNode)
End If
Next
End If

' Find the root account node in the tree.
Dim rootNode As ManagedCustomerTreeNode = Nothing
For Each account As ManagedCustomer In page.entries
If 
(customerIdToCustomerNode(account.customerId).ParentNode Is Nothing) Then
rootNode = 
customerIdToCustomerNode(account.customerId)
Exit For
End If
Next

' Display account tree.
' Console.WriteLine("Login, CustomerId, Name")
' Console.WriteLine(rootNode.ToTreeString(0, New 
StringBuilder()))

  *  'Generate Report for Each Account*
*For Each childAccount As ManagedCustomerTreeNode In 
rootNode.ChildAccounts*
*Dim AdWordsReport As New 
DoubleClick_Adwords_Report_Download_With_AQWL*
*Dim fileName As String = "Adwords" & "_" & 
Format(Now(), "MMddHHmmss").ToString() & "_AdwordsDailyReporting_" & 
childAccount.Account.customerId.ToString() & ".csv"*
*AdWordsReport.RunReport(New AdWordsUser, fileName)*
*Next*

Else
Console.WriteLine("No accounts were found.")
End If
Catch ex As Exception
Throw New System.ApplicationException("Failed to get 
accounts.", ex)

Re: MCC account and generating report for each advertiser account

2014-03-11 Thread MA
I think I have it figured out...

   'Generate Report for Each Account
For Each childAccount As ManagedCustomerTreeNode In 
rootNode.ChildAccounts
Dim AdWordsReport As New 
DoubleClick_Adwords_Report_Download_With_AQWL
Dim fileName As String = "Adwords" & "_" & 
Format(Now(), "MMddHHmmss").ToString() & "_AdwordsDailyReporting_" & 
childAccount.Account.customerId.ToString() & ".csv"
'Parse ManagedCustomer.customerID value to 
ClientCustomerId format (eg. 123-456-7890)
Dim AdvertiserID As String = 
childAccount.Account.customerId.ToString().Substring(0, 3) & "-" & 
childAccount.Account.customerId.ToString().Substring(3, 3) & "-" & 
childAccount.Account.customerId.ToString().Substring(6, 4)

Dim objDictionary As New 
System.Collections.Generic.Dictionary(Of String, String)
objDictionary.Add("clientCustomerId", AdvertiserID)
Dim user1 As New AdWordsUser(objDictionary)

AdWordsReport.RunReport(user1, fileName)
Next

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdWordsUser HTTP 500

2015-03-06 Thread MA
Hi,

I have a strange issue whereby if I include the AdWordsUser.php file, I get 
an HTTP 500 error.  Not sure where the problem lies as I've simply copied 
the library (I have added my dev token etc. to the auth.ini file but other 
than that...) and error reporting doesn't seem to return anything.

Any ideas gratefully received!

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f5c5a665-d7c5-4269-937e-93e0c263ecdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Getting AdGroup Cost Over Date Range

2011-02-22 Thread MA
Hi,

Does anybody know how to get the total cost for an adgroup over a
given date range?  Ideally in PHP - I couldn't find anything in the
library but I'm sure there's something out there!...

Thanks,

MA

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: True Final Url with all tracking parameters

2019-07-30 Thread MA
Hi Dannison, just wanted to confirm if my PM actually made it.

On Tuesday, July 30, 2019 at 3:18:48 AM UTC-7, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching out.
>
> If you wish to download report on the final URL level, you could use the 
> Final 
> Url Report 
> .
>  
> You may select the Cost 
> ,
>  
> EffectiveFinalUrl 
> ,
>  
> and EffectiveTrackingUrlTemplate 
> 
>  fields 
> for the metrics you are looking for. However, if you wish to retrieve the 
> final Url suffix (CreativeFinalUrlSuffix 
> ),
>  
> you can only retrieve this using the Ad Performance Report. 
>
> Regarding your concern about your reports not generating data, could you 
> provide the complete report definition and the clientCustomerId used to 
> download the report so I could further investigate this? You may use the 
> *reply 
> privately to author* option.
>
> Let me know if this does not answer your concern.
>
> Regards,
> Dannison
> Google Ads API Team
>
> ref:_00D1U1174p._5001UEH77L:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d2ed1ce3-bde4-4412-989c-33646d730f29%40googlegroups.com.


Getting Cost for Local Services Ads Campaigns ONLY

2022-11-08 Thread ma...@danzrust.cz
Hi guys,
any ideas how to get cost for Local Services Ads campaigns only?

I'm running this query: 
'SELECT '+

  'campaign.id, '+
  'campaign.status, '+
  'campaign_budget.id, '+
  'campaign_budget.period, '+
  'campaign_budget.amount_micros, '+
  'campaign_budget.type, '+
  'metrics.cost_micros' +

'FROM campaign '+
'WHERE campaign.advertising_channel_type = "LOCAL_SERVICES"'

However, when I add *metrics.cost_micros*, the query starts to fail 
immediately wit this error:
Exception: Call to GoogleAdsService.Search failed: Error in query: 
unexpected input campaign. at adsapp_compiled:18880:138 at 
adsapp_compiled:18891:9 at sa (adsapp_compiled:236:15) at Object.search 
(adsapp_compiled:244:20) at aJ.search (adsapp_compiled:19011:36) at 
JI.search (adsapp_compiled:18576:19) at KI.search 
(adsapp_compiled:18671:20) at RI.search (adsapp_compiled:18763:19) at md 
(adsapp_compiled:1077:15) at md.next ()


I took the original query without the cost metric from 
here: 
https://developers.google.com/google-ads/api/docs/campaigns/local-service-campaigns?hl=en

DZ

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/55ec44dd-97d0-4719-8953-a93167a97037n%40googlegroups.com.


Re: PHP Get First Page Cpc Micros

2023-04-04 Thread ma...@sumer.me
This problem still continues with V13

I do not receive errors when I use a code sample like below. But in this 
case, I can't get *all the words*.

*SELECT metrics.clicks, metrics.impressions, 
ad_group_criterion.position_estimates.first_page_cpc_micros FROM 
keyword_view WHERE campaign.id="XX" AND ad_group.id="YY" AND 
ad_group_criterion.position_estimates.first_page_cpc_micros > 0*

I want to take all the words and not to get errors. (Only with 1 query) how 
to do this?

*Error: *Fatal error: Uncaught Error: Call to a member function 
getFirstPageCpcMicros() on null in...

On Thursday, 7 July 2022 at 16:20:48 UTC+3 Google Ads API Forum Advisor 
wrote:

> Hi Shobha,
>
> Thanks for getting back to us.
>
> I can see that your GAQL is valid, however, your PHP code throws the Fatal 
> error:  Uncaught Error: Call to a member function getFirstPageCpcMicros(). 
> This seems to be more related to PHP code implementation.
>
> You may refer to this *PHP client library* 
>  hosted at GitHub, and this* 
> PHP reporting example * 
> on
>  
> how you can get report data on your end. If you’re using a PHP client 
> library and still encountering said Fatal error, then I recommend you to 
> reach out to PHP client library owners by opening a new issue with their 
> team via *issue tracker* 
> , for further 
> assistance. 
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2a2Tfz:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6646e120-766f-4c97-96dd-60caf90130fcn%40googlegroups.com.


Re: PHP Get First Page Cpc Micros

2023-04-05 Thread ma...@sumer.me
I think you misunderstood me. My problem is:

If I don't use this with WHERE 
ad_group_criterion.position_estimates.first_page_cpc_micros > 0, PHP 
returns "null" for some words and gives a Fatal Error and the process is 
interrupted.

ad_group_criterion.position_estimates.first_page_cpc_micros > 0 when I use 
this, I don't get all the words either. In other words, I need to do 2 
actions to get all the words in the ad group in that campaign.

How can I get all the words without getting a Fatal Error?



On Tuesday, 4 April 2023 at 19:54:33 UTC+3 Google Ads API Forum Advisor 
wrote:

> Hello,
>
> Thank you for getting back to us.
>
> I understand that in this case, with your current query, you want to 
> obtain *keyword*. I can see that the in the query “
> *ad_group_criterion.keyword.text*” is not present in the Select clause.
>
> Please try using the sample query and substituting some of the values for 
> the WHERE clause to see if you will get your expected data:
>
>
> SELECT
> metrics.clicks,
> metrics.impressions,*ad_group_criterion.keyword.text,*
>
>
> ad_group_criterion.position_estimates.first_page_cpc_micros
> FROM keyword_view
> WHEREcampaign.id="*XX*" ANDad_group.id="*YY*" AND
> ad_group_criterion.position_estimates.first_page_cpc_micros > 0
>
> Please let me know how it goes.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2a2Tfz:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/de1ea1fc-f393-49f0-9aba-4dd233a2630cn%40googlegroups.com.


Creating Single Product Listing Groups Through Rest API

2023-05-23 Thread ma...@danzrust.cz
Hi guys,
I'm trying to create new single product listing groups via Rest API but I'm 
just stuck - I don't know what mandatory information I need to provide. 

At this point, I am creating a new *ad_group_criterion:*
POST 
https://googleads.googleapis.com/v12/customers/7803661715/adGroupCriteria:mutate

{
"operations": [
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"ad_group": "customers/7803661715/adGroups/149520355436",
"cpc_bid_micros": 1000,
"listing_group": {
"case_value": {
"product_item_id": {
"value": 
"shopify_fr_8211946045734_4473156881642"
}
}
}
}
}
]
}

And I keep get back
{
"type": "error",
"array": "INVALID_ARGUMENT (400) Request contains an invalid argument. 
\n◉ The required field was not present."
}

Basically, my goal is to create the hierarchy shown in the attachment. 

Cam you pls advise?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7cb63db5-da19-4985-85bb-a3e71e22c0c2n%40googlegroups.com.


Re: Creating Single Product Listing Groups Through Rest API

2023-05-23 Thread ma...@danzrust.cz
So I believe I'm getting close after recycling some of the older posts but 
something is still wrong.

Here is my currrent JSON:
{
"operations": [
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/149870319335",
"resourceName": 
"customers/7803661715/adGroups/149870319335~-1",
"listingGroup": {
"type": "SUBDIVISION"
}
}
},
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/149870319335",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {
"value": 
"shopify_fr_8211946045734_4473156881642"
}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/149870319335~-1"
}
}
},
{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/149870319335",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productCondition": {}
}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/149870319335~-1"
}
}
]
}


==> My understanding is that first I need to create a subdivision and then 
create the one product I want to have + all other products, however when I 
ran this JSON,  I've been getting:

{
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name 
\"parentAdGroupCriterion\" at 'operations[2].create': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "operations[2].create",
"description": "Invalid JSON payload received. 
Unknown name \"parentAdGroupCriterion\" at 'operations[2].create': Cannot 
find field."
}
]
}
]
}
}




Any ideas?

DZ
On Tuesday, May 23, 2023 at 8:57:48 PM UTC+2 ma...@danzrust.cz wrote:

> Hi guys,
> I'm trying to create new single product listing groups via Rest API but 
> I'm just stuck - I don't know what mandatory information I need to provide. 
>
> At this point, I am creating a new *ad_group_criterion:*
> POST 
> https://googleads.googleapis.com/v12/customers/7803661715/adGroupCriteria:mutate
>
> {
> "operations": [
> {
> "create": {
> "type": "LISTING_GROUP",
> "status": "ENABLED",
> "ad_group": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149520355436",
> "cpc_bid_micros": 1000,
> "listing_group": {
> "case_value": {
> "product_item_id": {
> "value": 
> "shopify_fr_8211946045734_4473156881642"
> }
> }
> }
> }
> }
> ]
> }
>
> And I keep get back
> {
> "type": "error",
> "array": "INVALID_ARGUMENT (400) Request contains an invalid argument. 
> \n◉ The required field was not present."
> }
>
> Basically, my goal is to create the hierarchy shown in the attachment. 
>
> Cam you pls advise?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2658dcd0-2575-4590-b346-5fe7dffb11ffn%40googlegroups.com.


Re: Creating Single Product Listing Groups Through Rest API

2023-05-24 Thread ma...@danzrust.cz
So I believe, I'm getting very close but now I'm stuck again.

This is my JSON:
{
"operations": [

{
"create": {
"type": "LISTING_GROUP",
"status":"ENABLED",
"adGroup": "customers/7803661715/adGroups/151093305002",

"resourceName":"customers/7803661715/adGroups/151093305002~-1",
"listingGroup": {
"type": "SUBDIVISION"
}
}
},


{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/151093305002",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/151093305002~-1"
}

}
},


{
"create": {
"type": "LISTING_GROUP",
"status": "ENABLED",
"adGroup": "customers/7803661715/adGroups/151093305002",
"cpcBidMicros": "1",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {
"value": 
"shopify_fr_8211946045734_4473156881642"
}
},
"parentAdGroupCriterion": 
"customers/7803661715/adGroups/151093305002~-1"  
}
}
}
]
}
##
##
##

Now I'm getting:
*◉ Resource name 'customers/7803661715/adGroups/151093305002~-1' is 
malformed: expected 
'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}'. *

I've seen multiple posts where people would use the* "~-1" *trick while 
doing multiple operations at once but it was always in a different language 
(Java, Python etc.). 

How can I replicate the "~-1" the trick in the rest API? I see no mentions 
in the REST documentation.

I've also tried running the first operation to create root (the SUBDIVISION 
part in my code) to get the parentAdGroupCriterion for the two remaining 
*create 
*operations but that's not working either. When creating the SUBDIVISION, 
I'm getting error an error saying that "other group must be created" so it 
feels like I really need to do everything in one API call. 

DZ




On Tuesday, May 23, 2023 at 11:16:20 PM UTC+2 ma...@danzrust.cz wrote:

> So I believe I'm getting close after recycling some of the older posts but 
> something is still wrong.
>
> Here is my currrent JSON:
>
> {
> "operations": [
> {
> "create": {
> "type": "LISTING_GROUP",
> "status": "ENABLED",
> "adGroup": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149870319335",
> "resourceName": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149870319335~-1",
> "listingGroup": {
> "type": "SUBDIVISION"
> }
> }
> },
>
> {
> "create": {
> "type": "LISTING_GROUP",
> "status": "ENABLED",
> "adGroup": "customers/7803661715 <(780)%20366-1715>
> /adGroups/149870319335",
> "cpcBidMicros": "1",
> "listingGroup": {
> "type": "UNIT",
> "caseValue": {
> "productItemId": {
> "value": 
> "shopify_fr_8211946045734_4473156881642"
> }
> },
> "parentAdGroupCriterion": "customers/7803661715 
> <(780)%20366-1715>/adGroups/149870319335~-1"

Re: creating single product listing groups through rest api

2023-05-25 Thread ma...@danzrust.cz
Oh, damn, that might be it. I will try in a bit. I knew it was gonna be 
something super simple like this after seeing so many java/python hints.

DZ

On Thursday, May 25, 2023 at 8:47:16 PM UTC+2 Google Ads API Forum Advisor 
wrote:

> Hello,
>
> Welcome to Google Ads API Support team. Thank you for reaching out to us.
>
> With regards to your concern, it appears that the resource name in your 
> request is malformed as it has *adGroups *instead of the expected 
> *adGroupCriteria.*
>
>
>
> * Resource name 'customers/7803661715 
> <(780)%20366-1715>/adGroups/151093305002~-1' is malformed: expected 
> 'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}'. *
>
>
>
> We would recommend that you follow this guidance 
> https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.adGroupCriteria/mutate
>  for 
> your reference.
>
> Let us know how it goes and if the issue persist, kindly provide to us the 
> complete *request *and *response* logs with *request id *and *request 
> header* generated on your end and we will be happy to look into it.
>
> Note that these logs can be requested or provided to the developer 
> handling the Google Ads API transactions when logging of the API requests 
> has been enabled. You may check here (
> https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging)
>  and 
> click your client library for the specific guideline to enable it.
>
> For REST interface requests, you can enable logging via the curl command 
> by using the -i flag. This will cause the tool to include the HTTP response 
> headers in the output.
>
> Links to the highlighted words above:
>
>- *request* - 
>
> https://developers.google.com/google-ads/api/docs/concepts/field-service#request
>  
>- *response* - 
>
> https://developers.google.com/google-ads/api/docs/concepts/field-service#response
>  
>- *request id* - 
>
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id
>  
>- *request header *- 
>
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers
>  
>
>  
> This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/274af138-cbb7-4b01-b645-2ae550080e41n%40googlegroups.com.


Re: creating single product listing groups through rest api

2023-05-25 Thread ma...@danzrust.cz
Okay, so of course it works now but I do have a follow up question . I need 
to exclude the "everything else in All Products" listing group but the JSON 
is still generating both product groups as active. 

I was reading the REST documentation but could not find anything about the 
exclusions. I'm attaching what I am after.

{ "operations": [ { "create": { "type": "LISTING_GROUP", 
"status":"ENABLED", "adGroup": 
"customers/7803661715/adGroups/148252268534", 
"resourceName":"customers/7803661715/adGroupCriteria/148252268534~-1", 
"listingGroup": { "type": "SUBDIVISION" } } }, { "create": { "type": 
"LISTING_GROUP", * "status": "PAUSED",* "adGroup": 
"customers/7803661715/adGroups/148252268534", "cpcBidMicros": "1", 
"listingGroup": { "type": "UNIT", "caseValue": { "productItemId": {} }, 
"parentAdGroupCriterion": 
"customers/7803661715/adGroupCriteria/148252268534~-1" } } }, { "create": { 
"type": "LISTING_GROUP", "status": "PAUSED", "adGroup": 
"customers/7803661715/adGroups/148252268534", "cpcBidMicros": "1", 
"listingGroup": { "type": "UNIT", "caseValue": { "productItemId": { 
"value": "shopify_fr_8211946045734_4473156881642" } }, 
"parentAdGroupCriterion": 
"customers/7803661715/adGroupCriteria/148252268534~-1" } } } ] }

On Thursday, May 25, 2023 at 8:50:22 PM UTC+2 Google Ads API Forum Advisor 
wrote:

> Hello,
>
> In addition to our previous response. You may send the requested details 
> privately via “*Reply To Author*” option. If that option is not available 
> to you, send it directly to googleadsa...@google.com instead, and let us 
> know here once it is provided.
>  
> This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c2ec94cd-9cb3-4c68-8925-a0bdb53dd4edn%40googlegroups.com.


Re: creating single product listing groups through rest api

2023-05-25 Thread ma...@danzrust.cz
Okay.. Figured it out...:

{ "operations": [ { "create": { "type": "LISTING_GROUP", 
"status":"ENABLED", "adGroup": 
"customers/7803661715/adGroups/150631446858", 
"resourceName":"customers/7803661715/adGroupCriteria/150631446858~-1", 
"listingGroup": { "type": "SUBDIVISION" } } }, { "create": { "type": 
"LISTING_GROUP", "status": "PAUSED", "adGroup": 
"customers/7803661715/adGroups/150631446858", "negative": true, 
"listingGroup": { "type": "UNIT", "caseValue": { "productItemId": {} }, 
"parentAdGroupCriterion": 
"customers/7803661715/adGroupCriteria/150631446858~-1" } } }, { "create": { 
"type": "LISTING_GROUP", "status": "PAUSED", "adGroup": 
"customers/7803661715/adGroups/150631446858", "cpcBidMicros": "1", 
"listingGroup": { "type": "UNIT", "caseValue": { "productItemId": { 
"value": "shopify_fr_8211946045734_4473156881642" } }, 
"parentAdGroupCriterion": 
"customers/7803661715/adGroupCriteria/150631446858~-1" } } } ] }

On Thursday, May 25, 2023 at 9:16:20 PM UTC+2 ma...@danzrust.cz wrote:

> Okay, so of course it works now but I do have a follow up question . I 
> need to exclude the "everything else in All Products" listing group but the 
> JSON is still generating both product groups as active. 
>
> I was reading the REST documentation but could not find anything about the 
> exclusions. I'm attaching what I am after.
>
> { "operations": [ { "create": { "type": "LISTING_GROUP", 
> "status":"ENABLED", "adGroup": "customers/7803661715 
> <(780)%20366-1715>/adGroups/148252268534", 
> "resourceName":"customers/7803661715 
> <(780)%20366-1715>/adGroupCriteria/148252268534~-1", 
> "listingGroup": { "type": "SUBDIVISION" } } }, { "create": { "type": 
> "LISTING_GROUP", * "status": "PAUSED",* "adGroup": "customers/7803661715 
> <(780)%20366-1715>/adGroups/148252268534", "cpcBidMicros": "1", 
> "listingGroup": { "type": "UNIT", "caseValue": { "productItemId": {} }, 
> "parentAdGroupCriterion": "customers/7803661715 
> <(780)%20366-1715>/adGroupCriteria/148252268534~-1" 
> } } }, { "create": { "type": "LISTING_GROUP", "status": "PAUSED", 
> "adGroup": "customers/7803661715 <(780)%20366-1715>/adGroups/148252268534", 
> "cpcBidMicros": "1", "listingGroup": { "type": "UNIT", "caseValue": { 
> "productItemId": { "value": "shopify_fr_8211946045734_4473156881642" } }, 
> "parentAdGroupCriterion": "customers/7803661715 
> <(780)%20366-1715>/adGroupCriteria/148252268534~-1" 
> } } } ] }
>
> On Thursday, May 25, 2023 at 8:50:22 PM UTC+2 Google Ads API Forum Advisor 
> wrote:
>
>> Hello,
>>
>> In addition to our previous response. You may send the requested details 
>> privately via “*Reply To Author*” option. If that option is not 
>> available to you, send it directly to googleadsa...@google.com instead, 
>> and let us know here once it is provided.
>>  
>> This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy:ref"
>>
>> Thanks,
>>   
>> [image: Google Logo] Google Ads API Team 
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8980a0e5-6ce9-4741-b3f9-6ca9a82d6d25n%40googlegroups.com.


Re: creating single product listing groups through rest api

2023-05-29 Thread ma...@danzrust.cz
Yep, it's all good now. Thanks for support.

DZ

On Monday, May 29, 2023 at 9:14:58 PM UTC+2 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thanks for getting back with us.
>
> It seems that you already have figured out the answer to your concern. Can 
> you confirm if you have any more questions regarding Google Ads API related 
> concerns? If so, then don't hesitate to contact us.
>   
> This message is in relation to case "ref:_00D1U1174p._5004Q2lsXxy:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f3a17c8e-fbb9-45f3-9fc7-9a6c08887c80n%40googlegroups.com.


What do I pass into SOAP authToken header when using OAuth2.

2012-08-15 Thread Patrick Ma
Really confused about the authToken header from the documentation. Because 
we're not using client login.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: What do I pass into SOAP authToken header when using OAuth2.

2012-08-15 Thread Patrick Ma
Does anyone have a working request output?

I am unsure of what parameters to send to Adwords.

On Thursday, August 16, 2012 11:09:49 AM UTC+8, Patrick Ma wrote:
>
> Really confused about the authToken header from the documentation. Because 
> we're not using client login.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


BudgetService returning InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in the SANDBOX

2012-11-25 Thread Patrick Ma
Note: I masked my credentials from the request recording.

For some reason any request whether it's mutate or get to BudgetService 
results in this error:

---
http_interactions:
- request:
method: post
uri: 
https://adwords-sandbox.google.com/api/adwords/cm/v201209/BudgetService
body:
  encoding: US-ASCII
  string: http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:wsdl="https://adwords.google.com/api/adwords/cm/v201209";

xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201209";>multichannel
(AwApi-Ruby/0.7.2, Common-Ruby/0.8.2, Savon/1.2.0, ruby/1.9.3, 
HTTPI/1.1.1,

net_http)**https://adwords.google.com/api/adwords/cm/v201209";>NamePeriodAmountDeliveryMethodStatus
headers:
  Soapaction:
  - ! '"get"'
  User-Agent:
  - multichannel (AwApi-Ruby/0.7.2, Common-Ruby/0.8.2, Savon/1.2.0, 
ruby/1.9.3,
HTTPI/1.1.1, net_http)
  Authorization:
  - Bearer ya29.AHES6ZSPd1S7jPYrijuUbYdXfPEIInqAzAVmUg8R6b8krGk
  Content-Type:
  - text/xml;charset=UTF-8
  Content-Length:
  - '862'
  Accept:
  - ! '*/*'
  response:
status:
  code: 500
  message: Internal Server Error
headers:
  Content-Type:
  - text/xml; charset=UTF-8
  Date:
  - Mon, 26 Nov 2012 06:38:03 GMT
  Expires:
  - Mon, 26 Nov 2012 06:38:03 GMT
  Cache-Control:
  - private, max-age=0
  X-Content-Type-Options:
  - nosniff
  X-Frame-Options:
  - SAMEORIGIN
  X-Xss-Protection:
  - 1; mode=block
  Server:
  - GSE
  Transfer-Encoding:
  - chunked
body:
  encoding: US-ASCII
  string: http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201209";>0004cf602cdc8c400a83341b11d6BudgetServiceget01340soap:Server[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ 
com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]https://adwords.google.com/api/adwords/cm/v201209";>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ 
com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="InternalApiError">InternalApiError.UNEXPECTED_INTERNAL_API_ERRORInternalApiErrorUNEXPECTED_INTERNAL_API_ERROR
http_version: 
  recorded_at: Mon, 26 Nov 2012 06:38:03 GMT
recorded_with: VCR 2.3.0

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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





Post doubts 2 get result anything..

2011-07-08 Thread brindha ma
http://123maza.com/65/tulasi331/

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: querying removed *negative* keywords

2018-05-17 Thread MABEL MA
i know, but a like you a mistake :((, i have konow i deal to fix this

Vào 14:29:05 UTC-7 Thứ Tư, ngày 16 tháng 5 năm 2018, cha...@konversion.ca 
đã viết:
>
> Hi.
>
> We're using the 201710 api.
>
> We maintain a database of campaign, adgroup and shared keyword criteria 
> that we need to keep in sync with adwords. 
> For that, we need to be able to efficiently query removed keywords, both 
> negative and positive, so as to avoid having to always query all keywords 
> to update the database.
>
> Campaign criteria(negative keywords) have a "campaignCriterionStatus" 
> field, and biddable adgroup criteria also have a "userStatus" field. 
> However, shared criteria and negative adgroup criteria don't seem to have 
> an equivalent field to indicate if the criterion has been removed. 
> I assume this means that the removed criteria just won't appear in the 
> result of a query? 
> This means that to update my database, I need to query all criteria, and 
> check which criterion in our database are not in the query result? 
> This of course is not very efficient, as those queries can yield large 
> amount of results.
>
> Any advice on this?
>
> Thanks.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b63b2824-0d8a-42b3-aef3-67e285f2f792%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


URL_PERFORMANCE_REPORT not all urls listed

2018-06-28 Thread Mihail Ma

Hi!
I have VideoAd, and when i see dispayed urls in Web Interface of AdWords - 
there are above 4000 youtube channels, but when I get it 
from URL_PERFORMANCE_REPORT by script - there only 183 URLs. Why??

My script:
var period = '20180625, 20180625';
function main() {
 var videoIdList = [];


  var report = AdWordsApp.report(
 'SELECT CampaignName, Url, AdGroupName ' +
'FROM  URL_PERFORMANCE_REPORT ' +
'WHERE CampaignId = 1177713739 ' +
  //   'AND AdNetworkType1 IN [YOUTUBE_SEARCH, YOUTUBE_WATCH] ' +
'DURING ' + period, { includeZeroImpressions : true });


  var rows = report.rows();


  while (rows.hasNext()) {
var row = rows.next();
var videoId = row['Url'];
videoIdList.push(videoId);
  Logger.log(row['CampaignName'] + " - " + row['AdGroupName'] + " - " + row[
'Url']);
   }
Logger.log("Total Rows - " + videoIdList.length);
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/53a0c541-f063-4cbd-9d4c-1cbebcd7184c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Url Performance Report displays not all URLs

2018-06-28 Thread Mihail Ma
Hi all! 
I need to get all URLs by company, where my videoAd had been displayed. If 
I see it from AdWords web interface - for example for 25.06.2018 - there is 
about 4000 youtube channels, where AD been displayed. But if I get it 
from Url Performance Report by script - there only 180 urls((( WHY?

There is my script:

var period = '20180625, 20180625';
function main() {
 var videoIdList = [];

  var report = AdWordsApp.report(
 'SELECT CampaignName, Url, AdGroupName ' +
'FROM  URL_PERFORMANCE_REPORT ' +
'WHERE CampaignId = 1177713739 ' +
  //   'AND AdNetworkType1 IN [YOUTUBE_SEARCH, YOUTUBE_WATCH] ' +
'DURING ' + period, { includeZeroImpressions : true });

  var rows = report.rows();

  while (rows.hasNext()) {
var row = rows.next();
var videoId = row['Url'];
videoIdList.push(videoId);
  Logger.log(row['CampaignName'] + " - " + row['AdGroupName'] + " - " + 
row['Url']);
   }
Logger.log("Total Rows - " + videoIdList.length);
}


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f0018c72-928e-4c2c-aeed-91f9fd6cd43e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: TargetingIdeaService indifferent to language.

2018-07-17 Thread MABEL MA
me too
i have know ideal :(((

Vào 05:06:21 UTC-7 Thứ Ba, ngày 17 tháng 7 năm 2018, Saulius Maknickas đã 
viết:
>
> Hi,
>
> We are using TargetingIdeaService v201806 to retrieve search volumes for 
> specific keywords in different languages.
> But the service seems indifferent to language setting.
> See soap requests and response attached for IT and EN languages for same 
> keyword - "hotel in roma".
> Both responses returns same volume - 201000.
>
> But if checked on the online Keywords Planner - this keywords has no 
> search volumes in IT language and which is totally fine since this is 
> incorrect grammar in Italian.
>
> Any ideas?
>
> Regards,
> Saulius
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ec9552e1-387f-4f54-b5a9-c190dca3306f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 5 млн. FeedItem

2018-08-13 Thread MABEL MA
:((
me too
i can not to fix this

Vào 18:33:55 UTC-7 Thứ Hai, ngày 13 tháng 8 năm 2018, bash...@realweb.ru đã 
viết:
>
> Доброго времени суток. У фидов есть ограничение в 5 млн записей. Как можно 
> получить все записи? Возможно ли это? 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1f5af65d-b5db-461d-a120-4f36389e4230%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to distinguish between MCC shared sets and account shared sets?

2018-08-13 Thread MABEL MA
me too, i like you, i can not to fix this :((

Vào 08:16:01 UTC-7 Thứ Hai, ngày 13 tháng 8 năm 2018, suvodhoy sinha đã 
viết:
>
> Hi,
>
> When we fetch shared sets via the API, we receive both the MCC shared sets 
> as well as the account shared sets. But there is no way to identify which 
> are from which? In Adwords dashboard, there is a text which appears under 
> the shared set stating "Owned by a manager account". Is there any similar 
> functionality available in the API?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2c4eedfa-9905-4164-bdb6-b475113ccfef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to turn on message reporting via Adwords API

2018-08-14 Thread MABEL MA
me too, i like you, i can not to do next

Vào 22:25:02 UTC-7 Thứ Hai, ngày 13 tháng 8 năm 2018, Ronak Shah đã viết:
>
> Hello,
>
> Is there any way we can turn on message reporting via adwords API for 
> creating Message Extensions ?
>
> [image: Screen Shot 2018-08-13 at 5.54.55 PM.png]
>
>
>
>
> Regards,
> Ronak
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/af20a10c-0ddf-4071-b069-931edbfdf5a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to turn on message reporting via Adwords API

2018-08-15 Thread MABEL MA
reporting?

Vào 22:25:02 UTC-7 Thứ Hai, ngày 13 tháng 8 năm 2018, Ronak Shah đã viết:
>
> Hello,
>
> Is there any way we can turn on message reporting via adwords API for 
> creating Message Extensions ?
>
> [image: Screen Shot 2018-08-13 at 5.54.55 PM.png]
>
>
>
>
> Regards,
> Ronak
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/056f6bad-9cf2-49a2-854c-5368762c8c9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get / add Household Income via AdWords API v201806

2018-08-15 Thread MABEL MA

possible 
Vào 02:19:46 UTC-7 Thứ Tư, ngày 15 tháng 8 năm 2018, Zhenya Lupina đã viết:
>
> Hello,
>
> Is it possible to get / add Household Income via AdWords API v201806?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bcc83440-4d7b-4f21-871a-5cb4201356f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I update my keyword Text and MatchType?

2019-09-23 Thread Victor Ma
I use googleads-php-lib and don't know how to update the Text and MatchType 
of the keywords. There will be no errors after the code is submitted, but 
the update will not take effect.
$operations = [];
$adGroupId = '00';
$criterionId = '000';

$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->setAdGroupId($adGroupId);

$keyword = new Keyword();
$keyword->setId($criterionId);
$keyword->setType(CriterionType::KEYWORD);
$keyword->setText('Test Keyword');
$keyword->setMatchType(KeywordMatchType::PHRASE);

$adGroupCriterion->setCriterion($keyword);

$operation = new AdGroupCriterionOperation();
$operation->setOperand($adGroupCriterion);
$operation->setOperator(Operator::SET);
$operations[] = $operation;

$result = $adGroupCriterionService->mutate($operations);


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b32900b1-2cf5-46e5-b3cf-166eb1f02ca1%40googlegroups.com.


How do I update my keyword text?

2019-09-23 Thread Victor Ma
I use googleads-php-lib and don't know how to update the text and matching 
of the keywords. There will be no errors after the code is submitted, but 
the update will not take effect.
$operations = [];
$adGroupId = '00';
$criterionId = '000';


$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->setAdGroupId($adGroupId);


$keyword = new Keyword();
$keyword->setId($criterionId);
$keyword->setType(CriterionType::KEYWORD);
$keyword->setText('Test Keyword');
$keyword->setMatchType(KeywordMatchType::PHRASE);

$adGroupCriterion->setCriterion($keyword);



$operation = new AdGroupCriterionOperation();
$operation->setOperand($adGroupCriterion);
$operation->setOperator(Operator::SET);
$operations[] = $operation;


$result = $adGroupCriterionService->mutate($operations);


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ff405812-2dde-44db-849e-e5060286b11e%40googlegroups.com.


Cannot ceate uac campiang with api, get OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE error

2019-09-24 Thread yan Ma

First of all, my code for creating uac campaign works correctly before. And 
today when I try to create new uac campain, it failed.

Then I check the code and it get exception below

OperationAccessDenied{apiErrorType=OperationAccessDenied, 
errorString=OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, 
fieldPath=operations[0].operand.settings, 
fieldPathElements=[FieldPathElement{field=operations, index=0}, 
FieldPathElement{field=operand}, FieldPathElement{field=settings}], 
reason=OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, trigger=}

when calling campaign.mutate(operations).

And I see the UI of uac has changed. But the api document is still not 
changed. 

So my questions is what is the right way to create uac campaign with API?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9bfce350-03aa-4aa0-b10b-3ee9d7db96b7%40googlegroups.com.


php how to specify login-customer-id in the request

2021-08-16 Thread ma zhiwei
Hi, I am using google-ads-api to fetch campaign performance data, but I was 
stop by the following error.

"message": "The caller does not have permission", "code": 7, "status": 
"PERMISSION_DENIED"

My PHP code: 
```
$customerId = "Manager ID";
$oAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile("google_ads_php.ini")->build();
$googleAdsClient = (new 
GoogleAdsClientBuilder())->fromFile("google_ads_php.ini")
->withOAuth2Credential($oAuth2Credential)
->withLoginCustomerId($customerId)
->build();

$googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();
$customerServiceClient = $googleAdsClient->getCustomerServiceClient();
// Issues a request for listing all accessible customers.
$accessibleCustomers = $customerServiceClient->listAccessibleCustomers();
print 'Total results: ' . count($accessibleCustomers->getResourceNames()) . 
PHP_EOL;

// Iterates over all accessible customers' resource names and prints them.
foreach ($accessibleCustomers->getResourceNames() as $resourceName) {
printf("Customer resource name: '%s'%s", $resourceName, PHP_EOL);
$customer_id = explode("/", $resourceName)[1];

$query = "SELECT campaign.id, campaign.name, campaign.status FROM campaign 
ORDER BY campaign.id";
$stream = $googleAdsServiceClient->search($customer_id, $query);
echo json_encode($stream);
foreach ($stream->iterateAllElements() as $googleAdsRow) {
printf(
"Campaign with ID %d and name '%s' was found.%s",
$googleAdsRow->getCampaign()->getId(),
$googleAdsRow->getCampaign()->getName(),
PHP_EOL
);
} 
}
```

The error in log: 
```
[2021-08-16T08:07:56.532753+00:00] google-ads.INFO: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v6.services.CustomerService/ListAccessibleCustomers", 
CustomerId: "No customer ID could be extracted from the request", 
RequestId: "Vq8FGtFRDS9D-Id2aMRSzQ", IsFault: 0, FaultMessage: "None" 
[2021-08-16T08:07:56.672678+00:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v6.services.GoogleAdsService/Search", CustomerId: 
3452842817, RequestId: "4waISQvRlXbmTrAbjBSvoQ", IsFault: 1, FaultMessage: 
"["User doesn't have permission to access customer. Note: If you're 
accessing a client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https:\/\/developers.google.com\/google-ads\/api\/docs\/concepts\/call-structure#cid"]"
 
[2021-08-16T08:07:56.673119+00:00] google-ads.NOTICE: Request --- 
Method Name: /google.ads.googleads.v6.services.GoogleAdsService/Search 
Host: googleads.googleapis.com Headers: { "x-goog-api-client": 
"gl-php\/7.4.3 gapic\/ gax\/1.7.0 grpc\/1.36.0", "x-goog-request-params": 
"customer_id=3452842817", "developer-token": "REDACTED" } Request: 
{"customerId":"3452842817","query":"SELECT campaign.id, campaign.name, 
campaign.status FROM campaign ORDER BY 
campaign.id","pageSize":1000,"returnTotalResultsCount":true} Response 
--- Headers: { "request-id": "4waISQvRlXbmTrAbjBSvoQ", "date": "Mon, 16 
Aug 2021 08:07:56 GMT", "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; 
ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" } Fault --- Status 
code: 7 Details: The caller does not have permission Failure: 
{"errors":[{"errorCode":{"authorizationError":"USER_PERMISSION_DENIED"},"message":"User
 
doesn't have permission to access customer. Note: If you're accessing a 
client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid"}]}
```

My question is how to specify login-customer-id in the request by php. And 
what's reason about this error.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a48bdf03-1b29-41c6-80eb-de31ff2bf969n%40googlegroups.com.


Re: php how to specify login-customer-id in the request

2021-08-16 Thread ma zhiwei
Hi,
Thanks for your response.

My question is how to specify login-customer-id in the request by php, like 
this:  header("login-customer-id: 1234567890"); ?

I have specified the login-customer-id when I built googleAdsClient object, 
like this: 
$googleAdsClient = (new 
GoogleAdsClientBuilder())->fromFile("google_ads_php.ini")
->withOAuth2Credential($oAuth2Credential)
->withLoginCustomerId($customerId)
->build();

I hope you can tell me the exact php code, thanks a lot.

On Monday, August 16, 2021 at 6:37:31 PM UTC+8 adsapi wrote:

> Hi,
>
> Thanks for reaching out to us.
>
> Upon checking the error logs, it seems that the issue 
> ‘USER_PERMISSION_DENIED’ occurred due to incorrectly setting the 
> 'login-customer-id’ in the request. Note that when a user doesn't have 
> permission to access a customer and you’re accessing a client customer then 
> the manager's customer ID must be set in the 'login-customer-id’ in the 
> header request.
>
> That being said, you may refer to this 
> 
>  
> documentation on how to specify the login-customer-id property in the 
> request properly.
>
> In addition, you should need included if you also have the ads properties 
> file setup that corresponds to the library that you are using (e.g. 
> google_ads_php.ini for PHP), as shown here 
> 
> .
>
> Let us know if you have any further questions.
>
> Regards, 
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
>  
>
> ref:_00D1U1174p._5004Q2LnWda:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e9311f24-a1ea-431a-9608-372dbe239b66n%40googlegroups.com.


PHP Get First Page Cpc Micros

2022-04-12 Thread ma...@sumer.me
I am using Google Ads API V10 PHP Libray. I'm trying to get the 
"ad_group_criterion.position_estimates.first_page_cpc_micros," metric. But 
I am getting null error. Where am I doing wrong?

Sample Query:
SELECT campaign.id, campaign.name, ad_group_criterion.keyword.text, 
ad_group_criterion.position_estimates.first_page_cpc_micros FROM 
keyword_view

PHP Sample:
$campaign_id = $googleAdsRow->getCampaign()->getId();
$campaign_name = $googleAdsRow->getCampaign()->getName();
$keyword = $googleAdsRow->getAdGroupCriterion()->getKeyword()->getText();
$first_page_cpc 
= 
$googleAdsRow->getAdGroupCriterion()->getPositionEstimates()->getFirstPageCpcMicros();

Error:
*Fatal error*: Uncaught Error: Call to a member function 
getFirstPageCpcMicros() on null in...

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/716255c6-bf09-4660-9a45-1dc3dee975f6n%40googlegroups.com.


How can i change existing campaign budget?

2022-04-26 Thread ma...@sumer.me
Hi,

I am using Ads API v10 with PHP. And i can't update campaign budget with 
update sample.

Do I always have to create a new budget and add it to that campaign to 
update the budget? Like this:

$budget = new CampaignBudget([
'name' => $budgetId.time(),
'amount_micros' => $amount
]);

$campaignBudgetOperation = new CampaignBudgetOperation();
$campaignBudgetOperation->setCreate($budget);

$campaignBudgetServiceClient = 
$googleAdsClient->getCampaignBudgetServiceClient();
$response = $campaignBudgetServiceClient->mutateCampaignBudgets(
$customerId,
[$campaignBudgetOperation]
);

$addedBudget = $response->getResults()[0];

$budgetResourceName = $addedBudget->getResourceName();

$campaign = new Campaign([
'resource_name' => ResourceNames::forCampaign($customerId, 
$campaignId),
'campaign_budget' => $budgetResourceName
]);

$campaignOperation = new CampaignOperation();
$campaignOperation->setUpdate($campaign);

$campaignOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaign));

$campaignServiceClient = 
$googleAdsClient->getCampaignServiceClient();
$response = $campaignServiceClient->mutateCampaigns(
$customerId,
[$campaignOperation]
);

$updatedCampaign = $response->getResults()[0];

Is there no way to update the existing budget with the budget id?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/22f6b3cf-2509-4b8b-9ab8-6f1dc4320e03n%40googlegroups.com.


I can't get Responsive Search Ads Headlines and Descriptions

2022-07-18 Thread ma...@sumer.me
Hi,

I am using PHP Client Library. I get every metric, resource etc. except 
responsive search ads headlines and descriptions.

When i run this code sample i get an error like this:

print_r($googleAdsRow->getAdGroupAd()->getAd()->getResponsiveSearchAd()->getHeadlines());

*Fatal error*: Allowed memory size of 134217728 bytes exhausted (tried to 
allocate 58724352 bytes)...

How can i get all texts?

Note: I tried upgrade memory and try sample code like this:


$responsiveSearchAdInfo = $ad->getResponsiveSearchAd();

printf(

'Headlines:%1$s%2$sDescriptions:%1$s%3$s%1$s',

PHP_EOL,

self::convertAdTextAssetsToString($responsiveSearchAdInfo->getHeadlines()),

self::convertAdTextAssetsToString($responsiveSearchAdInfo->getDescriptions())

);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8ae4db52-7ee9-4eaf-bc00-211c462c6da7n%40googlegroups.com.


Re: I can't get Responsive Search Ads Headlines and Descriptions

2022-07-18 Thread ma...@sumer.me
Thanks for your help. I solved like this:

$ad = $googleAdsRow->getAdGroupAd()->getAd();
$responsiveSearchAdInfo = $ad->getResponsiveSearchAd();

$assets_headlines = $responsiveSearchAdInfo->getHeadlines();

foreach($assets_headlines as $asset){
echo $asset->getText();
}

On Monday, 18 July 2022 at 14:19:56 UTC+3 adsapi wrote:

> Hi Mahir,
>
> Thank you for raising this concern to the Google Ads API support team.
>
> With regard to your concern, you can use this code 
> 
>  as 
> reference in Google Ads API. However, if the issue is still persisting I 
> would suggest you reach out to the author of the PHP client library to get 
> help here. You can reach out to them via the PHP issues tracker on github 
>  to get further 
> assistance here as they are more equipped for this matter.
>
> Best regards,
> [image: Google Logo] 
> Jinky 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2cX3bf:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5d9962a5-e7b3-4aac-83b9-490e7662e1b3n%40googlegroups.com.


Targeting Ideas gives an error: INSUFFICIENT_SEARCH_PARAMETERS

2021-01-21 Thread ma...@sumer.me
Hi,

I want to use Targeting Ideas like Keyword Planner. I tried this code but 
got an error. How can i solve this?

Error: [TargetingIdeaError.INSUFFICIENT_SEARCH_PARAMETERS @ 
selector.searchParameters]

*Code:*

$adWordsServices = new AdWordsServices();
$session = main('XXX-XXX-');
$targetingIdeaService = $adWordsServices->get($session, 
TargetingIdeaService::class);

$selector = new TargetingIdeaSelector();
$selector->setRequestType(RequestType::IDEAS);
$selector->setIdeaType(IdeaType::KEYWORD);
$selector->setRequestedAttributeTypes(
  [
   AttributeType::KEYWORD_TEXT,
   AttributeType::SEARCH_VOLUME,
   AttributeType::AVERAGE_CPC,
   AttributeType::COMPETITION,
   AttributeType::CATEGORY_PRODUCTS_AND_SERVICES
   ]
);
$paging = new Paging();
$paging->setStartIndex(0);
$paging->setNumberResults(10);
$selector->setPaging($paging);
$searchParameters = [];
$relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
$relatedToQuerySearchParameter->setQueries(
 [
   'iphone 11 pro max'
 ]
);

$searchParameters[] = $relatedToQuerySearchParameter;

$page = $targetingIdeaService->get($selector);
   
   $entries = $page->getEntries();
if ($entries !== null) {
   foreach ($entries as $targetingIdea) {
   $data = MapEntries::toAssociativeArray($targetingIdea->getData());
   $keyword = $data[AttributeType::KEYWORD_TEXT]->getValue();
   $searchVolume = ($data[AttributeType::SEARCH_VOLUME]->getValue() !== 
null)
   ? $data[AttributeType::SEARCH_VOLUME]->getValue() : 0;
   $averageCpc = $data[AttributeType::AVERAGE_CPC]->getValue();
   $competition = $data[AttributeType::COMPETITION]->getValue();
   $categoryIds = 
($data[AttributeType::CATEGORY_PRODUCTS_AND_SERVICES]->getValue() === null)
   ? $categoryIds = ''
   : implode(
   ', ',
  
 $data[AttributeType::CATEGORY_PRODUCTS_AND_SERVICES]->getValue()
   );
   printf(
   "Keyword with text '%s', average monthly search volume %d, "
   . "average CPC %d, and competition %.2f was found with 
categories: %s\n",
   $keyword,
   $searchVolume,
   ($averageCpc === null) ? 0 : $averageCpc->getMicroAmount(),
   $competition,
   $categoryIds
   );
   }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3a3b9c80-6a7f-49d2-9e8e-b42e50918836n%40googlegroups.com.


Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

2021-04-01 Thread ma zhiwei
Hi,

I am using google ads api to get adwords data, but I got an error when I 
execute the code.
```
$oAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile("google_ads_php.ini")->build();
// OAuth2 credentials above.
$googleAdsClient = (new 
GoogleAdsClientBuilder())->fromFile("google_ads_php.ini")
->withOAuth2Credential($oAuth2Credential)
->build();

$googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();

$customerServiceClient = $googleAdsClient->getCustomerServiceClient();

// Issues a request for listing all accessible customers.
$accessibleCustomers = $customerServiceClient->listAccessibleCustomers();
print 'Total results: ' . count($accessibleCustomers->getResourceNames()) . 
PHP_EOL;
```
Error:
```
{ "message": "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential. See 
https:\/\/developers.google.com\/identity\/sign-in\/web\/devconsole-project.", 
"code": 16, "status": "UNAUTHENTICATED", "details": [ { "@type": 
"google.ads.googleads.v6.errors.googleadsfailure-bin", "data": "" }, { "@type": "grpc-status-details-bin", "data": "" }, { "@type": "request-id", "data": "feAcN0Pr2ap5iWrpDaC-rA" 
} ] }
```

After learning, someone said that it could be the wrong refresh token, but 
I can use the refresh token  to refresh access token.  

How can I solve it?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3c4c5266-b938-482e-a236-082a10953ea7n%40googlegroups.com.


AdWords API and Ads Interface are very slow in Turkey

2021-04-23 Thread ma...@sumer.me
Hi,

We use the Google AdWords API, but since yesterday (22.04.2021) there has 
been an incredible slowness and we often get "timeout" errors. What is the 
reason of this? How can we solve it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9cee5d75-1878-45ed-88eb-a15488e096adn%40googlegroups.com.


How Can I Connect to Google Ads Account Using Google Login with PHP?

2020-07-04 Thread ma...@sumer.me
I have an Google Ads API Account. And I want to login to customers account 
with google login and check account using API. How can i connect? Is there 
any documentation or PHP sample code?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6d91b915-4d40-44b4-a0cb-71cdc5a7a58an%40googlegroups.com.


Re: How Can I Connect to Google Ads Account Using Google Login with PHP?

2020-07-07 Thread ma...@sumer.me
First of all, thank you for the help. But I guess I couldn't express it 
fully.

I am currently using the Google Ads API, there is no problem. I want to 
connect to another client's Ads account and manage their campaigns. I want 
to use Google Login for this.

So the customer will click on a link that I will give and say Google Login 
and I will be able to access his account. Like Wordstream login system. 
(https://app.wordstream.com/login)

6 Temmuz 2020 Pazartesi tarihinde saat 21:01:34 UTC+2 itibarıyla 
adsapiforumadvisor şunları yazdı:

> Hello,
>
> Thank you for reaching out. To connect to the API and make your first 
> request, you can follow our Quickstart Guide 
> . 
> We have a PHP client library available here 
>  where 
> you can find sample code as well. Let me know if you have any additional 
> questions while trying to set up your API connection.
>
> Regards,
> Danica, Google Ads API Team
>
> ref:_00D1U1174p._5004Q21j8f3:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c001c29-6f81-491e-9562-127af1778029n%40googlegroups.com.


Re: How Can I Connect to Google Ads Account Using Google Login with PHP?

2020-07-07 Thread ma...@sumer.me
Are you sure this is not possible? Because Wordstream actually does this 
job. When you log in to them with your Google Ads account, they can manage 
your campaigns.

Actually, I succeeded partially in the link below, but for some reason I 
cannot get access to the account. Where is my fault I'm trying to figure it 
out.

Link: https://panel.adresgezgini.com/common/functions/

Code: 

require 'google-api/vendor/autoload.php';
use Google\Auth\OAuth2;
use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\v201809\cm\CampaignService;
use Google\AdsApi\Common\OAuth2TokenBuilder;

session_start();
$oauth2 = new OAuth2([
'authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth',
   'tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token',
   'redirectUri' => 'X',
   'clientId' => 'XX,
   'clientSecret' => 'X',
   'scope' => 'https://www.googleapis.com/auth/adwords',
   'refresh_token' => X'
]);
if(!isset($_GET['code'])){
$oauth2->setState(sha1(openssl_random_pseudo_bytes(1024)));
$_SESSION['oauth2state'] = $oauth2->getState();
$config = [
   
   'access_type' => 'offline',
   'prompt' => 'consent',
];
header('Location: ' . $oauth2->buildFullAuthorizationUri($config));
exit;
 
} elseif (empty($_GET['state']) || ($_GET['state'] !== 
$_SESSION['oauth2state'])){
  
  unset($_SESSION['oauth2state']);
  exit('Invalid state.');
 
} else {
$oauth2->setCode($_GET['code']);
$authToken = $oauth2->fetchAuthToken();
$refreshToken = $authToken['refresh_token'];
$path = "xx/google-api/vendor/adsapi_php.ini";
$session = (new AdWordsSessionBuilder())
   ->fromFile($path)
   ->withOAuth2Credential($oauth2)
   ->build();
$adWordsServices = new AdWordsServices();
$campaignService = $adWordsServices->get($session, CampaignService::class);
print_r($campaignService);
}

7 Temmuz 2020 Salı tarihinde saat 21:52:43 UTC+2 itibarıyla 
adsapiforumadvisor şunları yazdı:

> Hello,
>
> Thank you for clarifying! It does not look like this is possible for 
> Google Ads API. I have raised a feature request on your behalf. If the team 
> decides this is a viable request, you can find updates on our blog 
>  if it is available in future 
> releases.
>
> Let me know if you have any additional questions.
>
>
> Regards,
> Danica, Google Ads API Team
>
> ref:_00D1U1174p._5004Q21j8f3:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ca7fc2db-bd71-41e3-bf95-65c6f4e7d928n%40googlegroups.com.


Re: How Can I Connect to Google Ads Account Using Google Login with PHP?

2020-07-17 Thread ma...@sumer.me
Firstly i can't click to "Reply privately to author" button. This button is 
disabled.

And actually my main problem is not about Google AdWords or Google Ads. My 
first problem is i can't access to any customers account with Google Login. 
How can i do this with PHP? If you click to this link, you can see what i 
mean.

https://panel.adresgezgini.com/common/functions/

8 Temmuz 2020 Çarşamba tarihinde saat 16:37:55 UTC+2 itibarıyla 
adsapiforumadvisor şunları yazdı:

> Hello,
>
> I can see that you are using AdWords API in your code to make calls to 
> CampaignService. Can you please provide the complete detailed logs of the 
> request and response so that I can take a look at the errors you are 
> receiving? You can enable logging by following this 
>  guide. Since you 
> mentioned not being able to access the account, can you also provide the 
> customerClientId along with the email you used to authenticate the API 
> call? Please ensure you "*Reply privately to author" *when providing this 
> information.
>
>
> Regards,
> Danica, Google Ads API Team
>
> ref:_00D1U1174p._5004Q21j8f3:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/039ceacb-ca4c-4e90-809c-59a299238651n%40googlegroups.com.