Alert Service required MCC account.

216 views
Skip to first unread message

Chirag

unread,
Sep 2, 2013, 1:13:29 PM9/2/13
to adwor...@googlegroups.com
Hello Team,

Is itpossible to get alerts related to budget on account leval?
currently it requires MCC account access.
It is unfair after API recommending us to use customer id instead MCC account.

Thanks,
Chirag

Paul Matthews (AdWords API Team)

unread,
Oct 16, 2013, 8:19:07 AM10/16/13
to adwor...@googlegroups.com
Hi Chirag,

The AlertQuery used with the AlertService allows you to specify:
AlertQuery.clientCustomerIds = [<clientCustomerId>, ...]

Which will permit you to specify which client accounts to retrieve alerts for.

Regards,

- Paul, AdWords API Team.

Chirag

unread,
Oct 23, 2013, 6:20:56 AM10/23/13
to adwor...@googlegroups.com
Hello Paul,

No it is not giving me individual customer Ids alert.
This is giving me error An error has occurred: [AlertError.INVALID_CLIENT_ID_SELECTED @ selector.query.clientExternalCustomerIds[0]]

My request id is : requestId=0004e965712bc4280aa4bc4200004f14

Please see my code :

    $alertQuery = new AlertQuery();
    $alertQuery->clientSpec = 'ID_LIST';
    $alertQuery->clientCustomerIds = array("Cust_id");
    $alertQuery->filterSpec = 'ALL';
    $alertQuery->types = array('ACCOUNT_BUDGET_BURN_RATE', 'ACCOUNT_BUDGET_ENDING',
        'ACCOUNT_ON_TARGET', 'CAMPAIGN_ENDED', 'CAMPAIGN_ENDING',
        'CREDIT_CARD_EXPIRING', 'DECLINED_PAYMENT',
        'MANAGER_LINK_PENDING', 'MISSING_BANK_REFERENCE_NUMBER',
        'PAYMENT_NOT_ENTERED', 'TV_ACCOUNT_BUDGET_ENDING', 'TV_ACCOUNT_ON_TARGET',
        'TV_ZERO_DAILY_SPENDING_LIMIT', 'USER_INVITE_ACCEPTED',
        'USER_INVITE_PENDING', 'ZERO_DAILY_SPENDING_LIMIT');
    $alertQuery->severities = array('GREEN', 'YELLOW', 'RED');
    $alertQuery->triggerTimeSpec = 'ALL_TIME';

    // Create selector.
    $selector = new AlertSelector();
    $selector->query = $alertQuery;

Thanks,
Chirag

Chirag

unread,
Oct 23, 2013, 7:57:13 AM10/23/13
to adwor...@googlegroups.com
Hi,

Alert Service says that :
Use this service to retrieve alerts relating to managed accounts (such as a credit card expiring soon or a campaign ending). Each returned alert encapsulates a client ID with the alert severity, type, and any additional details.

Chirag

unread,
Dec 3, 2013, 3:50:54 AM12/3/13
to adwor...@googlegroups.com
Hello paul,

Any update on this?

Paul Matthews (AdWords API Team)

unread,
Dec 3, 2013, 6:32:29 AM12/3/13
to adwor...@googlegroups.com
Hi Chirag,

So I've been looking into this further and I too have been receiving AlertError.INVALID_CLIENT_ID_SELECTED. However, the problem I was hitting was:
I'd been sending the client customer in the string form: 000-000-0000, but the documentation requests xsd:long[]. On changing the type of data sent to long, the error was resolved. I also added paging for good measure.

Cheers,

Paul.

Chirag

unread,
Dec 3, 2013, 7:11:06 AM12/3/13
to adwor...@googlegroups.com
Hi Paul,

Thanks for reply,
But How i can do this? Still seeing same error.
Also wants to mention, using MCC account this is giving proper response.

Paul Matthews (AdWords API Team)

unread,
Dec 3, 2013, 9:18:09 AM12/3/13
to adwor...@googlegroups.com
Hi Chirag,

Here's the code that I've got:
$query = new AlertQuery();
$query->clientSpec = "ID_LIST";
$query->clientCustomerIds = array(0000000000);
$query->filterSpec = "ALL";
$query->triggerTimeSpec = "ALL_TIME";
$selector = new AlertSelector();
$selector->query = $query;
// Create paging controls.
$selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE);

Where the value of 0000000000 is my (integer) client ID, with no hyphens.

Chirag

unread,
Dec 3, 2013, 12:22:24 PM12/3/13
to adwor...@googlegroups.com
Hello Paul,

Yes, As you can see in my earlier post, i am using the same code as your one.
But as you are not getting any error, i have tryed once again with no success.
Please see my request id here, getting same error - "An error has occurred: [AlertError.INVALID_CLIENT_ID_SELECTED @ selector.query.clientExternalCustomerIds[0]] "

My request Id : 
requestId=0004eca46e3a88200aa4e6030000090b

My Code : 

// Create alert query.
    $query = new AlertQuery();
    $query->clientSpec = "ID_LIST";
    $query->clientCustomerIds = array(0000000000);
    $query->filterSpec = "ALL";
    $query->triggerTimeSpec = "ALL_TIME";

    // Create selector.
    $selector = new AlertSelector();
    $selector->query = $query;

    // Create paging controls.
    $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE);

Chirag

unread,
Jan 8, 2014, 4:30:17 AM1/8/14
to adwor...@googlegroups.com
Hello,
Any update?
I am waiting for this.
As on thread you said this was possible but using API it is not possible.

Ray Tsang (AdWords API Team)

unread,
Feb 12, 2014, 10:47:42 AM2/12/14
to adwor...@googlegroups.com
Chirag,

Just to confirm, you will need to set the clientCustomerIds to a real CID rather than the sample 0000000000.  If you have changed it to the real CID, please use the "Reply to Author" feature to send me your request/response log/payload.

Thanks!

--
Ray Tsang (AdWords API Advisor)

Chirag

unread,
Feb 24, 2014, 1:51:58 AM2/24/14
to adwor...@googlegroups.com
Hello Ray,

Replied to author.

Ray Tsang (AdWords API Team)

unread,
Feb 24, 2014, 3:11:10 PM2/24/14
to adwor...@googlegroups.com
Chirag,

I only saw the response xml.  Could I trouble you to send the request XML as well?

Thanks,

Ray

Chirag

unread,
Feb 25, 2014, 12:22:05 AM2/25/14
to adwor...@googlegroups.com
Hello Ray,

request xml also sent.

Ray Tsang (AdWords API Team)

unread,
Feb 27, 2014, 5:43:14 PM2/27/14
to adwor...@googlegroups.com
Chirag,

Please also send me, in private, the developer token and customer ID in question as well.  Thanks!

Ray Tsang (AdWords API Team)

unread,
Feb 28, 2014, 5:54:50 PM2/28/14
to adwor...@googlegroups.com
Chirag,

Please send me either the developer token and/or MCC account login email in private.
At this point, I can only deduce that the client customer ID you are trying to access is not linked to any MCCs.  It also appears that you are using OAuth 2.0.

Are you using a MCC's refresh token?  Or the refresh token belonging to the AW account in question?

Thanks,

--
Ray Tsang (AdWords API Advisor)

On Tuesday, February 25, 2014 12:22:05 AM UTC-5, Chirag wrote:

Ray Tsang (AdWords API Team)

unread,
Mar 4, 2014, 2:26:07 PM3/4/14
to adwor...@googlegroups.com
Chirag,

I noticed that the RequestHeader.clientCustomerId is not the same as the selector.query.clientCustomerIds.  Is the latter managed by the former?

Thanks,

Ray


On Tuesday, February 25, 2014 12:22:05 AM UTC-5, Chirag wrote:

Ray Tsang (AdWords API Team)

unread,
Mar 5, 2014, 1:53:25 PM3/5/14
to adwor...@googlegroups.com
Chirag,

I don't think you attached the latest request in the private message.  Please note that you can only get alerts with the ID that you have access to (based on the clientCustomerId header).

Thanks,

Ray

Chirag

unread,
Mar 6, 2014, 4:24:10 AM3/6/14
to adwor...@googlegroups.com
Hello Ray,

Sent you the new request header. I have permission for the user and not the MCC account.
Please note that i have same customerid set for request.

Ray Tsang (AdWords API Team)

unread,
Mar 6, 2014, 5:58:45 PM3/6/14
to adwor...@googlegroups.com
Chirag,

Since you are using php, could I trouble you to try this example?

Thanks,

Ray

Ray Tsang (AdWords API Team)

unread,
Mar 7, 2014, 1:40:43 PM3/7/14
to adwor...@googlegroups.com
Chirag,

Thanks for the request and response.  I'll be investigating this more.

Cheers,

Ray

Chirag

unread,
Mar 20, 2014, 6:51:52 AM3/20/14
to adwor...@googlegroups.com
Hello Ray,

Any success?

Ray Tsang (AdWords API Team)

unread,
Mar 20, 2014, 12:42:01 PM3/20/14
to adwor...@googlegroups.com
Chirag,

I'm sorry I don't have a resolution for this yet.

My apologies.

Ray

Chirag

unread,
Jul 29, 2014, 4:23:14 AM7/29/14
to adwor...@googlegroups.com
Hello ray,

Any update on this?
Did you able to get resolution for this?

Ray Tsang (AdWords API Team)

unread,
Jul 29, 2014, 2:37:36 PM7/29/14
to adwor...@googlegroups.com
Chirag,

I have no new update on this at the moment.

Thanks,

Ray
Reply all
Reply to author
Forward
0 new messages