How to get keyword id and ad group ad id from click_view? - google-ads-api

I'm migrating from Adwords API to Google Ads API. On Adwords API we have the click_performance_report which includes keyword id and ad group ad id. However, in Google Ads API, when querying using click_view, I can't find the corresponding fields. All I see is keyword and ad group ad fields but both return resource_name and I prefer not to parse it myself in order to get the id.
What's the best way to get the keyword id and ad group ad id using Google Ads API?

About group ad id in your question:
click_view has ad_group as a segmenting resource (docs) which allows you to build the GAQL query:
SELECT
campaign.id,
ad_group.id,
click_view.keyword
FROM click_view
LIMIT 1
Unfortunately I don't have an answer on how to get keyword id without parsing the click_view.keyword field.

Related

Mapping between UserListId of Google Adwords Api and ResourceName of Ads API

We were using Google Adwords API to create an Audience(UserList). Adwords API returns userListId as response. In Google Ads API in order to update the Audience, we need to pass resource Name (as compared to UserListId in Adwords API). How do I go about using Audience(UserList) created in Adwords API using Google Ads API?
The documentation explains how the resource name for each resource is composed. In the case of a user list, it's
customers/{customer_id}/userLists/{user_list_id}
where customer_id is the ID of the Ads account and user_list_id is the ID you obtained when you created the list.

Fetch customer Id using email & Create new Google Ads Manager account

I'm using Google Ads API PHP library in my system. But I didn't found following 2 API's in provided API list here https://developers.google.com/google-ads/api/docs/account-management/create-account:
API to find out whether user has already exist Google Ads account using email? If found then returns his 10 digit customer ID.
If user Google Ads account not found then create new Google Ads account (manager account on behalf of customer through our PHP script). So that after creating, I can link it under my manager account.
I have seen same process on few sites. Whenever user visits system, he entering his email address, name, etc.. then script searches for his existing Google Ads account if found return customer id or some data & auto logged-in to system otherwise creates new Google Ads manager account for him.
Please let me know any API or solution for these 2 cases.
1- You can use https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy to find out all the ads account under the manager account.
2- You can use https://developers.google.com/google-ads/api/docs/account-management/create-account to create google ad account under manager account

Eventbrite find user id when given Organisation name or email address

I'm building a system where a user can log in to my website and manage events via the Eventbrite api, the only unique identifier every account will have on creation is a user id, is there a way to have a user input their username, query the api and return their user id?
Eventbrite are working on integrating the organiser_id into the API, this will allow you to do a similar thing when it is live

Adwords api to fetch keywords associated with a google adwords account who can authoritize my app to get his google tracking id etc

I am a telephony based company. I would like my users to authenticate me using OAuth method to fetch their google adwords campaign details related to the google account. Which google adwords api should be used to achieve this requirement.
What do you mean by campaign details? There are many kinds of campaign-level report API that gives information about campaign like this performance report, for example: https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report

how can I know using Google AdWords API if an AdGroup is attached to a remarketting (audience)?

Can someone please help me with that problem.
The question:
Using the API, How can I know if an AdGroup using remarketting or not ?
The reason:
I want to change the destination URL for the entire campaign with the API.
usually for normal ads which uses Keyword, I just update the keyword (using the Ad URL for keyword which don't have URL).
when having audience, since the Ads aren't triggered with a Keyword, I must change the Ads URL.
since changing A Ad URL require to delete and recreate an Ad I'm trying to avoid it when possible.
The real question:
When will Google for COL will allow us to update the Ad URLs.
And they can update the quality index if that's the problem for all I care.
Thanks for taking the time to read it,
R.g.
As an FYI, the official AdWords API forum is available here:
http://code.google.com/apis/adwords/community/
An ad group that is using remarketing will contain a BiddableAdGroupCriterion containing a CriterionUserList. There are no plans to allow for ad URLs to be modifiable.

Resources