Do I need to authenticate for gmb api every time?

2019-11-04 Thread Jiaxin Wu
Hi, 
The first step for linking business locations to Google ads campaign is to 
authenticate for GMB and AdWords API calls then generate access_token. I 
create locations for our client accounts in our own gmb account and use the 
location to create location extensions. 
I'm using the following scope to create authentication url:

var auth_url = Auth.oauth2Client.generateAuthUrl({
access_type : 'offline',
prompt  : 'consent',
scope   : [
'https://www.googleapis.com/auth/adwords',
'https://www.googleapis.com/auth/plus.business.manage',
'https://www.googleapis.com/auth/business.manage'
]
});


Every time I test on my test account, gmb api ask me to do the 
authentication step to generate a new access_token, or I can't access gmb 
api. In order to get the access_token I need to give permission on 
the consent page. But our google adwords mcc account contains many client 
accounts. It is impossible to generate a new access token every time 
clients want to create new campaign with location extension, cause our code 
is already on production. 
Is there any way that I can generate a access token with longer expire time 
that I can refresh it once a month?

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/23bf86f5-0073-497d-a277-769d19bdc252%40googlegroups.com.


Re: Location Extension doesn't show up in ad

2019-10-31 Thread Jiaxin Wu
Hi Nikisha,

Is that mean once the location is created in "Ads & extensions" page, all 
the api coding procedures are finished? And the ads should be showing the 
location extension when it is publishes?

Thanks,
Jiaxin

On Wednesday, October 30, 2019 at 4:50:37 PM UTC-4, adsapiforumadvisor 
wrote:
>
> Hi Jiaxin,
>
> Thank you for writing to us. I understand your concern that you are not 
> able to find the location extension while you hover over the ads in your 
> Google Ads account. However, this seems to be related more at the product 
> level and our product support team would be the best bet to assist you 
> here. You could reach out to them via help icon on the top right corner of 
> your Google Ads account (once logged in). Let us know if you have any 
> additional concerns related to API.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UKP0kU: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/2bb6d974-e93b-4202-8b85-3db6b2182171%40googlegroups.com.


Got MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE during creating location extension

2019-10-30 Thread Jiaxin Wu
Hi,

I follow the guide for creating location extension: 
https://developers.google.com/adwords/api/docs/guides/feed-services-locations

When I called CustomerFeedService to add the feed with the customer, I got 
"MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE" error. But there is written, 
that the FeedMapping is not need, because it is generated automatically.

And I did add the feed to the customer successfully this morning, but it 
failed now. 
I set the operation to be
let operation = {
operator : 'ADD',
operand  : {
feedId   : feed.id,
matchingFunction : {
operator : 'IDENTITY',
lhsOperand : {
'xsi:type' : 'ConstantOperand',
type : 'BOOLEAN',
booleanValue : true
}
},
placeholderTypes : 7,
status : 'ENABLED'
}
};

Following is my soap error:

http://schemas.xmlsoap.org/soap/envelope/";
>https://adwords.google.com/api/adwords/cm/v201809";>
000596244b03d7b80a376246ee057ed6CustomerFeedService
mutate0
136

soap:Client[CustomerFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE
 
@ operations[0].operand.placeholderTypes; trigger:\'LOCATION\']
https://adwords.google.com/api/adwords/cm/v201809";>[CustomerFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE
 
@ operations[0].operand.placeholderTypes; trigger:\'LOCATION\']
ApiException
http://www.w3.org/2001/XMLSchema-instance"; xsi:type="CustomerFeedError"
>operations[0].operand.placeholderTypes
operations0
operand
placeholderTypes
LOCATION
CustomerFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE
CustomerFeedError
MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE


Can you please me get an advice, please?

Thank you,
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/12990329-c1bc-4ed8-9630-e8273519d61e%40googlegroups.com.


Got "DUPLICATE_SYSTEM_FEED" error when called FeedService

2019-10-25 Thread Jiaxin Wu
Hi, 

I got the soap error when I was calling "FeedService" to C\create a new 
location extension feed linked to the Google My Business account:

'http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201809";>000595bf73a3508a0a37f918d00e0253FeedServicemutate0323soap:Client[FeedError.DUPLICATE_SYSTEM_FEED
 
@ operations[0].operand.systemFeedGenerationData; 
trigger:\'\']https://adwords.google.com/api/adwords/cm/v201809";>[FeedError.DUPLICATE_SYSTEM_FEED
 
@ operations[0].operand.systemFeedGenerationData; 
trigger:\'\']ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="FeedError">operations[0].operand.systemFeedGenerationDataoperations0operandsystemFeedGenerationData;FeedError.DUPLICATE_SYSTEM_FEEDFeedErrorUNKNOWN'
 

It said "There is already a feed with the given system feed generation 
data.", is it because I called "FeedItemService" to add other extensions 
before? How to fix and avoid this issue?

Thanks,
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/3d440892-08ec-4ff3-99c7-bcc56d614ab7%40googlegroups.com.


Getting 403 error when calling gmb api to get the location listing of my account

2019-10-17 Thread Jiaxin Wu
Hi, 

When I called the gmb api ('https://mybusiness.googleapis.com/v4/accounts' 
with access token) to get the location listing of our account, I got :
'{ StatusCodeError: 403 - {"error":{"code":403,"message":"Request had 
insufficient authentication scopes.","status":"PERMISSION_DENIED"}}.' 

and in headers, it said: 
 'www-authenticate:
 'Bearer realm="https://accounts.google.com/";, error=
"insufficient_scope", scope="https://www.googleapis.com/auth/business.manage 
https://www.googleapis.com/auth/plus.business.manage";''.

I added the scope into my google adword oauth client id, and the access 
token was also generated in google adword oauth client id. What's the 
reason of this error? Is it because I added the scope to the wrong client? 
Maybe I should add it in my google oauth client not the google adword oauth 
client?

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/a5484031-4807-446e-a2f0-f672c72c3c72%40googlegroups.com.


Create Google My Business accounts in behalf of my clients

2019-10-15 Thread Jiaxin Wu
Hi,
If I want to create the Google My Business accounts on behalf of my clients 
after creating their accounts under my mcc account, do I need to use their 
email address to create/list their GMB accounts, or can I use my mcc 
account email to create their GMB accounts?
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/aec03be3-7315-4c63-9435-af5aac37%40googlegroups.com.


Re: To setup location extension for client accounts in MCC account

2019-10-09 Thread Jiaxin Wu
Hi, Xiaoming,

Thanks for your quick reply. And I have one more question, if I could 
finish the authentication on behalf of them and create their GMB accounts, 
then is it necessary for my clients to have a gmail account? Or all I need 
is only their locations where they want to show in the location extension?

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/68607a9a-796a-4495-916a-efcbd2ca62ae%40googlegroups.com.


To setup location extension for client accounts in MCC account

2019-10-08 Thread Jiaxin Wu
Hi,

I have 2 questions about setting up Location Extension for my clients 
accounts:
1. To setup 'Location Extension' for my clients accounts during the 
creation of their campaigns, do I need their own OAuth2 credentials(client 
ID and client secret) for Google My Business and AdWords API calls? Or can 
I finish the authentication on behalf of my clients and generate their own 
OAuth2 credentials?
2. Is it required for my clients to have their account or location 
of Google My Business. If they don't have their business in Google, can I 
add their business to Google?

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/2424c55c-b728-4cd6-9fb3-e674e9f4ff58%40googlegroups.com.