Re: How to Generate userInterest Resource Name using Google Ads API bita version ?

2019-11-22 Thread Rakesh Chauhan
Yes , i was tried it 

CampaignCriterion.newBuilder()
.setCampaign(StringValue.of(campaignResourceName))
.setUserInterest(UserInterestInfo.newBuilder().setUserInterestCategory(StringValue.of("customers/123456789/userInterests/92949")).build())
.build();


but in this  i need UserInterest ResourceName 
it is StringValue.of("customers/123456789/userInterests/92949")

So how can i generate it ?

can i create it Sting as menually ?



 
On Friday, November 22, 2019 at 2:22:19 AM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hi Rakesh,
>
> Here is an example of a builder you can use to create the user interest:
> CampaignCriterion.newBuilder()
> .setCampaign(StringValue.of(campaignResourceName))
>
> .setUserInterest(UserInterestInfo.newBuilder().setUserInterestCategory(StringValue.of("customers/123456789/userInterests/92949")).build())
> .build();
>
> Regards,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5001UOCINy: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/2105beab-f063-407e-8d9f-63d7a17850d6%40googlegroups.com.


Can't retrieve Campaign type local

2019-11-22 Thread 'Jessie Labadan' via AdWords API and Google Ads API Forum
Hi

I'm Jessie and I'm working in 3QDigital Company. 

I would like to ask help regarding the Campaign Performance Report. We have 
an existing report that uses an SDK. I would like to know why I can't 
retrieve campaigns for type Local? It's also not available via API.

Thanks!

Kind Regards,
Jessie

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/15b2bba8-fa84-4699-af14-34d2f9195038%40googlegroups.com.


Mobile App Category Constant Parent Categories (mobile_app_category_constant)

2019-11-22 Thread Riley
When querying the full list of mobile app category constants (
mobile_app_category_constant 
),
 
the only applicable attributes available are the id, name, and resource 
name. The response includes a number of duplicates (i.e: "Weather" occurs 
twice, "Music" occurs 4 times) likely as the result of having a 
hierarchical structure (i.e: iOS Apps > Weather, Android Apps > Weather) 
but no properties appear to be available for mobile_app_category_constant 
to specify the parent categories for each of these mobile app categories.

Just wondering if this an issue with the documentation for the constant and 
whether or not additional information is available to assist in identifying 
the uniqueness of what currently appear to be duplicate mobile app 
categories?

I have attached a JSON file to this question with the full list of mobile 
app category constants from which you can see that there are a number of 
duplicates with no way to identify the differences between them apart from 
the 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 
"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/4191396d-0103-428e-a15d-1f24474dc255%40googlegroups.com.


app-categories.json
Description: application/json


Re: How to list all accounts when multiple MCC accounts are under a single account.

2019-11-22 Thread Charles Bannister
Marc,

Apologies for the delay and thanks for the info. I'm just getting back 
round to this now and it's a big help thank you. 

Charles

On Monday, 1 April 2019 05:18:39 UTC-7, Marc Selman wrote:
>
> Hi Charles,
>
> I've built this functionality as wel. There's no way to retrieve all 
> information in one request.
> You'll need to loop through each customer and check if there are customers 
> below that one etc.
>
> 1) Query all customers
> 2) Loop through each customer (here you can also store if the customer is 
> a manager or a test account)
>
> 3) Query all customer-client-links for the customer (check for the active 
> status)
> 4) Loop through all the links (here you can also store if the link 
> represents a hidden customer)
> 5) Query the customer resource using the id in the link (here you can also 
> store if the customer is a manager or a test account)
> 6) Back to step 3 for the current customer
>
> So the part from step 3 will be a recursive function.
>
> I hope this helps.
>
> Best regards,
> Marc Selman
>
> Op maandag 1 april 2019 12:53:11 UTC+2 schreef Charles Bannister:
>>
>> Hi, 
>>
>> When I run the python example code "Get the account hierarchy under the 
>> current account" 
>> 
>>  it 
>> works for ordinary MCC accounts. Great. 
>>
>> However, I have an account which, when I log in, I first choose which 
>> linked MCC account to access. 
>>
>> In that account, no cigar. It lists some accounts but not all. 
>>
>> I imagine I need to go deeper, and that has something to do with the 
>> "links" part of what's been returned but I can't figure it out.
>>
>> Any help would be appreciated. 
>>
>> 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/9587d9e0-e035-488c-a1f6-aac81665233f%40googlegroups.com.


Re: Why are all my Offline Conversion imports being rejected with INVALID_CONVERSION_TYPE?

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hello John,

Could you please share the complete request and response log using reply 
privately to the author option so that I can check further. Please include 
account id as well.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UOD0pH: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/aFVee0Q1E1DI00t0_quuOCRLm-E8sogGSwbw%40sfdc.net.


Re: API limits for TargetingIdeaService

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hi Thiru,

We didn't receive your private message. Can you please provide them again?

Thanks,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UKOBqK: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/3Skf00Q1E01E0066s91FNBTc21I0gaCCc0HA%40sfdc.net.


Re: How can I get client account id

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hi Jianan,

The inviteeEmail and inviteeRole fields are accessible to whitelisted customers 
only. Could you please send us your customer Id via Reply Privately to Author 
option for us to check whether it has been whitelisted for this feature?

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001UOCbvR: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/rqGL00Q1DYO500MOoY5GOaT1Cge3DccQwo3Q%40sfdc.net.


RE: Migration from V201806 to V2019

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hello Sean,

Thank you for writing to us. Please follow the steps in the upgrading file to 
migrate from the old ads PHP client library to the new one. If you have already 
followed this guide and still having trouble making the API request calls, 
could you please share the complete request and response logs along with the 
client customer id for me to investigate this further on my end? Please use 
Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UOD1Tb: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/sNoX50Q1DXRS00OpFEANKrScyvV6PfCOO03A%40sfdc.net.


Re: Why are all my Offline Conversion imports being rejected with INVALID_CONVERSION_TYPE?

2019-11-22 Thread John Marquard
Please could you read my question again?

I am using the same name. "Contact Made v1" is the name of the conversion 
and the name when I submit new leads.

Thanks,

On Saturday, November 23, 2019 at 3:17:43 AM UTC+11, adsapiforumadvisor 
wrote:
>
> Hello John,
>
> The error specifies that you are using the wrong conversion name to upload 
> your conversions. Since the conversion name is changed you have to use the 
> new name. Please give it a try and let me know if you have any further 
> questions.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001UOD0pH: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/6994bea5-6467-41db-9e54-3307069e46f5%40googlegroups.com.


RE: How to get Budget Range Selector

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hi Pradeep,

Thank you for reaching out. There is no direct API equivalent to that slider. 
However, you can follow this guide for generating forecasting metrics for a 
proposed campaign based on a specific budget (or here  if you are using Google 
Ads API). You can create a budget for a smart display campaign the same way you 
would for any other campaign. See here  for more information on creating Smart 
Display Campaigns in AdWords API (or here  for Google Ads API).

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001UOD0vU: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/IE-wc0Q1DRGS00NUWGbWuAQByFnYY0bUUEhQ%40sfdc.net.


Re: Permission Denied error received in Google Ads API, but not for AdWords API

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hi Paul,

When we make an API request it is very important that we make sure there is a 
link between the manager account authenticated in the request and the client 
account specified in the headers. Also you have to make sure the OAuth2 
credentials that are being used belong to the manager account you are 
authenticating. Could you please provide your main MCC customer Id and specify 
the ones that are working and the ones that you encounter issues with? Please 
reply to us with the above information via the Reply privately to author option.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001UOCwYj: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/42C6O0Q1DR7200uNdIE2sMT0K7ak_Z2a2fpg%40sfdc.net.


RE: account report

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hi Polnyiem,

The metrics fields that are available in the shared screenshot are all 
supported in the Account Performance Report. You may review the metrics column 
for more information. If you're looking for any specific column, could you 
please share more details?

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UOD2A1: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/tAmRF0Q1DPBI002_Mo85I3S12cG889Il-jwQ%40sfdc.net.


RE: Why are all my Offline Conversion imports being rejected with INVALID_CONVERSION_TYPE?

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hello John,

The error specifies that you are using the wrong conversion name to upload your 
conversions. Since the conversion name is changed you have to use the new name. 
Please give it a try and let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UOD0pH: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/ha-Oq0Q1DP8Z003mJATFmfTUuWjPMOZTgaxw%40sfdc.net.


RE: Account Performance Report

2019-11-22 Thread Google Ads API Forum Advisor Prod
Hi Polnyiem,

The metrics fields that are available in the shared screenshot are all 
supported in the Account Performance Report. You may review the metrics column 
for more information. If you're looking for any specific column, could you 
please share more details?

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UOD29c: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/OHygX0Q1DP6V00gsDtc6FcRqGDoPVYKSeMqg%40sfdc.net.


Re: How can I get client account id

2019-11-22 Thread jianan wang
Hi

I use these code to invite a customer, but it come's out the error below:
[RequestError.UNKNOWN @ operations[0].inviteeEmail; 
trigger:'wangjianan7...@gmail.com']

How can I fix the error?

$managedCustomerService = (new AdWordsServices())->get($session, 
ManagedCustomerService::class);

// Create a managed customer.
$customer = new ManagedCustomer();
$customer->setName('Account #' . uniqid());
$customer->setCurrencyCode('EUR');
$customer->setDateTimeZone('Europe/London');

// Create a managed customer operation and add it to the list.
$operations = [];
$operation = new ManagedCustomerOperation();
$operation->setOperator(Operator::ADD);
$operation->setOperand($customer);
$operation->setInviteeEmail('wangjianan7...@gmail.com');
$operation->setInviteeRole(AccessRole::STANDARD);

$operations[] = $operation;
// Create a managed customer on the server and print out some info
// about it.
$customer = $managedCustomerService->mutate($operations)->getValue()[0];
printf(
"Account with customer ID %d was created.\n",
$customer->getCustomerId()
);

Thanks and regards, 
Jianan Wang


在 2019年11月22日星期五 UTC+8上午4:10:43,adsapiforumadvisor写道:
>
> Hi Jianan,
>
> You could use the ManagedCustomerService.get() 
> 
>  
> to retrieve the customer account ids if the customer accounts are already 
> linked to the MCC account. If not, then you have to look up the customer 
> account id through the Google Ads UI. If you would like to link any 
> customer account to your MCC account via API you would need to use 
> ManagedCustomerService.mutate() 
> 
>  
> and inviteeEmail 
> 
>  
> and inviteeRole 
> 
>  
> in MangedCustomerOperation 
> .
>  
> Keep in mind that inviteeEmail 
> 
>  
> and inviteeRole 
> 
>  
> are accessible to whitelisted customers only. Please let us know if you 
> have any further questions.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UOCbvR: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/68e2de78-0923-4dd2-aa22-e8ed6291bac6%40googlegroups.com.


Re: Permission Denied error received in Google Ads API, but not for AdWords API

2019-11-22 Thread Paul Cooper
Hi Xiaoming,

Sorry it wasn't clear but we are currently using both APIs simultaneously 
as we test and develop for the new API.

The customers from MCC (let's say, ID 123-123-4567) using their account 
level oauth credentials receive 'USER PERMISSION DENIED' (works fine in the 
old AdWords API).

Other customer from the same MCC, using MCC level oauth credentials are 
fine.

Another MCC, which is also the manager of ID 123-123-4567 and our MAIN mcc, 
has customers that authenticate with account level credentials, and can use 
the new API. They can also use MCC oauth credentials fine as well.

So there is just a small subset of customer, authenticating in a particular 
way on a specific MCC that currently have issues with the new API - but can 
use the old one fine!

Regards,
Paul

On Thursday, 21 November 2019 20:44:16 UTC+1, adsapiforumadvisor wrote:
>
> Hi Paul,
>
> Thanks for reaching out. The error USER_PERMISSION_DENIED 
> 
>  
> usually occurs when there is no link between the manager account 
> authenticated in the request and the client account specified in the 
> headers. If the link between the manager and client account was removed or 
> you don’t have access to the client customer ID specified or any of its 
> manager accounts, you may encounter this error. To resolve this issue, you 
> will need to use the OAuth2 Credentials 
>  
> that were generated using an email address which has access to the account 
> indicated in your request header. If you are using Google Ads API you need 
> to include the login-customer-id 
> 
>  
> in the header as mentioned in this blog post 
> 
> . 
>
> Please let us know if you have any further questions.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UOCwYj: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/10234799-bc41-4cf9-939d-8854e8e661dc%40googlegroups.com.


Re: Cannot Fetch the CustomerClient list from Customer ID using New API

2019-11-22 Thread Ronak Shah
Hi Pierrick,

I can confirm that the other api services works with the test account, but 
the customer_client service doesn't work with Test Accounts.

I hope this issue gets fix asap.

Thanks,
Ronak

On Thursday, November 21, 2019 at 4:35:37 AM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hi Ronak,
>
> My name is Pierrick and I work as a Developer Advocate for Ads API.
>
> Sure you can experiment the APIs against the test account. The main 
> difference is that test accounts don't serve any actual ads, impressions or 
> cost so data will often be zeroed out.
>
> Thanks,
> Pierrick - Ads API Team
>
> ref:_00D1U1174p._5001UOCbrw: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/27ce14ef-f00c-425a-8785-64149fe9c82a%40googlegroups.com.


TrafficEstimatorService does not match data with UI

2019-11-22 Thread Pradeep Datla
Hi,

I am trying to get Potential Audience Size using Google Adwords Api, but 
the data does not match for the same campaignid when compared UI to api 
result. I added my code snippet and the UI screenshot.
i am getting "impressionsperday" property from api. when i calculate it for 
30 days the numbers don't match.

[image: audiencesize.JPG]


  using (TrafficEstimatorService trafficEstimatorService =
(TrafficEstimatorService) 
user.GetService(AdWordsService.v201809
.TrafficEstimatorService))
{
// Create keywords. Refer to the TrafficEstimatorService 
documentation for the
// maximum number of keywords that can be passed in a 
single request.
//  
 
https://developers.google.com/adwords/api/docs/reference/latest/TrafficEstimatorService
Keyword keyword1 = new Keyword
{
text = "clothing websites",
matchType = KeywordMatchType.BROAD
};

Keyword keyword2 = new Keyword
{
text = "plus size clothing",
matchType = KeywordMatchType.BROAD
};

Keyword[] keywords = new Keyword[]
{
keyword1,
keyword2
};

// Create a keyword estimate request for each keyword.
List keywordEstimateRequests =
new List();

foreach (Keyword keyword in keywords)
{
KeywordEstimateRequest keywordEstimateRequest = new 
KeywordEstimateRequest
{
keyword = keyword
};
keywordEstimateRequests.Add(keywordEstimateRequest);
}

// Create ad group estimate requests.
AdGroupEstimateRequest adGroupEstimateRequest = new 
AdGroupEstimateRequest
{
keywordEstimateRequests = 
keywordEstimateRequests.ToArray(),
maxCpc = new Money
{
microAmount = 100
}
};

// Create campaign estimate requests.
CampaignEstimateRequest campaignEstimateRequest = new 
CampaignEstimateRequest
{
campaignId = 8192529983,
adGroupEstimateRequests = new AdGroupEstimateRequest[]
{
adGroupEstimateRequest
}
};

// Optional: Set additional criteria for filtering 
estimates.
// See 
http://code.google.com/apis/adwords/docs/appendix/countrycodes.html
// for a detailed list of country codes.
Location countryCriterion = new Location
{
id = 9030951 
};

// See 
http://code.google.com/apis/adwords/docs/appendix/languagecodes.html
// for a detailed list of language codes.
Language languageCriterion = new Language
{
id = 1000 //en
};

campaignEstimateRequest.criteria = new Criterion[]
{
countryCriterion,
languageCriterion
};

try
{
// Create the selector.
TrafficEstimatorSelector selector = new 
TrafficEstimatorSelector()
{
campaignEstimateRequests = new 
CampaignEstimateRequest[]
{
campaignEstimateRequest
},

// Optional: Request a list of campaign level 
estimates segmented by
// platform.
platformEstimateRequested = true
};

// Get traffic estimates.
TrafficEstimatorResult result = 
trafficEstimatorService.get(selector);

// Display traffic estimates.
if (result != null && result.campaignEstimates != null 
&&
result.campaignEstimates.Length > 0)
{
CampaignEstimate campaignEstimate = 
result.campaignEstimates[0];

// Display the campaign level estimates segmented 
by platform.
if (campaignEstimate.platformEstimates != null)
{
foreach (PlatformCampaignEstimate 
platformEstimate in campaignEstimate
.platformEstimates)
{
string platformMessage = string.Format(